Ransomware recovery starts the moment you realise your files are locked, and the first decisions you make matter most. A ransomware recovery plan is not about negotiating with criminals: it is about containing the attack, checking for a free decryptor, and restoring clean backups. The central question is simple: can you get your files back without paying? Usually yes — if you have backups or a free decryptor exists — and even when neither is available, paying is the last resort.
Ransomware is malicious software that encrypts your files and demands payment, usually in cryptocurrency, to unlock them. Modern attacks often steal a copy of your data first, then threaten to publish it — double extortion — so restoring files alone does not always end the problem. This playbook walks through recovery in order: contain, identify, decrypt or restore, report, rebuild.
Key takeaways
- Disconnect the affected device immediately, and unplug backup drives before ransomware reaches them.
- Check No More Ransom for a free decryptor before considering payment.
- Restore from offline or immutable backups: a connected copy may be encrypted.
- The UK government does not condone paying ransoms, and payment guarantees nothing.
- Report to the National Cyber Security Centre and Action Fraud, and the Information Commissioner’s Office if personal data was involved.
What ransomware recovery actually means
Recovery has three parts: removing the ransomware, getting your files back, and dealing with stolen data, which only applies when attackers copied files before encrypting them. Work in order — containment, decryption, rebuilding — because restoring a backup onto an infected machine wastes the one clean copy you had.
The first hour: contain the attack
As soon as you see a ransom note or find your files unreadable, disconnect the device from the network. Pull the Ethernet cable or switch off Wi-Fi, and do the same for other devices sharing the network if you can. Ransomware spreads across shared folders and network drives, so every minute connected is a minute it can reach more files.
Unplug external backup drives and USB sticks immediately. Many variants hunt for connected backups and encrypt those too, and a drive left plugged in is often the difference between a bad day and a disaster. Do not plug it back in until the infected machine is fully cleaned.
Do not delete anything, restart the computer, or try to open encrypted files: deleting files destroys evidence and can remove the samples that identify the ransomware family. Photograph the ransom note, note the time, and list the affected files. If the machine belongs to your employer, tell your IT team straight away and follow their incident plan.
Check for a free decryptor before anything else
Before you think about paying, check whether a free decryptor exists for the ransomware that hit you. The No More Ransom project, launched in 2016 by Europol, the Dutch National Police, Kaspersky and McAfee, publishes free decryption tools for many families. Its Crypto Sheriff tool identifies the family from an encrypted file and the ransom note.
Decryptors are specific: a tool built for one family will not unlock files encrypted by another. ID Ransomware is a second free option, covering more than a thousand known strains. Only download a decryptor from the No More Ransom site or the maker’s own page — search results and video descriptions are full of fake decryptors that are themselves malware.
Remove the ransomware before you decrypt anything: while the malware runs, freshly decrypted files will be encrypted again. Our guide to malware and how it works explains the difference between removing an infection and undoing its damage: antivirus removes the ransomware, but it cannot decrypt your files.
Restore from backups
For most victims, backups are the way back. The rule security agencies recommend is the 3-2-1 rule: keep three copies of important data, on two different types of storage, with one copy off-site. It comes from a 2012 US-CERT paper, but ransomware adds a condition: at least one copy must be out of the attacker’s reach.
That means offline or immutable. A backup on a drive that stays plugged in, a folder that syncs to the cloud, or a network share the infected machine can reach are all fair game. CISA’s Stop Ransomware Guide warns that many variants deliberately find and delete or encrypt accessible backups, and advises keeping offline, encrypted backups and testing them regularly. A copy that is unplugged, or stored so it cannot be changed once written, survives an attack that wipes out everything else.
Test the backup before you trust it. Restore a few files first and check they open, then restore in order — operating system and applications first, then your data — onto a clean machine, never the infected one. Do not rely on shadow copies or built-in file history as your only backup: ransomware commonly deletes shadow copies early, and the WannaCry attack of May 2017 showed how quickly one infection spreads across a network. A backup only counts once you have proved you can restore from it.
| Recovery option | When it works | What it costs | Main risk |
|---|---|---|---|
| Restore from backups | You have a clean offline copy | Time to rebuild and restore | Backup encrypted, incomplete or untested |
| Free decryptor | A tool exists for your ransomware family | Nothing, apart from time | Covers only some versions |
| Wipe and rebuild | You can reinstall everything from scratch | Time, and any files with no copy | Data with no backup is lost |
| Negotiate and pay | Nothing else works | The ransom, plus legal risk | No guarantee of a key or deleted data |
| Accept the loss | Files are replaceable | The files themselves | Stolen data may still leak |

