kevmap

TechniquesT1055.009 › AN1494

AN1494 Analytic 1494

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

<p>Detects adversary behavior where a process enumerates and modifies another process's memory using /proc/[pid]/maps and /proc/[pid]/mem files. This includes identifying gadgets via memory mappings and overwriting process memory via low-level file modification or dd usage.</p>
Detects
T1055.009 Proc Memory
Part of
DET0541 Detection Strategy for /proc Memory Injection on Linux

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:SYSCALLopen/write to /proc/*/mem or /proc/*/mapsDC0061 File Modification
auditd:SYSCALLexecve of dd or sed targeting /proc/*/memDC0021 OS API Execution
linux:osquery/proc/*/maps accessDC0055 File Access

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
TargetProcNameRegexRegex list of high-value processes attackers may inject into, such as `sshd`, `nginx`, or `sleep`
TimeWindowBetweenMapAccessAndMemWriteTime span (e.g., <15s) between map read and memory write that may indicate enumeration-to-injection
InvokerBinaryAllowlistAllowlist of processes allowed to access /proc/[pid]/mem (e.g., gdb, strace)
FileWriteThresholdAlert if written bytes to /proc/[pid]/mem exceed a suspicious threshold (e.g., >4096 bytes)