Skip to content
WETNav
FirewallDefense Evasion

Event ID 2006: Firewall rule deleted

Written when a firewall rule is deleted. Records the rule and the account that removed it.

Channel
Microsoft-Windows-Windows Firewall With Advanced Security/Firewall
Logged by default
Yes
Written on
Any host
Volume
Low
Provider
Microsoft-Windows-Windows Firewall With Advanced Security
Needs a SACL
No

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

RuleNameDisplay name of the deleted rule
RuleIdIdentifier of the deleted rule
ModifyingUserAccount that deleted the rule
ModifyingApplicationProgram used to delete the rule
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Deleting a block rule can re-expose a service an organisation had deliberately firewalled off; deleting an attacker's own temporary rule is also a cleanup step.
  • 02Correlate with Security 4948 (firewall rule deleted).

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Microsoft-Windows-Windows Firewall With Advanced Security/Firewall' -FilterXPath "*[System[(EventID=2006)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 2006 mean?
Written when a firewall rule is deleted. Records the rule and the account that removed it. It is written to the Windows Defender Firewall log (Microsoft-Windows-Windows Firewall With Advanced Security/Firewall).
Is event 2006 logged by default?
Yes, a default Windows installation records it.
Where is event 2006 recorded?
In the Microsoft-Windows-Windows Firewall With Advanced Security/Firewall channel on the any host.

Written when a firewall rule is deleted. Records the rule and the account that removed it. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.