What to do after a ransomware attack
General guidance for the first hours, valid for any family. It does not replace an incident response team.
1. Contain
- Disconnect the affected machines from the network (cable and Wi-Fi). If you cannot isolate them, shut them down to stop the spread.
- Disconnect the backups too and check that they were not encrypted.
- Change the passwords of administrative, VPN and service accounts from a clean machine: attackers usually hold stolen credentials.
2. Preserve the evidence
- Do not delete the encrypted files or the ransom note. They identify the family, and a tool may appear later.
- Keep the logs (firewall, VPN, domain controller, antivirus or EDR) and, if possible, a copy of the disks and memory of the affected machines.
- Write down what happened and when: the timeline helps the investigation and the notifications.
3. Identify the family
- Look the family up in the Vexday search by file extension, ransom note file name or sample hash.
- Check whether a free tool exists on No More Ransom and on the vendor's official page.
- A tool works for the family and sometimes only for some variants. Always test it on a copy of the files, in an isolated environment, following the vendor's instructions.
4. Recover safely
- Restore from verified backups, only after removing the attacker's access. Restoring earlier can reinfect the environment.
- When in doubt, rebuild the compromised machines from a trusted image.
- Paying the ransom does not guarantee that the data comes back or that it will not be published.
5. Report the incident
- Personal data: check your country's data protection law; many require notifying the authority and the data subjects within short deadlines.
- National CSIRT: report the incident to your country's CSIRT or CERT.
- Police: file a report with the cybercrime unit.
- Cyber insurance: tell the insurer before hiring incident response; many policies require it.