Sigma rule: Powershell WMI Persistence

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ef1ee45fe2f9, updated 2022-12-25T00:00:00.000Z.

Rule

Title
Powershell WMI Persistence
Status
test
Level
medium
Author
frack113
Date
2021-08-19
Modified
2022-12-25
File
rules/windows/powershell/powershell_script/posh_ps_wmi_persistence.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription.

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection_ioc:
    - ScriptBlockText|contains|all:
          - 'New-CimInstance '
          - '-Namespace root/subscription '
          - '-ClassName __EventFilter '
          - '-Property ' # is a variable name
    - ScriptBlockText|contains|all:
          - 'New-CimInstance '
          - '-Namespace root/subscription '
          - '-ClassName CommandLineEventConsumer '
          - '-Property ' # is a variable name
condition: selection_ioc

False positives (as the rule lists them)

  • Unknown

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/powershell/powershell_script/posh_ps_wmi_persistence.yml

Sources and licences

  • SigmaHQ

    "Powershell WMI Persistence" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_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: Powershell WMI Persistence",
entity page, dataset version ref-ef1ee45fe2f9, updated 2022-12-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/9e07f6e7-83aa-45c6-998e-0af26efd0a85 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 9e07f6e7-83aa-45c6-998e-0af26efd0a85, 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.