Cybersecurity
What to Do First When Your Office Is Hit by Ransomware
The first hour after ransomware is found decides how far the damage spreads. These five steps contain the spread and preserve evidence before recovery begins.
SEO and Content Specialist
2 min read Reviewed by Legia Cybersecurity Team
Short answer: isolate the affected devices from the network (unplug the cable or disconnect Wi-Fi), do not shut them down right away unless isolation is impossible, secure the backups by disconnecting them from the network, notify the person in charge by phone, not by office email, and document everything you see. Do not pay the ransom or delete anything before the response is coordinated.
The first five steps
| Step | What to do | Why |
|---|---|---|
| 1. Isolate | Unplug the network cable or disconnect Wi-Fi on the affected devices | Prevents the ransomware from spreading to other devices and shared files |
| 2. Do not shut down yet | Leave the device powered on once it is isolated | Shutting down erases traces in memory that are useful for analysis |
| 3. Secure the backups | Disconnect backup media and stop automatic synchronization | Backups are the path to recovery, and ransomware tries to encrypt them too |
| 4. Notify the person in charge | By phone or a channel outside the office network | The attacker may be monitoring email and internal systems |
| 5. Document | Time of discovery, the ransom note, affected devices | Material for analysis, reporting, and, if personal data is involved, notification under the PDP Law (UU PDP) |
What not to do
- Run a cleanup or reinstall systems before the entry point is known. The same flaw can be used again.
- Connect backups to the affected devices to “recover quickly”. The backups can be encrypted as well.
- Pay the ransom. There is no guarantee the data comes back, and the flaw stays open. CISA’s #StopRansomware guide advises against paying.
- Announce it in the office chat group without coordination, which spreads confusing information.
Prepare before it happens
The steps above only go smoothly if a few things are prepared in advance. Print an emergency contact list (IT lead, management, vendors, and legal counsel), because office systems may be inaccessible during an incident. Decide who has the authority to cut the network or stop services. And rehearse the isolation step once, so the team knows where the cables and the devices to disconnect are without searching. A short drill once a year is enough to find the parts of the plan that do not work.
After the first hour
The next steps are to determine the scope (which devices and data are affected), close the entry point, and then recover from clean backups. If personal data is affected, the PDP Law requires written notification within 3 x 24 hours to data subjects and the authority. Broader lessons from a major incident are covered in the article Ransomware in the Office: Lessons from the 2024 National Data Center Incident.
The most useful preparation is done before an incident: a printed emergency contact list, separate and tested backups, and regular vulnerability checks. Legia’s security assessment services are on the Cyber Security page.


