Skip to content
WETNav
SecurityNetwork Activity

Event ID 5156: The Windows Filtering Platform has allowed a connection

The Windows Filtering Platform has allowed a connection.

Channel
Security
Logged by default
No
Written on
Any host
Volume
Very high
Needs a SACL
No

To have this event

  • Enable Filtering Platform Connection: auditpol /set /subcategory:"Filtering Platform Connection" /success:enable /failure:enable

Key fields

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

ApplicationFull path to the application
ProcessIDProcess ID of the application
DirectionDirection (Inbound/Outbound)
SourceAddressSource IP address
SourcePortSource port
DestAddressDestination IP address
DestPortDestination port
ProtocolProtocol number (6=TCP, 17=UDP)
FilterRTIDFilter runtime ID that allowed the connection
Have one of these events? Paste it into the decoder

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=5156)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

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

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

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 5156 mean?
The Windows Filtering Platform has allowed a connection. It is written to the Windows Security log (Security).
Is event 5156 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Filtering Platform Connection" Advanced Audit Policy subcategory (Object Access).
Where is event 5156 recorded?
In the Security channel on the any host.

The Windows Filtering Platform has allowed a connection. Needs the "Filtering Platform Connection" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.