Event ID 4981: IPsec Main Mode and Extended Mode SAs were established (Anonymous)
IPsec Main Mode and Extended Mode security associations were established (Anonymous).
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- High
- Audit subcategory
- IPsec Extended Mode
- Needs a SACL
- No
To have this event
- Enable IPsec Extended Mode:
auditpol /set /subcategory:"IPsec Extended 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=4981)]]" -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 4981 mean?
- IPsec Main Mode and Extended Mode security associations were established (Anonymous). It is written to the Windows Security log (Security).
- Is event 4981 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "IPsec Extended Mode" Advanced Audit Policy subcategory (Logon/Logoff).
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderIPsec Main Mode and Extended Mode security associations were established (Anonymous). Needs the "IPsec Extended Mode" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.