PLAYBOOKSNETHOSTATTRIBDETECT
← all playbooks
EXPLOIT REFERENCE
ProxyLogon (CVE-2021-26855)
Unauthenticated SSRF in Microsoft Exchange Server, chained with a file-write vulnerability to drop web shells directly into the Exchange web root. Exploited as a zero-day by Hafnium before disclosure. 30,000+ Exchange servers compromised within a week of the patch. The vulnerability that proved on-prem email is the softest enterprise target.
CVE-2021-26855 + 26857 + 26858 + 27065 · SSRF to RCE · unauthenticated · Exchange 2013/2016/2019 · w3wp.exe · web shell deployment
The Exchange attack surface

On-premises Microsoft Exchange Server exposes IIS (w3wp.exe) directly to the internet for Outlook Web Access, ActiveSync, and autodiscover. ProxyLogon exploits a server-side request forgery (SSRF) in the Exchange front-end proxy to bypass authentication and make requests as the Exchange server itself, then chains a post-auth arbitrary file write to drop an ASPX web shell into the Exchange web root. From web shell to full server compromise, the attacker has SYSTEM-level access to a server that holds every email in the organization.

Zero-day exploitation by Hafnium: Microsoft attributed initial exploitation to Hafnium (China-nexus) beginning in January 2021, two months before the March 2, 2021 patch. After the patch, exploitation exploded: automated scanning and exploitation tools spread rapidly, and within a week an estimated 30,000+ Exchange servers worldwide were compromised, many by multiple threat actors simultaneously.

ProxyLogon was the beginning, not the end. The Exchange proxy architecture proved to be deeply vulnerable. ProxyLogon was followed by ProxyShell (CVE-2021-34473, 34523, 31207) in August 2021, ProxyOracle, ProxyRelay, and ProxyNotShell (CVE-2022-41040, 41082) in 2022. Each exploited a different aspect of the same architectural pattern: the Exchange front-end proxy makes backend requests with inherited trust. On-premises Exchange remains one of the most targeted enterprise attack surfaces.
The CVE chain
Detection
Network-based detection IIS logs: high volume of POST requests to /ecp/ (Exchange Control Panel) and /owa/ endpoints with SSRF indicators
Suricata: ET EXPLOIT Microsoft Exchange ProxyLogon SSRF signatures
Zeek: HTTP POST requests to /ecp/DDI/DDIService.svc with anomalous X-BEResource cookies targeting internal backend URLs
Outbound: watch for connections from w3wp.exe (Exchange worker process) to external C2 after web shell deployment
Host-based detection w3wp.exe spawning cmd.exe, powershell.exe, or net.exe (identical pattern to SharePoint exploitation)
Sysmon EID 11: new .aspx files written to Exchange web directories (C:\inetpub\wwwrootspnet_client\, C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owauth\)
Sysmon EID 1: UMWorkerProcess.exe spawning unexpected child processes (CVE-2021-26857 deserialization)
Security EID 4688: cmd.exe or powershell.exe with Exchange app pool identity as parent
  1. 1. Scan Exchange web directories for web shells Search for unexpected .aspx, .ashx, and .asmx files in: C:\inetpub\wwwrootspnet_client\, Exchange FrontEnd\HttpProxy\owauth\, and any other IIS virtual directory. Known web shell names from ProxyLogon campaigns: web.aspx, help.aspx, document.aspx, errorEE.aspx, errorEEE.aspx, errorEW.aspx, and China Chopper variants. Any .aspx file not in the Exchange installation baseline is suspicious. PowerShell: Get-ChildItem -Recurse -Include *.aspx | Where LastWriteTime -gt [date]
  2. 2. Check IIS logs for SSRF exploitation patterns Search IIS logs for POST requests to /ecp/ containing the X-BEResource cookie with internal hostnames or IPs, and /owa/auth/ requests with anomalous parameters. HTTP 200 responses to /ecp/ endpoints from external IPs that bypass authentication indicate successful SSRF exploitation. IIS logs: %SystemDrive%\inetpub\logs\LogFiles · POST to /ecp/ with X-BEResource
  3. 3. Hunt for w3wp.exe child processes Same detection pattern as the SharePoint CVE Chain: the Exchange worker process (w3wp.exe running under the Exchange application pool) spawning cmd.exe, powershell.exe, net.exe, whoami.exe, or any reconnaissance tool indicates web shell activity or direct RCE. Sysmon EID 1: ParentImage contains w3wp.exe · HOST: Execution
  4. 4. Check for credential theft post-compromise Exchange servers hold domain credentials in memory (LSASS) and often have Domain Admin service accounts. After web shell deployment, attackers dump LSASS, run Mimikatz, or perform DCSync. Check for: procdump.exe, comsvcs.dll MiniDump, and credential access indicators. HOST: T1003.001 LSASS · T1003.003 NTDS.dit
  5. 5. Audit the entire ProxyShell/ProxyNotShell family If your Exchange server was vulnerable to ProxyLogon, it may also have been vulnerable to ProxyShell (CVE-2021-34473/34523/31207) and ProxyNotShell (CVE-2022-41040/41082). Check the installed Exchange CU and SU against each CVE. Multiple exploitation waves hit the same architectural weakness. Microsoft Exchange Server build numbers · Get-ExchangeServer | fl AdminDisplayVersion
  6. 6. If compromised: assume full email access and domain credential exposure An attacker with a web shell on Exchange has access to every mailbox in the organization and every credential cached on the server. Scope accordingly: full email audit for data access, LSASS dump check, lateral movement trace, and domain compromise assessment. BEC playbook · Compromised Credentials playbook
Who used ProxyLogon

Hafnium (China-nexus, Microsoft designation): zero-day exploitation from January 2021, two months before disclosure.
Multiple nation-state actors exploited within days of the March 2 patch, including APT groups from China, Iran, and Russia.
Ransomware operators (DearCry, Black Kingdom) began deploying ransomware via ProxyLogon web shells within the first week.
Commodity actors deployed cryptominers, botnets, and additional web shells at scale. Many servers were compromised by multiple actors simultaneously.

Related playbooks

SharePoint CVE Chain (same w3wp.exe exploitation pattern, same web shell detection methods)
Edge Device Compromised (Exchange is an internet-facing application server)
Business Email Compromise (full mailbox access is the immediate consequence)
Compromised Credentials (Exchange servers cache domain credentials)