Guide Guides

Ransomware encrypted my files: what to do (and what not to do)

Your documents and photos won't open, they have an odd new file extension, and a note on the desktop says you will only get them back if you pay. That is ransomware. Panicking now does more damage than the attack itself – here is what to do, in the order it matters, for a home computer or a small business.

Kyberkit editorial team · · reading time 7 minutes · For everyone

Guide: Ransomware

Key points

  • Disconnect the affected computer from the internet and any work network, and unplug external drives. Ransomware can spread to other devices and shared folders.
  • Don't pay. The UK's NCSC, the Czech police and Microsoft agree: paying does not guarantee you get your data back, and paying victims get targeted again.
  • Photograph the ransom note and write down the new file extension. They help you check No More Ransom for a free decryptor for that strain.
  • Restore from a backup or from OneDrive only after the computer has been cleaned or reinstalled – otherwise the files get encrypted again.
  • Business or work laptop? Call IT now, don't delete anything, and report the attack. If personal data may have been taken, the 72-hour GDPR reporting clock is running.

What to do right now (first hour)

Order Step Why
1 Disconnect from the network – Wi-Fi, cable, VPN – and unplug external drives ransomware encrypts any drive or shared folder it can reach
2 Photograph the ransom note and note the new file extension they identify the strain and help you look for a decryptor
3 Don't pay and don't negotiate paying guarantees nothing and marks you as a payer
4 Business: call IT and management, delete nothing, switch nothing off evidence shows how the attacker got in and what they took
5 Report it – police, and for organisations the national cyber authority ransomware is a crime; police investigate and collect decryption keys

How to tell it is ransomware

  • Files won't open and have a new extension, often random letters or the name of the gang.
  • Every folder has a new text file or image with instructions (for example "README" or "HOW_TO_DECRYPT"), and the desktop wallpaper has changed to a ransom demand.
  • The note demands payment in cryptocurrency by a deadline and often threatens to publish stolen data.

Watch out for fake ransomware: a browser window claiming your computer is "locked by the police" and demanding a fine or a call to "support". Your files are not actually encrypted – it is a tech support scam. Close the browser (using Task Manager if needed) and don't call anyone.

How a ransomware attack usually unfolds – from getting in to extortion1. The attacker gets in – an attachment, a cracked program, a stolen remote desktop or VPN password, an unpatched flaw; 2. They look around, find valuable data and backups, and in businesses often copy the data out; 3. They encrypt everything they can reach, including connected drives and shared folders; 4. They leave a ransom note and threaten to publish the data1The attacker gets in – an attachment,a cracked program, a stolen remotedesktop or VPN password, an unpatchedflaw2They look around, find valuable dataand backups, and in businesses oftencopy the data out3They encrypt everything they canreach, including connected drives andshared folders4They leave a ransom note and threatento publish the data
A typical ransomware attack

1. Disconnect and stop the spread

Turn off Wi-Fi, unplug the network cable, disconnect the VPN and every USB and network drive. If other computers share the same folders or are signed in to the same OneDrive or Google Drive account, check whether encryption is spreading to them too – and if so, disconnect them as well.

Don't sign in to anything on the affected computer and never plug your backup drive into it.

2. Find out which ransomware it is

Go to nomoreransom.org, a project run by Europol, police forces and security companies that collects free decryption tools. The Czech police said in August 2022 that it offered 136 tools for 165 ransomware variants and had helped more than 1.5 million people.

  1. Have the ransom note and one encrypted file that contains nothing sensitive ready.
  2. On No More Ransom, open Crypto Sheriff (the question "Need help unlocking your digital life…?" → Yes) and follow the instructions. You can also search the list of decryptors by name if the note names the ransomware.
  3. If a decryptor exists, download it only from No More Ransom or the website of the security vendor listed there, and follow its instructions.

Be realistic: the NCSC warns that files encrypted by most ransomware cannot be decrypted by anyone except the attacker. Decryptors mostly exist for older or amateurish strains. Keep the encrypted files anyway, on a disconnected drive. Keys sometimes surface later, for example after police take down a gang.

3. Don't pay

The NCSC sums up why law enforcement does not encourage paying: there is no guarantee you will get access to your data, your computer will still be infected, you will be funding criminal groups, and you are more likely to be targeted in the future. Microsoft gives the same advice: don't pay to recover your files.

From our own incident work: the attackers' decryption tools are often slow and buggy, and a promise to "delete the data" is worth nothing – stolen data often turns up for sale even after a payment.

4. Clean or reinstall the computer

Microsoft advises cleaning the PC fully with Windows Security (Virus & threat protection) before you try to recover files. But ransomware is usually the last stage of an attack – a backdoor or an infostealer that took your passwords may still be there.

