Microsoft Exchange ProxyLogon (Hafnium)
China-linked group Hafnium chained four Exchange Server zero-days (ProxyLogon) to plant web shells and steal email; after Microsoft's emergency patch, mass exploitation by multiple groups compromised an estimated 60,000+ organisations worldwide.
- Victim
- Microsoft Exchange Server on-premises customers (global)
- users
- 60.0K
On 2 March 2021, Microsoft released emergency out-of-band patches for four previously unknown vulnerabilities in on-premises Exchange Server and attributed their active exploitation to a China state-sponsored group it named Hafnium. The vulnerability chain โ collectively known as ProxyLogon โ let an unauthenticated attacker take full control of an Internet-facing Exchange server, read every mailbox, and plant a persistent backdoor.
The vulnerabilities
ProxyLogon was an exploit chain across four CVEs:
- CVE-2021-26855 โ a server-side request forgery (SSRF) flaw allowing an unauthenticated attacker to send crafted requests and authenticate as the Exchange server. This was the keystone.
- CVE-2021-26857 โ an insecure deserialization flaw in the Unified Messaging service enabling code execution as SYSTEM.
- CVE-2021-26858 and CVE-2021-27065 โ post-authentication arbitrary file-write flaws that, combined with the SSRF, let attackers write a web shell anywhere on the server.
Chained together, these turned a reachable Exchange server into a fully attacker-controlled system requiring no valid credentials.
What happened
Hafnium operators exploited the chain to drop ASP-based web shells (such as the widely-tracked "China Chopper" variants), then used that foothold to dump LSASS memory for credentials, export mailboxes, and compress data with 7-Zip for exfiltration. Microsoft characterised the initial Hafnium activity as limited and targeted, focused on U.S. defense contractors, law firms, higher-education institutions, infectious-disease researchers, and think tanks.
The disaster came after disclosure. Once the patch and indicators were public, at least ten distinct threat groups reverse-engineered the fix and launched indiscriminate mass scanning, racing to compromise unpatched servers before administrators could act. Within days an estimated 60,000+ organisations worldwide were compromised, many left with persistent web shells even after patching, because the patch closed the hole but did not remove backdoors already planted.
Response
- CISA issued Emergency Directive 21-02 on 3 March, ordering federal agencies to patch or disconnect affected servers.
- Microsoft released a one-click mitigation tool and a safety scanner to help smaller organisations.
- On 13 April 2021, the U.S. DOJ disclosed a court-authorised FBI operation that proactively removed web shells from hundreds of compromised U.S. servers โ a notable instance of law enforcement remediating private systems directly.
- The DearCry ransomware family began exploiting the same flaws within days, turning espionage infrastructure into a ransomware vector.
Why it matters
ProxyLogon is the defining mass-exploitation event of 2021 and a textbook study of patch-gap dynamics: the window between public disclosure and patch deployment became a feeding frenzy in which the very information meant to protect defenders armed dozens of attackers. It hardened industry consensus that internet-facing mail infrastructure is a top-tier target, accelerated migration from on-premises Exchange to managed cloud, and reinforced that patching alone is insufficient โ once a server is breached, defenders must hunt for and evict the persistence the attacker has already established.
Timeline
Researchers at DEVCORE discover the ProxyLogon SSRF chain (CVE-2021-26855) and begin coordinated disclosure to Microsoft.
DEVCORE and, independently, Volexity report active exploitation of Exchange zero-days to Microsoft.
Hafnium and other actors escalate exploitation, scanning and compromising Internet-facing Exchange servers ahead of a patch.
Microsoft releases emergency out-of-band patches for the four CVEs and publicly attributes the campaign to the China-based Hafnium group.
CISA issues Emergency Directive 21-02 ordering U.S. federal agencies to patch or disconnect affected Exchange servers.
Mass exploitation by 10+ threat groups follows public disclosure; an estimated 60,000+ organisations worldwide are compromised, many with persistent web shells.
The DearCry ransomware family is observed exploiting the same Exchange vulnerabilities.
The U.S. DOJ announces a court-authorised FBI operation to remove malicious web shells from hundreds of compromised U.S. Exchange servers.
Sources
- microsoft.comhttps://www.microsoft.com/en-us/security/blog/2021/03/02/hafnium-targeting-exchange-servers/
- cisa.govhttps://www.cisa.gov/news-events/cybersecurity-advisories/aa21-062a
- msrc.microsoft.comhttps://msrc.microsoft.com/blog/2021/03/multiple-security-updates-released-for-exchange-server/
- unit42.paloaltonetworks.comhttps://unit42.paloaltonetworks.com/microsoft-exchange-server-attack-timeline/