kevmap

TechniquesT1098.004 › AN0350

AN0350 Analytic 0350

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

<p>Adversary attempts to gain persistence by modifying ~/.ssh/authorized_keys via shell, text editor, echo or redirected output.</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
auditd:SYSCALLwrite | PATH=/home/*/.ssh/authorized_keysDC0061 File Modification
auditd:SYSCALLexecveDC0032 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
TimeWindowTemporal window to correlate file writes and suspicious process launches (e.g., <60s)
UserContextExpected user-to-process correlation (e.g., root writing to non-root authorized_keys)
TargetPathCustom SSH path or user home variation (e.g., /etc/skel/.ssh/)

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2022-40684Fortinet Multiple ProductsMapped