Skip to content
Threat Feed
medium advisory

Windows Firewall Exception List Rule Deletion

Adversaries may delete Windows Firewall rules to impair security controls and facilitate unauthorized network communication.

Triage facts

Revision 1
Applicability
Windows
Evidence
Unknown
Severity
Medium
Action
Monitor or close
Sources
2 public sources
Freshness
Revision 1Oct 21, 00:48 UTC
Detection
1 rule
Source quality
B3Likely

The deletion of Windows Firewall rules is a common technique used by threat actors to perform defense impairment. By removing existing rules, attackers can disable inbound or outbound traffic filtering that would otherwise block their command and control (C2) communication or lateral movement activities. This behavior can be identified by monitoring Windows Defender Firewall events for rule deletion triggers, specifically Event IDs 2006 and 2052. Defenders should focus on rule modifications initiated by processes not associated with trusted system services or legitimate administrative installation processes.

Attack Chain

  1. An attacker gains elevated execution privileges on a target Windows host.
  2. The attacker identifies restrictive firewall rules that impede their desired network traffic.
  3. The attacker executes a command or script using tools like netsh.exe or PowerShell to modify the firewall configuration.
  4. The attacker deletes the target firewall rule from the Windows Defender Firewall exception list.
  5. The Windows security event log captures the modification (Event IDs 2006 or 2052).
  6. The firewall becomes permissive for the previously blocked traffic.
  7. The attacker establishes unauthorized network connections to an external C2 server or internal target.

Impact

Successful defense impairment through firewall rule deletion leaves systems exposed to unauthorized inbound access and allows malicious outbound traffic that would otherwise be blocked. This activity is typically a precursor to data exfiltration, payload delivery, or lateral movement within the network.

Recommendation

  • Deploy the provided Sigma rule to detect suspicious deletion of firewall rules by unauthorized processes.
  • Baseline legitimate software installers and administrative tasks that modify the firewall to tune out false positives.
  • Review Event ID 2006 and 2052 logs regularly to identify non-standard firewall modifications.

Immediate actions

Deploy Sigma rule to identify unauthorized firewall rule deletions

Detection Engineering 72h

Threat Hunt

Search for historical Event ID 2006 or 2052 occurrences to identify past unauthorized changes

T1686.003 medium medium confidence hunt now

Data: Event log

Detection coverage 1

Detect Firewall Rule Deletion

medium

Detects when a rule has been deleted from the Windows Defender Firewall exception list by non-system processes

sigma tactics: defense-impairment sources: firewall, windows

Detection queries are available on the platform. Get full rules →