What is WannaCry Ransomware?
How It Spread, Impact and Protection

WannaCry ransomware is a ransomware worm that spread around the world in May 2017. It locked files on Windows computers that missed a security update and asked for a ransom in Bitcoin. It spread by itself through an old file-sharing flaw, so no one had to click anything.

Short Answer WannaCry ransomware is a ransomware worm that spread around the world on 12 May 2017. It locked files on Windows computers and asked for a few hundred US dollars in Bitcoin to unlock them. It moved from computer to computer by itself through an old flaw in Windows file sharing, so no one had to click anything. Microsoft had already released a fix two months earlier.

What is WannaCry Ransomware?

Ransomware is harmful software that scrambles a victim’s files so they cannot open them. The attacker then asks for money, the ransom, to unlock them. WannaCry ransomware is one well-known example from 2017. It is also called WannaCrypt, WCry or Wanna Decryptor.

What made WannaCry different was the way it spread. Most ransomware needs a person to open a bad email attachment or link. WannaCry behaved like a worm instead. A worm is a program that copies itself across a network on its own. So one infected computer could quietly infect every weak computer it could reach.

Think of a cold that spreads through an office without anyone shaking hands. WannaCry ransomware worked in a similar way. It looked for Windows computers with one missing security update, and then it moved straight in.

Key Words to Know

  • SMB (Server Message Block): the method Windows uses to share files and printers over a network. SMBv1 is its first, very old version.
  • Exploit: a piece of code that takes advantage of a weak spot in software.
  • EternalBlue: the name of the exploit WannaCry used to break into Windows through SMBv1.
  • Patch: a software update that fixes a weak spot. Microsoft’s patch for this flaw is called MS17-010.
  • Encryption: scrambling data so only someone with the right key can read it. Ransomware uses it to lock your files.
  • Kill switch: a built-in check that tells a program to stop. In WannaCry, the check was a web address.

How Did WannaCry Ransomware Spread?

WannaCry ransomware spread through a security vulnerability in SMBv1, the old file-sharing method in Windows. An attacker could send a specially made message to a computer with SMBv1 turned on and then run their own code on it. No password was needed. Microsoft rated the flaw Critical and fixed it in security update MS17-010 on 14 March 2017.

The worm then followed a simple loop:

  1. Arrive: it reaches a Windows computer that is open to SMB traffic from the network or the internet.
  2. Break in: it uses the EternalBlue exploit against SMBv1 on a computer that is missing the MS17-010 update.
  3. Check the kill switch: it tries to reach a special web address. If that address answers, it stops (more on this below).
  4. Lock files: if the address does not answer, it scrambles the files and shows a ransom note.
  5. Spread again: at the same time, it scans the local network and random internet addresses for the next weak computer.
A worm finds an open file-sharing port, breaks in, checks a kill switch, locks files, then looks for its next target
The worm needed no click; any Windows computer missing the March 2017 fix could be its next stop.

Why No Click Was Needed

Because WannaCry attacked a network service directly, it did not wait for a person to make a mistake. Staff did not have to open an email or visit a website. As a result, a single infected laptop on an office network could quickly reach shared servers and other desktops. This worm behavior is what turned one type of malware into a worldwide event.

CISA, the US cybersecurity agency, reported that WannaCry connected to other computers through file-sharing ports, mainly port 445. A port is like a numbered door on a computer that a service listens on. If that door stayed open to the internet, the worm could reach the computer from outside.

What Happened in May 2017?

WannaCry ransomware began spreading on Friday, 12 May 2017. According to the US government, it hit hundreds of thousands of computers in more than 150 countries. Hospitals and businesses in many countries saw locked screens. However, the worm could only break into Windows computers that lacked the March update.

Microsoft then took an unusual step on 13 May 2017. It released the same fix for Windows XP, Windows 8 and Windows Server 2003. Those versions no longer received regular updates, but Microsoft made an exception because of the risk to customers. Microsoft also said the attack did not target computers running Windows 10, but every Windows version still needed the March update.

