kevmap

TechniquesT1098.004 › AN0351

AN0351 Analytic 0351

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

<p>Insertion of public keys into authorized_keys using bash/zsh or editor tools, correlated with suspicious process ancestry.</p>
Detects
T1098.004 SSH Authorized Keys
Part of
DET0126 Detection Strategy for SSH Key Injection in Authorized Keys

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: exec + filewrite: ~/.ssh/authorized_keysDC0032 Process Creation
macos:auth~/.ssh/authorized_keysDC0061 File Modification

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
ParentProcessTrack unusual parent process writing to SSH config (e.g., curl -> bash)
InteractiveSessionFlagFlag whether shell session was interactive (normal) or spawned remotely (potential abuse)

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2022-40684Fortinet Multiple ProductsMapped