Clearing Windows Console History
Identifies when a user attempts to clear console history. An adversary may clear the command history of a compromised account to conceal the actions undertaken during an intrusion.
Detection logic
Detection requirements
- Platform
- ContainersESXiLinuxmacOSNetwork DevicesOffice SuiteWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source product
- windows
- Log source category
- ps_script
Known benign triggers
- Unknown
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| community.sophos.com/sophos-labs/b/blog/posts/powershell-command-history-forensics | 2from 2 sources |
| stefanos.cloud/blog/kb/how-to-clear-the-powershell-command-history/ | Only this detection cites it |
| www.shellhacks.com/clear-history-powershell/ | 2from 2 sources |
From the source
- At source
- Open at source
- Upstream identifier
- bde47d4b-9987-405c-94c7-b080410e8ea7
- Tagged by the source as
- attack.stealth
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1