CVE-2023-21529

Microsoft Exchange Server Deserialization of Untrusted Data (CVE-2023-21529)

Initial Access Execution Last updated:

Detects exploitation attempts targeting CVE-2023-21529, a deserialization of untrusted data vulnerability in Microsoft Exchange Server. Successful exploitation may allow remote code execution by sending crafted requests that trigger unsafe deserialization of attacker-controlled objects.

Vulnerability Intelligence

KEV — Known Exploited

Affected Software

Vendor
Microsoft
Product
Exchange Server

Weakness (CWE)

Timeline

Disclosed
April 13, 2026

CVSS

Unscored
Write-up coming soon

What is CVE-2023-21529 Microsoft Exchange Server Deserialization of Untrusted Data (CVE-2023-21529)?

Microsoft Exchange Server Deserialization of Untrusted Data (CVE-2023-21529) (CVE-2023-21529) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for Microsoft Exchange Server Deserialization of Untrusted Data (CVE-2023-21529), covering the data sources and telemetry it touches: Microsoft Defender for Endpoint, Microsoft Sentinel. The queries below are rated critical severity at high confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Execution
Microsoft Sentinel / Defender
kusto
union DeviceProcessEvents, DeviceNetworkEvents, DeviceFileEvents
| where Timestamp > ago(7d)
| where DeviceName has_any ("exchange", "mail")
| where (
    (ActionType == "ProcessCreated" and InitiatingProcessFileName =~ "w3wp.exe" and FileName in~ ("cmd.exe", "powershell.exe", "wscript.exe", "cscript.exe", "mshta.exe", "certutil.exe", "bitsadmin.exe"))
    or (ActionType == "ProcessCreated" and InitiatingProcessFileName =~ "UMWorkerProcess.exe")
    or (ActionType == "NetworkConnectionEstablished" and InitiatingProcessFileName =~ "w3wp.exe" and RemotePort in (4444, 1234, 8080, 9001))
    or (FolderPath has_any ("\\inetpub\\wwwroot\\aspnet_client\\", "\\Exchange\\FrontEnd\\HttpProxy\\") and FileName endswith ".aspx" and ActionType == "FileCreated")
)
| project Timestamp, DeviceName, ActionType, FileName, FolderPath, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteIP, RemotePort, AccountName

Detects post-exploitation indicators following CVE-2023-21529 abuse: child processes spawned by Exchange IIS worker (w3wp.exe), suspicious network connections from Exchange processes, and webshell drops in Exchange web directories.

critical severity high confidence

Data Sources

Microsoft Defender for Endpoint Microsoft Sentinel

Required Tables

DeviceProcessEvents DeviceNetworkEvents DeviceFileEvents

False Positives

  • Legitimate Exchange maintenance scripts executed via IIS worker process
  • Authorized red team or penetration testing activities against Exchange infrastructure
  • Custom monitoring agents that spawn from w3wp.exe as part of APM tooling

Sigma rule & cross-platform mapping

The detection logic for Microsoft Exchange Server Deserialization of Untrusted Data (CVE-2023-21529) (CVE-2023-21529) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: process_creation
  product: windows

Browse the community-maintained Sigma rules for this technique:


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 Deserialization Webshell Drop on Exchange

    Expected signal: Sysmon Event ID 11 (FileCreate) with TargetFilename containing 'aspnet_client' and extension '.aspx'; DeviceFileEvents in Defender with FolderPath matching aspnet_client

  2. Test 2Simulate w3wp.exe Spawning cmd.exe (Exchange IIS Post-Exploitation)

    Expected signal: Sysmon Event ID 1 showing powershell.exe spawning cmd.exe with whoami command; Windows Security Event ID 4688 with ProcessCommandLine containing whoami

  3. Test 3Simulate Exchange IIS Worker Outbound C2 Connection Attempt

    Expected signal: Sysmon Event ID 3 (NetworkConnect) showing outbound connection attempt to port 4444; DeviceNetworkEvents with RemotePort 4444 and InitiatingProcessFileName matching the test process

  4. Test 4Enumerate Exchange Virtual Directories for Webshell Placement Targets

    Expected signal: Sysmon Event ID 1 for cmd.exe and findstr.exe execution; command line arguments containing Exchange directory paths; Windows Security Event ID 4688 with dir and findstr commands

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections