My home computer files are encrypted by ransomware. What do I do?
As of 15 November 2026Reviewed by CyberAttackStop
Key takeaways
- Disconnect the machine from the network immediately.
- Photograph the ransom note and the encrypted file names.
- Do not pay the ransom and do not enter card details on the payment page.
- Rebuild from a clean install and restore from offline backups.
- Change every password that was saved on that machine.
Should I switch the computer off?
If files are still being renamed or encrypted, leave it running. Some ransomware families hold the key in memory, and powering off loses the chance of recovering it with a decryptor. Disconnect it from the network and from any external drive first, because that is what stops the spread. If the encryption has already finished and the note is on screen, switch it off, because there is no benefit in leaving it powered on. Either way, do not log back in to anything important on it.
What should I do before rebuilding?
Photograph the ransom note, note the exact file extension added to your documents, and check the ransom note or the desktop for a contact address. Copy the note to a clean device. Then work out what you can restore from offline backups: a cloud account version history, a Windows File History or Mac Time Machine drive, or a system image. Restore onto a clean drive, never over the infected one. Write down which files matter most, because partial restoration is normal and you may have to choose.
Why should I not pay the ransom?
Paying funds the criminal group and does not guarantee a working key. Decryptors supplied by the criminals are often slow, incomplete or another piece of malware, and some groups have been known to ask for a second payment. There are cases where a legitimate decryption key was released by law enforcement and published for free. Decryption tools do exist for some families, and police and CERT-In advisories often name them. Check those advisories before you accept a loss.
How do I stop it coming back?
Reinstall the operating system from a clean download, not from a restore point that may carry the infection. Change every password that was stored on the machine, especially the email password, and do it from a different clean device. Turn on system restore points and keep one external drive disconnected except during backups. Update the operating system and every application. Install a reputable antivirus with ransomware behaviour detection. And if the infection came from a cracked app, a cracked plugin or a downloaded document, that is the route to close.
| Order | Action | Do not | Why |
|---|---|---|---|
| 1 | Unplug Ethernet and turn off Wi-Fi | Do not reconnect to the network | Stops the spread to other devices |
| 2 | Photograph the ransom note | Do not delete the note | The extension identifies the family |
| 3 | Leave it on if encryption is still running | Do not power off mid-encryption | Some keys exist only in memory |
| 4 | Check for offline backups | Do not restore over the infected drive | The infection comes back with the restore |
| 5 | Rebuild on a clean drive | Do not pay the ransom | Payment funds the group and may not work |
| 6 | Change passwords from a clean device | Do not type passwords on the infected machine | Stored credentials are already stolen |
What are the questions people ask about this?
Frequently asked questions
Is there any chance the police can decrypt my files?
Sometimes. For some ransomware families, law enforcement seizes servers and releases keys, and decryption tools are then published free. CERT-In publishes advisories and decryptors for certain families. Provide the police and CERT-In with the ransom note, the sample extension and the file names, and ask whether a decryptor exists for your family. Never pay a private company that promises decryption without a track record.
Should I tell my employer if this happened on a work laptop?
Yes, immediately. Your employer is the one who assesses the reporting duties. Under the CERT-In directions a qualifying incident must be reported to CERT-In within six hours of noticing or being brought to notice, and under the DPDP Act the data fiduciary must notify the Data Protection Board and the affected data principals within 72 hours. Give them the facts, including the data on the machine and who else had access.
Will my cloud files be encrypted too?
If you use OneDrive, Google Drive, Dropbox or iCloud for sync and you use the sync client on the infected machine, the files in the cloud may be affected as well. Do not sign in to those accounts from the infected computer. Sign in from a clean device, check the activity log, and use the version history or restore feature to recover files. Some ransomware families delete synced copies to stop a simple restore, so act quickly.
I have no backups. Is everything gone?
Not necessarily. Check the Windows Previous Versions or File History, the Mac Time Machine archive, the recycle bin, the Downloads folder on other devices, and your email account for files you attached. Check the trash on Google Drive. Look for shadow copies with a command such as vssadmin list shadows in an elevated command prompt. Accept that some files may be unrecoverable and focus on restoring the system cleanly rather than on pushing the broken one to work.
Is a second backup drive going to protect me next time?
It will if you keep it disconnected when you are not using it, because ransomware that encrypts everything it can reach will otherwise hit the backup too. Follow the rule of three: keep three copies, on two kinds of media, with one offline. Test a restore once, because a backup you have never restored from is only a hope, not a backup.
Not sure this is your situation?
Describe what happened in plain words and Akash P. S. will tell you the first move, whether it is something you can do in five minutes or something that needs an investigation. There is no charge for the triage.
Everything on this site is written by Akash P. S., founder of AAVETech. Service figures are indicative and exclude 18% GST. Any testing described here is carried out only with written authorisation from the system owner, in line with the Information Technology Act, 2000.