Windows PowerShell Set-Service SDDL Usage to Hide Services

Flags pwsh Set-Service commands that set a SecurityDescriptorSddl to hide a Windows service from other tools.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-10-17
Updated
2026-07-30

ATT&CK techniques

Execution → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Cred Access

  5. Discovery

  6. Lateral Movement

  7. Collection

  8. C2

  9. Exfiltration

  10. Impact

What it detects

This rule identifies PowerShell (pwsh.exe) process executions that invoke Set-Service with a SecurityDescriptorSddl containing DCLCWPDTSD. Attackers can use service security descriptor changes to hide services from common utilities such as sc.exe and Get-Service, supporting persistence and stealth. The detection relies on Windows process creation telemetry, matching the command line for the Set-Service invocation and specific SDDL components.

Related detections9 linkedT1574.011 — drag to rearrange
Malicious ServiceDll Hijack with QSC Loader DLL
Windows Service Registry Key ReadControl Access (Event ID 4663)
Windows sc.exe Service Security Descriptor Tampering (sdset)
PowerShell: Suspicious Set-Service DACL/SecurityDescriptor Modification for Hidden Services
PowerShell Set-Service SecurityDescriptor (DCLCWPDTSD) to Hide Services
Windows PowerShell ScriptBlock checks for service registry ACL inspection
Windows Reg.exe Modifies Service ImagePath in HKLM\SYSTEM\CurrentControlSet\Services
Windows: Detect sc.exe Service Creation with DACL Modification (sdset DCLCWPDTSD)
Windows service configuration tampering via sc/reg with payload execution paths
Windows PowerShell Set-Service SDDL Usage to Hide Services
Pivot detection · T1574.011 · 9 related

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