Mqtt security

From RedHatProductSecurity/prodsec-skills · View interactive version

Mqtt security is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Secure MQTT broker and client deployments with authentication, topic ACLs, and transport encryption. Use when building, reviewing, or auditing MQTT broker configuration, client connectivity, or IoT messaging security.

How to use this skill

Skill file

MQTT Security

Client Authentication

MQTT brokers can verify client identity through three mechanisms, listed from weakest to strongest:

Client IDs

Username and Password

x509 Client Certificates

Topic Access Control

Data Protection

TLS Transport Encryption

Payload Encryption

Choosing Between TLS and Payload Encryption

| Factor | TLS | Payload Encryption |

|---|---|---|

| Scope | Full connection (headers + payload) | Payload only |

| End-to-end | No (terminates at broker) | Yes (client to client) |

| Credential protection | Yes | No |

| Device requirements | TLS stack required | Crypto library required |

| Broker configuration | Required | Not required |

For maximum security, use both: TLS for transport and payload encryption for end-to-end confidentiality.

Implementation Checklist

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.