Spain · 2026 World Cup champions
AXTO
Incident ResponseJuly 19, 2026· 8 min read

Ransomware Hit at 3 A.M.: A Calm Guide to the First 24 Hours

What you do in the first day decides whether ransomware is an incident or a catastrophe. A step-by-step order of operations.

Ransomware response fails in two ways: panic actions that destroy evidence and spread the damage, or paralysis while the encryption finishes. The antidote to both is knowing the order of operations before you need it.

Hour 0-1: Contain, do not clean

Isolate affected machines from the network — pull cables, disable Wi-Fi, suspend VMs. Do NOT power them off (memory holds keys and evidence) and do NOT start deleting or reimaging. Disable the accounts that were active on affected hosts. If you have network segmentation, close the gates between segments now.

Hour 1-4: Understand the blast radius

Which hosts show encrypted files? Which shares do those hosts mount? When did the earliest file modification happen — that timestamp bounds the intrusion window. Check your monitoring for the entry point: a phishing login, an exposed service, a vulnerable dependency. Behavioral detection earns its keep here: the deviations it logged before the encryption started are your investigation's spine.

Hour 4-12: Protect the backups, then verify them

Attackers hunt backups before they trigger encryption. Verify your backup infrastructure is untouched BEFORE connecting anything to it, confirm the latest restorable point, and test-restore one file to somewhere isolated. If backups survived, you have already won the negotiation you are not going to have.

Hour 12-24: Decide, document, notify

With scope known and backups verified, the decisions become concrete: rebuild order, credential rotation plan (assume everything on affected hosts is stolen), and legal notifications — many jurisdictions and cyber-insurance policies have clocks that started at discovery. Write everything down with timestamps; the report you produce later is built from these notes.

The uncomfortable epilogue

Paying rarely goes as advertised: decryptors are slow and buggy, data was often exfiltrated anyway, and payment marks you as a payer. The organizations that decline are the ones whose backups and segmentation made declining possible — which is to say, the response to ransomware is mostly decided months before it arrives.

Before the first hour: who does what

The first day goes far better when roles are agreed in advance. Someone must lead the response and make decisions. Someone handles technical containment and investigation. Someone communicates with management, staff and, later, customers. Someone keeps the written log of actions and times. In a small organization one person may hold several roles, but naming them prevents the chaos of everyone doing everything at once.

Keep an offline copy of the plan, contact details and key passwords. Ransomware often encrypts the very file server where the incident plan was stored, and email may be unavailable or compromised. A printed sheet or an encrypted copy on a separate device is worth more than a perfect plan nobody can reach.

Communicating safely during the incident

Assume the attacker may still be watching. If email or chat accounts were part of the compromise, switch to an alternative channel for incident coordination — phones, a separate messaging workspace or accounts created specifically for the response. Avoid discussing response plans, negotiation positions or recovery timelines in systems the attacker might be able to read. Keep the circle of people informed about technical details small until the scope is clear.

Internal messaging to staff should be short and practical: what is affected, what they should and should not do, and where to report anything unusual. Clear instructions prevent well-meaning employees from turning machines back on or plugging in infected laptops.

Preserving evidence while you contain

Containment and evidence preservation can conflict, so decide the order deliberately. Before changing affected machines, capture what you can quickly: photographs of ransom notes on screen, a memory image of key systems if you have the tools and skills, copies of relevant logs from servers, firewalls and identity systems, and a list of running processes and network connections. Store copies away from the affected network.

If you plan to involve law enforcement, insurers or external investigators, good evidence makes their work possible. It also helps answer the questions that matter most later: how the attacker got in, what they accessed and whether data was taken.

Identifying the variant and checking for decryptors

Ransom notes, encrypted file extensions and sample files usually identify the ransomware family. Several reputable services and law-enforcement initiatives publish free decryptors for families whose encryption has been broken or whose keys have been seized. Checking these resources early costs little and occasionally avoids a long recovery. Do not upload sensitive files to unknown services; use well-known projects and submit only samples you are comfortable sharing.

