Sigma rule: New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-55db240c5d08, updated 2024-05-10T00:00:00.000Z.
Rule
- Title
- New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock
- Status
- test
- Level
- low
- Author
- frack113
- Date
- 2024-05-10
- File
- rules-threat-hunting/windows/powershell/powershell_script/posh_ps_new_netfirewallrule_allow.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects when a powershell script contains calls to the "New-NetFirewallRule" cmdlet in order to add a new firewall rule with an "Allow" action.
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
ScriptBlockText|contains: 'New-NetFirewallRule*-Action*Allow'
condition: selectionFalse positives (as the rule lists them)
- Administrator script
Tags
- attack.defense-impairment
- attack.t1686.003
- detection.threat-hunting
MITRE ATT&CK ids this rule names
Related rules
References
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1562.004/T1562.004.md#atomic-test-24---set-a-firewall-rule-using-new-netfirewallrule
- https://malware.news/t/the-rhysida-ransomware-activity-analysis-and-ties-to-vice-society/72170
- https://cybersecuritynews.com/rhysida-ransomware-attacking-windows/
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_script/posh_ps_new_netfirewallrule_allow.yml
Sources and licences
SigmaHQ
"New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/powershell/powershell_script/posh_ps_new_netfirewallrule_allow.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock",
entity page, dataset version ref-55db240c5d08, updated 2024-05-10T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/8d31dd2e-b582-48ca-826e-dcaa2c1ca264 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 8d31dd2e-b582-48ca-826e-dcaa2c1ca264, 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.