Sigma rule: PowerShell Logging Disabled Via Registry Key Tampering
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ac83dd1b4dbb, updated 2023-08-17T00:00:00.000Z.
Rule
- Title
- PowerShell Logging Disabled Via Registry Key Tampering
- Status
- test
- Level
- high
- Author
- frack113
- Date
- 2022-04-02
- Modified
- 2023-08-17
- File
- rules/windows/registry/registry_set/registry_set_powershell_logging_disabled.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects changes to the registry for the currently logged-in user. In order to disable PowerShell module logging, script block logging or transcription and script execution logging
Log source
- product
- windows
- category
- registry_set
Detection
selection:
TargetObject|contains:
- '\Microsoft\Windows\PowerShell\' # PowerShell 5
- '\Microsoft\PowerShellCore\' # PowerShell 7
TargetObject|endswith:
- '\ModuleLogging\EnableModuleLogging'
- '\ScriptBlockLogging\EnableScriptBlockLogging'
- '\ScriptBlockLogging\EnableScriptBlockInvocationLogging'
- '\Transcription\EnableTranscripting'
- '\Transcription\EnableInvocationHeader'
- '\EnableScripts'
Details: 'DWORD (0x00000000)'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.defense-impairment
- attack.t1564.001
- attack.t1112
- attack.persistence
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/registry/registry_set/registry_set_powershell_logging_disabled.yml
Sources and licences
SigmaHQ
"PowerShell Logging Disabled Via Registry Key Tampering" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_powershell_logging_disabled.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 Logging Disabled Via Registry Key Tampering",
entity page, dataset version ref-ac83dd1b4dbb, updated 2023-08-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/fecfd1a1-cc78-4313-a1ea-2ee2e8ec27a7 (accessed 2026-11-03).
Underlying source: SigmaHQ rule fecfd1a1-cc78-4313-a1ea-2ee2e8ec27a7, 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.