VeriKQL by Kaushik Saha

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 sourceIn Microsoft Sentinel
auditd:SYSCALLexecve with LD_PRELOAD or linker-related environment variables setNot 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_PRELOADNot 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 sourceIn Microsoft Sentinel
macos:unifiedlogexecution of process with DYLD_INSERT_LIBRARIES setNot mapped to Sentinel yet.
macos:unifiedlogcreate/modify dylib in monitored directoriesNot mapped to Sentinel yet.
macos:unifiedlogloading of unexpected dylibs compared to historical baselinesNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

2 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

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.