kevmap

TechniquesT1056.004 › AN0390

AN0390 Analytic 0390

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

<p>Detects credential interception via malicious LD_PRELOAD-based shared libraries loaded into ssh, sudo, or scp processes. Correlates environment variable injection, unexpected library loads, and memory patching behavior.</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
auditd:SYSCALLexecveDC0032 Process Creation
auditd:SYSCALLLD_PRELOAD LoggingDC0016 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
InjectedLibraryNameWatch for user-defined suspicious .so files (e.g., libhook.so, libshadow.so)
TargetProcessNameHooked binaries vary by use case (e.g., ssh, login, gdm)