Article
Ransomware examples: attacks, types and groups
Ransomware examples explained: five documented attacks, the main types of ransomware and the groups named in recent government advisories.
Quick links
Press Enter to search, Esc to close
Malware profile
WannaCry is ransomware that spreads on its own across a network like a worm and encrypts the files it finds.
In short
WannaCry is ransomware that spreads on its own across a network like a worm and encrypts the files it finds. MITRE says it was first seen in a global attack in May 2017 that affected more than 150 countries. The US and UK governments have attributed that attack to North Korean actors.
WannaCry has two parts. A worm part finds other computers on the same network segment and copies the malware to them. A ransomware part locks the user’s files and asks for payment in Bitcoin.
MITRE says the outbreak first hit IT networks and then spread to industrial networks through the same SMBv1 flaw. The CISA analysis says the dropper first tries to reach a set web address and stops if it succeeds.
Public sources use several names for this malware.
| Name | Where it appears |
|---|---|
| WannaCry | MITRE ATT&CK software S0366 and CISA alert TA17-132A[1, 2] |
| WanaCry | MITRE Associated Software[1] |
| WanaCrypt | MITRE Associated Software[1] |
| WanaCrypt0r | MITRE Associated Software[1] |
| WCry | MITRE Associated Software and CISA alert TA17-132A[1, 2] |
| WannaCrypt | CISA alert TA17-132A[2] |
| Wanna Decryptor | CISA alert TA17-132A[2] |
| .wnCry | File extension name in CISA alert TA17-132A[2] |
| WannaCry 2.0 | US Department of Justice and Treasury press releases of 6 September 2018[4, 5] |
What MITRE ATT&CK lists this malware as doing, by tactic. Each id opens our technique page where one exists, otherwise MITRE.
System Network Configuration Discovery T1016
It works out which local network segment it is on.[1]
Remote System Discovery T1018
It scans its local network segment for other systems to attack and copy itself to.[1]
File and Directory Discovery T1083
It searches for many kinds of user files by extension before encrypting them.[1]
Peripheral Device Discovery T1120
A thread checks every few seconds for newly attached drives and encrypts files on them.[1]
Exploitation of Remote Services T1210
It uses an SMBv1 flaw to spread to other systems on a network.[1, 2]
Lateral Tool Transfer T1570
It copies itself to remote computers after it gains access through the SMB exploit.[1]
Remote Service Session Hijacking: RDP Hijacking T1563.002
It lists current remote desktop sessions and tries to run the malware in each one.[1]
Data Encrypted for Impact T1486
It encrypts user files and demands a ransom in Bitcoin to decrypt them.[1]
Service Stop T1489
It tries to stop processes tied to Exchange, SQL Server and MySQL so it can encrypt their data.[1]
Inhibit System Recovery T1490
It uses vssadmin, wbadmin, bcdedit and wmic to delete and disable system recovery features.[1]
CISA and MITRE say WannaCry spread by exploiting the MS17-010 flaw in SMBv1, also known as EternalBlue. A security update for the flaw was released on 14 March 2017, two months before the outbreak. Once one computer was infected, the malware scanned its local network for other systems to exploit and copy itself to. CISA also says that, according to open sources, one possible way in may have been phishing.
The order of steps in a typical infection, as the sources describe it.
The dropper first tries to reach a hard coded web address. If the connection works, it stops. If it fails, it goes on to infect the system.[2]
The dropper installs itself as a Windows service named mssecsvc2.0.[2]
As a service, it builds a list of IP ranges on the local network and tries to connect on UDP ports 137 and 138 and TCP ports 139 and 445.[2]
If port 445 answers, it starts a thread that spreads by exploiting the SMBv1 flaw MS17-010.[2]
The dropper extracts the ransomware component from its own resources, saves it as tasksche.exe and runs it with the /i option.[2]
The ransomware encrypts user files and demands a Bitcoin ransom.[1]
A security update for the SMB flaw MS17-010 was released two months before the outbreak, according to CISA.[2]
CISA says the latest version was discovered on the morning of 12 May 2017 and spread rapidly over several hours. CISA published alert TA17-132A the same day.[2]
CISA says patches for Windows XP, Windows 8 and Windows Server 2003 were released.[2]
CISA added further analysis and new indicators to its alert.[2]
The UK Foreign Office said the NCSC assesses it is highly likely that the Lazarus Group were behind WannaCry.[6]
CISA updated TA17-132A to reflect the US attribution to the North Korean government.[2]
Ransomware with worm like features. MITRE says it was first seen in a global attack in May 2017 that affected more than 150 countries, and that it spreads using the SMBv1 exploit EternalBlue.
It exploited the SMBv1 flaw MS17-010 to move from one computer to others on a network. A security update had been released on 14 March 2017. CISA also says phishing may have been one entry route, according to open sources.
Governments attributed it to North Korea. The UK Foreign Office said on 19 December 2017 that the NCSC assesses it is highly likely that the Lazarus Group were behind it. CISA says the US Government publicly attributed it to the North Korean government, in an update of 7 June 2018. On 6 September 2018 the US Department of Justice charged Park Jin Hyok, saying the conspiracy is connected to WannaCry 2.0.
Sources differ. CISA reported tens of thousands of infections in over 150 countries. The UK Foreign Office said 300,000 computers in 150 countries, including 48 NHS trusts. The Department of Justice said hundreds of thousands.
CISA says paying does not guarantee the files will be released.
Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.