kevmap

TechniquesT1071.005 › AN0004

AN0004 Analytic 0004

macOS · attack.mitre.org · ATT&CK Enterprise v19.2

<p>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.</p>
Detects
T1071.005 Publish/Subscribe Protocols
Part of
DET0002 Behavioral Detection of Publish/Subscribe Protocol Misuse for C2

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
macos:unifiedloglog stream 'eventMessage contains pubsub or broker'DC0032 Process Creation
macos:osquerysocket_eventsDC0078 Network Traffic Flow

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
AppContextFilterApplications not known to use pub/sub protocols
URIPathRegexCustom path patterns to message brokers over HTTPS