Threat Huntlowtest

New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock

Detects when a powershell script contains calls to the "New-NetFirewallRule" cmdlet in order to add a new firewall rule with an "Allow" action.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
François HubautCreated Fri May 108d31dd2e-b582-48ca-826e-dcaa2c1ca264windows
Hunting Hypothesis
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains: 'New-NetFirewallRule*-Action*Allow'
    condition: selection
False Positives

Administrator script

MITRE ATT&CK

Other

detection.threat-hunting
Rule Metadata
Rule ID
8d31dd2e-b582-48ca-826e-dcaa2c1ca264
Status
test
Level
low
Type
Threat Hunt
Created
Fri May 10
Path
rules-threat-hunting/windows/powershell/powershell_script/posh_ps_new_netfirewallrule_allow.yml
Raw Tags
attack.defense-evasionattack.t1562.004detection.threat-hunting
View on GitHub