# Ransomware attack: what to do in the first 24 hours

One morning the files on the server have strange extensions, nothing opens and every computer shows a message asking for money. What you do in the first hours matters a great deal: you can stop the spread, save your backups and keep the evidence you will need later.

Disconnect the affected computers and servers from the network, but do not switch them off. Separate your backups from the network before anything else. Call your IT provider and, if you have one, your insurer. Do not delete, reinstall or negotiate in the first hours. Talk by phone, not company email. Check your NIS2 and GDPR duties: the deadlines run from the moment you became aware.

## The first 15 minutes: stop the spread

1. **Take affected machines off the network.** Pull the network cable, turn off Wi-Fi and disconnect the VPN on computers and servers showing the note or encrypted files. Do not shut them down or restart them: their memory may hold traces useful to the investigation, sometimes even keys.
2. **Protect the backups.** Disconnect external disks, the NAS or the backup server right away if they have not been touched yet. Attackers go after backups on purpose, so that paying is your only way out.
3. **Pause cloud sync.** OneDrive, Google Drive, Dropbox and the like can upload encrypted files over the good ones.
4. **Close remote access.** The VPN, remote desktop (RDP) and remote access tools, until you know how the attackers got in.

## The first hour: get help and keep the evidence

- **Call your IT provider** or an incident response firm. If you have cyber insurance, call the insurer first: many policies require immediate notice and working with approved firms.
- **Photograph the ransom note** and write down the group's name, the contact addresses, the extension of the encrypted files and the time you noticed the attack.
- **Do not delete, reinstall or "clean up".** Encrypted files, server logs and affected machines are evidence. Without them you cannot find out how they got in or what data they took.
- **Talk on another channel.** Assume the attackers can read company email and chat. Use the phone and a group on personal phones until you know what is compromised.
- **Write everything down**, with times: what you saw, what you disconnected, whom you called. You will need the timeline for reports, the insurer and the police.

## The first 4 hours: find out how big it is

- **Which systems are hit:** servers, computers, the accounting software, email, cloud systems.
- **What data was on them:** customers', employees', financial. Many ransomware groups copy data before encrypting it, then threaten to publish it. Assume the data was copied until the evidence says otherwise.
- **Accounts:** from a clean device, change the passwords of administrator accounts (domain, email, cloud, backup, bank) and disable accounts you do not recognise. Attackers usually have access for a while before encrypting.
- **Is there a free decryptor?** The [No More Ransom](https://www.nomoreransom.org/) project, backed by Europol and European police forces, publishes free tools for some ransomware families.

## Within 24 hours: tell those who need to know

- **Your national CSIRT or NIS2 authority, if your company is in scope of NIS2.** Essential and important entities send an early warning of a significant incident within 24 hours of becoming aware of it; a notification follows within 72 hours and a final report within one month of the notification (NIS2, art. 23(4)). In Romania, for example, that means DNSC, through the [PNRISC platform](https://pnrisc.dnsc.ro), under [OUG 155/2024](https://legislatie.just.ro/Public/DetaliiDocument/293121). Ransomware that stops the business is usually a significant incident. Not sure whether the law applies to you? Use the [NIS2 check](https://cybersecurity.acidripp.com/en/tools/nis2-check/).
- **Your data protection authority, if personal data was affected.** Encrypting personal data, even without copying it, can be a personal data breach, because the data is no longer available. Under the GDPR (Art. 33) you notify your national data protection authority (in Romania, [ANSPDCP](https://www.dataprotection.ro)) within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to people's rights and freedoms. If the risk is high, you also tell the people affected (Art. 34). If you do not have all the facts within 72 hours, notify with what you have and add the rest later. NIS2 reporting does not replace the GDPR notification.
- **The police.** File a criminal complaint with the police. In Romania, for example, you can also go directly to DIICOT, which has units specialised in cybercrime. Keep the evidence for the investigation.
- **Customers and partners**, if their services or data are affected. One spokesperson, short messages, verified facts only.

## About paying the ransom

Do not decide in the first hours and do not contact the attackers on your own. Paying does not guarantee a working key, nor that copied data will not be published or sold, and it marks the company as a known target for the next attack. If it comes to it, management decides, after talking to a lawyer, the insurer and the firm handling the incident.

## After the first 24 hours: restart safely

- **Close the way in first.** Do not bring systems back onto the network until you know how the attackers got in (usually an unpatched VPN, RDP open to the internet, a stolen password or an email attachment) and that path is closed.
- **Rebuild, do not clean.** Affected systems are rebuilt from scratch. Then restore data from backups checked to be clean and from before the attack.
- **Change every password**, including service accounts and suppliers with access to your systems.
- **Test restoring.** A backup you have never restored from is not a plan. Keep at least one copy offline or one that cannot be changed.

ACIDRIPP does not offer incident response. During an active attack, call your IT provider or an incident response firm first. Once you are running again, a [security audit](https://cybersecurity.acidripp.com/en/services/website-security-audit/) shows what is still exposed to the internet: servers reachable on every port, VPNs and software with actively exploited weaknesses, staff accounts found in data leaks.

Guidance, not legal advice. NIS2 deadlines are those of the directive, art. 23(4), which Romania's OUG 155/2024 repeats in art. 15; GDPR deadlines are from Regulation (EU) 2016/679, Arts. 33-34; checked on 29 November 2026.

---
Source: https://cybersecurity.acidripp.com/en/resources/ransomware-first-24-hours/ (ACIDRIPP, 2026-11-29)
