Sigma rule: Potential Registry Reconnaissance Via PowerShell Script
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1f869044f130, updated 2023-07-02T00:00:00.000Z.
Rule
- Title
- Potential Registry Reconnaissance Via PowerShell Script
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2023-07-02
- File
- rules-threat-hunting/windows/powershell/powershell_script/posh_ps_registry_reconnaissance.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects PowerShell scripts with potential registry reconnaissance capabilities. Adversaries may interact with the Windows registry to gather information about the system credentials, configuration, and installed software.
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
# TODO: switch to |re|i: after sigma specification v2 is released
ScriptBlockText|re: '(Get-Item|gci|Get-ChildItem).{1,64}-Path.{1,64}\\(currentcontrolset\\services|CurrentVersion\\Policies\\Explorer\\Run|CurrentVersion\\Run|CurrentVersion\\ShellServiceObjectDelayLoad|CurrentVersion\\Windows\winlogon)\\'
condition: selectionFalse positives (as the rule lists them)
- Due to the nature of the script block, the matching of the string could sometimes result in a false positive. Use this rule to hunt for potential malicious or suspicious scripts.
Tags
- attack.discovery
- attack.t1012
- attack.t1007
- detection.threat-hunting
MITRE ATT&CK ids this rule names
Related rules
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-threat-hunting/windows/powershell/powershell_script/posh_ps_registry_reconnaissance.yml
Sources and licences
SigmaHQ
"Potential Registry Reconnaissance Via PowerShell Script" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/powershell/powershell_script/posh_ps_registry_reconnaissance.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: Potential Registry Reconnaissance Via PowerShell Script",
entity page, dataset version ref-1f869044f130, updated 2023-07-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/064060aa-09fb-4636-817f-020a32aa7e9e (accessed 2026-11-03).
Underlying source: SigmaHQ rule 064060aa-09fb-4636-817f-020a32aa7e9e, 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.