WannaCry and EternalBlue
On 12 May 2017, the WannaCry worm exploits an SMB flaw patched in March and encrypts Windows PCs in more than 150 countries.
On this page
In 30 seconds
- Where it happens
- On Windows PCs and servers on the same network, when the SMBv1 service has not received the MS17-010 update[2][4].
- What the attacker wants
- To encrypt the user's files and demand a ransom in bitcoin[4].
- The reflex
- Let Windows updates install and report to the IT department any PC that is not up to date, because the attack targeted a fix that had been available since March[3].
- If it has already happened
- Tell the IT department immediately. CISA states that paying the ransom does not guarantee that files will be returned[1].
What it is
On 12 May 2017, a ransomware called WannaCry spreads across Windows networks. An independent researcher discovers its latest version that same morning, and the first reports date from about 4 a.m. US Eastern time[1]. CISA reports tens of thousands of infections in more than 150 countries, including the United States, the United Kingdom, Spain, Russia, Taiwan, France and Japan[1].
WannaCry is a worm: it copies itself from one computer to another by exploiting EternalBlue, a flaw in the SMBv1 protocol[4]. Microsoft had released the fix for this flaw (bulletin MS17-010) on 14 March 2017[2]. Customers who had Windows Update enabled were protected[3].
Straight answers
Do you have to click on something to be affected?
Spreading from one PC to another does not go through the user. The program scans ranges of addresses on the local network and tries to connect on port 445, then exploits the SMBv1 flaw if the connection succeeds[1]. The first entry into a network is less clear: according to CISA, open sources cite phishing as a possible lead[1], and Microsoft notes that some observed attacks used malicious attachments[3].
How much ransom did it demand?
CISA reports, based on open sources, a demand of 0.1781 bitcoin, about 300 US dollars[1].
Should you pay?
CISA states that paying does not guarantee the release of files, only that the criminals receive the money and, sometimes, the victim's banking details. Decrypting the files does not remove the infection itself either[1].
Was Windows 10 affected?
Microsoft writes that Windows 10 customers were not targeted by the 12 May attack[3]. Bulletin MS17-010 nevertheless covers all supported versions of Windows, with a "Critical" severity[2].
Was an old system without support exposed?
Yes. Microsoft found that customers were using versions that no longer received standard support and so had not received the March update. On 13 May 2017, the vendor made the fix available for Windows XP, Windows 8 and Windows Server 2003[3].
Inside the attacker's head
The goal is financial. The technique MITRE calls "Data Encrypted for Impact" consists of encrypting data on a large number of machines on a network, then withholding the decryption key to obtain money[6]. To maximize the damage, these programs can have worm functions and move through the network using other techniques, including SMB shares[6].
WannaCry first looks for targets: it scans its local network segment for machines to attack and copy itself to[4]. MITRE describes this type of exploitation of remote services as a way to move from one machine to another once inside the network, and states that servers are a prime target, while workstations can be one too if they give access to other resources[5].
On 7 June 2018, CISA updated its alert to add the US government's public attribution of this variant to the North Korean government[1]. MITRE associates WannaCry with the Lazarus group[4].
What you see on screen
For the victim, files become unreadable and a ransom demand in bitcoin is made[4]. The software can run in 27 languages[1]. It looks for office files, PDFs, images, audio and video files, source code, archives, keys and certificates, then encrypts them with RSA and AES[4]. It also watches for newly attached drives, every few seconds, to encrypt their contents[4].
On the system side, it deletes or disables Windows recovery features[4] and tries to stop the processes tied to Exchange, Microsoft SQL Server and MySQL so it can reach their databases[4]. It installs itself as a service named mssecsvc2.0, with the display name "Microsoft Security Center (2.0) Service"[1].
Under the hoodIT teams
SMB is a protocol for sharing files, printers and serial ports between Windows machines on the same network[7]. Bulletin MS17-010 states that an attacker can obtain remote code execution by sending specially crafted messages to an SMBv1 server[2]. The bulletin lists the identifiers CVE-2017-0143 to CVE-2017-0148[2].
CISA's analysis describes what follows in steps. The first file is a bootstrap program that contains the ransomware and spreads through the MS17-010/EternalBlue exploit[1]. It installs itself as a service under the name "mssecsvc2.0", then scans local address ranges on UDP ports 137 and 138 and TCP ports 139 and 445[1]. If port 445 responds, it starts a thread that exploits the flaw, then drops the encryption component in "C:\WINDOWS\tasksche.exe"[1].
Before all of this, the program tries to reach a hard-coded address. If the connection succeeds, it stops. If it fails, it infects the machine[1]. At first, this domain name was not registered, which let the program spread. Within a few days, researchers found that registering the domain and letting the program connect to it greatly reduced its spread. Traffic to this domain is now redirected to a monitored, harmless server, and CISA recommends that administrators not block this traffic[1].
Neutralized illustration of the behavior CISA describes [1]:
1. [the program tries to reach a hard-coded domain name: if it answers, the program stops]
2. [otherwise, it installs itself as a service named mssecsvc2.0]
3. [it scans the local network and tries TCP port 445]
4. [if the port answers, it exploits the SMBv1 flaw described in MS17-010]MITRE also notes that WannaCry first infected computer networks, then reached industrial networks through the MS17-010 flaw[4].
Case filesReal cases
12 May 2017: a worldwide spread in a few hours
CISA dates the discovery of the latest version of WannaCry to the morning of 12 May 2017, with a rapid spread over several hours and first reports around 4 a.m. US Eastern time[1]. MITRE describes a worldwide attack affecting more than 150 countries[4]. The alert states that the fix had existed since 14 March 2017[1].
13 May 2017: a fix for unsupported systems
On 13 May, Microsoft publishes a customer guidance page. In it, the vendor announces a step it calls "highly unusual": providing the security update to everyone, including for Windows XP, Windows 8 and Windows Server 2003, which were supported only under contract[3]. It asks organizations that had not yet done so to deploy bulletin MS17-010 without delay[3].
22 May 2017: a cleanup tool
On 22 May 2017, Microsoft releases an update to its Malicious Software Removal Tool (MSRT), which detects and removes WannaCrypt on machines where Windows Update is working[3].
Sources
- CISA, “Indicators Associated With WannaCry Ransomware | CISA”, 12 May 2017. https://www.cisa.gov/news-events/alerts/2017/05/12/indicators-associated-wannacry-ransomware (accessed 10 November 2026)
- Microsoft, “Microsoft Security Bulletin MS17-010 - Critical”, 14 March 2017. https://learn.microsoft.com/en-us/security-updates/securitybulletins/2017/ms17-010 (accessed 10 November 2026)
- Microsoft, “Customer Guidance for WannaCrypt attacks”, 13 May 2017. https://www.microsoft.com/en-us/msrc/blog/2017/05/customer-guidance-for-wannacrypt-attacks (accessed 10 November 2026)
- MITRE ATT&CK, “WannaCry, Software S0366 | MITRE ATT&CK®”. https://attack.mitre.org/software/S0366/ (accessed 10 November 2026)
- MITRE ATT&CK, “Exploitation of Remote Services, Technique T1210 - Enterprise | MITRE ATT&CK®”. https://attack.mitre.org/techniques/T1210/ (accessed 10 November 2026)
- MITRE ATT&CK, “Data Encrypted for Impact, Technique T1486 - Enterprise | MITRE ATT&CK®”. https://attack.mitre.org/techniques/T1486/ (accessed 10 November 2026)
- MITRE ATT&CK, “Remote Services: SMB/Windows Admin Shares, Sub-technique T1021.002 - Enterprise | MITRE ATT&CK®”. https://attack.mitre.org/techniques/T1021/002/ (accessed 10 November 2026)
Cite this article
Brain, “WannaCry and EternalBlue”, Cyberpedia, 2026. https:/
BibTeX
@misc{brain_cp134_en_2026,
author = {Brain},
title = {WannaCry and EternalBlue},
year = {2026},
howpublished = {Cyberpedia},
url = {https://startbrain.io/cyberpedia/en/articles/wannacry-eternalblue-global-ransomware/},
note = {CC BY 4.0}
}