Skip to content

Windows Event ID 4946: A rule was added to the Windows Firewall exception list

Written when a rule is added to the Windows Firewall exception list. It is an important event for catching an attacker securing a communication path (C2, lateral movement).

Overview

The subcategory is Audit MPSSVC Rule-Level Policy Change. It is generated when a new rule is added to the firewall exception (allow) list. The event contains only the changed profile and the added rule’s ID and name; check the rule’s contents (ports, programs) in the firewall configuration by name. It is not generated for rules added via Group Policy.

How it is triggered

  • Local rule addition via netsh advfirewall, New-NetFirewallRule, the GUI, and so on. It is not generated for additions via Group Policy.

Security review points

  • Attackers add rules allowing inbound/outbound for C2 communication, remote access, or lateral movement (MITRE ATT&CK T1686.003 Windows Host Firewall). Check the added allow rule’s port (RDP 3389, SMB 445, custom ports, etc.) and program.
  • Allows for unexpected programs (an executable in a temp folder, etc.) or additions of outbound allows are notable. Correlate with process creation 4688 to track who added it.

Notes for log review

  • Rules are also added legitimately during software installs. Match the added rule’s name and its contents (ports, programs) against normal patterns.
  • Alerting narrowed to inbound allows (especially management ports) or allows for unfamiliar programs is effective. Track together with modification 4947 and deletion 4948.

MITRE ATT&CK mapping

TechniqueTacticWhat this event shows
T1686.003 Windows Host FirewallDefense ImpairmentAllow rules added for C2, remote access, or lateral movement

Mapping as of ATT&CK v19.2. To search by technique, see the ATT&CK reverse lookup.

Key fields

FieldMeaning
Rule NameThe added rule name
Rule IDThe added rule’s ID
Profile ChangedThe changed profile

References