Security networkFree AntivirusAntivirus ToolsInfoVirus

Guide · 7 steps

What to do after a ransomware attack

The first steps after ransomware encrypts your files, for home users and small businesses.

  1. Isolate the infected devices

    Disconnect the infected computer from the network and the internet immediately, and unplug external drives. If several computers are affected, disconnect them all. Do not turn them off if you plan to involve investigators, as memory can contain useful evidence.

  2. Do not pay straight away

    Paying does not guarantee that you get your files back, it funds criminals and may be illegal in some situations. First check your backups and possible free decryptors.

  3. Identify the ransomware

    Note the name in the ransom note and the new file extension. Services such as ID Ransomware identify the family from a sample file or the note.

  4. Look for a free decryptor

    The No More Ransom project (nomoreransom.org), run by Europol, police forces and security companies, offers free decryption tools for many ransomware families. Check it before anything else.

  5. Report it

    Report the attack to the police; in the EU, also to your national cybercrime unit or CERT. Businesses may also have legal duties to notify data protection authorities if personal data was stolen.

  6. Clean up and restore

    Wipe and reinstall the affected systems, then restore files from a backup made before the infection. Change all passwords, starting with administrator and remote access accounts, and install pending security updates.

  7. Prepare for next time

    Keep at least one backup offline or in a versioned cloud service, update VPNs and remote desktop software quickly, and use two-factor authentication everywhere. Many attacks start from a known vulnerability; see the list of exploited vulnerabilities.

More guides