How to Recover Files Encrypted by Ransomware

Files encrypted by ransomware? Learn how ransomware works, how to protect yourself and how Bot specialists can help recover your encrypted files.

recuperar arquivos criptografados

What is ransomware?

Ransomware is a type of malware that encrypts data and files so that their owners can no longer access them. An attack can infect a single device, but it can also spread across an entire network and encrypt a much larger volume of data.

For ransomware and encrypted files, the work is done by Bot Forensics: see ransomware recovery by Bot Forensics.

What sets ransomware apart is that cybercriminals take over computers and other devices and demand a “ransom” to give back access to the data, usually paid in bitcoin or other cryptocurrencies, in transactions that are very hard to trace.

The suffix “ware” is used in words like malware and spyware to refer to software. So “ransomware” is malicious software that demands a ransom from users before they can get their encrypted files back.

 

 

Unfortunately, data available on the Statista portal show that the number of ransomware attacks worldwide per year is quite large:

  • 2014: 3.2 million
  • 2015: 3.8 million
  • 2016: 638 million
  • 2017: 184 million
  • 2018: 204.24 million
  • 2019: 187.9 million
  • 2020: 304 million

There is one important point, though: the FBI does not recommend paying the ransom in ransomware cases. Paying is no assurance that you will actually get your data back, and it encourages criminals to look for more victims and others to take up this illegal practice.

That is why the best course of action is to get help from specialists such as Bot, with more than two decades of experience in data recovery, who can propose the most suitable solution for recovering data from a ransomware attack.

What is the purpose of ransomware?

Just as in a kidnapping, ransomware turns its victims into hostages of the criminals. This carries a heavy psychological weight, and there is no certainty that access to the data will ever be restored.

Sensitive data is extremely valuable. It may include information about a company’s customers, bank details, financial spreadsheets and much more, which leaves victims in a very weak position.

The shock of a ransomware attack, combined with this emotional pressure, makes victims more likely to pay. And because the transaction is so hard to trace, it is difficult to find out who is behind the attack.

In most cases, cybercriminals are not that interested in the data itself; they simply block people and companies from accessing it in order to collect the ransom.

How did ransomware come about?

The first recorded ransomware attack was the “AIDS Trojan”, malware written by evolutionary biologist Dr. Joseph Popp in 1989. It was sent on around 20,000 floppy disks labeled “AIDS Information – Introductory Diskette” to the attendees of a WHO conference on AIDS.

Also known as Aids Info Disk or PC Cyborg Trojan, it replaced the computer’s “AUTOEXEC.BAT” file. The malware then counted how many times the computer was booted and, after 90 boots, hid directories and encrypted the names of all files on drive “C:”, making the system unusable.

After the 90th boot, the following message appeared on the screen:

recover ransomware

Source: https://upload.wikimedia.org/wikipedia/commons/e/ec/AIDS_DOS_Trojan.png

To get 365 boots from their own hard drive, victims had to pay a fee of US$189, while a “lifetime license” cost US$378. Out of curiosity: in February 2021, those amounts from January 1989 would have had the same purchasing power as US$410.48 and US$820.97, respectively.

The concept of ransomware has evolved over time, became far more dangerous with mass internet use, and cryptocurrencies have made the criminals even harder to track down.

How does ransomware infection work?

The process can be divided into three steps. The idea of encrypting a victim’s files for ransom was devised and implemented by Adam L. Young and Moti Yung at Columbia University and presented at the IEEE Symposium on Security and Privacy in 1996.

Called cryptoviral extortion, the concept was inspired by the “facehugger” creature from the 1979 film Alien, and consists of the following protocol between the criminal and the victim:

  1. [criminal → victim] The criminal generates a key pair, places the public key in the malware and releases it.
  2. [victim → criminal] To carry out the extortion, the malware generates a random symmetric key and encrypts the victim’s data with it. It then uses the public key to encrypt the symmetric key (this is called hybrid encryption), producing a small asymmetric ciphertext alongside the symmetric ciphertext of the victim’s data. The symmetric key and the original plaintext are wiped to prevent recovery, and the victim sees a message containing the asymmetric ciphertext and instructions on how to pay the ransom. The victim then sends the asymmetric ciphertext and the money to the criminal.
  3. [criminal → victim] The criminal receives the payment, decrypts the asymmetric ciphertext with the private key and sends the symmetric key to the victim, who uses it to decrypt the data. That completes the attack.

