Microsoft Exchange servers

WikipediaVerified

Breach Date

March 2, 2021

Records Affected

0

Verified

Yes

Source

wikipedia

Summary

In early January 2021, Microsoft discovered that Hafnium, a Chinese state-sponsored threat actor, was exploiting four zero-day vulnerabilities in on-premises Microsoft Exchange Server to conduct a massive cyber espionage campaign. The vulnerabilities — CVE-2021-26855 (ProxyLogon, a server-side request forgery), CVE-2021-26857, CVE-2021-26858, and CVE-2021-27065 — allowed attackers to authenticate as the Exchange server, execute code as SYSTEM, and write files to any path on the server.

Microsoft released emergency patches on March 2, 2021, but by that time an estimated 250,000 Exchange servers worldwide had already been compromised. In the days following the patch release, exploitation accelerated dramatically as other threat actors reverse-engineered the patches to create their own exploits. Within a week, at least 10 additional APT groups were actively exploiting the vulnerabilities.

The attack affected organizations of all sizes globally, including at least 30,000 organizations in the United States alone. Victims ranged from small businesses to the European Banking Authority, the Norwegian Parliament, and numerous government agencies. Many compromised servers had web shells installed, giving attackers persistent backdoor access even after patching. The incident became one of the most widespread and damaging cyber espionage campaigns in history.

Breach Details

Breach Date
March 2, 2021
Records Affected
0
Source
Wikipedia
Verified
Verified
Industry
Technology
Type
Poor Security

Impact Analysis

Scale of Impact

  • ~250,000 Exchange servers compromised worldwide before patches released
  • ~30,000 organizations in the United States alone
  • At least 10 APT groups exploiting vulnerabilities within one week of patch
  • Organizations across every sector affected globally

Data Types Exposed

  • Email contents and attachments
  • Address books and contact lists
  • Credentials stored on Exchange servers
  • Active Directory data accessible via Exchange
  • Internal documents shared via email

Notable Victims

OrganizationSector
European Banking AuthorityFinancial regulation
Norwegian Parliament (Storting)Government
Czech government agenciesGovernment
Thousands of US small businessesVarious
Municipal governmentsGovernment
Defense contractorsDefense

Downstream Effects

  • Web shells installed on thousands of servers provided persistent access even after patching
  • Emergency CISA directive (ED 21-02) ordered all federal agencies to immediately patch or disconnect Exchange servers
  • White House National Security Council convened emergency meetings
  • The incident accelerated Microsoft's push to migrate customers from on-premises Exchange to cloud-based Exchange Online
  • Led to increased scrutiny of on-premises email server security across all industries
  • Multiple nation-state groups piggybacked on the vulnerabilities after patches revealed their existence

Timeline

  • January 6, 2021: Volexity detects exploitation of Exchange zero-days targeting a customer
  • January 2021: Microsoft is notified and begins investigating
  • January-February 2021: Hafnium exploits vulnerabilities in targeted espionage operations
  • February 26-27, 2021: Mass exploitation begins, shifting from targeted to indiscriminate attacks
  • March 2, 2021: Microsoft releases emergency out-of-band patches for all four vulnerabilities
  • March 2, 2021: CISA issues Emergency Directive 21-02 ordering federal agencies to patch immediately
  • March 3-5, 2021: Exploitation rate surges as additional threat actors reverse-engineer patches
  • March 5, 2021: CISA and FBI issue joint advisory on Exchange server exploitation
  • March 12, 2021: Microsoft reports at least 82,000 servers still unpatched
  • March 2021: At least 10 distinct APT groups observed exploiting the vulnerabilities
  • April 2021: FBI conducts court-authorized operation to remotely remove web shells from compromised US Exchange servers
  • July 2021: US and allies formally attribute the initial campaign to China's Ministry of State Security

Lessons Learned

1. On-Premises Infrastructure Is a Persistent Liability

The Exchange vulnerabilities only affected on-premises servers, not Exchange Online. Organizations running on-premises email infrastructure bear full responsibility for patching, monitoring, and securing these systems. The incident accelerated the industry migration to cloud-hosted email.

2. Patch Release Can Trigger Mass Exploitation

