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.
| Field | What it tells you |
|---|---|
| RuleName | Display name of the deleted rule |
| RuleId | Identifier of the deleted rule |
| ModifyingUser | Account that deleted the rule |
| ModifyingApplication | Program used to delete the rule |
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.
Related events
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten 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.