Sigma rule: Possible Privilege Escalation via Weak Service Permissions
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-522e1e7a1cee, updated 2024-12-01T00:00:00.000Z.
Rule
- Title
- Possible Privilege Escalation via Weak Service Permissions
- Status
- test
- Level
- high
- Author
- Teymur Kheirkhabarov
- Date
- 2019-10-26
- Modified
- 2024-12-01
- File
- rules/windows/process_creation/proc_creation_win_sc_change_sevice_image_path_by_non_admin.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detection of sc.exe utility spawning by user with Medium integrity level to change service ImagePath or FailureCommand
Log source
- product
- windows
- category
- process_creation
Detection
scbynonadmin:
Image|endswith: '\sc.exe'
IntegrityLevel:
- 'Medium'
- 'S-1-16-8192'
selection_binpath:
CommandLine|contains|all:
- 'config'
- 'binPath'
selection_failure:
CommandLine|contains|all:
- 'failure'
- 'command'
condition: scbynonadmin and 1 of selection_*False positives (as the rule lists them)
- Unknown
Tags
- attack.persistence
- attack.privilege-escalation
- attack.execution
- attack.stealth
- attack.t1574.011
MITRE ATT&CK ids this rule names
References
- https://speakerdeck.com/heirhabarov/hunting-for-privilege-escalation-in-windows-environment
- https://pentestlab.blog/2017/03/30/weak-service-permissions/
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_change_sevice_image_path_by_non_admin.yml
Sources and licences
SigmaHQ
"Possible Privilege Escalation via Weak Service Permissions" by Teymur Kheirkhabarov (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_sc_change_sevice_image_path_by_non_admin.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Possible Privilege Escalation via Weak Service Permissions",
entity page, dataset version ref-522e1e7a1cee, updated 2024-12-01T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d937b75f-a665-4480-88a5-2f20e9f9b22a (accessed 2026-11-03).
Underlying source: SigmaHQ rule d937b75f-a665-4480-88a5-2f20e9f9b22a, 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.