kevmap

TechniquesT1070.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 sourceChannelData component
auditd:SYSCALLexecveDC0032 Process Creation
auditd:SYSCALLPATHDC0040 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.

FieldDescription
TimeWindowDetect shell history clearing shortly after login or command execution.
UserContextElevated shell sessions (e.g., root or sudo) without command history may be more suspicious.
HistoryFilePathBash/Zsh history file paths (e.g., ~/.bash_history, ~/.zsh_history).