This complexity shows how carefully planned ransomware attacks are. With Bot’s help, you get the support you need to try to regain access to your data in the safest and most cost-effective way possible.

What are the most common methods for distributing ransomware?

Data from the Statista portal gives a good answer to this question, showing the main security failures and vulnerabilities behind ransomware infections:

  • Phishing or spam emails: 54%.
  • Careless or naive users: 27%.
  • Lack of cybersecurity training: 26%.
  • Weak passwords or access control failures: 21%.
  • Open RDP (Remote Desktop Protocol) access: 20%.
  • Clickbait: 17%.
  • Malicious websites or online ads: 14%.
  • Lost or stolen user credentials: 10%.
  • Lack of funding for IT security solutions: 8%.
  • Lack of buy-in from executives for security solutions: 8%.

What are the types of ransomware?

Basically, there are two types of ransomware:

Crypto ransomware

Also known as a “data locker”, this type of ransomware encrypts the files stored on a computer or mobile device in order to extort money from the victim. Encryption scrambles the contents of the files so that they become unreadable.

Crypto ransomware exploits flaws and weaknesses in computers and devices, looking for data that has not been backed up. It is a particularly cunning type of malware, because it encrypts all the valuable data before the victim notices anything.

It usually does not lock the whole computer or device, so victims can still use whatever has not been encrypted.

Locker ransomware

Locker ransomware, on the other hand, locks the entire computer or mobile device. Victims are asked to pay a ransom to get access back.

The locked system usually gives the victim only limited access. Parts of the keyboard may stop responding or the mouse may stop working, pushing the victim to do what the criminal wants.

Locker ransomware does not usually spread across the network or encrypt files. So, with the support of a specialist company like Bot, the chances of finding and removing the malware without paying the ransom are much higher.

List of ransomware: which are the best known?

A Kaspersky Lab survey of users whose computers were targeted by crypto ransomware in 2020 shows the main families. Entries marked (*) are generic detections, where the exact ransomware was probably not identified.

  • WannaCry / Trojan-Ransom.Win32.Wanna: 16.56%.
  • Trojan-Ransom.Win32.Phny(*): 11.56%.
  • Trojan-Ransom.Win32.Gen(*): 11.37%.
  • Stop / Trojan-Ransom.Win32.Stop: 7.76%.
  • Trojan-Ransom.Win32.Encoder(*): 6.66%.
  • Trojan-Ransom.Win32.Generic(*): 4.77%.
  • Trojan-Ransom.Win32.Crypren(*): 4.07%.
  • PolyRansom/VirLock / Virus.Win32.PolyRansom: 2.54%.
  • Crysis/Dharma / Trojan-Ransom.Win32.Crysis: 2.21%.
  • Trojan-Ransom.Win32.Crypmod(*): 1.83%.

