Techniques › T1070.003 › AN0467
AN0467 Analytic 0467
Linux · attack.mitre.org · ATT&CK Enterprise v19.2
<p>Detects adversary behavior clearing command history via
history -c, deletion or modification of ~/.bash_history, or manipulation of the HISTFILE environment variable post-login.</p>- Detects
- T1070.003 Clear Command History
- Part of
- DET0165 Behavioral Detection of Command History Clearing
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 | execve | DC0032 Process Creation |
| auditd:SYSCALL | PATH | DC0040 File Deletion |
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 | Detect shell history clearing shortly after login or command execution. |
UserContext | Elevated shell sessions (e.g., root or sudo) without command history may be more suspicious. |
HistoryFilePath | Bash/Zsh history file paths (e.g., ~/.bash_history, ~/.zsh_history). |