PowerShell NetFirewallRule Cmdlet Enumeration of Local Windows Firewall Rules

Flags PowerShell attempts to enumerate local Windows firewall rules via Get-NetFirewallRule or Show-NetFirewallRule.

FreeReviewedSigma · Low · v5
Product
windows
Category
ps_module
Author
Christopher Peacock @SecurePeacock, SCYTHE @scythe_io (SigmaHQ), DRL 1.1
Published
2023-07-13
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell activity that invokes Get-NetFirewallRule or Show-NetFirewallRule to enumerate local firewall rules on a host. Enumerating firewall configuration is a common discovery step that helps an attacker understand which inbound/outbound controls are in place before attempting evasion or lateral movement. It relies on PowerShell module telemetry capturing the command text in both payload and context fields.

Related detections9 linkedT1518.001 — drag to rearrange
Suspicious Antivirus Enumeration via WMIC SecurityCenter2
Suspicious Security Product Discovery via tasklist and findstr (via process_creation)
Suspicious System Reconnaissance Output Redirected to PDF File (via process_creation)
Suspicious External Address Reconnaissance via curl to ifconfig me via process_creation
Suspicious Defender and Session Reconnaissance via sc query and quser
Suspicious Security Software Discovery via findstr Filtering of AV Process Names (via process_creation)
Suspicious Domain Trust Discovery via Nltest
Suspicious Antivirus Product Discovery via WMIC SecurityCenter2 Query
Suspicious Codepage Change Followed By Nltest Domain Trust Discovery
PowerShell NetFirewallRule Cmdlet Enumeration of Local Windows Firewall Rules
Pivot detection · T1518.001 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.