Sigma rule: Suspicious Service DACL Modification Via Set-Service Cmdlet

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-6f764b8d4de2, updated 2022-10-18T00:00:00.000Z.

Rule

Title
Suspicious Service DACL Modification Via Set-Service Cmdlet
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2022-10-18
File
rules/windows/process_creation/proc_creation_win_powershell_service_dacl_modification_set_service.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious DACL modifications via the "Set-Service" cmdlet using the "SecurityDescriptorSddl" flag (Only available with PowerShell 7) that can be used to hide services or make them unstopable

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith: '\pwsh.exe'
    - OriginalFileName: 'pwsh.dll'
selection_sddl_flag:
    CommandLine|contains:
        - '-SecurityDescriptorSddl '
        - '-sd '
selection_set_service:
    CommandLine|contains|all:
        - 'Set-Service '
        - 'D;;'
    CommandLine|contains:
        - ';;;IU'
        - ';;;SU'
        - ';;;BA'
        - ';;;SY'
        - ';;;WD'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.privilege-escalation
  • attack.persistence
  • attack.t1543.003

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_service_dacl_modification_set_service.yml

Sources and licences

  • SigmaHQ

    "Suspicious Service DACL Modification Via Set-Service Cmdlet" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_service_dacl_modification_set_service.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious Service DACL Modification Via Set-Service Cmdlet",
entity page, dataset version ref-6f764b8d4de2, updated 2022-10-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a95b9b42-1308-4735-a1af-abb1c5e6f5ac (accessed 2026-11-03).
Underlying source: SigmaHQ rule a95b9b42-1308-4735-a1af-abb1c5e6f5ac, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.