WannaCry ransomware is malicious software that encrypts files on Windows computers and demands Bitcoin in exchange for promised decryption. It also contains a worm component, which spreads automatically between vulnerable computers. It is best known for the worldwide outbreak in May 2017.
How WannaCry Spreads
WannaCry ransomware used EternalBlue, an exploit targeting flaws in Windows’ implementation of Server Message Block version 1 (SMBv1). SMB is a network protocol used for sharing files and other resources between computers. EternalBlue is the exploit used to take advantage of a software weakness, not the name of the vulnerability itself. By sending specially crafted requests to an affected SMBv1 service, an attacker could cause code to run on the target computer. This allowed the network service itself to become an entry point for infection.
The worm searched for reachable Windows computers with vulnerable SMB services and attempted to infect them over the network. A newly infected computer could then spread the malware further, making each successful infection another possible source of propagation. This process did not require someone at the receiving computer to open an attachment, click a link, or otherwise interact.
Which Computers Were Vulnerable
During the outbreak, exposure to WannaCry ransomware depended on the affected Windows software, whether the relevant security update had been installed, and whether its vulnerable SMB service was reachable. A computer was not vulnerable simply because it was old. Conversely, a newer computer running affected, unpatched software could still be exposed.
Reachability could include connections within a local network, not only direct exposure to the internet. Once present on a network, the worm could seek other accessible, vulnerable computers. This helped turn individual infections into broader operational disruption: loss of access to files across multiple machines could interrupt activities that depended on those files.
Looking for liquidity, exploring on-ramp/off-ramp services, or seeking expert guidance?
Get startedEncryption and Bitcoin Ransom Demands
On an infected computer, the ransomware component encrypted files, making them unreadable without the necessary decryption material. The ransom message demanded Bitcoin and offered decryption in return. The encryption function caused the immediate loss of access, while the worm function helped deliver that damage to additional computers.
Paying the demand did not guarantee that files would be recovered. A Bitcoin transfer was a payment to the attackers, not a mechanism that automatically restored access. Removing WannaCry ransomware or stopping its network spread also did not, by itself, decrypt files already affected. Containing an infection and recovering data were separate problems.
Patching and Recoverable Backups
Microsoft published security update MS17-010 on March 14, 2017, before the May outbreak. It corrected how Windows SMBv1 handled specially crafted requests, addressing the weaknesses used in this propagation route. A preventive fix therefore existed before the outbreak; availability alone did not protect machines where it had not been applied.
The practical lesson from WannaCry ransomware is to distinguish prevention from recovery. Timely patching closes the exploited weakness but does not reverse encryption that has already happened. Recoverable backups provide an alternative source of data when encrypted files cannot be decrypted. For that purpose, backup copies must remain usable and protected from the infection, and restoration should be tested rather than assumed. Backups support recovery; they do not prevent infection.
Outbreak Impact and the Kill Switch
The May 2017 outbreak disrupted organizations across many countries. The UK's National Audit Office reported that NHS England estimated more than 19,000 appointments would have been cancelled, while its directly identified cancellation count was lower. Some emergency patients had to travel to other facilities. This illustrates operational harm beyond the encrypted files themselves: unavailable systems and precautionary shutdowns can interrupt services.
In May 2017, security researcher Marcus Hutchins, known as MalwareTech, registered an unregistered domain queried by a WannaCry sample he was analyzing. Making that kill-switch domain reachable curtailed the operation of affected variants. NHS Digital explained that successful contact could stop encryption and propagation, while failed contact allowed malicious activity to proceed. This was not a universal cure for all ransomware or every WannaCry variant. It did not recover files already encrypted, replace patching or establish that an infected computer was clean. The response combined malware analysis, shared warnings, containment and recovery work rather than relying on a single discovery.