CVE-2023-36424 Microsoft Sentinel · KQL

Detect CVE-2023-36424 - Microsoft Windows Out-of-Bounds Read Exploitation in Microsoft Sentinel

Detects exploitation attempts of CVE-2023-36424, a Microsoft Windows out-of-bounds read vulnerability (CWE-125) listed in CISA's Known Exploited Vulnerabilities catalog. Out-of-bounds read vulnerabilities in Windows kernel or system components can be leveraged for privilege escalation, information disclosure, or as a stepping stone in exploit chains. This detection monitors for anomalous process behavior, crash artifacts, and privilege escalation patterns consistent with exploitation of this class of vulnerability.

MITRE ATT&CK

Tactic
Privilege Escalation Credential Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
let timeWindow = 24h;
let suspiciousProcesses = dynamic(["werfault.exe", "ntoskrnl.exe", "lsass.exe", "csrss.exe"]);
union
(
    SecurityEvent
    | where TimeGenerated >= ago(timeWindow)
    | where EventID in (4688, 4625, 4672)
    | where NewProcessName has_any ("werfault.exe", "ReportFault") or SubjectLogonId != "0x3e7"
    | where SubjectUserName !endswith "$"
    | project TimeGenerated, EventID, SubjectUserName, SubjectLogonId, NewProcessName, ProcessId, Computer
),
(
    DeviceProcessEvents
    | where Timestamp >= ago(timeWindow)
    | where FileName =~ "werfault.exe" or InitiatingProcessFileName in~ (suspiciousProcesses)
    | where AccountName !endswith "$"
    | project Timestamp, DeviceName, AccountName, FileName, ProcessId, InitiatingProcessFileName, InitiatingProcessId, ProcessCommandLine
),
(
    DeviceEvents
    | where Timestamp >= ago(timeWindow)
    | where ActionType == "MemoryAccessViolation" or ActionType == "ExploitGuardNullPage"
    | project Timestamp, DeviceName, AccountName, ActionType, InitiatingProcessFileName, InitiatingProcessCommandLine
)
| where isnotempty(Computer) or isnotempty(DeviceName)
high severity medium confidence

Detects indicators of CVE-2023-36424 exploitation including Windows Error Reporting process crashes, memory access violations, and anomalous privilege events on Windows systems. Correlates SecurityEvent privilege events with DeviceProcessEvents crash artifacts.

Data Sources

Microsoft Sentinel SecurityEventMicrosoft Defender for Endpoint DeviceProcessEventsMicrosoft Defender for Endpoint DeviceEvents

Required Tables

SecurityEventDeviceProcessEventsDeviceEvents

False Positives & Tuning

  • Legitimate application crashes triggering WerFault.exe invocation during normal operations
  • Software developers or QA engineers running fuzz testing or debugging sessions on Windows
  • Antivirus or EDR products performing memory scanning that triggers access violation telemetry
  • Windows Update or patching processes that temporarily trigger error reporting activity

Other platforms for CVE-2023-36424


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate Out-of-Bounds Read Crash via Malformed Input

    Expected signal: Windows Event ID 1000 (Application Error) and 1001 (WER) in Application log; WerFault.exe process launch visible in Sysmon Event ID 1; crash dump file created in %LOCALAPPDATA%\CrashDumps

  2. Test 2Privilege Escalation Simulation Following Crash Artifact

    Expected signal: Windows Event ID 4672 (Special Privileges Assigned) in Security log; Process creation events in Sysmon for cmd.exe and powershell.exe; elevated process token in DeviceProcessEvents

  3. Test 3Memory Dump Creation Mimicking Exploit Artifact

    Expected signal: Sysmon Event ID 11 (FileCreate) for .dmp file in CrashDumps directory; DeviceFileEvents entry for the dump file creation; rundll32.exe process creation with comsvcs.dll MiniDump arguments in process telemetry

  4. Test 4WerFault.exe Manual Invocation Simulation

    Expected signal: Sysmon Event ID 1 showing WerFault.exe launched by PowerShell (non-standard parent); DeviceProcessEvents with FileName=werfault.exe and InitiatingProcessFileName=powershell.exe; potential Event ID 1001 in Application log

Unlock Pro Content

Get the full detection package for CVE-2023-36424 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections