EXPLORE
← Back to Explore
sigmalowHunting

Firewall Rule Modified In The Windows Firewall Exception List

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

MITRE ATT&CK

defense-evasion

Detection Query

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

Author

frack113

Created

2022-02-19

Data Sources

windowsfirewall-as

Platforms

windows

Tags

attack.defense-evasionattack.t1562.004detection.threat-hunting
Raw Content
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-evasion
    - attack.t1562.004
    - 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