WannaCry ransomware attack

Wana Decrypt0r screenshot.png
Screenshot of the ransom note left on an infected system
Date 12 May 2017 – 19 May 2017
Location Worldwide
Also known as Transformations:
Wanna -> Wana
Cryptor -> Crypt0r
Cryptor -> Decryptor
Cryptor -> Crypt -> Cry
Addition of "2.0"
Short names:
Wanna -> WN -> W
Cry -> CRY
Type Cyberattack
Theme Ransomware encrypting files with $300 – $600 demand (via bitcoin)
Outcome Over 200,000 victims and more than 230,000 computers infected [1] [2]

The WannaCry ransomware attack was a worldwide cyberattack by the WannaCry [a] ransomware cryptoworm, which targeted computers running the Microsoft Windows operating system by encrypting data and demanding ransom payments in the Bitcoin cryptocurrency. [7]

The attack started on Friday, 12 May 2017, [8] and within a day was reported to have infected more than 230,000 computers in over 150 countries. [9] [10] Parts of Britain's National Health Service (NHS), Spain's Telefónica, FedEx and Deutsche Bahn were hit, along with many other countries and companies worldwide. [11] [12] [13] [14] [15] [16] [17] [18]

WannaCry spreads across local networks and the Internet [19] to systems that have not been updated with recent security updates, to directly infect any exposed systems. [5] [20] A "critical" patch had been issued by Microsoft on 14 March 2017 to remove the underlying vulnerability for supported systems, nearly two months before the attack, [21] but many organizations had not yet applied it. [22] Those still running exposed older, unsupported operating systems such as Windows XP and Windows Server 2003, were initially at particular risk but the day after the outbreak Microsoft took the unusual step of releasing updates for these operating systems too. [3] [23] Almost all victims are running Windows 7 or newer. [24]

Much of the attention and comment around the event was occasioned by the fact that the U.S. National Security Agency (NSA) had discovered the vulnerability in the past, but instead of informing Microsoft had built the EternalBlue exploit for their own offensive work. [25] [26] It was only when the existence of this was revealed by The Shadow Brokers that Microsoft became aware of the issue, and could produce a security update. [27]

Shortly after the attack began, a web security researcher who blogs as "MalwareTech" discovered an effective kill switch by registering a domain name he found in the code of the ransomware. This greatly slowed the spread of the infection, but new versions have since been detected that lack the kill switch. [28] [29] [30] [31] [32] Researchers have also found ways to recover data from infected machines under some circumstances. [24]

Within four days of the initial outbreak, security experts were saying that most organizations had applied updates, and that new infections had slowed to a trickle. [33]

WannaCry malware

WannaCry [a] is the ransomware computer worm that targets computers running Microsoft Windows. [34] Initially, the worm uses the EternalBlue exploit to enter a computer, taking advantage of a vulnerability in Microsoft's implementation of the Server Message Block (SMB) protocol. It installs DoublePulsar, a backdoor implant tool, which then transfers and runs the WannaCry ransomware package.

Several organizations have released detailed technical writeups of the malware, including Microsoft, [35] Cisco, [19] Malwarebytes, [36] and McAfee. [37]

The "payload" works in the same fashion as most modern ransomware: it finds and encrypts a range of data files, then displays a "ransom note" informing the user and demanding a payment in bitcoin. [38] It is considered a network worm because it also includes a "transport" mechanism to automatically spread itself. This transport code scans for vulnerable systems, then uses the EternalBlue exploit to gain access, and the DoublePulsar tool to install and execute a copy of itself. [19]

"Kill switch"

The software contained a URL that, when discovered and registered by a security researcher to track activity from infected machines, was found to act as a " kill switch" that shuts down the software, stopping the spread of the ransomware. The researcher speculated that this had been included in the software as a mechanism to prevent it being run on quarantined machines so that it is harder for anti-virus researchers to investigate the software; he observed that some sandbox environments will respond to all queries with traffic in order to trick the software into thinking that it is still able to access the internet, so the software queried an "intentionally unregistered domain" to verify it was receiving traffic that it should not. [39] He also noted that it was not an unprecedented technique, having been observed in the Necurs trojan. [39]

On 19 May it was reported that hackers were trying to use a Mirai botnet variant to effect a distributed attack on WannaCry's kill-switch domain with the intention of knocking it offline. [40] On 22 May @MalwareTech protected the domain by switching to a cached version of the site, capable of dealing with much higher traffic loads than the live site. [41]


The network infection vector, EternalBlue, was released by the hacker group called The Shadow Brokers on 14 April 2017, [27] along with other tools apparently leaked from Equation Group, which is widely believed to be part of the United States National Security Agency. [42] [43]

EternalBlue exploits vulnerability MS17-010 [21] in Microsoft's implementation of the Server Message Block (SMB) protocol. [34] This Windows vulnerability was not a zero-day flaw, but one for which Microsoft had released a "critical" advisory, along with a security patch to fix the vulnerability two months before, on 14 March 2017. [21] The patch was to the Server Message Block (SMB) protocol used by Windows, [44] [45] and fixed several versions of the Microsoft Windows operating system, including Windows Vista onwards (with the exception of Windows 8), as well as server and embedded versions such as Windows Server 2008 onwards and Windows Embedded POSReady 2009 respectively, but not the older unsupported Windows XP and Windows Server 2003. [21] The day after the WannaCry outbreak Microsoft released updates for these too. [3] [23]

Windows 10 did not have the vulnerability. [46]


DoublePulsar is a backdoor tool, also released by The Shadow Brokers on 14 April 2017, [27] Starting from 21 April 2017, security researchers reported that computers with the DoublePulsar backdoor installed were in the tens of thousands. [47] By 25 April, reports estimated the number of infected computers to be up to several hundred thousands, with numbers increasing exponentially every day. [48] [49] The WannaCry code can take advantage of any existing DoublePulsar infection, or installs it itself. [19] [50] [51]

Other Languages