That is why we recommend wiping the computer and reinstalling from the operating system up. Don't copy anything off the affected machine (except the encrypted files, onto a disconnected drive, in case a decryptor appears). After reinstalling, change your passwords from a different, clean device – email, banking and any accounts saved on that computer – and turn on two-step verification.

5. Restore your data

From a backup. Connect the backup only to the cleaned or reinstalled computer. The NCSC advises scanning backups for malware before restoring, because the ransomware may have reached them before you noticed the attack.

From OneDrive. If your documents and desktop were synced to OneDrive, the encryption will have synced too, but it can be undone:

  1. First clean every device that uses OneDrive. Microsoft warns that otherwise your files could get encrypted again when you restore them.
  2. On the OneDrive website, open Settings → Restore your OneDrive and pick a date before the attack. OneDrive can roll the whole drive back to any point in the last 30 days; files created after that date go to the recycle bin, where you can still recover them.
  3. Full restore is a Microsoft 365 subscription feature. According to Microsoft, if you are not a subscriber your first ransomware notification and recovery is free. For individual files, version history also helps.

Elsewhere: photos are often also on your phone, in Google Photos or iCloud, and documents may be sitting in your email as attachments.

For businesses: duties and reporting

  • Police: in the UK, the NCSC asks organisations to report incidents at report.ncsc.gov.uk and encourages reporting to the Report Fraud service; in the US, report to the FBI's IC3. In the EU, contact your national police and CSIRT.
  • Personal data: if attackers may have accessed customer or staff personal data, it is a personal data breach under Article 33 of the GDPR. The supervisory authority must be notified within 72 hours of becoming aware of it (in the UK, the ICO under the UK GDPR).
  • Regulated organisations (NIS2, critical infrastructure) have their own reporting deadlines – see our compromised server guide.
  • Outside help: the NCSC lists certified companies under its Cyber Incident Response scheme for organisations that need support.

How to avoid it next time

  • A backup ransomware can't reach. The NCSC says it is essential to always have a recent offline backup of your most important files. At home, an external drive you unplug after each backup plus cloud storage with version history is enough. Test restoring a file now and then – an untested backup is just hope.
  • Update your system, apps and devices – especially routers, NAS boxes and VPNs.
  • Controlled Folder Access in Windows 10 and 11 – Microsoft recommends turning it on in Windows Security so unknown programs can't change your important folders.
  • No cracked software and no unexpected attachments – they are the most common way in, for ransomware too.
  • Remote desktop and VPN only with two-step verification, never with a password alone.

FAQ

I have no backup. Should I pay?

Law enforcement advises against it. The NCSC points out that paying gives no guarantee you will get your data back, leaves the computer infected and makes you more likely to be targeted again. Before anything else, check No More Ransom, OneDrive version history, and old drives or your phone, which may hold copies of photos. Keep the encrypted files – a decryptor may appear later.

A company promises to recover my data without paying the ransom. Is that safe?

Be careful. Some 'recovery' firms quietly pay the attackers and add their own fee on top – see our story on the US indictment of one such firm. Free decryptors from police and security vendors are on nomoreransom.org. And anyone who calls you out of the blue offering to clean up your computer is a scammer – hang up.

Should I turn the computer off?

For a home computer, disconnecting the network and external drives is what matters; you can switch it off. For a work computer or a server, don't switch anything off or delete anything until IT or the incident response team says so – memory and logs can show how the attacker got in.

The attackers threaten to publish my data. What now?

Modern ransomware groups often steal data first and encrypt it afterwards, so restoring from backup fixes availability, not the leak. Under Article 33 of the GDPR (and the UK GDPR), an organisation whose customer or staff personal data may have been exposed must notify the supervisory authority within 72 hours of becoming aware – in the UK that is the ICO. Paying does not guarantee the data stays private.

My external backup drive got encrypted too. Why?

Because it was plugged in. Ransomware encrypts everything it can reach – connected drives, network shares and synced cloud folders. The NCSC stresses keeping a recent offline backup of your most important files: at least one copy that is disconnected from the computer.

Sources

  1. NCSC UK – Mitigating malware and ransomware attacks
  2. No More Ransom – free decryption tools (Europol and partners)
  3. Czech Police – 136 free tools against ransomware (1 August 2022, in Czech)
  4. Microsoft – Protect your PC from ransomware
  5. Microsoft – Ransomware detection and recovering your files (OneDrive)
  6. Microsoft – Restore your OneDrive
  7. Regulation (EU) 2016/679 (GDPR), Article 33 – notification of a personal data breach

Spotted a mistake? Let us know and we will correct it openly.