T1071.005: Publish/Subscribe Protocols
Adversaries may communicate using publish/subscribe (pub/sub) application layer protocols to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server.
Protocols such as MQTT, XMPP, AMQP, and STOMP use a publish/subscribe design, with message distribution managed by a centralized broker.[1][2] Publishers categorize their messages by topics, while subscribers receive messages according to their subscribed topics.[1] An adversary may abuse publish/subscribe protocols to communicate with systems under their control from behind a message broker while also mimicking normal, expected traffic.
Analyst context for executives and security teams
Publish/Subscribe Protocols matter because command-and-control traffic can hide inside messaging patterns that may look normal in modern enterprise, cloud, IoT, or operations environments. Protocols such as MQTT, XMPP, AMQP, and STOMP are designed to route messages through brokers, which can make direct client-to-controller visibility harder. For leaders, the key issue is whether the organization can distinguish legitimate brokered messaging from unauthorized command traffic before it affects incident containment decisions.
Executive priority
Prioritize this where pub/sub protocols are allowed across user networks, server environments, network devices, or business-critical operational systems. The business decision is not simply whether these protocols exist, but whether their use is approved, segmented, logged, and filterable. This technique should drive questions about egress control, broker governance, network boundary inspection, SOC visibility, and incident response playbooks for suspicious application-layer command-and-control.
Technical view
This is a command-and-control sub-technique of Application Layer Protocol covering macOS, Linux, Windows, and Network Devices. ATT&CK does not provide official detection text for this object, but the related detection strategy is behavioral detection of pub/sub protocol misuse for C2. SOC and detection teams should validate whether MQTT, XMPP, AMQP, and STOMP traffic is visible, whether broker destinations and topics are baselined where available, and whether unusual client-to-broker patterns can be investigated. Relationship context includes GLOOXMAIL, a Windows malware entry that mimics legitimate Jabber/XMPP traffic, reinforcing the need to distinguish expected protocol use from lookalike traffic.
Likely telemetry
- Network flow records showing internal and external broker connections
- Firewall, proxy, and network boundary logs for allowed or blocked pub/sub protocol traffic
- IDS/IPS alerts and signatures related to MQTT, XMPP, AMQP, STOMP, or anomalous application-layer traffic
- Endpoint network connection telemetry from Windows, macOS, and Linux systems
- Broker logs where the organization operates MQTT, XMPP, AMQP, or STOMP infrastructure
Detection direction
- Inventory where pub/sub protocols are expected, then alert on use from systems or segments with no business need.
- Tune detections around unusual broker destinations, unexpected ports or protocols, new client populations, abnormal connection timing, or topic/subscription patterns where broker logs are available.
- Correlate network alerts with endpoint process and user context to reduce false positives from legitimate messaging clients or approved middleware.
- Treat encrypted or broker-mediated traffic as a visibility challenge: flow metadata, destination allowlists, and endpoint context may be more reliable than payload inspection alone.
- Use the related DET0002 strategy as a validation target, but do not assume coverage because ATT&CK provides no official detection logic in this object.
Mitigation priorities
- Start with network traffic filtering: restrict ingress, egress, and lateral pub/sub protocol use to approved systems, brokers, and destinations.
- Use network intrusion prevention at boundaries where signatures or policy rules can identify unauthorized or suspicious pub/sub traffic.
- Segment approved brokers and middleware so general user systems or unmanaged devices cannot freely communicate with them unless required.
- Maintain allowlists and firewall rules for authorized broker infrastructure, and review exceptions as part of change management and compliance evidence.
- Ensure incident response teams can quickly identify whether observed pub/sub traffic is approved business messaging or suspicious command-and-control behavior.
Analyst notes and limits
The strongest defensive value is in governance and visibility: know where pub/sub protocols are legitimate, monitor deviations, and preserve enough network and endpoint evidence to support containment decisions. This object is especially relevant to environments that permit messaging middleware, Jabber/XMPP-style communication, MQTT-based systems, or brokered application traffic.
The supplied ATT&CK object has no official detection text and provides limited procedure context beyond the GLOOXMAIL software relationship and cited examples. Local protocol usage, broker ownership, encryption, logging depth, and network architecture are required to determine actual risk and detection coverage.
Publish/Subscribe Protocols
Adversaries may communicate using publish/subscribe (pub/sub) application layer protocols to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server.
Protocols such as MQTT, XMPP, AMQP, and STOMP use a publish/subscribe design, with message distribution managed by a centralized broker.[1][2] Publishers categorize their messages by topics, while subscribers receive messages according to their subscribed topics.[1] An adversary may abuse publish/subscribe protocols to communicate with systems under their control from behind a message broker while also mimicking normal, expected traffic.
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Related techniques
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1071 | Application Layer Protocol | This object subtechnique of Application Layer Protocol. |
Groups, software, and campaigns
S0026: GLOOXMAIL
All related ATT&CK context
Mitigation direction
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates .
Imported snapshots across ATT&CK releases (1)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.1 | 1.1 | Current bundle | e61518b9fd82… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
-
[1]
wailing crab sub/pub
Hammond, Charlotte. Villadsen, Ole. Metrick, Kat.. (2023, November 21). Stealthy WailingCrab Malware misuses MQTT Messaging Protocol. Retrieved August 28, 2024.
Open source URL -
[2]
Mandiant APT1 Appendix
Mandiant. (n.d.). Appendix C (Digital) - The Malware Arsenal. Retrieved July 18, 2016.
Open source URL -
[3]
mitre-attack T1071.005Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.