Windows PowerShell ScriptBlock Adds Allow Firewall Rule via New-NetFirewallRule

Flags PowerShell ScriptBlock text that invokes New-NetFirewallRule to add an Allow firewall rule.

FreeReviewedSigma · Low · v5
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2024-05-10
Updated
2026-07-31

What it detects

This rule flags PowerShell ScriptBlock content that includes a New-NetFirewallRule invocation intended to create a firewall rule with an Allow action. Attackers can use this behavior to modify local network access rules during intrusion or follow-on activity. It relies on PowerShell ScriptBlock Logging telemetry that captures the script text being executed.

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.