Ransomware
- Summary
-
Discussion
- What are the types of ransomware?
- What are the steps by which a crypto ransomware infects a system?
- What are the potential entry points for a ransomware?
- How is cryptography used by crypto ransomware?
- What are some variations among ransomware out there?
- Could you name some ransomware attacks that caused significant damage?
- Is the Internet-of-Things (IoT) vulnerable to ransomware?
- How can I protect myself from ransomware?
- Milestones
- References
- Further Reading
- Article Stats
- Cite As
Ransomware is a type of malicious software that first infects a computer system. Once infected, users of the system can no longer access the system or parts of it. This means that important data stored on the system will no longer be accessible. If these systems are part of an organization, normal operations will be affected.
Those who control and distribute such ransomware often demand a payment (aka ransom) from the users. Once payment is done, often via untraceable cryptocurrencies, affected users are allowed to regain access to their system. Without a payment, it's often difficult if not impossible to regain access.
Since 2013, ransomware has become more sophisticated with the use of public key cryptography. The best defence is to adopt best practices in computer and network security, as well as user awareness.
Discussion
-
What are the types of ransomware? There are basically two types of ransomware:
- Lockers: These deny access to the infected device and severely limit user interaction. Screen may display information on how to make payment. Mouse interaction may be disabled and only a few keys on the keyboard may be enabled to enter payment information. System files and user data are usually untouched. With lockers, tech savvy users with the right tools may be able to unlock the device and avoid the ransom. Lockers use social engineering to pressurize users into paying up.
- Cryptos: These identify important files on the system and prevent user access to these files. In most cases, they encrypt the files. Cryptos work silently in the background until files have been encrypted and then they inform the user. User can still use the infected device but without access to important data, and without proper backup, they usually have no choice but to pay up.
-
What are the steps by which a crypto ransomware infects a system? Crypto ransomware usually works in stages:
- Arrival: Ransomware gets triggered when user click a link in email or website. It downloads itself into the system and starts running in the background.
- Contact: It contacts its command and control (C&C) server to exchange configuration information. This may include cryptographic keys for later use.
- Search: It searches the system for important files by their file types.
- Encryption: It then generates encryption keys that might involve keys exchanged earlier with C&C. These keys are used to encrypt files identified by its search. Telltale signs include slowdown of the system and flickering of the hard drive light.
- Ransom: User is displayed the ransom messages once all identified files have been encrypted.
-
What are the potential entry points for a ransomware? Ransomware can arrive by email that can contain a link or an attachment. If it's a link, the user is lured to click it, download a file and execute it. If it's an attachment, the user is lured to open it. Attachments could be Microsoft documents, XML document, Zip file containing JavaScript file or a file with multiple extensions. JS script upon execution will download the ransomware. Microsoft documents may contain the ransomware embedded in them as a macro.
Ransomware could also arrive when user visits a malicious or compromised website. This is done using exploit kits. Some of these include Angler, Neutrino and Nuclear. These kits probe the user's device for vulnerabilities and exploit them immediately. These can spread more easily since they can infect without users clicking or downloading anything.
A common way to lure unsuspecting users is via what's called phishing. An email or website attempts to pass itself off as a trusted service provider. Text is worded in a manner that sounds convincing and legitimate. This is called social engineering.
-
How is cryptography used by crypto ransomware? Cryto ransomware uses a combination of symmetric keys and asymmetric keys. Typically, the symmetric key is used to encrypt the files while the asymmetric public key is to encrypt the symmetric key. Thus, to decrypt the files one requires the symmetric, which can be decrypted only when asymmetric private key is available. Asymmetric private key is kept secret at the C&C server.
For example, CryptoDefense uses a randomly generated AES key to encrypt files but this key itself is encrypted using RSA. RSA public key itself is downloaded from the C&C server. CTB-Locker does something similar except that RSA public key is embedded in the ransomware so that the attack can be completed even without an Internet connection. In fact, CTB-Locker uses a combination AES, SHA256 and ECDH (curve25519).
Cerber uses RC4 for encryption and involves an extra step of RSA key-pair generation. Petya uses ECDH (secp192k1) and SALSA20 algorithms.
-
What are some variations among ransomware out there? Ransomware come in many variations. They constantly evolve so that countermeasures are made ineffective. Here are some variations:
- WannaCry was also a worm, able to spread itself to other devices on the network without user intervention.
- WannaCry gave a deadline for payment and threatened that ransom would go up if not complied.
- In addition to denying users access, RAA ransomware and MIRCOP stole passwords and sent them to the C&C server.
- Many used social engineering to confuse and intimidate users, saying that users had broken the law in some way. If ransom is unpaid, they would be reported to the police.
- While most ransomware were executables (.exe, .dll), others used a scripting language: JScript for Cryptowall 4.0's downloader and RANSOM_JSRAA.A; PowerShell script for PowerWare.
- Jigsaw regularly deleted encrypted files until the ransom was paid. CryptoLocker instead threatened to delete private encryption key, which meant that data could never be recovered.
- Petya, Satana, and GoldenEye modified the hard drive MBR (Master Boot Record) with a custom boot loader.
- CTB-Locker used partners and revenue sharing to spread faster.
-
Could you name some ransomware attacks that caused significant damage? Ransomware can affect any device including laptops, servers and smartphones. Ransomware can affect home users and lock them out of their personal data. It can affect organizations such as hospitals, schools, government agencies, and more. Attackers don't care who's the target but they do set the ransom based on what they think the victims are likely to pay.
In February 2016, Hollywood Presbyterian Medical Center was infected by Locky ransomware. Ransom was 40 Bitcoins, about $17,000. San Francisco's transit system, Muni, was attacked in November 2016. Ransom was $73,000 in Bitcoins. In January 2017, Austrian hotel Romantik Seehotel Jaegerwirt was attacked. Electronic room keys did not work and the reservation system was paralyzed. The attackers demanded payment of $1,800 in Bitcoins. In June 2017, University College of London was attacked. The city of Atlanta was crippled for five days by ransomware demanding $51,000. Boeing plant in Charleston was hit by WannaCry in March 2018.
-
Is the Internet-of-Things (IoT) vulnerable to ransomware? With IoT, the attack surface widens: thermostats, security cameras, smart locks, connected cars, power grids and other industrial systems can all get infected. Unlike traditional ransomware that prevent users from accessing their data, IoT data is often in the cloud. Instead, ransomware in IoT will be about paralyzing systems: traffic jams, power outages, malfunctioning equipment, etc.
In 2016, Mirai botnet infected more than 600,000 IoT devices and then used these devices to launch a distributed Denial of Service (DDoS) attack on web services. Although Mirai was not a ransomware, it showed the potential of using IoT devices for large scale attacks. Mirai was possible because IoT devices at the time were (and perhaps even now are) less secure than enterprise IT systems. Mostly, routers and cameras were compromised. Users often use default credentials, don't upgrade or even login to these devices.
A variety of IoT devices exist and any ransomware must have variants or mutate on its own to infect this variety. Since many IoT devices lack display, ransomware will also need to figure out emails and phone numbers to notify users about the ransom.
-
How can I protect myself from ransomware? Take regular backups of critical data. Keep your security software and OS updated on a regular basis. Be wary of unexpected mails with links or attachments. Be wary of Microsoft Office attachments that ask you to enable macros.
If infected, disconnect the affected device from your network. Scan all other devices on your network. Identify the ransomware and try recovery if possible. If not, reformat device and restore data from clean backups. Report the incident to local authorities.
Milestones
2013
Ransomware gets modern and sophisticated with the release of CryptoLocker. It uses RSA public-key cryptography and keeps the private key safe at its command and control (C&C) server. The attack lasts from September 2013 to May 2014, in which period it collects $3 million from its victims. An improved version called CryptoLocker 2.0 arrives in December. It uses Tor and Bitcoin for anonymity and it's not detected by anti-virus or firewall.
The number of variants of ransomware increases dramatically in 2016. From Q4-2015 to Q1-2016, ransomware increases by 3,500% and payments increase tenfold. The US Justice Department states that in 2016 ransomware attacks increased four times to 4,000 a day. MAC OSX gets infected by KeRanger via Transmission BitTorrent client.
2017
Ransomware WannaCry exploits a vulnerability in the SMB protocol, a vulnerability present in old unsupported versions of Windows. The attack is contained within a few days but not before it infects 200,000 computers across 150 countries. Kaspersky Lab reports that 98% of the successful attacks were on computers running Windows 7.
2017
Using the same SMB vulnerability that WannaCry exploited, once seeded, NotPetya spreads to computers on its own without needing spam emails or social engineering. It encrypts the Master Boot Record (MBR) and lot more. It tricks users into paying a ransom but in fact the encryption process is irreversible.
References
- Bilefsky, Dan. 2017. "Hackers Use New Tactic at Austrian Hotel: Locking the Doors." NY Times, January 30. Accessed 2018-06-04.
- Blinder, Alan and Nicole Perlroth. 2018. "A Cyberattack Hobbles Atlanta, and Security Experts Shudder." NY Times, March 27. Accessed 2018-06-06.
- Brenner, Bill. 2017. "5 ransomware as a service (RaaS) kits – SophosLabs investigates." December 13. Accessed 2018-06-04.
- Brunau, Chris. 2018. "Common Types of Ransomware." Datto, January 24. Accessed 2018-06-04.
- Bursztein, Elie. 2017. "Inside the infamous Mirai IoT Botnet: A Retrospective Analysis." Cloudflare Blog, December 14. Accessed 2018-06-06.
- Dickson, Ben. 2018. "The IoT ransomware threat is more serious than you think." IoT Security Foundation. Accessed 2018-06-06.
- F-Secure. 2018. "Crypto-ransomware." Knowledge Base, F-Secure, None. Accessed 2018-06-04.
- Fruhlinger, Josh. 2017a. "What is ransomware? How it works and how to remove it." CSO, IDG Communications, November 13. Accessed 2018-06-04.
- Fruhlinger, Josh. 2017b. "Petya ransomware and NotPetya malware: What you need to know now." CSO, IDG Communications, October 17. Accessed 2018-06-04.
- Gray, Kevin. 2017. "5 most common types of ransomware." Envision IT Solutions. Accessed 2018-06-04.
- Hayes, Ladan Nikravan. 2018. "The History of Ransomware: Where it started and where it's going." SpiderOak. Accessed 2018-06-04.
- Hu, Yimi. 2017. "A Brief Summary of Encryption Method Used in Widespread Ransomware." InfoSec Institute, January 13. Accessed 2018-06-06.
- Laffan, Kieran. 2015. "A Brief History of Ransomware." ISBuzz News, December 15. Accessed 2018-06-04.
- Rodriguez, Joe Fitzgerald. 2016. "Alleged Muni 'hacker' demands $73,000 ransom, some computers in stations restored." SF Examiner, November 27. Accessed 2018-06-04.
- Savage, Kevin, Peter Coogan, and Hon Lau. 2015. "The evolution of ransomware." Version 1.0, Symantec, August 6. Accessed 2018-06-04.
- Sienko, Chris. 2018. "Ransomware Case Studies: Hollywood Presbyterian & The Ottawa Hospital." InfoSec Institute. Accessed 2018-06-06.
- Sophy, Joshua. 2017. "98 Percent of WannaCry Hacks Were on Windows 7 Computers." Small Business Trends, May 24. Accessed 2018-06-04.
- Statt, Nick. 2018. "Boeing production plant hit with WannaCry ransomware attack." The Verge, March 28. Accessed 2018-06-06.
- Symantec. 2018. "What is ransomware?" Symantec. Accessed 2018-06-04.
- Takahashi, Dean. 2017. "Ransomware has exploded thanks to Bitcoin's anonymity." VentureBeat, February 19. Accessed 2018-06-04.
- Tech Advisor. 2017. "IoT gets more and more attractive to ransomware." Tech Advisor, IDG UK, October 13. Update 2017-10-17. Accessed 2018-06-06.
- Trend Micro. 2016a. "How Endpoint Solutions Can Protect Businesses Against Ransomware." TrendLabs Security Intelligence Blog, July 18. Accessed 2018-06-04.
- Trend Micro. 2016b. "Ransomware: Behind the Scenes." Trend Micro Security News, August 19. Accessed 2018-06-04.
- Trend Micro. 2016c. "JScript-toting Ransomware Can Steal Your Passwords and Bitcoin Wallets, Too." TrendLabs Security Intelligence Blog, June 20. Accessed 2018-06-04.
- Wikipedia. 2018a. "WannaCry ransomware attack." Wikipedia, May 31. Accessed 2018-06-04.
- Wikipedia. 2018b. "CryptoLocker." Wikipedia, May 7. Accessed 2018-06-04.
- Wright, James. 2017. "See Our Threat Analysis of University College London Ransomware Attack." Bromium, June 16. Accessed 2018-06-06.
- Zaharia, Andra. 2017. "What is Ransomware – 15 Easy Steps To Protect Your System." Heimdal Security, May 15. Accessed 2018-06-04.
- Zairon. 2015. "CTB-Locker encryption/decryption scheme in details." Wordpress, February 17. Accessed 2018-06-06.
Further Reading
- Kaspersky Lab. 2016. "What is Ransomware, How it Works and What You Can Do to Stay Protected." YouTube, December 6. Accessed 2018-06-04.
- Zaharia, Andra. 2017. "What is Ransomware – 15 Easy Steps To Protect Your System." Heimdal Security, May 15. Accessed 2018-06-04.
- Savage, Kevin, Peter Coogan, and Hon Lau. 2015. "The evolution of ransomware." Version 1.0, Symantec, August 6. Accessed 2018-06-04.
- Hu, Yimi. 2017. "A Brief Summary of Encryption Method Used in Widespread Ransomware." InfoSec Institute, January 13. Accessed 2018-06-06.
- Hayes, Ladan Nikravan. 2018. "The History of Ransomware: Where it started and where it's going." SpiderOak. Accessed 2018-06-04.
- Dickson, Ben. 2018. "The IoT ransomware threat is more serious than you think." IoT Security Foundation. Accessed 2018-06-06.
Article Stats
Cite As
See Also
- Public Key Cryptography
- RSA Algorithm
- Phishing
- Cryptocurrency
- Diffie-Hellman Key Exchange
- Password Hashing