kevmap

TechniquesT1574.006 › AN1209

AN1209 Analytic 1209

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

<p>Detection focuses on identifying abuse of LD_PRELOAD and related linker variables. Defender perspective: monitor unexpected setting or modification of LD_PRELOAD in shell initialization scripts or environment exports, file creation of suspicious shared libraries, and correlation of these modifications with anomalous process execution. Key signals include execve events with LD_PRELOAD defined, newly created .so files in user directories, and processes hooking libc functions exhibiting abnormal behavior.</p>
Detects
T1574.006 Dynamic Linker Hijacking
Part of
DET0435 Detection Strategy for Hijack Execution Flow: Dynamic Linker Hijacking

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:SYSCALLexecve with LD_PRELOAD or linker-related environment variables setDC0032 Process Creation
auditd:PATHcreation of .so files in non-standard directories (e.g., /tmp, /home/*)DC0039 File Creation
linux:osqueryprocess environment variables containing LD_PRELOADDC0034 Process Metadata

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
WatchedEnvVarsEnvironment variables like LD_PRELOAD, LD_LIBRARY_PATH. Defenders can tune based on development vs. production systems.
MonitoredDirectoriesNon-standard library paths (e.g., /tmp, user home dirs). May be tuned to reduce false positives from benign development activity.
CorrelationWindowTimeframe to correlate suspicious library creation with process execution that loads it.