T1574.006 Dynamic Linker Hijacking
ExecutionStealthon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0435 Detection Strategy for Hijack Execution Flow: Dynamic Linker Hijacking
AN1209 Linux
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.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve with LD_PRELOAD or linker-related environment variables set | Not mapped to Sentinel yet. |
auditd:PATHcreation of .so files in non-standard directories (e.g., /tmp, /home/*) | Not mapped to Sentinel yet. |
linux:osqueryprocess environment variables containing LD_PRELOAD | Not mapped to Sentinel yet. |
AN1210 macOS
Detection centers on DYLD_INSERT_LIBRARIES and DYLD_LIBRARY_PATH abuse. Defender perspective: monitor for modification of these environment variables in shell or plist files, file creation of dylibs in user-controlled paths, and correlation of environment variable usage with unexpected module loads by user applications. Suspicious indicators include processes with DYLD_INSERT_LIBRARIES set, execution of applications loading untrusted dylibs, and anomalies in module load history.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogexecution of process with DYLD_INSERT_LIBRARIES set | Not mapped to Sentinel yet. |
macos:unifiedlogcreate/modify dylib in monitored directories | Not mapped to Sentinel yet. |
macos:unifiedlogloading of unexpected dylibs compared to historical baselines | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
2 SigmaHQ community rules name it in their tags.
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.