kevmap

TechniquesT1070.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 sourceChannelData component
WinEventLog:PowerShellEventCode=4103, 4104, 4105, 4106DC0064 Command Execution
WinEventLog:SysmonEventCode=23DC0040 File Deletion
WinEventLog:SecurityEventCode=4663, 4670, 4656DC0061 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
HistoryFilePathPath to PSReadLine file, typically in APPDATA.
UserContextUser account or role performing deletion (e.g., low-priv user deleting history).
CommandPatternSupport detection of `Clear-History` and variations.