Uncommon New Firewall Rule Added In Windows Firewall Exception List
Detects when a rule has been added to the Windows Firewall exception list
Sigma rule (View on GitHub)
1title: Uncommon New Firewall Rule Added In Windows Firewall Exception List
2id: cde0a575-7d3d-4a49-9817-b8004a7bf105
3status: experimental
4description: Detects when a rule has been added to the Windows Firewall exception list
5references:
6 - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/dd364427(v=ws.10)
7author: frack113
8date: 2022/02/19
9modified: 2024/05/10
10tags:
11 - attack.defense_evasion
12 - attack.t1562.004
13logsource:
14 product: windows
15 service: firewall-as
16detection:
17 selection:
18 EventID:
19 - 2004 # A rule has been added to the Windows Defender Firewall exception list
20 - 2071 # A rule has been added to the Windows Defender Firewall exception list. (Windows 11)
21 - 2097
22 filter_main_block:
23 Action: 2 # Block
24 filter_main_generic:
25 ApplicationPath|contains:
26 - ':\Program Files (x86)\'
27 - ':\Program Files\'
28 - ':\Windows\System32\'
29 - ':\Windows\SysWOW64\'
30 - ':\Windows\WinSxS\'
31 filter_optional_msmpeng:
32 ModifyingApplication|contains|all:
33 - ':\ProgramData\Microsoft\Windows Defender\Platform\'
34 - '\MsMpEng.exe'
35 filter_main_covered_paths:
36 # This filter is added to avoid duplicate alerting from 9e2575e7-2cb9-4da1-adc8-ed94221dca5e
37 ApplicationPath|contains:
38 - ':\PerfLogs\'
39 - ':\Temp\'
40 - ':\Tmp\'
41 - ':\Users\Public\'
42 - ':\Windows\Tasks\'
43 - ':\Windows\Temp\'
44 - '\AppData\Local\Temp\'
45 condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
46level: medium
References
Related rules
- A Rule Has Been Deleted From The Windows Firewall Exception List
- All Rules Have Been Deleted From The Windows Firewall Configuration
- Azure Firewall Modified or Deleted
- Azure Firewall Rule Collection Modified or Deleted
- Netsh Allow Group Policy on Microsoft Defender Firewall