Detection rules › Sigma

All Rules Have Been Deleted From The Windows Firewall Configuration

Status
test
Severity
high
Log source
product windows, service firewall-as
Author
frack113, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects when a all the rules have been deleted from the Windows Defender Firewall configuration

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: All Rules Have Been Deleted From The Windows Firewall Configuration
id: 79609c82-a488-426e-abcf-9f341a39365d
status: test
description: Detects when a all the rules have been deleted from the Windows Defender Firewall configuration
references:
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/dd364427(v=ws.10)
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-17
modified: 2024-01-22
tags:
    - attack.defense-impairment
    - attack.t1686.003
logsource:
    product: windows
    service: firewall-as
detection:
    selection:
        EventID:
            - 2033 # All rules have been deleted from the Windows Defender Firewall configuration on this computer
            - 2059 # All rules have been deleted from the Windows Defender Firewall configuration on this computer. (Windows 11)
    filter_main_svchost:
        ModifyingApplication|endswith: ':\Windows\System32\svchost.exe'
    filter_optional_msmpeng:
        ModifyingApplication|contains|all:
            - ':\ProgramData\Microsoft\Windows Defender\Platform\'
            - '\MsMpEng.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    EventID:
        - 2033
        - 2059

Stage 2: not filter_main_svchost

filter_main_svchost:
    ModifyingApplication|endswith: ':\Windows\System32\svchost.exe'

Stage 3: not filter_optional_msmpeng

filter_optional_msmpeng:
    ModifyingApplication|contains|all:
        - ':\ProgramData\Microsoft\Windows Defender\Platform\'
        - '\MsMpEng.exe'

Exclusions

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

FieldKindExcluded values
ModifyingApplicationends_with:\Windows\System32\svchost.exe
ModifyingApplicationmatch:\ProgramData\Microsoft\Windows Defender\Platform\
ModifyingApplicationmatch\MsMpEng.exe