In addition to these figures, we have put together a list of ransomware with some of the most common families:

  • Bad Rabbit: hit companies in Russia and Eastern Europe, spreading through a fake Adobe Flash update on compromised websites. Once a machine is infected, victims are told to pay 0.05 bitcoin.
  • Cerber: aimed at cloud-based Microsoft Office 365 users, it reached millions of users through a well-crafted phishing campaign.
  • CryptoLocker: one of the best-known ransomware families, it brought this kind of malware into the spotlight. Its botnet was taken down in 2014, but by then the attackers had extorted around US$3 million from victims. Other ransomware has copied CryptoLocker’s approach, although it is not directly linked to the original.
  • CryptoWall: gained notoriety after CryptoLocker was taken down. Distributed through spam and exploit kits, it appeared in early 2014 and has gone by many names, such as CryptoWall 2.0, CryptoWall 3.0, CryptoBit and CryptoDefense.
  • Crysis: encrypts files on fixed and removable drives and on network shares using strong encryption. It usually spreads through email attachments with double extensions, which hide the fact that they are executable files.
  • CTB-Locker: uses a different strategy. Its authors outsource the infection process to affiliates in exchange for a share of the profits, which allows for far more infections, far more quickly.
  • GoldenEye: similar to Petya, it spreads through large-scale campaigns targeting human resources departments. When the file is opened, a macro launches and encrypts the files on the computer, adding a random 8-character extension to each one. It also replaces the Master Boot Record (MBR) of the hard drive with a custom boot loader.
  • Jigsaw: encrypts files and gradually deletes them until the ransom is paid. One file is deleted after the first hour, and the number grows every hour until, after 72 hours, all remaining files are deleted.
  • KeRanger: found in a compromised installer of a popular BitTorrent client, it is not as widespread as other variants, but it is known as the first fully functional ransomware targeting Mac OS X.
  • LeChiffre: unlike most ransomware, LeChiffre has to be run manually on the compromised system. Attackers automatically scan networks for poorly secured remote desktops, log in remotely and run the malware by hand.
  • LockerGoga: has hit several European companies, such as Norsk Hydro, after getting in through a phishing email. The attack caused a global IT outage and forced the company to buy hundreds of new computers.
  • Locky: spread by email disguised as an invoice; when opened, the document looks scrambled. The victim is told to enable macros to read it and, when they do, Locky starts encrypting large volumes of data with AES.
  • Maze: discovered in 2019, it became known for leaking victims’ data, especially in the healthcare sector. Xerox also had more than 100 GB of data stolen by this group.
  • NotPetya: first listed as a variant of Petya, researchers believe it is actually a “wiper”, designed only to destroy data rather than to collect a ransom.
  • Petya: unlike other ransomware, Petya locks the entire system: it overwrites the MBR, encrypts the file system’s master file table and prevents the computer from booting.
  • Ryuk: claimed many victims, especially in 2020, in attacks on businesses, hospitals and local governments. It encrypts critical files and demands very large ransoms, often in the millions of dollars.
  • Spider: distributed by email in Europe, hidden in Word documents that install the malware on the computer when opened. The document contains malicious macros which, once run, download the ransomware and start encrypting the victim’s data.
  • TeslaCrypt: also uses AES and is usually distributed through the Angler exploit kit, mainly exploiting vulnerabilities in Adobe software. Once a vulnerability is exploited, TeslaCrypt copies itself to the Windows temporary folder.
  • TorrentLocker: usually distributed through email campaigns targeted at specific countries. It uses AES to encrypt files and, unusually, also harvests email addresses from the victim’s contact list so it can keep spreading.
  • WannaCry: one of the best known, it infected hundreds of thousands of computers in more than 150 countries, attacking Windows machines through a Microsoft vulnerability exploit known as EternalBlue.
  • ZCryptor: self-propagating malware with “worm-like” behavior: it encrypts files and infects external storage drives so it can spread to other computers.

These are among the most common, but there are many other types of ransomware with different characteristics and means of transmission, and new ones keep appearing.

What devices and systems can ransomware attack?

Windows, Linux and macOS computers, as well as Android and iOS devices. In practice, no one is completely immune.

A survey of more than 1,000 managed service providers, available on the Statista portal, asked which systems they had seen infected by ransomware (more than one answer was allowed). The results were:

  • Windows: 91%.
  • Windows Server: 76%.
  • Windows Tablet: 8%.
  • macOS: 7%.
  • Android: 6%.
  • iOS: 4%.

Windows tops the list by far, but other systems can also be infected by ransomware.

How do I know if my device is infected by ransomware?

There is no single definitive sign of a ransomware infection, as each one behaves differently, but watch out for the following:

  • Your browser or desktop is locked, with a message explaining how to pay to unlock the system;
  • Folders contain a “ransom note”, usually in a .txt file;
  • All your files have a new extension added to their names, such as .exx, .zzz, .xxx, .micro, .encrypted, .crypto, .locked, .LOL!, .RDM, .magic, .SUPERCRYPT and the like;
  • Repeated suspicious activity, often at the same time of day, as if a virus were at work.

If you notice any of these signs, disconnect the device from the network and contact Bot as soon as possible for a thorough analysis. The sooner a ransomware attack is identified, the better.

