A Friday the internet wants to forget
On the morning of May 12, 2017, workers at Telefónica, a big phone company in Spain, turned on their computers and found a bright red screen: "Oops, your files have been encrypted!" A countdown timer was ticking. To get their files back, the screen said, send $300 in Bitcoin.
By that afternoon, the same red screen was everywhere. FedEx shipping depots, Renault and Nissan car factories, Deutsche Bahn train stations in Germany, universities across China — and, scariest of all, hospitals across England's National Health Service, where computers, phone systems, and even MRI machines locked up mid-shift. Hospitals canceled about 19,000 appointments and turned ambulances away from emergency rooms.
In about a day, the worm hit an estimated 200,000–300,000 computers in 150 countries. It hadn't been emailed to anyone and it didn't hide in a profile. Like the Morris worm 29 years earlier, it spread machine to machine across networks — no human clicks needed. But this one also encrypted every file it found. It was ransomware with a worm's legs.
- What happened
- WannaCry encrypted files on ~200,000–300,000 computers in ~150 countries in about a day, demanding $300–$600 in Bitcoin per machine.
- When
- May 12, 2017. The patch that would have prevented it had been available for two months.
- Who
- The US and UK governments publicly blamed North Korea's Lazarus Group. The attack was stopped by a British researcher, Marcus Hutchins.
- The catch
- The worm used EternalBlue, a powerful Windows exploit originally built by the NSA and leaked online a month before the attack.
The recipe for a global mess
WannaCry was three bad ingredients mixed together. None of them alone would have caused that Friday.
A leaked spy tool
EternalBlue was a Windows vulnerability discovered (and kept secret) by the US National Security Agency to use in its own work. In April 2017, a group called the Shadow Brokers dumped it online for anyone to use.
An ignored update
Microsoft had released a fix for that vulnerability two months earlier — March 14, 2017. Every machine that installed it was immune. But millions of computers, especially in big organizations, still hadn't updated.
Ransomware + worm
Most ransomware arrives by email and infects one computer. WannaCry's EternalBlue engine let it jump automatically from machine to machine, so one infected computer could lock up a whole network — like a hospital's.
Simple definition: a zero-day or unpatched vulnerability is a flaw that lets attackers in before it's fixed. Zero-days are rare and valuable — spy agencies stockpile them. When one leaks, criminals can grab it too.
The accidental off switch
That same Friday, a 22-year-old British security researcher named Marcus Hutchins was reading the WannaCry code. He noticed something odd: before encrypting anything, the worm tried to connect to a weird, gibberish web address — a long random-looking domain that didn't exist yet.
If the domain answered back, the worm quit. If the domain didn't exist, the worm attacked. That looked like an anti-analysis trick: researchers often study malware on computers that fake every internet address, and the author may have figured "if my nonsense domain responds, I'm probably in a lab — shut down."
Hutchins registered the domain for $10.69. Suddenly the domain existed, it answered, and new infections checked in, got an answer, and stopped. One domain purchase acted like a global off switch — an accidental kill switch the author had built into his own worm.
What happened after
- Mar 14, 2017
Microsoft releases the fix for the EternalBlue flaw. Organizations that installed it were never in danger.
- Apr 14, 2017
The Shadow Brokers leak EternalBlue online. Anyone — including criminals — can now use it.
- May 12, 2017
WannaCry explodes worldwide in a single day. Hutchins registers the kill-switch domain in the afternoon; new infections stop.
- Dec 2017
The US and UK officially blame North Korea. Estimated total damage: around $4 billion. Ransom collected: only about $140,000 — most victims refused to pay.
- After
Microsoft did something almost unheard of: it released patches for ancient, unsupported Windows versions like XP, because hospitals and power grids still ran them. Organizations got serious about backup systems and fast patching.
WannaCry also settled an argument. For years, people debated whether keeping vulnerabilities secret for spying was worth the risk. A leaked spy tool causing $4 billion in damage became the case study everyone cites.
Patch or postpone?
You're the IT admin for a school district: 40 computers, one free evening a week for maintenance. It's March 2017 and Microsoft just shipped a security update. Make the calls — then see how May 12 goes for you.
Boring defenses beat disasters
WannaCry was flashy; the defense against it was not. The organizations that escaped were the ones doing unglamorous maintenance:
Install updates — promptly
The fix existed for two months before the attack. Every victim had skipped it. Turn on auto-updates for your own devices.
Backups make ransom pointless
Ransomware only works if your only copy is the locked one. A recent backup means you shrug, wipe, and restore.
Retire ancient software
Many victims ran Windows versions so old they didn't get normal updates. Old software is a museum piece — don't run your life on it.
Don't pay the ransom
WannaCry's authors got about $140k — pocket change on the damage. Paying funds the next attack, and criminals may not unlock anything anyway.
Remember: "update available" is not spam. It's the building inspector telling you the door's unlocked. Close it now, not after the worm crawls through.
Try it with your family or class
Pick one of these to talk about at dinner, in the car, or with a classmate.
- The exploit behind WannaCry was built and kept secret by a spy agency. Should governments be allowed to hoard security holes they know about? Who should decide?
- Hospitals delayed updates because reboots interrupt patients. When is "we'll patch it later" a reasonable choice, and when is it just gambling?
- Try it: is there a device in your home waiting for an update right now — a phone, console, tablet, router? Who in your family presses "later," and why?
Check your understanding
In your own words: WannaCry needed three ingredients — a leaked exploit, unpatched computers, and worm-style spreading. Which ingredient was most in your control as a computer owner, and what habit handles it?
Your answer:
Sample answer: I can't control leaked spy tools or how a worm spreads, but I can control whether my own computers are patched. The fix for the EternalBlue flaw existed two months before the attack, so every infected machine had skipped an available update. The habit is: install security updates as soon as they arrive — turn on auto-update. Backups matter too, because even if ransomware locks your files, a backup means you don't need to pay.
Quick quiz
1. What made WannaCry scarier than normal ransomware?
2. How did Marcus Hutchins slow WannaCry down?
3. What was the simplest way to be safe from WannaCry on May 12, 2017?
Next: the worm hiding in your homework
WannaCry needed a leaked spy tool. The newest worms don't need anything that fancy — they hide inside the free packages developers install every day. Meet Shai-Hulud, the worm that turned the software supply chain against itself.
Part of the Cyber Attack Stories tutorial series.