Sigma rule: WMI Persistence

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

Rule

Title
WMI Persistence
Status
test
Level
medium
Author
Florian Roth (Nextron Systems), Gleb Sukhodolskiy, Timur Zinniatullin oscd.community
Date
2017-08-22
Modified
2022-02-10
File
rules/windows/builtin/wmi/win_wmi_persistence.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious WMI event filter and command line event consumer based on WMI and Security Logs.

Log source

product
windows
service
wmi
definition
WMI Namespaces Auditing and SACL should be configured, EventID 5861 and 5859 detection requires Windows 10, 2012 and higher

Detection

wmi_filter_to_consumer_binding:
    EventID: 5861
consumer_keywords:
    - 'ActiveScriptEventConsumer'
    - 'CommandLineEventConsumer'
    - 'CommandLineTemplate'
    # - 'Binding EventFilter'  # too many false positive with HP Health Driver
wmi_filter_registration:
    EventID: 5859
filter_scmevent:
    Provider: 'SCM Event Provider'
    Query: 'select * from MSFT_SCMEventLogEvent'
    User: 'S-1-5-32-544'
    PossibleCause: 'Permanent'
condition: ( (wmi_filter_to_consumer_binding and consumer_keywords) or (wmi_filter_registration) ) and not filter_scmevent

False positives (as the rule lists them)

  • Unknown (data set is too small; further testing needed)

Tags

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

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/windows/builtin/wmi/win_wmi_persistence.yml

Sources and licences

  • SigmaHQ

    "WMI Persistence" by Florian Roth (Nextron Systems), Gleb Sukhodolskiy, Timur Zinniatullin oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/wmi/win_wmi_persistence.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: WMI Persistence",
entity page, dataset version ref-7c9cd419b10a, updated 2022-02-10T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0b7889b4-5577-4521-a60a-3376ee7f9f7b (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0b7889b4-5577-4521-a60a-3376ee7f9f7b, 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.