Techniques › T1552.003 › AN1085
AN1085 Analytic 1085
Linux · attack.mitre.org · ATT&CK Enterprise v19.2
<p>A process outside of interactive shell context reads ~/.bash_history directly (e.g., using cat, less, grep), often shortly after privilege escalation or user switch (su/sudo). This may be followed by credential scanning in memory or file writes to new locations.</p>
- Detects
- T1552.003 Shell History
- Part of
- DET0385 Detect Access and Parsing of .bash_history Files for Credential Harvesting
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 | open/read access to ~/.bash_history | DC0055 File Access |
| auditd:EXECVE | cat|less|grep accessing .bash_history from a non-shell process | DC0032 Process Creation |
| auditd:SYSCALL | write or create file after .bash_history access | DC0039 File 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.
| Field | Description |
|---|---|
UserContext | Filter by users with elevated privileges or service accounts |
TimeWindow | Correlate access to .bash_history within X seconds of user switch or privilege escalation |
ProcessNamePatterns | Add/remove CLI utilities used to read bash history |