Techniques › T1070.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 source | Channel | Data component |
|---|---|---|
| macos:unifiedlog | process | DC0032 Process Creation |
| fs:fsusage | unlink, write | DC0061 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.
| Field | Description |
|---|---|
TimeWindow | Duration after terminal usage where deletion or modification is considered suspicious. |
UserContext | Flag unexpected user activity, especially from users who normally don’t use terminal. |
HistoryFilePath | Zsh or Bash history files under the user's home directory. |