Sigma rule: PowerShell Console History Logs Deleted
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7dcb8977a3a0, updated 2023-02-15T00:00:00.000Z.
Rule
- Title
- PowerShell Console History Logs Deleted
- Status
- test
- Level
- medium
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2023-02-15
- File
- rules/windows/file/file_delete/file_delete_win_delete_powershell_command_history.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the deletion of the PowerShell console History logs which may indicate an attempt to destroy forensic evidence
Log source
- product
- windows
- category
- file_delete
Detection
selection:
TargetFilename|endswith: '\PSReadLine\ConsoleHost_history.txt'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.t1070
MITRE ATT&CK ids this rule names
References
- Internal Research
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_delete/file_delete_win_delete_powershell_command_history.yml
Sources and licences
SigmaHQ
"PowerShell Console History Logs Deleted" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_delete/file_delete_win_delete_powershell_command_history.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: PowerShell Console History Logs Deleted",
entity page, dataset version ref-7dcb8977a3a0, updated 2023-02-15T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ff301988-c231-4bd0-834c-ac9d73b86586 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ff301988-c231-4bd0-834c-ac9d73b86586, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.