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://docs.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: 2023/09/09
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 filter_main_block:
22 Action: 2
23 filter_main_generic:
24 ApplicationPath|contains:
25 - ':\Program Files (x86)\'
26 - ':\Program Files\'
27 - ':\Windows\System32\'
28 - ':\Windows\SysWOW64\'
29 - ':\Windows\WinSxS\'
30 filter_optional_msmpeng:
31 ModifyingApplication|contains|all:
32 - ':\ProgramData\Microsoft\Windows Defender\Platform\'
33 - '\MsMpEng.exe'
34 filter_main_covered_paths:
35 # This filter is added to avoid duplicate alerting from 9e2575e7-2cb9-4da1-adc8-ed94221dca5e
36 ApplicationPath|contains:
37 - ':\PerfLogs\'
38 - ':\Temp\'
39 - ':\Users\Public\'
40 - ':\Windows\Tasks\'
41 - ':\Windows\Temp\'
42 - '\AppData\Local\Temp\'
43 condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
44level: medium
References
Related rules
- All Rules Have Been Deleted From The Windows Firewall Configuration
- New Firewall Rule Added In Windows Firewall Exception List For Potential Suspicious Application
- Firewall Rule Deleted Via Netsh.EXE
- Modify System Firewall
- New Firewall Rule Added Via Netsh.EXE