Security Market Segment LS
Sunday, 14 May 2017 17:43

UK researcher unknowingly ends ransomware attack Featured


The Windows ransomware attacks that occurred over the weekend, putting British patients' lives at risk and paralysing organisations in nearly 100 other countries, was stopped in its tracks purely by accident.

The ransomware was a modified version of the WannaCrypt0r toolkit, one of those released by a group called Shadow Brokers in April. Security firms gave it the arbitrary name WannaCry or Wanna Decrypt0r.

A 22-year-old British researcher, who has chosen to remain unknown and only identifiable by his Twitter handle, MalwareTech, was examining the massive attack when he looked at the source code of the malware and found a domain name within.

Domain name.

Graphic courtesy Cisco's Talos blog.

He reasoned that this could be a command and control server and promptly registered the domain (seen in the screenshot above) which appeared to be a random name, comprising letters from the top two rows of a keyboard. It cost him just US$10.69.

This was in order to create a sinkhole so he could examine the malware further.

But his action unwittingly stopped the malware from spreading as it had been programmed to check this domain, and continue spreading if it could not access the domain. Once MalwareTech registered the domain, it was accessible, and once this happened the attacks gradually slowed down.

digital theft

It appears that the attackers had put in this domain name so that they would have a means of stopping attacks when they deemed fit, by registering the same.

Explaining what the code was doing, he wrote: "All this code is doing is attempting to connect to the domain we registered and if the connection is not successful it ransoms the system, if it is successful the malware exits (this was not clear to me at first from the screenshot as I lacked the context of what the parent function may be doing with the results)."

But by then, nearly 100 countries had been affected. Britain bore the brunt of attacks on essential services with hospitals belonging to the National Health Service being hit and patients having to be diverted to other hospitals. Russia, India, Germany, Spain, the US and Turkey.

However, a researcher from Kaspersky Lab told the Motherboard website that a version of WannaCry without the domain name had now surfaced. Hence if new attacks were launched, then they would succeed.

While some security companies like CrowdStrike — which came under a cloud last year after providing security to the Democratic National Committee during the email leaks and then failed to call in the FBI to check the servers after the compromise — claimed that the "targeting was likely in bulk, via massive phishing campaigns", there was no evidence of this.

Analysts from other companies noted that there appeared to be two dimensions to the infections: initially, there were probes by the malware to see if ports 445 and 139 on Windows machines were open externally and whether the Windows operating systems in question were vulnerable.

If this condition was satisfied, then the actual ransomware was downloaded and executed on the server in question.

In a detailed blog post about the incident — modestly headlined "How to accidentally stop a global cyber attack" — MalwareTech wrote that a standard model of looking for wayys to track and stop malware went like this:

  1. "Look for unregistered or expired C2 domains belonging to active botnets and point it to our sinkhole (a sinkhole is a server designed to capture malicious traffic and prevent control of infected computers by the criminals who infected them).
  2. "Gather data on the geographical distribution and scale of the infections, including IP addresses, which can be used to notify victims that they’re infected and assist law enforcement.
  3. "Reverse engineer the malware and see if there are any vulnerabilities in the code which would allow us to take-over the malware/botnet and prevent the spread or malicious use, via the domain we registered.

"In the case of WannaCrypt, step 1, 2 and 3 were all one and the same, I just didn’t know it yet," he wrote..

MalwareTech, who works for a small security firm known as Kryptos Logic, said initially he heard from others that registering the domain had triggered the malware to continue. But later he heard the opposite from a researcher at security firm ProofPoint.


26-27 February 2020 | Hilton Brisbane

Connecting the region’s leading data analytics professionals to drive and inspire your future strategy

Leading the data analytics division has never been easy, but now the challenge is on to remain ahead of the competition and reap the massive rewards as a strategic executive.

Do you want to leverage data governance as an enabler?Are you working at driving AI/ML implementation?

Want to stay abreast of data privacy and AI ethics requirements? Are you working hard to push predictive analytics to the limits?

With so much to keep on top of in such a rapidly changing technology space, collaboration is key to success. You don't need to struggle alone, network and share your struggles as well as your tips for success at CDAO Brisbane.

Discover how your peers have tackled the very same issues you face daily. Network with over 140 of your peers and hear from the leading professionals in your industry. Leverage this community of data and analytics enthusiasts to advance your strategy to the next level.

Download the Agenda to find out more


Sam Varghese

website statistics

Sam Varghese has been writing for iTWire since 2006, a year after the site came into existence. For nearly a decade thereafter, he wrote mostly about free and open source software, based on his own use of this genre of software. Since May 2016, he has been writing across many areas of technology. He has been a journalist for nearly 40 years in India (Indian Express and Deccan Herald), the UAE (Khaleej Times) and Australia (Daily Commercial News (now defunct) and The Age). His personal blog is titled Irregular Expression.



Recent Comments