Keepnet – AI-powered human risk management platform logo
Menu
HOME > blog > wannacry ransomware attack all you should know

WannaCry Ransomware Attack: What Happened, How It Spread, and Lessons for 2026

WannaCry is ransomware that infects itself by exploiting a vulnerability in the Windows Server Message Block (SMB) protocol. The malware encrypts victims’ data and demands cryptocurrency to decrypt them. WannaCry encrypted hundreds of thousands of devices in over 150 countries in a matter of hours.

Ozan Ucar, Founder and CEO of Keepnet

WannaCry Ransomware Attack: All You Should Know

The WannaCry ransomware attack of May 2017 exploited a vulnerability in Microsoft Windows systems, leveraging the EternalBlue exploit developed by the NSA and leaked by the Shadow Brokers group. The attack infected over 230,000 systems across 150 countries in a matter of hours, demonstrating how a single unpatched vulnerability in a widely deployed protocol could cascade into a global crisis. Nearly a decade later in 2026, WannaCry remains relevant: security researchers continue to detect WannaCry infections on unpatched legacy systems, and the underlying vulnerability (MS17-010) still represents an active attack surface in organizations running unsupported Windows versions or with delayed patch management.

The WannaCry attack resulted in estimated global financial damages ranging from $4 billion to $8 billion, making it one of the most costly cyberattacks in history at the time. By comparison, the NotPetya attack that followed in June 2017 caused approximately $10 billion in damages, and the cumulative cost of ransomware attacks globally exceeded $30 billion annually by 2025. WannaCry established the template for large-scale, worm-propagating ransomware that has been refined in nearly every major ransomware family since.

In the UK, the National Health Service (NHS) experienced significant operational disruptions during the WannaCry attack. An estimated one-third of NHS trusts in England were affected, with approximately 80 NHS trusts disrupted. The attack forced cancellation of thousands of appointments, diversion of ambulances, and reversion to paper systems. The WannaCry attack directly contributed to subsequent NHS cybersecurity investment and regulatory changes, including mandatory Cyber Essentials certification for NHS organizations and a requirement for supplier cybersecurity assessments that informed the policy response to the 2022 Advanced ransomware attack.

The NHS faced reputational harm following the WannaCry attack, as the incident exposed widespread use of Windows XP systems for which Microsoft had ended mainstream support in 2014. The UK National Audit Office report on the attack found that the NHS could have prevented the disruption by implementing basic security measures. In 2026, legacy operating system management remains a persistent challenge in healthcare globally, and WannaCry-style propagating ransomware continues to exploit unpatched SMBv1 vulnerabilities in networks that have not enforced the mitigations recommended in the 2017 Microsoft advisory.

These impacts underscore the critical importance of robust cybersecurity practices. In 2026, WannaCry is not merely a historical case study. Honeypot networks continue to detect WannaCry propagation attempts, indicating that infected machines remain active on the internet. Organizations that have inherited legacy infrastructure, operate in manufacturing or healthcare, or have not enforced SMBv1 disablement and MS17-010 patching remain potentially vulnerable to WannaCry-style attacks or to newer ransomware families that use EternalBlue as part of their propagation toolkit.

1. What is WannaCry Ransomware?

WannaCry is ransomware that infects itself by exploiting a vulnerability in the Windows Server Message Block (SMB) protocol, which allows Windows machines on a network to communicate with one another, and specially crafted packets could trick Microsoft’s implementation into executing an attacker’s code.

2. How did WannaCry spread?

Wannacry managed to infect 230,000 users globally with ransomware by exploiting Windows security flaws via the Internet. The ability of the virus to transmit itself to other systems via infected linked devices has increased the risk to the point of disaster. Even if the first wave of assaults is defeated, if the self renewing later versions of attacks are not taken seriously and the necessary actions are not performed, the information saved in the first wave may be permanently lost.

3. Risk of Infection Via Email

Wannacry has begun to spread via email after being infected by exploiting a Windows security flaw via the Internet. Wannacry software has also penetrated business internal networks with connections to emails and hazardous information. According to cyber threat intelligence firms, the actual major threat will start with business network infection.

4. WannaCry Components

