Skip to content
WETNav
SecurityAuthentication

Event ID 4651: An IPsec Main Mode security association was established (Certificate)

An IPsec Main Mode security association was established. Extended Mode was not enabled. A certificate was used for authentication.

Channel
Security
Logged by default
No
Written on
Any host
Volume
High
Audit subcategory
IPsec Main Mode
Needs a SACL
No

To have this event

  • Enable IPsec Main Mode: auditpol /set /subcategory:"IPsec Main Mode" /success:enable /failure:enable

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=4651)]]" -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 4651 mean?
An IPsec Main Mode security association was established. Extended Mode was not enabled. A certificate was used for authentication. It is written to the Windows Security log (Security).
Is event 4651 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "IPsec Main Mode" Advanced Audit Policy subcategory (Logon/Logoff).

An IPsec Main Mode security association was established. Extended Mode was not enabled. A certificate was used for authentication. Needs the "IPsec Main Mode" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.