Techniques › T1070.003 › AN0469
AN0469 Analytic 0469
Windows · attack.mitre.org · ATT&CK Enterprise v19.2
<p>Detects PowerShell
Clear-History invocation or deletion of ConsoleHost_history.txt to erase past PowerShell session 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 |
|---|---|---|
| WinEventLog:PowerShell | EventCode=4103, 4104, 4105, 4106 | DC0064 Command Execution |
| WinEventLog:Sysmon | EventCode=23 | DC0040 File Deletion |
| WinEventLog:Security | EventCode=4663, 4670, 4656 | 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 |
|---|---|
HistoryFilePath | Path to PSReadLine file, typically in APPDATA. |
UserContext | User account or role performing deletion (e.g., low-priv user deleting history). |
CommandPattern | Support detection of `Clear-History` and variations. |