Microsoft's patch release on March 2 inadvertently provided a roadmap for additional attackers. Within days, at least 10 APT groups were exploiting the vulnerabilities. Organizations must patch critical vulnerabilities within hours of release, not days or weeks.

3. Web Shells Provide Persistent Access Beyond Patching

Many organizations patched their servers but failed to check for web shells already installed by attackers. Patching closes the door but does not remove intruders who are already inside. Post-patch forensic analysis is essential.

4. Zero-Day Chaining Creates Catastrophic Attack Chains

The four Exchange vulnerabilities were chained together to achieve unauthenticated remote code execution as SYSTEM. Each vulnerability alone was serious; combined, they gave complete server control to any attacker on the internet.

5. Small Organizations Are Disproportionately Affected

Small businesses and local governments running Exchange often lacked the security teams to patch quickly or detect compromise. Mass exploitation campaigns do not discriminate by organization size.

Technical Details

Attack Vector: Four Chained Zero-Day Vulnerabilities (ProxyLogon)

Vulnerability Chain

CVETypeCVSSDescription
CVE-2021-26855SSRF (ProxyLogon)9.8Server-side request forgery allowing authentication bypass
CVE-2021-26857Deserialization7.8Insecure deserialization in Unified Messaging service
CVE-2021-26858Arbitrary file write7.8Post-authentication file write to any path
CVE-2021-27065Arbitrary file write7.8Post-authentication file write to any path

Exploitation Flow

  1. CVE-2021-26855 (SSRF): Attacker sends crafted HTTP request to Exchange server on port 443, exploiting SSRF to authenticate as the Exchange server itself
  2. Authentication bypass: SSRF allows attacker to access Exchange Web Services (EWS) as an authenticated user
  3. CVE-2021-26857: Exploited to execute arbitrary code as SYSTEM via insecure deserialization in the Unified Messaging service
  4. CVE-2021-26858 / CVE-2021-27065: Used to write web shells (typically ASPX files) to web-accessible directories on the Exchange server
  5. Web shell persistence: China Chopper or other web shells provide persistent command-and-control access

Post-Exploitation Activities

  • Email exfiltration (downloading entire mailboxes)
  • Credential harvesting from Active Directory
  • Lateral movement to other systems on the network
  • Additional backdoor installation
  • Data staging and exfiltration

Affected Versions

  • Exchange Server 2013 (CU 23 and earlier)
  • Exchange Server 2016 (CU 19 and earlier)
  • Exchange Server 2019 (CU 8 and earlier)
  • Exchange Online was not affected

Frequently Asked Questions

What happened with the Microsoft Exchange Server breach?

In early 2021, Chinese state-sponsored hackers (Hafnium) exploited four zero-day vulnerabilities in on-premises Microsoft Exchange Server to compromise an estimated 250,000 servers worldwide. The vulnerabilities allowed unauthenticated attackers to read email, install backdoors, and gain complete control of Exchange servers.

Was Exchange Online (Microsoft 365) affected?

No. The vulnerabilities only affected on-premises Exchange Server installations. Exchange Online (cloud-hosted) was not vulnerable. This distinction accelerated the migration from on-premises to cloud-based email.

What is ProxyLogon?

ProxyLogon refers primarily to CVE-2021-26855, the server-side request forgery vulnerability that enabled the attack chain. It allowed attackers to send specially crafted requests to an Exchange server and authenticate without valid credentials. The name is also used informally to refer to the entire four-vulnerability chain.

What should I do if I ran an affected Exchange server?

Apply all patches immediately if not already done. Check for web shells (ASPX files in web directories) even if already patched. Review Exchange server logs for indicators of compromise. Conduct a full forensic investigation to determine if data was exfiltrated. Assume compromise if the server was unpatched and internet-facing during January-March 2021.

Who was behind the attack?

The United States, UK, EU, and allied nations formally attributed the initial campaign to hackers affiliated with China's Ministry of State Security (MSS). However, after the vulnerabilities became public, at least 10 additional threat groups (including ransomware operators) exploited them independently.

Back to Breach Database
Breach data sourced from Wikipedia: List of data breaches, licensed under CC BY-SA 3.0.

Protect Your Organization From Data Breaches

Our security experts can help you identify vulnerabilities and strengthen your defenses.