Sigma Rule Library

Firewall Rule Modified In The Windows Firewall Exception List

Detects when a rule has been modified in the Windows firewall exception list

View on GitHubOpen raw file

Detection logic

selection

EventID:
  - 2005
  - 2073

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_*

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: low

False positives

No false positives documented in this rule.

References

Similar rules