kevmap

TechniquesT1071.003 › AN0381

AN0381 Analytic 0381

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

<p>Detects email-sending behavior via Terminal, AppleScript, or Automator that interfaces with SMTP or IMAP, typically using curl or mail-related APIs in unsanctioned contexts.</p>
Detects
T1071.003 Mail Protocols
Part of
DET0135 Detection of Mail Protocol-Based C2 Activity (SMTP, IMAP, POP3)

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 --predicate 'processImagePath CONTAINS "curl" OR "osascript"'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
UserContextMonitor non-mail client users initiating SMTP/IMAP
TimeWindowLook for execution of mail commands during off-hours