PowerShell WMI Service Enumeration for Unquoted Service Path Recon

Flags PowerShell WMI queries for Win32_Service fields to enumerate potential unquoted service path issues.

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-06-20
Updated
2026-07-31

ATT&CK techniques

Execution
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell script blocks that use WMI queries (Get-WmiObject/gwmi) targeting Win32_Service fields used for service path analysis. Attackers and testers use this to enumerate service properties such as Name, DisplayName, PathName, and StartMode to identify potentially exploitable unquoted service paths. Telemetry relies on PowerShell Script Block Logging capturing the query and selected field names in the script block text.

Related detections9 linkedT1047 — drag to rearrange
Malicious UAT-8302 Remote Process Execution via wmic
Malicious Remote Encryptor Execution via WMIC Process Call Create (Chaos Ransomware)
Malicious Impacket Wmiexec Remote Command Execution Pattern
Malicious Shadow Copy Deletion Via WMI
Suspicious Remote Process Creation via WMIC Process Call Create (via process_creation)
Suspicious System Reconnaissance via WMI Command-Line Queries (via process_creation)
Malicious Impacket WMIexec Process Execution (via process_creation)
Suspicious Child Process Spawned by WMI Provider Host (via process_creation)
Malicious WMI Spwaning PowerShell Process - WMImplant (via process_creation)
PowerShell WMI Service Enumeration for Unquoted Service Path Recon
Pivot detection · T1047 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.