Ransomware Response: What to Do in the First Hours (and What Not To)
It's 3 a.m. and the on-call analyst sees file servers renaming thousands of documents to an extension nobody recognizes. A ransom note appears on a shared drive. What the team does in the next few hours decides how much of the business comes back, how fast, and whether the attacker is still inside when it does.
Ransomware is not rare. The 2025 Verizon Data Breach Investigations Report found ransomware in 44% of the breaches it analyzed, up from about a third in the previous edition, and in 88% of breaches at small and medium-sized businesses. This guide covers the first hours of a ransomware response: what to do, in what order, and the instinctive moves that make things worse.
Before anything else: declare the incident
The most expensive minutes are the ones spent debating whether "this is really an incident". Encrypted files plus a ransom note meet any reasonable definition. Declare it, open the incident channel, and name an incident lead who makes decisions and a scribe who writes down every action with a timestamp. If your plan has severity levels, ransomware on production systems belongs at the top one.
That written timeline matters later: for forensics, for your insurer, for regulators, and for the after-action review.
Hour 0–1: contain the spread
Isolate, don't power off
CISA's ransomware response checklist puts it first: determine which systems were impacted and immediately isolate them. Unplug the network cable, disable Wi-Fi, quarantine the host from your EDR console, or move it to an isolated VLAN.
CISA adds that you should power devices down only if you cannot disconnect them from the network. Shutting a machine down can erase volatile evidence, such as running processes, network connections and, sometimes, encryption keys still in memory.
Cut the attacker's paths
Encryption is usually the last step of an intrusion, not the first. By the time files are encrypted, the attacker has typically had privileged access for a while. Containment also means:
- Blocking the remote access path they may be using: VPN accounts, remote management tools, exposed RDP.
- Disabling the accounts you know or suspect are compromised, starting with administrators and service accounts.
- Protecting your backups: take them offline or confirm they are immutable before the attacker reaches them.
Hour 1–4: understand what you're dealing with
Preserve evidence
The checklist asks you to take a system image and memory capture of a sample of affected devices, and to collect logs before they roll over. Without them, you won't be able to answer the questions that come next: how they got in, what they touched and whether data left the network. Our guide to security logging for investigations covers which logs you'll wish you had.
Scope the damage
Build a list as you go: which hosts are encrypted, which accounts were used, which systems talked to the attacker's infrastructure. Today, most ransomware is also data extortion: the attacker copies data before encrypting it and threatens to publish it. Treat "did data leave?" as a separate question from "can we restore?".
Triage for recovery
CISA tells you to triage impacted systems for restoration and recovery. Not everything comes back at once. Identify the services the business cannot run without (identity, ERP, billing, the systems that keep customers served) and rank the rest.
Hours 4–24: decide, communicate, prepare recovery
Bring in the right people
Call your incident response retainer or provider, your cyber insurer (many policies require early notice and approved vendors), legal counsel, and law enforcement. Regulatory deadlines may start running the moment you become aware of the incident, depending on your sector and country.
On paying the ransom
CISA, the MS-ISAC and federal law enforcement do not recommend paying. Payment doesn't guarantee a working decryptor, doesn't erase stolen data, and funds the next attack. More organizations are refusing: in the 2025 DBIR, 64% of ransomware victims did not pay, up from 50% two years earlier, and the median ransom paid fell to US$115,000. CISA also suggests consulting law enforcement about decryptors that may already be available.
Prepare a clean recovery
CISA's guidance is to restore from offline, encrypted backups, prioritizing critical services, and to be careful not to reinfect clean systems in the process. Before reconnecting anything:
- Rebuild or reimage compromised hosts rather than "cleaning" them.
- Confirm the backup you restore predates the intrusion, not just the encryption.
- Close the initial access path. If the attacker got in through an unpatched edge device or a stolen credential, restoring without fixing it invites a second round.
Reset credentials once the environment is clean. CISA's guidance is to reset passwords for affected systems after the environment has been cleaned and rebuilt. Resetting earlier, while the attacker keeps a foothold, can simply expose the new ones.
The mistakes that make it worse
- Wiping or reimaging before taking evidence. You lose the ability to know how they got in.
- Talking to the attacker without a plan. Negotiation, if it happens at all, is a decision for leadership, counsel and specialists.
- Using compromised channels. If email or chat is part of the incident, coordinate out of band.
- Declaring victory at restore. Persistence, backdoor accounts and stolen data remain after the files come back. Hunt for them, as in our guide to checking for compromise after patching.
Frequently asked questions
Should we shut down every computer the moment we see ransomware? No. Isolate from the network first. Power off only the machines you can't disconnect, because shutting down can destroy evidence held in memory.
Can we just restore from backup and move on? Only after you've closed the way in, removed persistence and confirmed the backup predates the intrusion. Otherwise you may restore the attacker along with your data.
Who decides whether to pay? Leadership, with counsel, the insurer and law enforcement involved. Write down who has that authority in your incident response plan before you need it, and rehearse it in a tabletop exercise.
How priorIQ.ai helps
SentinelIQ adds an AI triage layer on top of the SIEM or XDR you already use, such as Microsoft Sentinel, Splunk, Elastic, QRadar or Wazuh, so the early signals of an intrusion surface as confirmed incidents instead of getting lost in the noise. Its incident history is indexed and queryable, which helps when you rebuild the timeline. OnGuardIQ monitors the deep and dark web for leaked credentials and access for sale affecting your environment, often the first step before a ransomware deployment. And in PriorIQ Core, confirmed incidents raise remediation priority: if a host is under attack, its vulnerabilities move up the queue and the work reaches Jira, ServiceNow or Freshservice as tickets. Request a demo.