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: test
 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: 2026-08-27
10tags:
11    - attack.defense-impairment
12    - attack.t1686.003
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|startswith:
26            - 'C:\Program Files (x86)\'
27            - 'C:\Program Files\'
28            - 'C:\Windows\System32\'
29            - 'C:\Windows\SysWOW64\'
30            - 'C:\Windows\WinSxS\'
31    filter_main_covered_paths:
32        # This filter is added to avoid duplicate alerting from 9e2575e7-2cb9-4da1-adc8-ed94221dca5e
33        ApplicationPath|contains:
34            - 'C:\PerfLogs\'
35            - 'C:\Temp\'
36            - 'C:\Tmp\'
37            - 'C:\Users\Public\'
38            - 'C:\Windows\Tasks\'
39            - 'C:\Windows\Temp\'
40            - '\AppData\Local\Temp\'
41    filter_main_system:
42        ApplicationPath: 'SYSTEM'
43        ModifyingApplication:
44            - 'C:\Windows\System32\dllhost.exe'
45            - 'C:\Windows\System32\oobe\Setup.exe'
46            - 'C:\Windows\System32\svchost.exe'
47    filter_main_ehome:
48        ApplicationPath|startswith: 'C:\Windows\ehome\'
49        ModifyingApplication: 'C:\Windows\System32\oobe\Setup.exe'
50    filter_main_tiworker:
51        ModifyingApplication|startswith: 'C:\Windows\WinSxS\'
52        ModifyingApplication|endswith: '\TiWorker.exe'
53    filter_main_null:
54        ApplicationPath: null
55    filter_optional_no_path:
56        # This filter filters a lot of FPs related to Windows Services
57        ModifyingApplication:
58            - 'C:\Windows\System32\svchost.exe'
59            - 'C:\Windows\System32\dllhost.exe'
60        ApplicationPath: ''
61    filter_optional_msmpeng:
62        - ModifyingApplication|startswith:
63              - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
64              - 'C:\Program Files\Windows Defender\'
65          ModifyingApplication|endswith: '\MsMpEng.exe'
66        - ApplicationPath|startswith:
67              - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
68              - 'C:\Program Files\Windows Defender\'
69          ApplicationPath|endswith: '\MsMpEng.exe'
70    filter_optional_systemApps:
71        ApplicationPath|startswith: 'C:\Windows\SystemApps\'
72        ModifyingApplication: 'C:\Windows\System32\svchost.exe'
73    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
74level: medium

References

Related rules

to-top