kevmap

TechniquesT1056.004 › AN0391

AN0391 Analytic 0391

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

<p>Detects DYLD_INSERT_LIBRARIES abuse to hook credential-sensitive applications by correlating process spawns with unauthorized library injection and monitoring changes to the __TEXT segment (code) of credential handling binaries.</p>
Detects
T1056.004 Credential API Hooking
Part of
DET0139 Detection of Credential Harvesting via API Hooking

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:unifiedlogDYLD event subsystemDC0016 Module Load
fs:fsusageFile Access MonitorDC0055 File Access
macos:osqueryMemory MappingsDC0020 Process Modification

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
DYLDInjectedPathTunable based on naming patterns or location of malicious dylibs
ParentProcessNameHooking attempts may stem from terminal.app, bash, or AppleScript-based launchers