Sigma rule: SC.EXE Query Execution
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-eeaf514c382d, updated 2024-02-08T00:00:00.000Z.
Rule
- Title
- SC.EXE Query Execution
- Status
- test
- Level
- low
- Author
- frack113
- Date
- 2021-12-06
- Modified
- 2024-02-08
- File
- rules-threat-hunting/windows/process_creation/proc_creation_win_sc_query.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects execution of "sc.exe" to query information about registered services on the system
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
Image|endswith: '\sc.exe'
OriginalFileName: 'sc.exe'
selection_cli:
CommandLine|contains: ' query'
filter_optional_keybase:
CommandLine: 'sc query dokan1'
condition: all of selection_* and not 1 of filter_optional_*False positives (as the rule lists them)
- Legitimate query of a service by an administrator to get more information such as the state or PID
- Keybase process "kbfsdokan.exe" query the dokan1 service with the following commandline "sc query dokan1"
Tags
- attack.discovery
- attack.t1007
- detection.threat-hunting
MITRE ATT&CK ids this rule names
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-threat-hunting/windows/process_creation/proc_creation_win_sc_query.yml
Sources and licences
SigmaHQ
"SC.EXE Query Execution" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_sc_query.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: SC.EXE Query Execution",
entity page, dataset version ref-eeaf514c382d, updated 2024-02-08T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/57712d7a-679c-4a41-a913-87e7175ae429 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 57712d7a-679c-4a41-a913-87e7175ae429, 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.