The 2021 Exchange hacks were attacks on email servers that organisations ran themselves, using flaws later called ProxyLogon.
This guide is for anyone who wants a plain account of what happened and what it teaches. You do not need to be technical: if your firm runs its own email server, or a supplier runs one for you, this story is about you.
In short
- On 2 March 2021, Microsoft released fixes for flaws in Exchange Server that attackers were already using [1].
- Only Exchange Server run by organisations themselves was affected. Microsoft said its online email service, Exchange Online, was not [1].
- Attackers often left hidden back doors called web shells, so installing the fix alone was not enough [1][4].
- The lesson: patch servers that face the internet fast, then check for anything left behind.
What you will learn
- Explain what ProxyLogon was in plain words.
- Describe why a fix did not remove a back door already in place.
- Check whether your organisation runs its own email server.
- Ask your IT team or supplier the right questions about patching.
- Your own email server (on-premises Exchange)
- email software a firm runs on its own computers, not as an online service.
- Software fix (patch)
- an update that closes a known flaw.
- Hidden back door (web shell)
- a small file planted on a web server that lets an attacker come back later.
What are the Microsoft Exchange hacks?
Think of a building whose front door lock has a fault nobody knew about. Burglars find it first. Even after the lock is replaced, any spare key they hid inside still works.
Exchange Server is Microsoft's email software that organisations can run on their own computers. In early 2021, attackers used four unknown flaws in it. Flaws nobody has fixed yet are called zero-days. Together they let attackers get in without a password and take control of the server [1].
The main flaw became known as ProxyLogon, the name used in Microsoft's checking tool [3]. Once inside, attackers could read email and plant extra harmful software to keep their access [1].
Where the comparison stops working: a burglar is one person. Here, after the flaws became public, many different groups scanned the internet for servers to attack. US officials called the exploitation "widespread and indiscriminate" [3].
For how online email differs, read Exchange Online for Beginners. This page tells the story of the 2021 attacks on servers people ran themselves.
Why does it matter?
Email holds contracts, invoices and passwords. The UK government said the campaign affected over a quarter of a million servers worldwide [5].
If you run a small business
What could happen: an IT supplier runs an email server for you, and nobody installs urgent fixes.
Check this: ask whether your email is an online service or a server you or your supplier run.
If you are new to IT work
What could happen: you install a fix and assume the job is done, while a back door stays in place.
Check this: after an urgent fix, check for signs of a break-in using the supplier's guidance.
Next: Web Shells for Beginners
If you manage IT or risk
What could happen: an old server on the internet becomes the way into the whole network.
Check this: keep a list of servers that face the internet and how fast each gets urgent fixes.
What does it look like?
Here is a made-up note an IT team might write when checking a server after an urgent fix.
Example only. All values are made up.
Server check: mail.example.invalid date: 00/00/0000 Email software: own server, faces internet (1) Urgent fix: installed 0 days after release (2) Unknown web file: EXAMPLE-0000.aspx found (3) Admin accounts: 1 new, not on staff list (4) Action: isolate server, call responders (5)
- The server sits on the internet, so anyone can try to reach it.
- The date the fix went on. Attacks may have started before this.
- In a real file, this line would contain the name of a web page nobody on the team created.
- An account the team does not recognise is another warning sign.
- Signs of a break-in mean calling incident responders, not just patching.
Why this is risky: the fix closed the flaw, but the unknown file may still let an attacker back in.
The safer way: install the fix fast, then follow the supplier's checks for signs of a break-in, and get help if you find any.
How does it work?
- A server faces the internet. Organisations ran Exchange Server on their own computers, reachable from outside so staff could get email.
- Attackers use unknown flaws. Microsoft said a group it calls HAFNIUM used four flaws in limited, targeted attacks before fixes were out [1].
- Fixes come out, and attacks spread. Microsoft released fixes on 2 March 2021. US officials then saw widespread attacks by many actors [1][3].
- Back doors are left behind. Attackers planted web shells (small hidden web pages that give remote control). Some stayed even after servers were patched [1][4].
- Clean-up. Officials told organisations to patch at once and check for signs of compromise. US federal agencies had to disconnect servers that could not be checked [2][3].

