WannaCry: The Ransomware That Hit Hospitals
WannaCry ransomware exploited the NSA's EternalBlue SMB flaw to infect 200,000 computers across 150 countries in 2017, shutting down the UK NHS in hours.
What Is This Threat?
WannaCry is a ransomware worm that combined file encryption with a self-spreading mechanism to cause one of the most damaging cyberattacks in history. Unlike traditional ransomware that requires a victim to click something, WannaCry automatically spread across networks by exploiting a vulnerability in Windows β meaning it could infect every unpatched computer in a hospital, factory, or office without any human interaction.
How It Worked
The Exploit:
WannaCry used EternalBlue (CVE-2017-0144), a hacking tool developed by the US National Security Agency (NSA) that was stolen and leaked by the Shadow Brokers group in April 2017. EternalBlue exploited a critical flaw in Windows' SMB (Server Message Block) file-sharing protocol.
Microsoft had released a patch (MS17-010) two months before the WannaCry attack, in March 2017. Organizations that had not applied it were completely vulnerable.
The Attack (12 May 2017):
The Kill Switch:
Security researcher Marcus Hutchins (MalwareTech), then 22 years old, noticed the malware checked a specific unregistered domain before running. He registered the domain for $10.69 β this accidentally activated a kill switch built into the malware, slowing the spread dramatically. Without this, the damage would have been far worse.
Real-World Impact
Attribution: The US, UK, and Australian governments formally attributed WannaCry to North Korea's Lazarus Group in December 2017. The motive was financial β North Korea uses cybercrime to circumvent sanctions.
Still Active: WannaCry variants without the kill switch continue to infect unpatched Windows XP and Windows 7 systems today. Organizations running legacy systems remain at risk.
Why It Matters Today
WannaCry demonstrated three hard lessons that remain relevant:
Red Flags / Warning Signs
.WCRY or .WNCRY extension.How to Protect Yourself
- Apply Windows security updates immediately β WannaCry exploited a patch that had been available for 2 months; patch Tuesday updates should never be skipped
- Disable SMBv1 on all Windows systems β it is a legacy protocol with no modern use case and is the entry point WannaCry exploited
- Segment your network so that ransomware cannot spread laterally from one infected machine to all others
- Maintain offline or air-gapped backups that ransomware cannot reach β test restores regularly
- Upgrade or isolate legacy operating systems (Windows XP, Windows 7) that no longer receive security updates
What to Do If Affected
- 1.Isolate infected machines immediately by disconnecting from the network (ethernet and Wi-Fi) to stop lateral spread
- 2.Do not pay the ransom β payment does not guarantee file recovery, funds criminal organizations, and the WannaCry payment infrastructure is now defunct anyway
- 3.Report to your national cybersecurity authority (Austria: cert.at, Germany: BSI, Ukraine: CERT-UA)
- 4.Restore files from clean offline backups after fully wiping and reinstalling affected systems
- 5.After recovery, apply all outstanding patches, disable SMBv1, and conduct a full network audit to find how the initial infection occurred