[FILES ENCRYPTED BY RANSOMWARE: WHAT TO DO]
Act calmly and in this order — the first hour decides how much you get back.
Last updated
If your documents and photos suddenly have a strange extra extension — report.docx.lockbit, photo.jpg.qehu — refuse to open, and a text or HTML file appeared asking for payment, your computer has been hit by ransomware. The files are encrypted with keys the attackers hold.
No general-purpose "decrypt file online" tool can reverse this — including this one. But depending on the ransomware, there may be a free decryptor, and there are often other ways to get files back. Here is the order to work in.
[1. STOP THE SPREAD]
- Disconnect the computer from the network — unplug the cable, turn off Wi-Fi. Ransomware encrypts shared folders and network drives too.
- Disconnect external drives and backup disks that are still plugged in, before they are encrypted as well.
- Do not turn the computer off yet if you are going to call a professional: memory can hold traces that help. If you are on your own, shutting down to stop the encryption is reasonable.
- At work, call IT immediately. Ransomware in a company is an incident for the whole network, not one computer.
[2. IDENTIFY THE RANSOMWARE]
Keep the ransom note and a couple of encrypted files — do not delete them. They identify the strain, and the strain decides everything else.
Upload the ransom note and one encrypted file to ID Ransomware, a free service run by security researchers. It recognises more than a thousand families from the note's wording, the file extension and the encrypted file's structure. No More Ransom's Crypto Sheriff page does the same job and links straight to a decryptor when one exists; trying both is worthwhile, because their databases differ.
Write down, before anything changes: the exact extension added to the files, the name of the note file (for example README.txt, RESTORE_FILES.html), any email address, Tor link or "personal ID" in the note, and the date and time you first noticed. Investigators and recovery services will ask for all of it. A photo of the screen with your phone is fine.
[3. LOOK FOR A FREE DECRYPTOR]
No More Ransom, run by Europol, national police forces and security companies, offers free decryptors for well over a hundred ransomware families. They exist when researchers find a flaw in the ransomware or when police seize the attackers' servers.
Real examples show why this is worth checking. In February 2024 an international police operation took over LockBit's infrastructure, and a recovery tool for some LockBit 3.0 victims was published on No More Ransom. Security companies such as Emsisoft, Kaspersky, Avast and Bitdefender have released free decryptors for families with weak cryptography, including several STOP/Djvu variants that used an offline key. Coverage is partial: many current families have no decryptor at all.
When you do find one:
- Download it only from No More Ransom or the security vendor's own site. Fake "decryptors" carrying more malware are common.
- Read its instructions: some need a pair of files (one original and its encrypted copy) to work out the key.
- Run it on copies of the encrypted files first, so a failed run cannot damage your only versions.
If there is no decryptor today, keep a copy of the encrypted files anyway. Decryptors are sometimes released months or years later.
[4. RECOVER WITHOUT DECRYPTING]
- Backups made before the infection and kept disconnected are the surest way back. Restore only after the computer has been cleaned.
- Cloud version history. OneDrive, Google Drive and Dropbox keep earlier versions of synced files; with a Microsoft 365 subscription, OneDrive can even restore your whole OneDrive to a date before the attack.
- Windows shadow copies sometimes survive, although most ransomware deletes them. Right-click a folder → Properties → Previous Versions to see them, or run
vssadmin list shadowsin an administrator Command Prompt. An empty list means they were wiped. - The Recycle Bin and file-recovery tools. Some strains write an encrypted copy and then delete the original. A recovery tool such as PhotoRec or Recuva can sometimes bring back the deleted originals, but only if little has been written to the disk since, so do this before reinstalling anything.
- Copies elsewhere: email attachments you sent, photos still on your phone, files on a colleague's computer.
[5. CLEAN UP AND REPORT]
- Reinstall the system rather than trusting an antivirus clean-up: attackers often leave other access behind.
- Change your passwords from a clean device, especially email and banking — many strains steal saved passwords before encrypting.
- Report it to the police or your national cybercrime service — in France cybermalveillance.gouv.fr, in the United Kingdom Action Fraud (or Police Scotland), in the United States ic3.gov. A business in the EU that lost personal data may also have to notify its data protection authority within 72 hours under the GDPR (the CNIL in France). Reports feed the investigations that lead to seized keys and new decryptors.
[MISTAKES THAT MAKE IT WORSE]
- Deleting the encrypted files to "clean up". They are your only chance if a decryptor appears.
- Plugging the backup drive into the infected computer to check it. Check it on another machine, or after reinstalling.
- Running the first "ransomware decryptor" a search result offers. Many are fake, and some are paid services that just negotiate with the attackers and add a fee.
- Uploading your files to general "decrypt online" sites. They cannot help, and you hand your documents to a stranger.
- Restoring backups before the cause is found. If the attacker still has access through a stolen password or remote-desktop port, the restored files are encrypted again.
[SHOULD YOU PAY?]
Police and security agencies advise against it. Payment does not guarantee a working decryptor, marks you as a target for a second attack, and funds the next one. In some countries paying a group under sanctions is itself illegal.
It is your decision, but make it last: only after checking for a free decryptor and every backup, and ideally with professional advice.
[FREQUENTLY ASKED QUESTIONS]
Can an online tool decrypt ransomware files?
Not a general one. Ransomware uses strong encryption with keys the attackers keep. Only a decryptor built for that specific family, using a flaw or seized keys, can help — check No More Ransom.
Will renaming the files back fix them?
No. The extension was added after the content was encrypted. Renaming changes nothing about the encrypted bytes.
How do I know it is ransomware and not something else?
Ransomware leaves a pattern: many files changed at the same time, their original names kept with an extra extension, and a note in each folder explaining how to pay. A single file that will not open, with no note, is far more likely encrypted by an ordinary program or simply damaged.
Can antivirus software get my files back?
Usually not. Antivirus can remove the ransomware program, but removing it does not decrypt anything. Only a decryptor for that family, a backup, or an earlier version of the file brings the contents back.
Is it safe to keep the encrypted files?
Yes. Encrypted files cannot infect anything. Keep a copy on an external disk in case a decryptor is released later; it is the ransomware program itself that must be removed.