In April 2021 the FBI, with a court's approval, removed one early group's web shells from hundreds of US servers. The US Justice Department said this did not patch the servers or remove other harmful software [4].
In July 2021 the UK and its allies said Chinese state-backed actors were responsible for the Exchange compromise [5]. The UK's National Cyber Security Centre (NCSC) gave tailored advice to over 70 affected organisations [6].
A worked example
This story is made up to show the idea.
Lowri Achterberg is the office manager at Beech Accountants, a firm of twelve people. Their email runs on a server in a cupboard, set up years ago by an IT contractor, Flora Nash.
Lowri reads a news story about an urgent email server fix. She calls Flora and asks one question: does this affect us?
Flora checks. The server runs the affected software, and it faces the internet. She installs the fix that afternoon.
Then Flora follows the supplier's guidance to look for signs of a break-in. She finds a web file nobody created. It sits where the guidance says back doors often hide.
Flora does not just delete it. She takes the server off the internet, calls an incident response firm and tells Lowri. The firm looks at the server and the network. They reset admin passwords and the passwords of any accounts that used the server.
Lowri asks what else they should change. Flora suggests moving email to an online service, so the supplier handles server fixes. She also sets up a monthly check of what faces the internet.
Lowri learned that a fix closes the door, but someone still has to check the house.
Myths and mistakes
| What people think | What is true |
|---|---|
| Installing the fix makes the server safe. | It closes the flaw, but a web shell already planted can stay [4]. Check for signs of compromise too. |
| All Microsoft email was hit. | Microsoft said Exchange Online was not affected [1]. |
| Only big or famous organisations were targets. | Officials called the later attacks widespread and indiscriminate [3]. |
| We can patch next month. | For flaws already being used, delay gives attackers time. Plan for urgent fixes. |
| Deleting a strange file ends the problem. | The attacker may have done more. Isolate the server and get expert help. |
What can I do this week?
- Find out whether your email is an online service or a server you or a supplier run.
- List every server that faces the internet and who installs its fixes.
- Ask your IT team or supplier how fast they install urgent fixes.
- Agree who you would call if a server shows signs of a break-in.
- In the UK, report cyber crime to Report Fraud (England, Wales and Northern Ireland) or to Police Scotland on 101.
Checklist
- I know whether we run our own email server.
- Every server that faces the internet has an owner.
- Urgent fixes have a target time, and we meet it.
- After an urgent fix, we check for signs of a break-in.
- We know who to call for incident response.
- Old servers we no longer need are switched off.
- Admin passwords are changed after any suspected break-in.
Common questions
What is ProxyLogon?
ProxyLogon is the nickname for the main flaw in the 2021 attacks. Microsoft said it let an attacker send requests that the server treated as coming from itself. Combined with other flaws, attackers could take control of an Exchange server [1].
Was Exchange Online affected?
No. Microsoft said Exchange Online was not affected [1]. The flaws were in Exchange Server software that organisations ran on their own computers. A firm whose email is hosted online by Microsoft did not need to install these fixes itself.
Who was behind the attacks?
Microsoft linked the first attacks to a group it calls HAFNIUM, which it described as state-sponsored and based in China [1]. In July 2021 the UK and allies said Chinese state-backed actors were responsible [5]. Other groups joined in later.
Where next?
Ready for the detail? Read the practitioner guide: ProxyLogon and ProxyShell. It goes further into the flaws, how to detect compromise and how to harden Exchange Server.
Also useful:
- Microsoft Exchange Server Security Guide
- Web Shell Response Playbook
- Emergency Out-of-Band Patching Playbook
- Silk Typhoon Threat Actor Profile Guide
Related NHI Mgmt Group resources: Web Shells for Beginners, Zero-Day Vulnerabilities for Beginners and Exchange Server 2016 and 2019 End of Support.
Key terms
- Zero-day
- A flaw attackers can use before the maker has released a fix.
- Web shell
- A small file planted on a web server that lets an attacker control it remotely.
- Unauthenticated remote code execution
- Running commands on a computer from afar without needing a password first.
- Patch verification
- Checking that a fix was really installed and worked.
- Malware
- Harmful software that damages, spies on or takes control of a device.
Sources and further reading
- Microsoft Threat Intelligence, "HAFNIUM targeting Exchange Servers with 0-day exploits", Microsoft Security blog, 2 March 2021 (updated March 2021). Flaws CVE-2021-26855, CVE-2021-26857, CVE-2021-26858 and CVE-2021-27065. https://www.microsoft.com/en-us/security/blog/2021/03/02/hafnium-targeting-exchange-servers/ (accessed 3 Dec 2026).
- US Cybersecurity and Infrastructure Security Agency (CISA), "ED 21-02: Mitigate Microsoft Exchange On-Premises Product Vulnerabilities", Emergency Directive, 3 March 2021. https://cisa.gov/ed2102 (accessed 3 Dec 2026).
- CISA, "Remediating Microsoft Exchange Vulnerabilities", 2021. https://us-cert.cisa.gov/node/16473 (accessed 3 Dec 2026).
- US Department of Justice, "Justice Department announces court-authorized effort to disrupt exploitation of Microsoft Exchange Server vulnerabilities", press release, 13 April 2021. https://www.justice.gov/archives/opa/pr/justice-department-announces-court-authorized-effort-disrupt-exploitation-microsoft-exchange (accessed 3 Dec 2026).
- UK Government, "UK and allies hold Chinese state responsible for a pervasive pattern of hacking", press release, 19 July 2021. https://www.gov.uk/government/news/uk-and-allies-hold-chinese-state-responsible-for-a-pervasive-pattern-of-hacking (accessed 3 Dec 2026).
- National Cyber Security Centre, "Microsoft Exchange", NCSC Annual Review 2021. https://www.ncsc.gov.uk/collection/ncsc-annual-review-2021/the-threat/microsoft-exchange (accessed 3 Dec 2026).