kevmap

TechniquesT1021.004 › AN1639

AN1639 Analytic 1639

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

<p>SSH login detected via Unified Logs, followed by unusual process execution, especially outside normal user behavior patterns.</p>
Detects
T1021.004 SSH
Part of
DET0596 Behavioral Detection of Remote SSH Logins Followed by Post-Login Execution

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:unifiedlogprocess = 'sshd'DC0088 Logon Session Metadata
macos:unifiedlogprocess = 'ssh' OR eventMessage CONTAINS 'ssh'DC0085 Network Traffic Content
macos:osqueryprocess_eventsDC0032 Process Creation

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
TimeWindowTime range to correlate post-SSH activities (e.g., 45s)
UserContextDefine authorized users to reduce false positives
CommandLineKeywordsSuspicious terms like reverse shells, base64, curl

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2023-39780ASUS RT-AX55 RoutersMapped
CVE-2025-32433Erlang Erlang/OTPMapped