Windows Firewall Profile Disabled
Detects when a user disables the Windows Firewall via a Profile to help evade defense.
Sigma rule (View on GitHub)
1title: Windows Firewall Profile Disabled
2id: 488b44e7-3781-4a71-888d-c95abfacf44d
3related:
4 - id: 12f6b752-042d-483e-bf9c-915a6d06ad75
5 type: similar
6status: test
7description: Detects when a user disables the Windows Firewall via a Profile to help evade defense.
8references:
9 - https://learn.microsoft.com/en-us/powershell/module/netsecurity/set-netfirewallprofile?view=windowsserver2022-ps
10 - https://www.tutorialspoint.com/how-to-get-windows-firewall-profile-settings-using-powershell
11 - https://web.archive.org/web/20230929023836/http://powershellhelp.space/commands/set-netfirewallrule-psv5.php
12 - http://woshub.com/manage-windows-firewall-powershell/
13 - https://www.elastic.co/guide/en/security/current/windows-firewall-disabled-via-powershell.html
14author: Austin Songer @austinsonger
15date: 2021-10-12
16modified: 2022-12-30
17tags:
18 - attack.defense-evasion
19 - attack.t1562.004
20logsource:
21 product: windows
22 category: ps_script
23 definition: 'Requirements: Script Block Logging must be enabled'
24detection:
25 selection_args:
26 ScriptBlockText|contains|all:
27 - 'Set-NetFirewallProfile '
28 - ' -Enabled '
29 - ' False'
30 selection_opt:
31 ScriptBlockText|contains:
32 - ' -All '
33 - 'Public'
34 - 'Domain'
35 - 'Private'
36 condition: all of selection*
37falsepositives:
38 - Unknown
39level: medium
References
Related rules
- All Rules Have Been Deleted From The Windows Firewall Configuration
- Azure Firewall Modified or Deleted
- Azure Firewall Rule Collection Modified or Deleted
- Bpfdoor TCP Ports Redirect
- Disable Microsoft Defender Firewall via Registry