kevmap

TechniquesT1070.003 › AN0468

AN0468 Analytic 0468

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

<p>Detects adversary clearing shell history using history -c or deleting/altering ~/.zsh_history or ~/.bash_history. Focus on sessions with missing or wiped history.</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
macos:unifiedlogprocessDC0032 Process Creation
fs:fsusageunlink, writeDC0061 File Modification

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
TimeWindowDuration after terminal usage where deletion or modification is considered suspicious.
UserContextFlag unexpected user activity, especially from users who normally don’t use terminal.
HistoryFilePathZsh or Bash history files under the user's home directory.