Techniques › T1574.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 source | Channel | Data component |
|---|---|---|
| macos:unifiedlog | execution of process with DYLD_INSERT_LIBRARIES set | DC0032 Process Creation |
| macos:unifiedlog | create/modify dylib in monitored directories | DC0061 File Modification |
| macos:unifiedlog | loading of unexpected dylibs compared to historical baselines | DC0016 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.
| Field | Description |
|---|---|
WatchedEnvVars | macOS linker variables like DYLD_INSERT_LIBRARIES. Tunable to development environments where use may be expected. |
BaselineDylibs | Known dylibs typically loaded by apps. Deviations highlight potential hijacking. |
MonitoredDirectories | Locations where dylibs are monitored for tampering (e.g., /Applications, /System/Library, /tmp). |