Detection rules › Sigma
Firewall deactivation (firewall)
Detects scenarios where an attacker disabled the Windows Firewall to evade defense.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Stealth | T1562.004 Impair Defenses: Disable or Modify System Firewall |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 4950 | A Windows Firewall setting has changed. |
| Windows-Firewall-With-Advanced-Security | Event ID 2003 | Event ID 2003 |
Rule body yaml
title: Firewall deactivation (firewall)
description: Detects scenarios where an attacker disabled the Windows Firewall to evade defense.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1562.004-Impair%20Defenses-Disable%20or%20Modify%20System%20Firewall
- https://www.winhelponline.com/blog/enable-and-disable-windows-firewall-quickly-using-command-line/
tags:
- attack.defense_evasion
- attack.t1562.004
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: firewall-as
detection:
selection_advanced: # Avanced ID provides the SID of the Subject User
Channel: 'Microsoft-Windows-Windows Firewall With Advanced Security/Firewall'
EventID: 2003 # Firewall setting has changed.
SettingType: '1' # Enable Windows Firewall
SettingValueString: 'No' # Enable Windows Firewall > No
selection_basic:
EventID: 4950 # MPSSVC Rule-Level Policy Change
SettingType: 'Enable Windows Firewall'
SettingValue: 'No' # Enable Windows Firewall
condition: selection_advanced or selection_basic
falsepositives:
- Administrator activity
level: high
Stages and Predicates
Stage 0: condition
selection_advanced or selection_basicStage 1: selection_advanced
selection_advanced:
Channel: 'Microsoft-Windows-Windows Firewall With Advanced Security/Firewall'
EventID: 2003
SettingType: '1'
SettingValueString: 'No'
Stage 2: selection_basic
selection_basic:
EventID: 4950
SettingType: 'Enable Windows Firewall'
SettingValue: 'No'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
SettingType | eq |
|
SettingValue | eq |
|
SettingValueString | eq |
|