VeriKQL by Kaushik Saha

4965 IPsec received a packet from a remote computer with an incorrect Security Parameter Index (SPI). This is usually caused by malfunctioning hardware that is corrupting packets. If these errors persist, verify that the packets sent from the remote computer are the same as those received by this computer. This error may also indicate interoperability problems with other IPsec implementations. In that case, if connectivity is not impeded, then these events can be ignored.

Windows Security auditingSystem › Audit IPsec Driverchecked by code

In Microsoft Sentinel

  • Windows Security Events via AMA · Security Events via Legacy Agent → SecurityEvent ✓ verified by VeriKQL
    SecurityEvent | where EventID == 4965
  • Windows Forwarded Events → WindowsEvent ✓ verified by VeriKQL
    WindowsEvent | where Channel == "Security" | where EventID == 4965

ATT&CK

MITRE cites this event for no technique in ATT&CK 20.0.

In Content Hub rules

Used by 0 Content Hub rules that filter for it the way the starter queries do.

Content Hub rules at Azure-Sentinel 9ea9f7c that VeriKQL learns from (they bind cleanly, or are valid Defender XDR advanced hunting). A count of practice, not a recommendation.

In Sigma rules

No SigmaHQ rule names this event ID on this log outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

From Advanced Audit Policy Configuration (MicrosoftDocs/windowsserverdocs@ea29ceb, CC-BY-4.0).

Event names, messages and categories are © Microsoft, from Microsoft Learn's documentation sources, used under CC BY 4.0; each page links its source and the commit it was read at. Questions, groupings and notes are VeriKQL's own.