What can I do to protect myself against a ransomware attack?

Prevention is one of the best defenses against ransomware, and the following tips can help:

  • Back up regularly. If you are hit by ransomware but your data is safely backed up, you have far less to worry about. Use cloud storage with version history or external drives, and keep at least one copy disconnected from the computer, since ransomware also encrypts drives that are connected.
  • Be careful with suspicious emails and messages. If something looks odd, check with the person who supposedly sent it. If the sender is unknown, be twice as careful.
  • Do not download attachments from unknown sources. Whether it is a spreadsheet, a text document or a PDF, if you are not sure where it came from, do not open it: it could be a trap.
  • Keep your programs and operating system up to date. Updates often include security fixes, which are essential to close vulnerabilities.
  • Draw up a disaster recovery plan. A Disaster Recovery Plan (DRP) is essential, especially for businesses. It can include several steps, such as shutting down most of the network, turning off devices’ Wi-Fi and Bluetooth, and alerting the authorities.

My Files Have Been Encrypted: What Now?

If you have been hit by ransomware, the best thing to do is to seek professional help to avoid making things worse. We know this kind of infection is a huge headache, but having professionals handle it makes a big difference.

In general, victims have three options when they detect ransomware on their device:

  • Pay the ransom and hope the criminals send the decryption key (which does not happen in 30% of cases);
  • Turn to a recognized company with a proven track record in recovering encrypted data (such as Bot);
  • Reset the computer to factory settings and lose all the data.

Whatever happens, do not give in to the criminals’ blackmail. Paying the ransom is not recommended: the amounts are high, the payment is complicated, there is no certainty you will get your data back, and paying encourages this type of crime.

The other options require experience, knowledge and specialized tools, so it is important to get professional help as soon as possible. The less the affected drive is changed after the attack, the better the chances of recovery: do not format it, reinstall the system or run cleanup tools before it has been analyzed.

How do you decrypt a file?

If you think you have been hit by ransomware and want to know how to recover files encrypted by the virus, contact Bot right away, as the wrong steps can make recovery harder.

This is a highly technical procedure. Each case needs a thorough analysis by specialists with solid experience in recovering encrypted files.

Removing Ransomware Encryption

Once the infection has been analyzed, the encryption can be removed with a decryption tool, when one exists for that ransomware, or through professional file reconstruction techniques.

Different types of ransomware call for different tools, so you need professionals who can identify the strain and choose the right approach.

How does the recovery of encrypted files work?

First, our technicians analyze the situation to find the safest and most cost-effective way to recover the encrypted files.

Every possibility is assessed through a specific study of the ransomware strain, how it works and its security flaws. This tells us whether the process can be reversed to decrypt the data.

If that is not possible, our specialists carry out an in-depth analysis of the file structure, looking for traces left during the infection in order to rebuild as many files as possible.

Every possible procedure is used to increase the chances of recovering your encrypted files as efficiently and safely as possible.

It is very important to contact Bot as soon as possible, as some ransomware deletes files after a while. Besides the free standard diagnosis (up to 48 hours), we also offer priority (up to 24 hours) and urgent (up to 12 hours) options to speed things up even further.

With 24/7 support, our team will be with you every step of the way, so you have all the help you need to get through this situation.

We have a 96% success rate in the cases we receive, which reflects the quality of our work.

Don’t waste any more time: get your data out of the hands of ransomware quickly, with all the security and efficiency you deserve!

About the author
Thiago VieiraAdvogado · Perito judicial em informática forense · Bot Forensics · Perícia digital

Long before becoming a lawyer and judicial expert specialising in digital forensics, Thiago Vieira was already exploring computers at the age of six. Today, he combines technical expertise with a legal perspective to understand how digital evidence is identified, preserved and analysed. His articles explore digital forensics, incident investigation, information security and the challenges of electronic evidence, with a focus on clarity and accuracy. Away from the digital world, he enjoys playing tennis, watching science fiction films and collecting new stamps in his passport.

All articles by Thiago Vieira →

Need a digital forensics examination?

Bot Forensics examines computers and phones, preserves digital evidence and prepares expert reports.

Request forensics