PowerShell: Suspicious Set-Service DACL/SecurityDescriptor Modification for Hidden Services

Flags PowerShell ScriptBlock activity using Set-Service with specific SDDL elements consistent with hiding services from tools like sc.exe.

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

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 flags PowerShell usage of the Set-Service cmdlet where the script block contains SecurityDescriptor SDDL parameters indicating a DACL/security descriptor change. The match is further constrained to SDDL fragments suggesting access control entries consistent with hiding or restricting visibility of the service to common utilities. Attackers may use this to persist while reducing discovery by tools such as sc.exe and Get-Service. It relies on Script Block Logging telemetry capturing the cmdlet arguments in ScriptBlockText.

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)
Windows PowerShell Set-Service SDDL Usage to Hide 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
PowerShell: Suspicious Set-Service DACL/SecurityDescriptor Modification for Hidden Services
Pivot detection · T1574.011 · 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.