Suspicious Disabling of Windows Firewall Profile (via ps_script)
This rule detects when a user disables the Windows Firewall via a Profile to help evade defense.
SigmamediumWindowsv1
sigma
suspicious-disabling-of-windows-firewall-profile-via-ps-script
title: Suspicious Disabling of Windows Firewall Profile (via ps_script)
id: a2669fee-43c3-5e0b-b652-0268875accb9
status: stable
description: This rule detects when a user disables the Windows Firewall via a Profile to help evade defense.
references:
- https://attack.mitre.org/techniques/T1686/003/
- https://learn.microsoft.com/en-us/powershell/module/netsecurity/set-netfirewallprofile?view=windowsserver2022-ps
- https://www.tutorialspoint.com/how-to-get-windows-firewall-profile-settings-using-powershell
- https://web.archive.org/web/20230929023836/http://powershellhelp.space/commands/set-netfirewallrule-psv5.php
- http://woshub.com/manage-windows-firewall-powershell/
- https://www.elastic.co/guide/en/security/current/windows-firewall-disabled-via-powershell.html
author: Huntrule Team
date: 2026-03-16
tags:
- attack.defense-impairment
- attack.t1686.003
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection_args:
ScriptBlockText|contains|all:
- 'Set-NetFirewallProfile '
- ' -Enabled '
- ' False'
selection_opt:
ScriptBlockText|contains:
- ' -All '
- 'Public'
- 'Domain'
- 'Private'
condition: all of selection*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.