The Kill Switch That Slowed It

Before it locked any files, WannaCry tried to reach a web address that nobody owned. If the address answered, the worm stopped. A security researcher registered that address, and the spread slowed sharply. For this reason, CISA advised companies not to block that address on their networks, because blocking it would switch off this safety check and let the worm keep running.

The NHS in England

The UK’s National Health Service (NHS) was one of the best-known victims. The UK National Audit Office’s October 2017 count found that at least 81 of the 236 NHS trusts in England were affected. NHS trusts are the bodies that run hospitals and other NHS services. The same report found that 595 GP practices, which are family doctor clinics, were infected. NHS England estimated that more than 19,000 appointments would have been cancelled. The head of the audit office said the attack could have been prevented if the NHS had followed basic IT security practice. All the infected organizations shared the same weak spot: Windows systems that were unpatched or no longer supported.

What Did WannaCry Ransomware Do on an Infected Computer?

Once inside, WannaCry ransomware worked quickly. Microsoft’s own analysis describes these steps:

  • Scrambled files: it encrypted documents, photos, databases and archives, and it added “.WNCRY” to the end of each file name.
  • Left notes: it placed a text file in each folder and changed the desktop wallpaper to a ransom message.
  • Showed a timer: a ransom window asked for a few hundred US dollars in Bitcoin, a digital currency, and showed a countdown timer.
  • Removed easy undo copies: it deleted the shadow copies, the built-in restore points that Windows keeps, so users could not simply roll back.
  • Offered proof: it unlocked a few random files to show that unlocking was possible, then demanded payment for the rest.

However, paying did not reliably bring files back. CISA warned that payment does not guarantee recovery, and the UK’s National Crime Agency urged people not to pay. Without a clean backup, locked files usually stay locked. The safest route was a clean backup kept away from the infected network.

Talk to an ExpertDo old Windows systems still sit on your network? Talk to our team about ransomware protection.

Who Was Behind WannaCry Ransomware?

On 19 December 2017, the US government publicly blamed North Korea for WannaCry. On the same day, the UK government said its National Cyber Security Centre judged it highly likely that North Korean actors carried it out. The UK, Australia, Canada, New Zealand and Japan all joined the US statement. The group behind an attack is often called a threat actor.

How WannaCry Ransomware Differs From Typical Ransomware

WannaCry ransomware shares the same goal as other ransomware: lock files and demand money. But the way it arrived and spread was quite different. The table below compares it with the kind of ransomware most companies face today.

Question WannaCry (2017) Typical Ransomware Today
How it gets in An unpatched SMBv1 flaw, no click needed Stolen passwords, fake emails that trick staff (phishing) or remote login services left open to the internet
How it spreads By itself, like a worm A person moves through the network by hand
Targets Any weak Windows computer it could reach Chosen companies, often large ones
Data theft Not its main aim Often steals data first, then threatens to leak it

WannaCry showed how fast an automatic worm can travel. Today’s attackers usually work more slowly, but they also use gaps that a company could have closed.

Layered defenses: firewall, network zones, patched Windows with SMBv1 off, antivirus, and an offline backup
Each layer closes one door the worm used, and the offline backup covers the case where every other layer fails.

Is WannaCry Ransomware Still a Threat Today?

The original outbreak ended long ago, but the risk has not fully gone. Copies of the WannaCry code still exist. They can still harm an old Windows computer that has SMBv1 turned on and lacks the MS17-010 update. Security tools still detect copies and changed versions of it on old, unpatched computers.

Such computers still sit in many offices. For example, an old desktop may run a factory machine, a lab instrument or a billing counter, and the team is wary of updating it. Newer Windows versions help, because Windows 11 and Windows Server 2019, 2022 and 2025 do not install SMBv1 at all. Microsoft also strongly advises against using SMBv1 at all.

Security teams still use WannaCry as a training example, because it shows what happens when a known fix waits too long.

Protecting Against WannaCry-Style Attacks

The defenses against this kind of worm are well known. Microsoft, CISA and the UK’s National Cyber Security Centre all gave similar advice in 2017, and it still holds.

