kevmap

TechniquesT1574.006 › AN1210

AN1210 Analytic 1210

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

<p>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.</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
macos:unifiedlogexecution of process with DYLD_INSERT_LIBRARIES setDC0032 Process Creation
macos:unifiedlogcreate/modify dylib in monitored directoriesDC0061 File Modification
macos:unifiedlogloading of unexpected dylibs compared to historical baselinesDC0016 Module Load

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
WatchedEnvVarsmacOS linker variables like DYLD_INSERT_LIBRARIES. Tunable to development environments where use may be expected.
BaselineDylibsKnown dylibs typically loaded by apps. Deviations highlight potential hijacking.
MonitoredDirectoriesLocations where dylibs are monitored for tampering (e.g., /Applications, /System/Library, /tmp).