Windows sc.exe Service Query for termservice Enumeration

Alerts on sc.exe service querying that references termservice on Windows.

FreeReviewedSigma · Low · v1
Product
windows
Category
process_creation
Author
Swachchhanda Shrawan Poudel (SigmaHQ), DRL 1.1
Published
2024-02-12
Updated
2026-07-30

ATT&CK techniques

Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags process executions of sc.exe where the command line includes a service query and specifically references termservice. Attackers commonly enumerate available services to identify reachable targets and potential follow-on attack paths. Telemetry relied upon is Windows process creation events, including Image/OriginalFileName and CommandLine content matching sc.exe, the query operation, and termservice.

Related detections9 linkedT1003 — drag to rearrange
Malicious Wdigest Authentication Enabled - Reg via Command (via process_creation)
Malicious Diskshadow Command Abuse to Expose VSS Backup (via process_creation)
Malicious IIS Application Pool Credential Dumping (via process_creation)
Malicious Wdigest Authentication Enabled - Registry (via registry_set)
Suspicious Veeam Backup Credential Harvesting via PowerShell (via ps_script)
Suspicious Network Provider Registration for Credential Interception via NPPSpy
Malicious Mimikatz Malicious Security Package (SSP) Exfiltrates Cleartext Passwords in File (via file_event)
Malicious WDigest UseLogonCredential Enablement For Credential Theft
Linux: Detect changes to fs.suid_dumpable enabling core dumps for SUID processes
Windows sc.exe Service Query for termservice Enumeration
Pivot detection · T1003 · 9 related

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