Techniques › T1546.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 source | Channel | Data component |
|---|---|---|
| auditd:SYSCALL | AUDIT_SYSCALL (open, write, rename, unlink) | DC0061 File Modification |
| auditd:EXECVE | execution of unexpected binaries during user shell startup | DC0032 Process Creation |
| NSM:Flow | unexpected network activity initiated shortly after shell session starts | DC0085 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.
| Field | Description |
|---|---|
TimeWindow | Defines how soon after shell startup process execution or network activity is considered suspicious. |
TargetUser | Limits detection to specific user accounts or roles such as root or service accounts. |
FilePathRegex | Defines what shell configuration paths are considered relevant (e.g., .bashrc, .bash_logout, etc.) |