kevmap

TechniquesT1546.004 › AN0059

AN0059 Analytic 0059

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

<p>Detects modification of shell startup/logout scripts such as ~/.bashrc, ~/.bash_profile, or /etc/profile, followed by anomalous process execution or network connections upon interactive or remote shell login.</p>
Detects
T1546.004 Unix Shell Configuration Modification
Part of
DET0020 Detect Shell Configuration Modification for Persistence via Event-Triggered Execution

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:SYSCALLAUDIT_SYSCALL (open, write, rename, unlink)DC0061 File Modification
auditd:EXECVEexecution of unexpected binaries during user shell startupDC0032 Process Creation
NSM:Flowunexpected network activity initiated shortly after shell session startsDC0085 Network Traffic Content

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
TimeWindowDefines how soon after shell startup process execution or network activity is considered suspicious.
TargetUserLimits detection to specific user accounts or roles such as root or service accounts.
FilePathRegexDefines what shell configuration paths are considered relevant (e.g., .bashrc, .bash_logout, etc.)