Ransomware attack: what to do in the first hour

A screen full of renamed files and a ransom note is one of the worst moments in a company’s life. What happens in the first hour often decides whether you lose a day or a month. The goal is simple: stop the spread, keep the evidence, protect what is still clean and make decisions calmly. Print this plan and keep it where people can find it when the network is down.
Minutes 0–10: stop the spread
- Disconnect affected computers from the network. Unplug the cable and switch off Wi-Fi. Do not shut them down yet: memory can contain keys and traces that help investigators.
- Disconnect shared storage and sync. Network drives, NAS devices and cloud sync clients (OneDrive, Google Drive, Dropbox) can spread encrypted files further.
- If you cannot tell what is affected, disconnect the office from the internet at the router. A few hours offline cost less than an encrypted backup server.
- Do not delete the ransom note or encrypted files. They identify the ransomware family, and for some families free decryptors exist.
Minutes 10–20: protect your backups
Modern ransomware groups look for backups first. Check that your offline or immutable copies are still separated from the network, and disconnect any backup system that is still online. Do not connect a backup disk to a computer that might be infected. If you follow the 3-2-1 rule, this is the moment it pays off.
Minutes 20–40: call the right people
- Your IT provider or incident response partner. Tell them what you saw, when, and what you have already disconnected.
- Management. Someone has to make decisions about operations, communication and money.
- Your cyber insurer, if you have a policy. Many policies require notification before you take recovery steps and provide approved response firms.
- Use phones, not company email. Attackers may still have access to your mailboxes and read your plans.
Minutes 40–60: document and assess
- Write down a timeline: who noticed what and when, which devices showed symptoms, what was disconnected.
- Photograph the ransom note and screens.
- Make a first list of affected systems and of data that may have been stolen. Many groups copy data before encrypting it and threaten to publish it.
- Check legal duties. Under the GDPR, a personal data breach must be reported to the supervisory authority within 72 hours of becoming aware of it, unless it is unlikely to result in a risk to people. Organisations covered by NIS2 must send an early warning to their national CSIRT within 24 hours. Report the crime to the police as well.
What not to do
- Do not pay in panic. Paying does not guarantee a working decryptor, does not stop data from being published and marks you as a payer. Law enforcement agencies advise against paying. If it is ever considered, it is a decision for management with legal advice, not something to do in the first hour.
- Do not restore onto infected systems. Rebuild or clean machines first, change passwords and close the way in, otherwise you will be encrypted again.
- Do not reuse passwords. Assume all passwords on affected systems are known to the attackers, starting with admin accounts and email.
After the first hour
Recovery follows a clear order: find out how the attackers got in, close that door, reset credentials, rebuild critical systems, restore data from clean backups and watch closely for signs of renewed activity. The free decryptors collected by the No More Ransom project are worth checking for the ransomware family you identified.
Prepare before it happens
Most of the damage is decided before the attack: multi-factor authentication on email and remote access, timely security updates, backups that ransomware cannot reach, and a one-page plan like this one. Our free IT audit checks the outside of your company for the most common ways in, such as exposed remote access, leaked accounts and outdated software, and tells you what to fix first.


