Sigma rule: Allow Service Access Using Security Descriptor Tampering Via Sc.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-125b930fd5c2, updated 2025-10-22T00:00:00.000Z.

Rule

Title
Allow Service Access Using Security Descriptor Tampering Via Sc.EXE
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2023-02-28
Modified
2025-10-22
File
rules/windows/process_creation/proc_creation_win_sc_sdset_allow_service_changes.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious DACL modifications to allow access to a service from a suspicious trustee. This can be used to override access restrictions set by previous ACLs.

Log source

product
windows
category
process_creation

Detection

selection_sc:
    - Image|endswith: '\sc.exe'
    - OriginalFileName: 'sc.exe'
selection_sdset:
    CommandLine|contains|all:
        - 'sdset'
        - 'A;' # Allow Access
selection_trustee:
    CommandLine|contains:
        - ';IU' # Interactively logged-on user
        - ';SU' # Service logon user
        - ';BA' # Built-in administrators
        - ';SY' # Local system
        - ';WD' # Everyone
filter_optional_hexnode:
    ParentImage: 'C:\Hexnode\Hexnode Agent\Current\HexnodeAgent.exe'
condition: all of selection_* and not 1 of filter_optional_*

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_sc_sdset_allow_service_changes.yml

Sources and licences

  • SigmaHQ

    "Allow Service Access Using Security Descriptor Tampering Via Sc.EXE" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_sc_sdset_allow_service_changes.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: Allow Service Access Using Security Descriptor Tampering Via Sc.EXE",
entity page, dataset version ref-125b930fd5c2, updated 2025-10-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/6c8fbee5-dee8-49bc-851d-c3142d02aa47 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 6c8fbee5-dee8-49bc-851d-c3142d02aa47, 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.