Sigma rule: Disable Powershell Command History
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-bb77e60ddd50, updated 2022-08-21T00:00:00.000Z.
Rule
- Title
- Disable Powershell Command History
- Status
- test
- Level
- high
- Author
- Ali Alwashali
- Date
- 2022-08-21
- File
- rules/windows/powershell/powershell_script/posh_ps_disable_psreadline_command_history.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects scripts or commands that disabled the Powershell command history by removing psreadline module
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
ScriptBlockText|contains|all:
- Remove-Module
- psreadline
condition: selectionFalse positives (as the rule lists them)
- Legitimate script that disables the command history
Tags
- attack.stealth
- attack.t1070.003
MITRE ATT&CK ids this rule names
References
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/powershell/powershell_script/posh_ps_disable_psreadline_command_history.yml
Sources and licences
SigmaHQ
"Disable Powershell Command History" by Ali Alwashali (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_disable_psreadline_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: Disable Powershell Command History",
entity page, dataset version ref-bb77e60ddd50, updated 2022-08-21T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/602f5669-6927-4688-84db-0d4b7afb2150 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 602f5669-6927-4688-84db-0d4b7afb2150, 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.