SecurityPolicy Change
Event ID 5040: An IPsec Authentication Set was added
A change has been made to IPsec settings. An Authentication Set was added.
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- Moderate
- Audit subcategory
- Filtering Platform Policy Change
- Needs a SACL
- No
To have this event
- Enable Filtering Platform Policy Change:
auditpol /set /subcategory:"Filtering Platform Policy Change" /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=5040)]]" -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 5040 mean?
- A change has been made to IPsec settings. An Authentication Set was added. It is written to the Windows Security log (Security).
- Is event 5040 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "Filtering Platform 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 IPsec settings. An Authentication Set was added. Needs the "Filtering Platform Policy Change" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.