Sigma rule: Local Firewall Rules Enumeration Via NetFirewallRule Cmdlet

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-96cf267cc85d, updated 2023-07-13T00:00:00.000Z.

Rule

Title
Local Firewall Rules Enumeration Via NetFirewallRule Cmdlet
Status
test
Level
low
Author
Christopher Peacock @SecurePeacock, SCYTHE @scythe_io
Date
2023-07-13
File
rules-threat-hunting/windows/powershell/powershell_module/posh_pm_susp_netfirewallrule_recon.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects execution of "Get-NetFirewallRule" or "Show-NetFirewallRule" to enumerate the local firewall rules on a host.

Log source

product
windows
category
ps_module
definition
0ad03ef1-f21b-4a79-8ce8-e6900c54b65b

Detection

selection_payload:
    Payload|contains:
        - 'Get-NetFirewallRule'
        - 'Show-NetFirewallRule'
selection_contextinfo:
    ContextInfo|contains:
        - 'Get-NetFirewallRule'
        - 'Show-NetFirewallRule'
condition: 1 of selection_*

False positives (as the rule lists them)

  • Administration scripts

Tags

  • detection.threat-hunting
  • attack.discovery
  • attack.t1518.001
  • attack.t1016

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/powershell/powershell_module/posh_pm_susp_netfirewallrule_recon.yml

Sources and licences

  • SigmaHQ

    "Local Firewall Rules Enumeration Via NetFirewallRule Cmdlet" by Christopher Peacock @SecurePeacock, SCYTHE @scythe_io (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/powershell/powershell_module/posh_pm_susp_netfirewallrule_recon.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: Local Firewall Rules Enumeration Via NetFirewallRule Cmdlet",
entity page, dataset version ref-96cf267cc85d, updated 2023-07-13T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ea207a23-b441-4a17-9f76-ad5be47d51d3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ea207a23-b441-4a17-9f76-ad5be47d51d3, 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.