Windows netsh.exe Whitelists Allowed Program from Suspicious Path in Firewall

Flags netsh.exe firewall allow rules that whitelist a program located in suspicious Windows filesystem paths.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Sander Wiebing, Jonhnathan Ribeiro, Daniil Yugoslavskiy, oscd.community (SigmaHQ), DRL 1.1
Published
2020-05-25
Updated
2026-07-30

ATT&CK techniques

  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule identifies process executions of netsh.exe that attempt to add an inbound firewall rule allowing a specific program. It further flags commands that include “firewall”, “add”, “allowedprogram”, “advfirewall”, and “action=allow” with a “program=” parameter, where the program path matches common suspicious locations (e.g., recycle bin, system volume information, temp, downloads, and various user/public directories). Attackers may use firewall rule changes to maintain access or bypass network restrictions by legitimizing malicious binaries via allowedprogram settings. The detection relies on process creation telemetry including Image/OriginalFileName and the full command line content.

Related detections9 linkedT1686.003 — drag to rearrange
Windows Firewall Allow Rule Added via WmiPrvSE.exe
Windows Firewall Exception Rule Added for Application in Suspicious Path
Windows Firewall Rules Deleted (Windows Defender Firewall) via Firewall-as Events
Windows Registry: Disable Firewall via EnableFirewall DWORD Policies
Windows Firewall rule deleted via netsh.exe command line
Windows Firewall Settings Change Events (Windows Firewall/Defender Firewall-AS)
Windows Defender Firewall Reset to Default Configuration (Firewall-as Service)
Windows Defender Firewall Service Failed to Load Group Policy (Event ID 2009)
Windows Firewall exception rule deleted (Windows Firewall/Defender) EventID 2006/2052
Windows netsh.exe Whitelists Allowed Program from Suspicious Path in Firewall
Pivot detection · T1686.003 · 9 related

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