Sigma rule: WMIC Unquoted Services Path Lookup - PowerShell
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-bfeed58f7d0a, updated 2022-11-25T00:00:00.000Z.
Rule
- Title
- WMIC Unquoted Services Path Lookup - PowerShell
- Status
- test
- Level
- medium
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-06-20
- Modified
- 2022-11-25
- File
- rules/windows/powershell/powershell_script/posh_ps_wmi_unquoted_service_search.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects known WMI recon method to look for unquoted service paths, often used by pentest inside of powershell scripts attackers enum scripts
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
ScriptBlockText|contains:
- 'Get-WmiObject '
- 'gwmi '
ScriptBlockText|contains|all:
- ' Win32_Service '
- 'Name'
- 'DisplayName'
- 'PathName'
- 'StartMode'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.t1047
MITRE ATT&CK ids this rule names
Related rules
References
- https://github.com/nccgroup/redsnarf/blob/35949b30106ae543dc6f2bc3f1be10c6d9a8d40e/redsnarf.py
- https://github.com/S3cur3Th1sSh1t/Creds/blob/eac23d67f7f90c7fc8e3130587d86158c22aa398/PowershellScripts/jaws-enum.ps1
- https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/
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_wmi_unquoted_service_search.yml
Sources and licences
SigmaHQ
"WMIC Unquoted Services Path Lookup - PowerShell" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_wmi_unquoted_service_search.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: WMIC Unquoted Services Path Lookup - PowerShell",
entity page, dataset version ref-bfeed58f7d0a, updated 2022-11-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/09658312-bc27-4a3b-91c5-e49ab9046d1b (accessed 2026-11-03).
Underlying source: SigmaHQ rule 09658312-bc27-4a3b-91c5-e49ab9046d1b, 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.