[Blog](/blog)

Show links

Resources

[Blog](/blog)

[Breaches](/breaches)

[eBooks, reports, & more](/resources)

[Events](/events)

[News](/news)

[Cybersecurity](/category/cybersecurity)

Show links

Categories

[Attack Surface Management](/category/attack-surface-management)

[Company News](/category/company-news)

[Compliance and Regulations](/category/compliance-and-regulations)

[Cybersecurity](/category/cybersecurity)

[Data Breaches](/category/data-breaches)

[DevOps](/category/devops)

[Human Cyber Risk](/category/human-cyber-risk)

[Risks and Vulnerabilities](/category/risks-and-vulnerabilities)

[Third-Party Risk Management](/category/third-party-risk-management)

[Vendor Risk Management](/category/vendor-risk-management)

[What is the WannaCry Ransomware Attack?](/blog/wannacry)

Publish date

July 8, 2025

{x} minute read

# What is the WannaCry Ransomware Attack?

[Get a demo](/contact-sales)

[Free trial](/demo)

[Download the PDF guide](/resources/the-ultimate-ransomware-defense-guide)

[Free trial](/demo)

Written by

[Abi Tyas Tunggal](/team/abi-tyas-tunggal)

Writer and Senior Product Manager at UpGuard.

Abi's work has influenced leaders across cybersecurity, technology, and financial services.

Reviewed by

[Kaushik Sen](/team/kaushik-sen)

Chief Marketing Officer

Kaushik has a background in software engineering, enterprise solution architecture, and data analytics. He brings a unique, data-driven perspective to cybersecurity education.

Table of contents

eBook

The Ultimate Ransomware Defense Guide

Free resource

### The Ultimate Ransomware Defense Guide

[Download now](/resources/the-ultimate-ransomware-defense-guide)

WannaCry is a [ransomware](/blog/ransomware) cryptoworm [cyber attack](/blog/cyber-attack) that targets computers running the Microsoft Windows operating system. It was initially released on 12 May 2017. The ransomware [encrypted](/blog/encryption) data and demanded ransom of $300 to $600, paid in the cryptocurrency Bitcoin. WannaCry is also known as WannaCrypt, WCry, Wana Decrypt0r 2.0, WanaCrypt0r 2.0 and Wanna Decryptor.

Once installed, WannaCry installed a backdoor in infected systems.

