keepcalculator

06 Numbers and Powers

WannaCryptor: How a Researcher Accidentally Stopped It

Card No. 06·25509 · Updated · Standard formula, shown below

Yes. On May 12, 2017, a British security researcher using the name MalwareTech accidentally helped slow the WannaCryptor (WannaCry) ransomware outbreak by registering a domain name the malware tried to contact. That action activated a built-in kill switch on many infected computers, but it did not remove ransomware, recover encrypted files, or protect every vulnerable system.

What happened in May 2017

WannaCry spread rapidly across networks beginning on May 12, 2017. It combined ransomware, which encrypts files and demands payment, with a worm-like ability to move between computers. The researcher later identified as Marcus Hutchins was examining a sample of the malware when he noticed that it attempted to connect to an unusual, unregistered web address.

He registered that domain to observe what the malware would do. Unexpectedly, the malware checked whether the address was reachable and stopped running its main harmful routine if it received a response. Once the domain was registered and responding, many new infections were prevented from carrying out their encryption and propagation routines.

The intervention became widely described as an accidental “kill switch.” It was not a remote shutdown of the entire outbreak: it changed the behavior of malware that had already been programmed to check that particular address.

How the kill switch worked

The malware contained a hard-coded domain name that had not been registered when the attack began. Before proceeding, an infected machine tried to reach that domain. In simplified terms, the logic was:

  • If the domain did not respond, continue the malware’s execution.
  • If it responded, stop the relevant malicious activity.

Registering the domain made it reachable, so the check returned the response that triggered the stop condition. This was a defensive side effect of the malware’s design, not a security feature intended to protect victims. Researchers have suggested that such checks can be used by malware authors to detect analysis environments, although the exact reason for this particular check was not conclusively established.

The domain registration did not send a command to each infected computer, decrypt files, or uninstall the malware. It simply caused compatible copies to stop at a particular point in their execution.

What it stopped—and what it did not

The kill switch limited the spread and impact of the original WannaCry variant, especially by preventing many additional computers from being infected and encrypted. It did not undo damage that had already happened. Files encrypted before the check took effect generally remained encrypted, and the domain did not provide victims with a decryption key.

It also did not make all systems safe. Some infected machines were not online or could not reach the domain; network filtering or other conditions could interfere with the check. Furthermore, other malware variants could change or remove the domain check. Security researchers subsequently identified variants designed to bypass the original kill switch.

So the common claim that one researcher “stopped WannaCry” is an oversimplification. His action was an important and unusually effective brake on the outbreak, but patching, network defenses, and other incident-response work were also essential.

Why WannaCry spread so quickly

WannaCry exploited a Windows vulnerability in the Server Message Block (SMB) file-sharing protocol. The vulnerability had been addressed by Microsoft security updates released in March 2017, before the outbreak. Systems that had not installed the relevant updates—and some unsupported or poorly maintained systems—were at greater risk.

The exploit used in the outbreak was associated with “EternalBlue,” a tool that had been leaked publicly. Once a vulnerable computer was compromised, WannaCry could scan for other vulnerable machines and spread across networks. That worm-like behavior meant a single infected device could contribute to a much larger incident, particularly inside organizations with connected systems.

After running, the ransomware encrypted files and displayed a ransom demand in Bitcoin. Paying did not guarantee that files would be restored. The outbreak affected organizations around the world, including the United Kingdom’s National Health Service, where disruption to some services led to canceled appointments and diverted patients.

What organizations and users should learn

The lasting lesson is not to rely on a lucky kill switch. Defenses that reduce the chance of infection and limit its spread are more dependable:

  • Install security updates promptly, including updates for operating systems and network services.
  • Replace unsupported systems where possible; where replacement is not immediate, isolate them and restrict their network access.
  • Keep reliable backups disconnected or otherwise protected from ordinary network access, and test that files can be restored.
  • Limit unnecessary SMB exposure, especially between devices that do not need to share files.
  • Use endpoint protection, monitor unusual network activity, and have an incident-response plan.

For a suspected infection, disconnect the affected device from networks to reduce the chance of further spread, then contact the organization’s IT or security team. Do not assume that registering or blocking a domain will clean an infected computer. Preserve relevant evidence and follow incident-response guidance; restoring files from a clean backup may be preferable to paying a ransom.

MalwareTech and the later legal case

The researcher initially worked anonymously under the MalwareTech name. His identity was later reported as Marcus Hutchins. In 2019, Hutchins pleaded guilty in the United States to two charges concerning the creation and distribution of a separate banking malware, Kronos, from years earlier. Those charges were not about creating WannaCry, and the case should not be confused with the 2017 kill-switch discovery. He was sentenced to time served and supervised release.

This distinction matters because summaries of the incident sometimes merge unrelated events. Hutchins’s role in slowing WannaCry was a response to malware spreading in 2017; the later criminal case concerned different malware and conduct predating the outbreak.

Frequently Asked Questions

Who stopped the WannaCry outbreak?
Marcus Hutchins, then known publicly as MalwareTech, registered the domain embedded in the malware’s kill-switch check. That helped slow the outbreak, but did not end every infection or repair affected computers.

Was stopping WannaCry intentional?
No. Hutchins registered the domain while investigating the malware and did not initially realize that doing so would trigger the stop condition.

Did the kill switch decrypt files?
No. It prevented compatible malware from continuing its harmful routine under the conditions of the domain check. It did not restore files already encrypted.

Could WannaCry infect a fully updated computer?
The outbreak’s principal spread mechanism relied on a Windows SMB vulnerability for which Microsoft had released updates before the attack. Keeping systems updated greatly reduced that specific exposure, though updates do not prevent every kind of malware infection.

Did WannaCry affect the NHS?
Yes. The UK National Health Service was among the affected organizations. Disruptions led to canceled appointments and diverted patients at some facilities.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →