Firewall Rule Modified In The Windows Firewall Exception List
Detects when a rule has been modified in the Windows firewall exception list
Detection logic
selection
EventID:
- 2005
- 2073filter_optional_teams
ApplicationPath|endswith: \AppData\local\microsoft\teams\current\teams.exefilter_optional_keybase
ApplicationPath|endswith: \AppData\Local\Keybase\keybase.exefilter_optional_messenger
ApplicationPath|endswith: \AppData\Local\Programs\Messenger\Messenger.exefilter_optional_opera
ApplicationPath|contains|all:
- :\Users\
- \AppData\Local\Programs\Opera\
- \opera.exefilter_optional_brave
ApplicationPath|contains|all:
- :\Users\
- \AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exeCondition
selection and not 1 of filter_optional_*Raw YAML
title: Firewall Rule Modified In The Windows Firewall Exception List
id: 5570c4d9-8fdd-4622-965b-403a5a101aa0
status: test
description: Detects when a rule has been modified in the Windows firewall exception list
references:
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/dd364427(v=ws.10)
author: frack113
date: 2022-02-19
modified: 2024-01-22
tags:
- attack.defense-impairment
- attack.t1686.003
- detection.threat-hunting
logsource:
product: windows
service: firewall-as
detection:
selection:
EventID:
- 2005 # A rule has been modified in the Windows Defender Firewall exception list (Windows 10)
- 2073 # A rule has been modified in the Windows Defender Firewall exception list. (Windows 11)
filter_optional_teams:
ApplicationPath|endswith: '\AppData\local\microsoft\teams\current\teams.exe'
filter_optional_keybase:
ApplicationPath|endswith: '\AppData\Local\Keybase\keybase.exe'
filter_optional_messenger:
ApplicationPath|endswith: '\AppData\Local\Programs\Messenger\Messenger.exe'
filter_optional_opera:
ApplicationPath|contains|all:
- ':\Users\'
- '\AppData\Local\Programs\Opera\'
- '\opera.exe'
filter_optional_brave:
ApplicationPath|contains|all:
- ':\Users\'
- '\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe'
condition: selection and not 1 of filter_optional_*
level: lowFalse positives
No false positives documented in this rule.
References
Similar rules
New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet
lowwindows · Shares T1686
New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock
lowwindows · Shares T1686
A Rule Has Been Deleted From The Windows Firewall Exception List
mediumwindows · Shares T1686
All Rules Have Been Deleted From The Windows Firewall Configuration
highwindows · Shares T1686