Should you pay the ransom?
The UK government does not condone ransomware payments, and the National Cyber Security Centre advises against paying. Payment does not guarantee your files back, it funds further crime, and it marks you as willing to pay. The NCSC and the Information Commissioner’s Office have also said paying will not keep stolen data safe and will not count as mitigation if the regulator takes action.
There is a legal risk too. Some ransomware groups are subject to financial sanctions, and paying one can itself be an offence: the government’s sanctions guidance warns that making funds available to a designated person, including through a ransom payment, is prohibited. No victim should decide that alone or in a hurry.
If you are considering payment, get advice first: your cyber insurer, a solicitor, and law enforcement. A specialist firm can check whether the attackers hold a working decryptor and whether your files are recoverable another way. Remember double extortion too: if the attackers stole your data before encrypting it, paying for a decryption key does nothing about the stolen copy, and no promise to delete it can be verified.
Report the attack
Report as soon as you have contained it. In the UK, report a significant attack to the National Cyber Security Centre through its reporting portal, and report the crime to Action Fraud on 0300 123 2040, available around the clock. Reporting helps law enforcement track the group, warn other victims, and sometimes recover keys from seized infrastructure.
If personal data was involved — customer records, employee details, health information, or anything identifying a person — you may have to tell the Information Commissioner’s Office. Under UK data protection law, a breach likely to pose a risk to people must be reported to the ICO without undue delay and where feasible within 72 hours. Our guide to data breach response walks through that assessment. Keep your incident log and evidence, and do not wipe the machine until your insurer or police confirm they need nothing more from it.
Rebuild so it does not happen again
Once the malware is gone and your files are back, rebuild the machine from scratch. Wipe the drive and reinstall the operating system and applications from known-clean sources, rather than trusting a cleanup: an infection can leave behind back doors a scan will miss, and a fresh install is the only way to be sure.
Then find how the attackers got in and close that door. Most ransomware arrives through a phishing email, an unpatched internet-facing service, or a weak remote access password. Our guide to phishing and how it works explains why fake login pages and malicious attachments are so effective, and why pausing before you click is the cheapest defence you have.
Change your passwords from a clean device, starting with email and any account sharing a password with the infected machine. Our guide to password security covers building strong unique passwords and storing them safely. Turn on two-factor authentication everywhere offered, apply pending updates, and fix your backups: set up the 3-2-1 arrangement, keep one copy offline, and test a restore.
Your ransomware recovery checklist
Work through this list in order.
- Disconnect from the network and unplug all backup drives.
- Photograph the ransom note and start a written incident log.
- Identify the family with Crypto Sheriff or ID Ransomware.
- Check No More Ransom for a free decryptor for that family.
- Remove the ransomware before decrypting or restoring anything.
- Restore from your cleanest offline backup, testing a few files first.
- Report to the NCSC and Action Fraud, and the ICO within 72 hours if personal data was involved.
- Get legal and insurer advice before considering a ransom payment.
- Wipe and reinstall the affected machine from known-clean sources.
- Close the entry point, change passwords, and turn on two-factor authentication.
Frequently asked questions
Can ransomware be removed without losing files?
Sometimes. Antivirus can remove the ransomware, but it cannot decrypt your files. Those come back through a free decryptor, if one exists for your family, or a clean backup. If neither exists, the files are effectively lost.
How long does ransomware recovery take?
It depends. A home computer with a good backup can be rebuilt in a day; a business with many infected machines and no tested backups can take weeks. What matters is clean backups and how many systems were hit.
Is it illegal to pay a ransom in the UK?
Paying a ransom is not itself a criminal offence in the UK, but paying a sanctioned person or group can breach financial sanctions law. The government does not condone payments, so take legal advice first.
What if the attackers stole my data as well as encrypting it?
Then you have a data breach as well as an encryption incident. Restoring files does not undo the theft, and you may need to notify the ICO and the people whose data was taken.
Should I restart my computer when I see the ransom note?
No. Restarting can trigger further encryption, destroy evidence, or stop you identifying the family. Disconnect from the network, photograph the ransom note, and leave the machine alone until you have a plan.
The bottom line
Ransomware recovery is a sequence, not a single action: contain, identify, check for a free decryptor, restore from clean backups, report, rebuild. The work that decides whether you recover is mostly done before the attack, in offline backups and tested restores.
Paying the ransom looks fastest and delivers the least: no guarantee, it funds the next attack, and it may break sanctions law. Exhaust the free options first, get advice before you pay anything, and treat the attack as the warning it is: fix the backups, close the entry point, and make the next attempt fail.
Disclaimer: this article is general guidance, not legal advice. Ransomware recovery can involve reporting duties, data protection law and financial sanctions, and the right course depends on your situation. If you are dealing with an active attack, contact a qualified incident response professional, your insurer and law enforcement, and take legal advice before deciding about paying a ransom.







