Sigma rule: New Firewall Rule Added In Windows Firewall Exception List Via WmiPrvSE.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ffab9d264bcf, updated 2024-05-10T00:00:00.000Z.

Rule

Title
New Firewall Rule Added In Windows Firewall Exception List Via WmiPrvSE.EXE
Status
test
Level
medium
Author
frack113, Nasreddine Bencherchali (Nextron Systems)
Date
2024-05-10
File
rules/windows/builtin/firewall_as/win_firewall_as_add_rule_wmiprvse.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the addition of a new "Allow" firewall rule by the WMI process (WmiPrvSE.EXE).
This can occur if an attacker leverages PowerShell cmdlets such as "New-NetFirewallRule", or directly uses WMI CIM classes such as "MSFT_NetFirewallRule".

Log source

product
windows
service
firewall-as

Detection

selection:
    EventID:
        - 2004 # A rule has been added to the Windows Defender Firewall exception list
        - 2071 # A rule has been added to the Windows Defender Firewall exception list. (Windows 11)
        - 2097
    Action: 3 # Allow
    ModifyingApplication|endswith: ':\Windows\System32\wbem\WmiPrvSE.exe'
condition: selection

False positives (as the rule lists them)

  • Administrator scripts or activity.

Tags

  • attack.defense-impairment
  • attack.t1686.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/firewall_as/win_firewall_as_add_rule_wmiprvse.yml

Sources and licences

  • SigmaHQ

    "New Firewall Rule Added In Windows Firewall Exception List Via WmiPrvSE.EXE" by frack113, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/firewall_as/win_firewall_as_add_rule_wmiprvse.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: New Firewall Rule Added In Windows Firewall Exception List Via WmiPrvSE.EXE",
entity page, dataset version ref-ffab9d264bcf, updated 2024-05-10T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/eca81e8d-09e1-4d04-8614-c91f44fd0519 (accessed 2026-11-03).
Underlying source: SigmaHQ rule eca81e8d-09e1-4d04-8614-c91f44fd0519, 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.