WannaCry exploited a known [vulnerability](https://www.upguard.com/blog/vulnerability) in older Windows systems called EternalBlue, which was found by the United States National Security Agency (NSA).

EternalBlue was stolen and [leaked](https://www.upguard.com/blog/data-leak) by a group called The Shadow Brokers a few months prior to the attack. While EternalBlue was quickly patched, much of WannaCry's success was due to organizations not patching or using older Windows systems.

Quick patching and the discovery of kill switch domains prevented infected computers from spreading WannaCry. That said, estimates from Europol peg the number of computers infected at more than 200,000 across 150 countries with damages ranging from hundreds of millions to billions of dollars.

Security experts, the United States, United Kingdom, Canada, Japan, New Zealand and Australia formally asserted that North Korea was behind the attack. 

In August 2018, a new variant of WannaCry forced Taiwan Semiconductor, a chip-fabrication company, to shut down several of its plants when the virus spread to 10,000 machines across its most advanced facilities. 

## How Did WannaCry Spread?

The spread of WannaCry was enabled by EternalBlue, [a zero-day exploit](/blog/zero-day) in legacy versions of Windows computers that used an outdated version of the Server Message Block (SMB) protocol.

WannaCry is a network [worm](/blog/computer-worm) with a transport mechanism designed to automatically spread itself. The transport code scans for systems vulnerable to the EternalBlue [exploit](/blog/exploit) and then installs DoublePulsar and executes a copy of itself.

This means WannaCry can spread automatically without victim participation. Stark contrast to other [ransomware attacks](https://www.upguard.com/blog/ransomware-attacks-vs-data-breaches) that spread through [phishing](/blog/phishing) and [social engineering](/blog/social-engineering) attacks. 

WannaCry can also take advantage of existing DoublePulsar infections instead of install it itself. DoublePulsar is a backdoor tool released by The Shadow Brokers on 14 April 2017. By 21 April 2017, security researchers reported that tens of thousands of computers had DoublePulsar installed. By 25 April 2017, estimates pegged the number of infected computers in the hundreds of thousands.

## How Does WannaCry Work?

When executed, WannaCry checks to see if the kill switch domain is available. If it is unavailable the ransomware encrypts computer data and then attempts to exploit EternalBlue to spread to more computers on the Internet and on the same network.

An infected computer will search the target network for devices accepting traffic on [TCP ports 135-139 or 445](/blog/smb-port) indicating the system is configured to run SMB.

It will then initiate an SMBv1 connection to the device and use buffer overflow to take control of the system and install the ransomware component of the attack.

As with other [ransomware](https://www.upguard.com/blog/what-is-ransomware-as-a-service), the [malware](/blog/malware) displays a message informing the user their files have been encrypted and demands a ransom payment of $300 in Bitcoin within three days or $600 within seven days. 

Three hardcoded Bitcoin addresses are used to receive payments from victims. As with all Bitcoin wallets, transactions and balances are publicly accessible but the owners remain unknown.

Security experts advise affected users against paying the ransom because payment often does not result in data recovery.

## When Was WannaCry Patched?

The day following the initial attack, Microsoft released security updates for Windows XP, Windows Server 2003 and Windows 8. These patches were created in February following a tip off about the vulnerability in January 2017. 

On 14 March 2017, Microsoft released MS17-010 which detailed the flaw and patched the EternalBlue exploit for Windows Vista, Windows 7, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012 and Windows Server 2016.

In addition to the patch, Marcus Hutchins of MalwareTech discovered the kill switch domain hardcoded in WannaCry. He then registered the domain to stop the attack spreading as the worm would only encrypt computer files if it was unable to connect to the domain. This did nothing to help infected systems but severely slowed the spread of the worm and gave time for defensive measures to be deployed.  

On 14 May 2017, a new variant of WannaCry appeared with a new and second kill switch which was registered by Matt Suiche the same day. The next day another variant with the third and final kill switch was registered by Check Point threat analysts. 

In the following days, another version of WannaCry was detected that lacked a kill switch altogether.  

On 19 May 2017, hackers were trying to use a [botnet](https://www.upguard.com/blog/what-is-a-botnet) to perform a [distributed denial of service (DDoS) attack](https://www.upguard.com/blog/what-is-a-ddos-attack) on WannaCry's kill switch domain to take it offline. On 22 May 2017, the domain was protected by switching to a [cached](https://www.upguard.com/blog/cache) version of the site that is capable of dealing with much larger traffic loads than live sites.

Separately, researchers from the University College London and Boston University reported that their PayBreak system could defeat WannaCry and other ransomware attacks by recovering the keys used to encrypt user data, allowing for decryption without payment. There are also now many other [free ransomware decryption tools available for WannaCry](https://www.upguard.com/blog/how-to-decrypt-ransomware).

## Who Was Behind the WannaCry Cyber Attack? 

Linguistic analysis of the ransom notes indicated the authors were fluent in Chinese and proficient in English as versions of the notes in those languages seemed human-written while other languages seemed to be machine-translated. 

The FBI's Cyber Behavioral Analysis Center said the computer that created the ransomware language files had Hangul language fonts installed due to the presence of the "\fcharset129" Rich Text Format tag. Metadata in the languages files also indicated the computers were set to UTC+09:00 used in Korea. 

Researchers from Google, Microsoft, Kaspersky Lab and Symantec all said the code had similarities to malware used by the North Korean Lazarus Group which has been tied to the cyber attack on Sony Pictures in 2014 and a Bangladesh bank heist in 2016.

A leaked NSA memo and the UK's National Cyber Security Centre also reached the same conclusion. 

On 18 December 2017, the United States Government formally announced its belief that North Korea was behind the WannaCry attack. Canada, New Zealand, Australia, the United Kingdom and Japan all stood behind the United States' assertion.  

North Korea, however, denied being responsible for the cyber attack.

## Who Was Affected by WannaCry?

The scale was WannaCry was unprecedented with estimates of around 200,000 computers infected across 150 countries, with Russia, Ukraine, India and Taiwan the most affected according to Kaspersky Lab.

One of the largest agencies impacted was the National Health Service, the publicly funded national healthcare system for England and one of the four National Health Services for each constituent country of the United Kingdom. It is the largest single-payer healthcare system in the world.

Up to 70,000 devices including computers, MRI scanners, blood-storage refrigerators and theatre equipment may have been affected. This led to some NHS services turning away non-critical emergencies and ambulances being diverted. 

Alongside NHS, Telefónica, one of the largest telephone operators and mobile network providers in the world, was one of the first major organisations to report problems caused by WannaCry. FedEx, Nissan, the Russian interior ministry, police in Andhra Pradesh India, universities in China, Hitachi, Chinese police and Renault were also affected.

## What Was the Reaction to WannaCry?

Much of the media attention around WannaCry was due to the fact that the National Security Agency (NSA) had discovered the vulnerability and used it to create an exploit for its own offensive work, rather than report it to Microsoft. Edward Snowden said if the NSA had "privately disclosed the flaw used to attack hospitals when they found it, not when they lost it, the attack may not have happened."

On 17 May 2017, in response to criticism about the lack of disclosure, United States lawmakers introduced the PATCH Act which aims to "balance the need disclose vulnerabilities with other national security interests while increasing transparency and accountability to main public trust in the process".

The WannaCry ransomware attack is one of the worst cyber attacks in recent memory. Despite the scale, the attack relies on the same mechanism of many successful attacks: finding exposed ports on the Internet and exploiting known vulnerabilities. 

When you think about it like that, WannaCry loses a lot of its mystique.

## How to Prevent Cyber Attacks Like WannaCry

The best way to prevent attack like WannaCry is basic IT security and security configurations, such as patching all systems. EternalBlue connects to exposed [SMB ports](/blog/smb-port), which should never be open to the Internet anyway.

This is security 101 for anyone running a Microsoft data center. Ports 135-139 and 445 are not safe to publicly expose and have not been for a decade.

It shows how poor [cyber resilience](https://www.upguard.com/blog/cyber-resilience) is worldwide, preventable misconfigurations and known vulnerabilities can wreck global havoc and caused hundreds of millions to billions of dollars of lost productivity. What it comes down to is not flaws in software, code or firewalls (although those help) but [processes and priorities](https://www.upguard.com/blog/how-do-you-get-infected-by-ransomware).

Two basic axioms of security are to keep your systems patched and use software that isn't at end-of-life. If these two ideas were followed across the globe, it's likely WannaCry would have had much less impact. 

What's really worrying is how vulnerable we must be to truly advanced [cyber threats](https://www.upguard.com/blog/cyber-threat) and hacking tools. 

The other things we must consider are [information security](https://www.upguard.com/blog/information-security) and [information risk management](https://www.upguard.com/blog/information-risk-management). There should never be a situation where important data, [sensitive data](https://www.upguard.com/blog/sensitive-data) or [personally identifiable information (PII)](https://www.upguard.com/blog/personally-identifiable-information-pii) isn't stored elsewhere. Nor should a critical business function have no adequate process in place to restore the system to a working state. 

Here’s how to prevent attacks like WannaCry and minimize their impact if they do occur:

* **No single point of failure:&#xA0;**&#x57;hether it's ransomware, hardware failure, database error, or something else. If your data is important, then it should be backed up, at least one other secure location.
* **Automate provisioning process:&#xA0;**&#x49;f an asset is taken down by ransomware or anything else, you should be able to return it to a working state as soon as possible. 
* **Patch everything:&#xA0;**&#x4B;eep your systems up-to-date to avoid known exploits.
* **Back up data:** Always [back up your data](https://www.upguard.com/blog/how-to-back-up-your-data) in the event you become affected by ransomware.

## How UpGuard Can Help Protect Your Organization from Ransomware Attacks Like WannaCry

UpGuard continuously scans the dark, deep, and surface web for [leaked credentials that could be used to facilitate a data breach](https://www.upguard.com/product/breach-risk/threat-monitoring). This process involves scanning ransomware blogs for breach notifications and exposures involving your business or sensiitve data.

eBook

The Ultimate Ransomware Defense Guide

Free resource

### The Ultimate Ransomware Defense Guide

[Download now](/resources/the-ultimate-ransomware-defense-guide)

## Related posts

Learn more about the latest issues in cybersecurity.

Attack Surface Management

#### [Find Out if You're Exposed on the Dark Web](/blog/find-out-if-youre-exposed-on-the-dark-web)

Answer 5 quick questions to predict what a dark web scan will find about your company. Then run the free scan to see your real exposure.

[](/team/lance-turner)

[Lance Turner](#)

October 14, 2026

Data Breaches

#### [Your First Dark Web Scan Report, Explained](/blog/your-first-dark-web-scan-report-explained)

You scanned your domain. What do the results mean?

[](/team/lance-turner)

[Lance Turner](#)

October 13, 2026

Cybersecurity

#### [12 Cybersecurity Horror Stories of 2026 (No Costume Required)](/blog/cybersecurity-horror-stories-2026)

A warning ignored once becomes a headline. Read more about these 12 real 2026 cybersecurity incidents, and the sign each one gave before it made the news.

[](/team/revashni-moodley)

[Revashni Moodley](#)

October 14, 2026

Data Breaches

#### [Good Security Rating? Your Dark Web Exposure Says Otherwise](/blog/good-security-rating-your-dark-web-exposure-says-otherwise)

Scan your domain to see just how exposed you are on the Dark Web.

[](/team/lance-turner)

[Lance Turner](#)

October 13, 2026

Cybersecurity

#### [Left Unsupervised: 10 Times Access Outlived Its Authorization](/blog/10-times-access-outlived-authorization)

Access granted once shouldn’t mean access forever. Read more on how unmonitored access caused 10 of these real-life breaches and what they taught us.

[](/team/revashni-moodley)

[Revashni Moodley](#)

October 29, 2026

Cybersecurity

#### [Surviving a LockBit Ransomware Attack: The ROI of Visibility](/blog/surviving-a-lockbit-ransomware-attack)

Read how veteran CISO Nick Gicinto saved his alma mater from a LockBit ransomware attack by discarding the standard playbook.

[](/team/nicholas-sollitto)

[Nicholas Sollitto](#)

June 1, 2026

[All posts](/blog)

Experience superior visibility and a simpler approach to cyber risk management

[Get a demo](/contact-sales)

[Free trial](/demo)