The DoublePulsar dropper, a self contained program that selects the other elements A program that could encrypt and decrypt data, Records include encryption keys, An open source software application allowing secret conversation.

5. The Effect of the WannaCry Attack

WannaCry ransomware burst in 2017, infecting over 230,000 systems worldwide and costing billions of dollars. Despite the fact that new strains of this ransomware were discovered in 2018, the attack had a significant impact on two industries: healthcare and large manufacturers.

6. Who created WannaCry?

The US believes that Park Jin Hyok, a 34 year old North Korean, is one of the many individuals behind a long string of malware attacks and interventions.

7. Who Stopped the WannaCry Ransomware?

Marcus Hutchins, better known by his nickname MalwareTech, has been charged with two felonies related to the creation and distribution of malware. Hutchins was hailed as a hero in May 2017 for his involvement in halting the global spread of the WannaCry ransomware.

Are your Email Security Products Ready Against Ransomware? Use our anti phishing tools and test yourself for free.

Email services are entry points for cyberattacks, that is to say, over 97% of successful attacks occur via email. Test your email vulnerability and see your email risks against Ransomware attacks using the Email Threat Simulator – Keepnet Labs solution .

Centralize Suspicious Email Reporting and Get Support from Experts

With the Keepnet Outlook Phishing Reporter add in, users can report suspicious emails to cybersecurity administrators with a single click and receive immediate support after automated analysis. To have the Phishing Reporter add in contact us and start using it.

Why WannaCry Remains Relevant in 2026

WannaCry occurred in 2017 but its core lessons apply directly to 2026. The EternalBlue exploit used by WannaCry was based on a vulnerability for which Microsoft had already released a patch two months before the attack. The organizations that were devastated were those that had not applied a routine security update. In 2026, attackers continue to exploit known, patched vulnerabilities against organizations that have fallen behind on updates. The technology has changed but the human and organizational failure remains the same. Unpatched systems, inadequate backup strategies, and employees who cannot recognize suspicious emails are still the three most exploited weaknesses in any organization.

The kill switch discovered by Marcus Hutchins was a design flaw that limited WannaCry's spread, but modern ransomware does not contain such failsafes. Today's ransomware families are more targeted, better tested, and designed specifically to avoid the mistakes that gave defenders an edge against WannaCry. Organizations that treat WannaCry as history rather than a warning are repeating the conditions that made the attack possible.

Editor's Note: This article was updated on June 1, 2026.

SHARE ON

twitter
linkedin
facebook

Schedule your 30-minute demo now

You'll learn how to:
tickAutomate behaviour-based security awareness training for employees to identify and report threats: phishing, vishing, smishing, quishing, MFA phishing, callback phishing!
tickAutomate phishing analysis by 187x and remove threats from inboxes 48x faster.
tickUse our AI-driven human-centric platform with Autopilot and Self-driving features to efficiently manage human cyber risks.

Frequently Asked Questions

What was the WannaCry ransomware attack?

arrow down

WannaCry was a global ransomware attack that occurred in May 2017. It exploited a vulnerability in the Windows SMBv1 protocol using an exploit called EternalBlue, which had been developed by the NSA and later leaked by the Shadow Brokers group. WannaCry spread automatically across networks without requiring any user interaction, infecting over 230,000 systems in more than 150 countries within days. It encrypted files and demanded a ransom payment in Bitcoin. Microsoft had released a patch for the underlying vulnerability two months before the attack, but millions of systems had not been updated.

How did WannaCry spread so quickly?

arrow down

WannaCry used the EternalBlue exploit to scan for and infect any vulnerable Windows machine it could reach on a network, then automatically propagate to other connected machines. Unlike most ransomware that requires a user to click a link or open an attachment, WannaCry spread as a worm: once one machine on a network was infected, it would attempt to infect every other vulnerable machine on the same network and beyond. This worm like propagation allowed WannaCry to spread across internal networks at machine speed, infecting entire organizations within minutes of first entry.

What is EternalBlue and who developed it?

arrow down

EternalBlue is an exploit for a critical vulnerability in the Windows implementation of the SMBv1 protocol (MS17-010). It was developed by the NSA's Tailored Access Operations unit and leaked publicly by a hacker group called the Shadow Brokers in April 2017, approximately one month before the WannaCry attack. Microsoft released the MS17-010 patch in March 2017, but many organizations had not applied it when WannaCry launched in May. EternalBlue was also used in the NotPetya attack that followed WannaCry, and variants remain relevant because some organizations still run unpatched legacy systems.

Who created WannaCry and were they ever prosecuted?

arrow down

The United States government attributed WannaCry to the Lazarus Group, a threat actor associated with North Korea's intelligence services. In 2018, the US Department of Justice indicted Park Jin Hyok, a North Korean national, in connection with the WannaCry attack as well as the 2014 Sony Pictures breach and the 2016 Bangladesh Bank heist. North Korea denied involvement. As of 2026, no individuals have been successfully extradited or prosecuted for the WannaCry attack, as North Korea does not cooperate with international law enforcement.

Who stopped WannaCry and how?

arrow down

Marcus Hutchins, a British security researcher working under the handle MalwareTech, discovered a kill switch in WannaCry's code while analyzing the malware. The ransomware checked for the existence of a specific unregistered domain before executing: if the domain existed, WannaCry would stop spreading. Hutchins registered the domain for approximately $10, which caused WannaCry to stop propagating globally within hours. This was an accidental design feature by the malware authors, not an intentional one, and was not present in later variants of the code.

How did WannaCry affect the NHS?

arrow down

The UK's National Health Service was one of the most severely affected organizations in the WannaCry attack. An estimated one third of NHS trusts in England were affected, with approximately 80 out of 236 NHS trusts disrupted. Hospitals were forced to cancel operations, divert ambulances, and revert to paper based systems. Patient records were inaccessible, diagnostic equipment was offline, and staff could not access critical systems. The attack exposed the NHS's widespread use of unpatched Windows XP systems, which Microsoft had ended support for in 2014 but many NHS organizations continued to operate.

What was the total financial damage caused by WannaCry?

arrow down

Estimates of WannaCry's total global financial damage range from $4 billion to $8 billion, accounting for ransom payments, recovery costs, lost productivity, and operational disruption. Paradoxically, the actual ransom collected was relatively small: attackers received approximately $140,000 in Bitcoin payments before withdrawal was blocked. The vast majority of the financial damage came from downtime and recovery costs rather than ransom payments, illustrating that the business disruption cost of ransomware typically far exceeds the ransom itself.

What is the MS17-010 patch and why did so many organizations not apply it?

arrow down

MS17-010 is the Microsoft security patch released in March 2017 that fixed the SMBv1 vulnerability exploited by WannaCry. Microsoft rated it critical and released it two months before the attack. Many organizations had not applied it for several reasons: some ran Windows XP, for which Microsoft had ended regular support in 2014 and only released the patch as an emergency measure after WannaCry began; some had patch management processes that introduced delays; some had operational systems that could not be easily updated; and some simply had not assessed the vulnerability as urgent. The gap between patch release and widespread exploitation continues to be a persistent problem.

How should organizations protect themselves against WannaCry style attacks in 2026?

arrow down

The fundamental protections against WannaCry style attacks remain the same in 2026: apply critical security patches promptly, especially for internet facing and network connected systems; disable SMBv1 on all systems; segment networks to prevent lateral spread; maintain tested offline backups; and train employees to recognize the phishing tactics often used to deliver initial malware payloads. Organizations that also run regular phishing simulations and invest in security awareness training address both the technical and human layers that WannaCry exploited.

What ransomware families emerged after WannaCry using similar techniques?

arrow down

NotPetya emerged in June 2017, just weeks after WannaCry, and used EternalBlue in combination with credential harvesting tools to spread across networks. It is widely considered more destructive than WannaCry and caused approximately $10 billion in global damage. Bad Rabbit appeared in October 2017 and used a modified version of EternalBlue. In subsequent years, ransomware families including REvil, LockBit, BlackCat, and many others continued to use network propagating techniques, though typically combined with other access methods such as phishing and RDP exploitation rather than relying solely on unpatched SMB vulnerabilities.