Windows sc.exe Security Descriptor Tampering to Deny Service Access via sdset

Alerts on sc.exe sdset commands that modify service security descriptors to deny access to critical trustees.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Jonhnathan Ribeiro, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-16
Updated
2026-07-30

ATT&CK techniques

Persistence → Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags process executions of sc.exe where the command line includes sdset and a DACL entry beginning with 'D;', indicating a deny-access security descriptor modification. It further narrows matches to cases targeting critical trustee SIDs in the command line (e.g., logged-on user, service logon user, built-in administrators, local system, or everyone). Denying access to a service can be used to disrupt management or persistence by preventing legitimate users and services from interacting with it, and the rule relies on Windows process creation telemetry capturing the full command line.

Related detections9 linkedT1543.003 — drag to rearrange
Suspicious Service DLL Hijack of IKEEXT or PrintNotify
Service Hiding via SC Sdset Security Descriptor Modification
Malicious Service DLL Hijack for Persistence via Lotus Blossom
Malicious TinyTurla ServiceDll Registration via svchost Group (via registry_set)
Suspicious ToyMaker LAGTOY Service Creation Masquerading as WmiPrvSV via sc.exe
Malicious Service Creation With Autostart binPath via sc.exe (via process_creation)
Malicious svchost Service Creation for TinyTurla Persistence (via process_creation)
Malicious Service Creation Masquerading as nslookup (via process_creation)
Interactive Service Creation Executing cmd via sc.exe
Windows sc.exe Security Descriptor Tampering to Deny Service Access via sdset
Pivot detection · T1543.003 · 9 related

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