Skip to content
Info disclosure Disclosed report Intermediate

WannaCrypt “Killswitch”

The WannaCry ransomware made an HTTP request to an unregistered domain name and only proceeded to encrypt files and spread if that request failed. By registering the domain, researchers made the request succeed, causing the malware to exit early and halting its spread.

malwaretech Follow

Originally disclosed on HackerOne

  • Fixed in under an hour
  • Paid in 2 days
  • Disclosed after under an hour

WannaCrypt (a.k.a. WannaCry) is the name of a malware used in the May 2017 global ransomware attack targeting Microsoft Windows operating systems via known vulnerabilities leaked by The Shadow Brokers.

In MalwareTech’s research, it was found that the malware sends an HTTP request to a seemingly random domain name in the early stages of its execution. If the HTTP call fails, the malware encrypts the user’s files, requests ransom, and will spread to other vulnerable machines. If the HTTP call is successful, the malware exits, halting encrypting files and spreading itself.

Malware Tech also discovered that the domain name used in the malware’s HTTP request was available for sale and was able to register it. The malware relied on the domain name being unregistered so the HTTP call would always fail and it would continue to spread. By registering the domain name, it was possible to make the malware’s HTTP call return successfully. This resulted in the malware exiting early on new infections and effectively stopped this variant of the malware from spreading further.

Original disclosure: https://www.malwaretech.com/2017/05/how-to-accidentally-stop-a-global-cyber-attacks.html

The original report as published on HackerOne, by malwaretech. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the malware included a check that aborted it if a specific domain resolved, and that domain was left unregistered.

Impact

Registering the domain effectively stopped this variant of the malware from spreading further, though the text does not claim it helped already-infected machines.

What the attacker needed

Ability to register the domain; malware variant with this check

How it was found

  1. Observe that the malware sends an HTTP request to a domain early in execution.
  2. Note that if the request fails, the malware encrypts files and spreads.
  3. Register the unregistered domain so the request succeeds.
  4. The malware exits early on new infections, stopping this variant from spreading.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Ransomware is malicious software that locks your files and demands payment. This particular ransomware checked a web address before doing damage; if the check failed, it went ahead. Researchers bought that web address so the check succeeded, and the malware stopped itself.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.