Bringing in help

Few small organizations have the expertise to handle a serious ransomware incident alone, and there is no shame in calling for help early. If you have cyber insurance, contact the insurer promptly: many policies require early notification and provide access to approved response firms, and some require their approval before you engage others. National cybersecurity agencies and computer emergency response teams often provide guidance and, in some cases, direct assistance. Reporting to law enforcement can help investigations and is required or expected in some sectors and jurisdictions.

Rebuilding in the right order

Recovery should start with the systems everything else depends on. Identity comes first: rebuild or thoroughly clean directory services, reset administrator credentials and confirm that the attacker's accounts and persistence are gone. Then restore core infrastructure such as networking, DNS and backups, followed by the business systems in order of priority. Restore from backups taken before the earliest sign of intrusion, not merely before encryption, because attackers often wait inside a network for days or weeks.

Rebuild machines from clean images rather than trying to disinfect them, and apply the patches or configuration fixes that close the original entry point before reconnecting anything to the network.

Notifications and obligations

Ransomware attacks frequently involve data theft as well as encryption, which can trigger legal obligations. Data-protection laws may require notifying a regulator within a short deadline once you become aware that personal data was affected, and in some cases informing the people involved. Contracts with customers may contain their own notification clauses, and regulated sectors have additional rules. Seek legal advice early, document what you knew and when, and keep notifications factual: what happened, what data may be affected, what you are doing and what people should do.

The days after the first day

The first twenty-four hours stabilize the situation; the following weeks determine whether it happens again. Monitor closely for signs that the attacker retained access. Rotate credentials widely, review remote-access paths and close exposed services. Hold a blameless review once the pressure is off: what worked, what slowed the response and which preparations would have made the biggest difference. Then fund those preparations while the lesson is fresh.

Preparation that changes the outcome

The organizations that recover quickly share a few traits. They keep backups that attackers cannot reach or delete — offline, immutable or both — and test restores regularly. They enforce multi-factor authentication, especially for remote access and administrator accounts. They segment their networks so that one compromised machine cannot reach everything. They patch internet-facing systems promptly. And they have rehearsed this exact scenario in a tabletop exercise, so that the first hour follows a plan instead of a panic.

When systems hold personal data or run operations

Some environments raise the stakes. In healthcare, manufacturing, logistics or any business where computers control physical processes or care for people, the first priority is safety: switch to manual procedures, paper records or backup systems that keep essential services running while the investigation proceeds. Plan these fallbacks in advance and test them; a printed list of patients, orders or deliveries for the next day can matter more than any technical step.

Thinking clearly about paying

The decision whether to pay belongs to leadership, guided by legal advice, insurers and law enforcement, and it should never be rushed by an attacker's countdown. Beyond the ethical and practical concerns already mentioned, payments can raise legal issues, for example when the recipient is subject to sanctions. Even when an organization decides to pay, it must still rebuild, rotate credentials and close the original entry point, because the attacker's access does not end with a transaction.

A one-page checklist to keep offline

Isolate affected machines without powering them off. Disable the accounts involved. Protect and verify backups before connecting anything to them. Capture evidence and keep a timestamped log. Call your insurer, response partner and, where appropriate, authorities. Communicate through a safe channel. Identify the entry point. Rebuild identity first, then core infrastructure, then business systems. Notify as required. Review and improve. Print it, keep it with the contact list and rehearse it at least once a year.

Ransomware is frightening because it attacks everything at once, but its first day follows a predictable shape. Organizations that know that shape, keep their backups out of reach and practice their response turn a potential catastrophe into a difficult but survivable week.

Schedule that rehearsal now, while systems are calm and the plan can still be improved.

Run AI on your own terms

AXTO gives you world-class AI apps and self-hosted editions — on your own keys, your own data.