Windows sc.exe Service Query Execution via Process Creation

Flags sc.exe executions with command lines containing " query", consistent with Windows service information discovery.

FreeReviewedSigma · Low · v5
Product
windows
Category
process_creation
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-06
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies process executions of sc.exe where the command line includes the string " query", indicating an attempt to query information about registered Windows services. Attackers and administrators may use sc.exe for service discovery and status checks, which can support broader reconnaissance or troubleshooting. It relies on Windows process creation telemetry, matching on the image path/name and the presence of the query keyword in the command line while excluding one specific benign Keybase service query pattern.

Related detections9 linkedT1007 — drag to rearrange
Linux Process Execution of esxcli Network Commands for ESXi Network Discovery
Linux Process Execution of esxcli VM Listing Commands
Linux ESXi esxcli VSAN Information Discovery via esxcli Command
Linux Process Creation: ESXi esxcli system discovery via system namespace
Linux ESXi esxcli Storage Information Discovery via esxcli storage commands
PowerShell Registry Reconnaissance Indicators on Windows via Script Block Logging
Linux Process Creation: crontab -l Enumeration
Windows Process Execution of PCHunter (PCHunter64.exe or PCHunter32.exe)
Windows reg.exe Registry Query Reconnaissance (Process Creation)
Windows sc.exe Service Query Execution via Process Creation
Pivot detection · T1007 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. 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.