T1071.005 Publish/Subscribe Protocols
Command and Controlon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0002 Behavioral Detection of Publish/Subscribe Protocol Misuse for C2
AN0002 Windows
Detects non-standard processes (e.g., PowerShell, python.exe, rundll32.exe) making outbound connections using publish/subscribe protocols (e.g., MQTT, AMQP) over non-browser, encrypted channels, often beaconing to message brokers.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=3, 22 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
NSM:Flowmqtt.log / xmpp.log (custom log feeds) | Not mapped to Sentinel yet. |
AN0003 Linux
Detects CLI tools (e.g., mosquitto_pub, nc, python scripts) interacting with pub/sub brokers using unusual topic names, high-frequency publication rates, or obfuscated payloads to non-standard hosts.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve | Not mapped to Sentinel yet. |
NSM:Flowmqtt.log or AMQP custom log | Not mapped to Sentinel yet. |
AN0004 macOS
Detects osascript, curl, or custom binaries interacting with XMPP/MQTT brokers in unapproved destinations with encrypted payloads or frequent POST-like requests to broker URIs.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedloglog stream 'eventMessage contains pubsub or broker' | Not mapped to Sentinel yet. |
macos:osquerysocket_events | Not mapped to Sentinel yet. |
AN0005 Network Devices
Detects pub/sub traffic over unusual ports, high-frequency topic publications, and connections to known-bad or dynamic broker endpoints outside allowlisted infrastructure.
| MITRE log source | In Microsoft Sentinel |
|---|---|
NSM:Flowmqtt.log, xmpp.log, amqp.log | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.