Sigma rule: WMI Persistence - Script Event Consumer
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-b24f13c2d79c, updated 2022-10-11T00:00:00.000Z.
Rule
- Title
- WMI Persistence - Script Event Consumer
- Status
- test
- Level
- medium
- Author
- Thomas Patzke
- Date
- 2018-03-07
- Modified
- 2022-10-11
- File
- rules/windows/process_creation/proc_creation_win_wmi_persistence_script_event_consumer.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the execution of a script event consumer. When scrcons.exe launches, it does so in response to the creation of an ActiveScriptEventConsumer instance
and will execute registered JScript or VBScript code as a result.
Script event consumers are a built-in Windows Management Instrumentation (WMI) class that
automatically executes a predefined script (in VBScript or JScript) whenever a specific system event occurs.
Adversaries often abuse script event consumers to maintain persistence on a compromised host
by executing a malicious script whenever a specific event occurs.
Log source
- product
- windows
- category
- process_creation
Detection
selection:
Image: C:\WINDOWS\system32\wbem\scrcons.exe
ParentImage: C:\Windows\System32\svchost.exe
condition: selectionFalse positives (as the rule lists them)
- Legitimate event consumers
- Dell computers on some versions register an event consumer that is known to cause false positives when brightness is changed by the corresponding keyboard button
Tags
- attack.persistence
- attack.privilege-escalation
- attack.t1546.003
MITRE ATT&CK ids this rule names
References
- https://redcanary.com/blog/threat-detection/child-processes/
- https://www.eideon.com/2018-03-02-THL03-WMIBackdoors/
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_wmi_persistence_script_event_consumer.yml
Sources and licences
SigmaHQ
"WMI Persistence - Script Event Consumer" by Thomas Patzke (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_wmi_persistence_script_event_consumer.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: WMI Persistence - Script Event Consumer",
entity page, dataset version ref-b24f13c2d79c, updated 2022-10-11T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ec1d5e28-8f3b-4188-a6f8-6e8df81dc28e (accessed 2026-11-03).
Underlying source: SigmaHQ rule ec1d5e28-8f3b-4188-a6f8-6e8df81dc28e, 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.