Patch Fast and Remove SMBv1

  • Install security updates quickly: WannaCry needed a fix that was already two months old. So set a short, clear deadline for critical updates.
  • Turn off SMBv1: modern Windows does not need it. First, find which devices still use it, then remove it.
  • Replace unsupported Windows: systems that no longer get updates should be upgraded or cut off from the network.
  • Keep antivirus on: Microsoft Defender Antivirus detects and blocks this threat. Its name for it is Ransom:Win32/WannaCrypt.

Block, Separate and Back Up

  • Close file-sharing ports at the edge: use a firewall to block SMB ports, such as port 445, from the internet.
  • Split the network: network segmentation divides a network into separate zones, so a worm in one zone cannot reach the others.
  • Keep offline backups: store at least one backup copy away from the main network and test it often. If files are locked, a plan for ransomware recovery helps you restore clean data.

An Example From a Surat Textile Unit

A textile unit in Surat runs its dyeing machine from an old Windows 7 desktop. The vendor never updated the software, so the IT team cannot upgrade the computer. Instead, they turn off SMBv1, move the desktop into its own network zone and block all file sharing to it. Then they back up its settings to an offline drive each week. As a result, even if a worm enters the office network, it cannot reach that machine.

Frequently Asked Questions About WannaCry Ransomware

When did WannaCry ransomware happen?

WannaCry ransomware began spreading on Friday, 12 May 2017, and reached computers in more than 150 countries. The flaw it used was already known. Microsoft had fixed it on 14 March 2017 in security update MS17-010. Then, on 13 May 2017, Microsoft also released the fix for old Windows versions that no longer got regular updates.

Is WannaCry a virus or a type of malware?

WannaCry is malware, which means any software built to cause harm. More exactly, it is ransomware that behaves like a worm. A virus usually needs a person to run an infected file. In contrast, a worm copies itself across a network on its own. So WannaCry could spread from one weak Windows computer to the next without anyone clicking anything.

Why is WannaCry ransomware called a worm?

People call WannaCry ransomware a worm because it spread by itself. After it infected one computer, it scanned the local network and random internet addresses. It looked for other Windows computers with SMBv1 open and the MS17-010 update missing. Then it broke into each one and repeated the process. As a result, one infected laptop could put a whole office network at risk.

What is the WannaCry ransomware domain?

The WannaCry ransomware domain is the web address the worm checked before it locked any files. If the address answered, the worm stopped. Once a researcher registered the address, the spread slowed sharply. That is why CISA told companies not to block it. In plain words, the domain worked as a kill switch built into the code.

How did WannaCry affect the NHS?

The UK National Audit Office’s October 2017 count found that WannaCry affected at least 81 of the 236 NHS trusts in England. NHS trusts are the bodies that run hospitals and other NHS services. WannaCry also infected 595 GP practices, which are family doctor clinics. NHS Digital had sent alerts in March and April 2017 asking organizations to install the fix.

What was the wider impact of the WannaCry ransomware outbreak?

The outbreak showed that one missing update can disrupt hospitals and businesses across many countries at once. It also showed that company leaders need to track patching and old Windows systems, along with IT teams. For this reason, many security guides still use WannaCry to explain why fast updates, turning off SMBv1 and tested offline backups matter so much.
Use CaseStrengthen Ransomware Protection and Recovery

References

  1. The SMBv1 flaw and its fix: Microsoft Learn, Microsoft Security Bulletin MS17-010 (14 March 2017)
  2. How it spread and the advice to stop it: CISA, Indicators Associated With WannaCry Ransomware (TA17-132A)
  3. Impact on the NHS in England: UK National Audit Office, Investigation: WannaCry cyber attack and the NHS (27 October 2017)
Stay Updated

Get the Latest Terms & Insights.

New encyclopedia terms, threat intelligence, and architecture decisions, by email.

Book a Consultation

A practice principal will contact you within 1 business day.

Thank you! A Signisys principal will be in touch within 1 business day.