kevmap

TechniquesT1574.007 › AN0010

AN0010 Analytic 0010

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

<p>User modification of the $PATH environment variable in shell configuration files or direct runtime PATH changes, followed by execution of binaries from user-controlled directories. Defender observes file edits to ~/.bashrc, ~/.profile, or /etc/paths.d and process execution resolving to unexpected binary locations.</p>
Detects
T1574.007 Path Interception by PATH Environment Variable
Part of
DET0004 Detection Strategy for Hijack Execution Flow using Path Interception by PATH Environment Variable.

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:SYSCALLopen/write calls modifying ~/.bashrc, ~/.profile, or /etc/paths.dDC0061 File Modification
linux:osqueryExecution of binary resolved from $PATH not located in /usr/bin or /binDC0032 Process Creation

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
MonitoredShellConfigsSet of shell startup files where PATH changes should be flagged.
AllowedUserBinsDirectories (e.g., /usr/local/bin) considered safe to avoid FP.