Skip to content
WETNav
FirewallDefense Evasion

Event ID 2005: Firewall rule modified

Written when an existing firewall rule is changed. Records the rule and the account that modified 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 modified rule
RuleIdIdentifier of the rule
ModifyingUserAccount that modified the rule
ModifyingApplicationProgram used to make the change
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Modifying an existing rule (for example widening its scope or changing its action to allow) can open access more quietly than adding a new rule; compare against the rule's intended purpose.
  • 02Correlate with Security 4947 (firewall rule modified) for the same rule.

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=2005)]]" -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 2005 mean?
Written when an existing firewall rule is changed. Records the rule and the account that modified it. It is written to the Windows Defender Firewall log (Microsoft-Windows-Windows Firewall With Advanced Security/Firewall).
Is event 2005 logged by default?
Yes, a default Windows installation records it.
Where is event 2005 recorded?
In the Microsoft-Windows-Windows Firewall With Advanced Security/Firewall channel on the any host.

Written when an existing firewall rule is changed. Records the rule and the account that modified it. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.