Event ID 4946: A Windows Firewall exception list rule was added
A change has been made to Windows Firewall exception list. A rule was added.
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- Low
- Audit subcategory
- MPSSVC Rule-Level Policy Change
- Needs a SACL
- No
To have this event
- Enable MPSSVC Rule-Level Policy Change:
auditpol /set /subcategory:"MPSSVC Rule-Level Policy Change" /success:enable /failure:enable
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| RuleId | Unique identifier of the firewall rule |
| RuleName | Name of the firewall rule |
| Origin | Origin of the rule (Local/GP) |
| Active | Whether the rule is active |
| Direction | Direction (Inbound/Outbound) |
| Profiles | Firewall profiles (Domain, Private, Public) |
| Action | Action (Allow/Block) |
| ApplicationPath | Path to application if rule is app-specific |
| LocalPort | Local port(s) affected |
| RemotePort | Remote port(s) affected |
| Protocol | Protocol (TCP/UDP/etc.) |
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 'Security' -FilterXPath "*[System[(EventID=4946)]]" -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 4946 mean?
- A change has been made to Windows Firewall exception list. A rule was added. It is written to the Windows Security log (Security).
- Is event 4946 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "MPSSVC Rule-Level Policy Change" Advanced Audit Policy subcategory (Policy Change).
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA change has been made to Windows Firewall exception list. A rule was added. Needs the "MPSSVC Rule-Level Policy Change" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.