Detection rules › Sigma

Firewall Rule Modified In The Windows Firewall Exception List

Status
test
Severity
low
Log source
product windows, service firewall-as
Author
frack113
Source
github.com/SigmaHQ/sigma

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

MITRE ATT&CK coverage

Event coverage

Rule body 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

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    EventID:
        - 2005
        - 2073

Stage 2: not filter_optional_*

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'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
ApplicationPathmatch:\Users\
ApplicationPathmatch\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe
ApplicationPathmatch:\Users\
ApplicationPathmatch\AppData\Local\Programs\Opera\
ApplicationPathmatch\opera.exe
ApplicationPathends_with\AppData\Local\Keybase\keybase.exe
ApplicationPathends_with\AppData\Local\Programs\Messenger\Messenger.exe
ApplicationPathends_with\AppData\local\microsoft\teams\current\teams.exe