A Rule Has Been Deleted From The Windows Firewall Exception List

testmedium
log source: windows · firewall-asauthor frack113date 2022-02-19
01

description

What this is, in brief.

Detects when a single rules or all of the rules have been deleted from the Windows Defender Firewall

02

tags

attack.defense-impairmentattack.t1686.003
03

rule source (YAML)

title: A Rule Has Been Deleted From The Windows Firewall Exception List
id: c187c075-bb3e-4c62-b4fa-beae0ffc211f
status: test
description: Detects when a single rules or all of the rules have been deleted from the Windows Defender Firewall
references:
    - https://learn.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: 2026-10-19
tags:
    - attack.defense-impairment
    - attack.t1686.003
logsource:
    product: windows
    service: firewall-as
detection:
    selection:
        EventID:
            - 2006 # A rule has been deleted in the Windows Defender Firewall exception list
            - 2052 # A rule has been deleted in the Windows Defender Firewall exception list. (Windows 11)
    filter_main_generic:
        ModifyingApplication|startswith:
            - 'C:\Program Files (x86)\'
            - 'C:\Program Files\'
            - 'C:\Windows\WinSxS\'
    filter_main_local_system:
        # Added to filter out modifications made by the Local System account as these are typically legitimate system actions and cause false positives.
        ModifyingUser: 'S-1-5-18'
    filter_main_msiexec:
        ModifyingApplication:
            - 'C:\Windows\SysWOW64\msiexec.exe'
            - 'C:\Windows\System32\msiexec.exe'
    filter_main_svchost:
        ModifyingApplication: 'C:\Windows\System32\svchost.exe'
    filter_main_msmpeng:
        ModifyingApplication|startswith: 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
        ModifyingApplication|endswith: '\MsMpEng.exe'
    filter_main_null:
        ModifyingApplication: null
    filter_main_empty:
        ModifyingApplication: ''
    filter_optional_google_updater:
        ModifyingApplication|startswith: 'C:\Windows\SystemTemp\'
        ModifyingApplication|contains: 'GoogleUpdater'
        ModifyingApplication|endswith: '\setup.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
level: medium
04

detects techniques (1)

ATT&CK techniques this enables or maps to.

05

references

External citations — patches, advisories, analysis.