Skip to content
How-to · Incident response

How to Respond to a Ransomware Attack

When ransomware is actively encrypting systems, the first hours decide how bad the damage gets. This guide walks the defensive first moves — contain the spread without destroying the evidence you will need, preserve logs, scope the real intrusion, bring in legal, leadership, your insurer and law enforcement, and decide how to recover. It is grounded in the NIST SP 800-61 incident-handling lifecycle and CISA #StopRansomware guidance. It is general guidance, not legal advice; involve your own counsel on any decision with legal or regulatory weight.

In plain words

Responding to a live ransomware attack means containing the spread without destroying forensic evidence, preserving logs, working out how far the attacker really got, and bringing in legal, leadership, your insurer and law enforcement before you make irreversible decisions. Isolate affected systems from the network rather than powering them off where you can — a hard shutdown wipes memory artifacts investigators need.

Clean backups are necessary but not sufficient: many attacks also steal data and threaten to publish it, and restoring without first removing the attacker's access invites reinfection. Payment is a legal and business decision — it can carry sanctions risk under OFAC advisories and does not guarantee recovery — so it belongs with counsel, your insurer and law enforcement, never with the response team alone. This is general guidance, not legal advice.

Step by step

  1. 1

    Activate your incident response process

    Declare an incident and stand up your response team before you touch anything. NIST SP 800-61 frames incident handling as a lifecycle — preparation, detection and analysis, containment/eradication/recovery, and post-incident activity — and ransomware runs through all of it. Pull out your IR plan, open a dedicated communications channel that does not depend on the systems you suspect are compromised, assign an incident commander, and start a contemporaneous timeline. If you have an IR retainer or cyber insurer, this is the moment they expect to hear from you, not days later.

  2. 2

    Contain without destroying forensics

    Isolate affected hosts from the network to stop lateral movement and further encryption — pull the network cable, disable the switch port, or quarantine via EDR. CISA #StopRansomware guidance is explicit that you should isolate systems rather than power them off where feasible, because a hard shutdown can wipe volatile memory and artifacts that forensics and decryption efforts may need. Only power down if you cannot otherwise disconnect a system and encryption is actively spreading. Preserve, do not reimage, affected machines until forensics has what it needs.

  3. 3

    Preserve evidence and logs immediately

    Logs and artifacts are overwritten and rotated out fast, so capture them early: memory images where practical, disk images of representative affected and patient-zero systems, EDR telemetry, firewall and VPN logs, authentication and domain controller logs, and copies of the ransom note and any dropped tooling. Record who did what and when. This evidence drives scoping, supports any law-enforcement referral or insurance claim, and may be the only path to attribution or a decryptor.

  4. 4

    Scope the intrusion — do not assume encryption is the whole story

    Determine how the attacker got in, how long they have had access (dwell time), which accounts and systems are compromised, and whether data was exfiltrated before encryption. Modern ransomware is frequently double-extortion: the operators steal data and threaten to publish it, so "we have clean backups" does not by itself resolve the incident. Identify the initial access vector, persistence mechanisms and any domain-admin compromise before you declare systems safe, or you will be reinfected.

  5. 5

    Notify legal, leadership, insurer and law enforcement

    Engage legal counsel early — ideally directing the investigation so work can be handled under privilege where appropriate — and brief leadership with a factual, evolving picture. Notify your cyber insurer promptly; policies often require it and may dictate approved forensics and negotiation vendors. Report to law enforcement: in the US, CISA and the FBI (via a local field office or IC3.gov) ask to be notified of ransomware incidents, and reporting can unlock assistance and threat intelligence. Track any statutory or contractual breach-notification deadlines that a data-theft component may trigger.

  6. 6

    Engage IR and forensics specialists

    Unless you have deep in-house incident-response capability, bring in a specialist digital-forensics and incident-response (DFIR) firm — triggered through your insurer or retainer where one exists. They will confirm the ransomware family, hunt for persistence and additional footholds, validate scope, and advise on eradication so recovery does not simply restore the attacker along with your data. Experienced responders also know the current behavior of specific ransomware operators, which shapes both recovery and any negotiation.

  7. 7

    Assess backups and recovery feasibility

    Locate your backups, confirm they are intact and were not reachable or deleted by the attacker, and test-restore in an isolated environment before trusting them — attackers routinely target backup infrastructure first. Before attempting decryption by any route, check the No More Ransom project (nomoreransom.org), a joint effort of Europol, law enforcement and security vendors that offers free decryptors for many ransomware families. Rebuild from known-good images where restore is not safe, and reset credentials broadly, since stolen secrets are assumed compromised.

  8. 8

    Understand the legal risk before considering payment

    Payment is a business and legal decision, not a technical one, and it carries real risk: it may be sanctions-prohibited. The US Treasury’s Office of Foreign Assets Control (OFAC) has issued advisories warning that facilitating a ransom payment to a sanctioned person or jurisdiction can itself violate US sanctions law, and that liability can apply on a strict-liability basis regardless of whether the payer knew. Paying also does not guarantee a working decryptor or that stolen data will be deleted. If payment is even considered, involve counsel, your insurer and law enforcement, and have specialists perform sanctions due diligence first — do not assume any specific actor is or is not sanctioned.

  9. 9

    Manage communications and recover deliberately

    Coordinate internal and external messaging through legal and leadership: tell employees what they need to do, and prepare regulator, customer and partner notifications on the timelines the facts require. Recover in a prioritized, staged way — restore the most critical services first, into a hardened environment, with monitoring in place to catch reinfection. When the dust settles, run a formal post-incident review: what the root cause was, what detection missed, and which controls and playbook steps to fix so the next attempt fails earlier.

Do it now — free, in your browser
Build and rehearse your IR playbook

Practice the containment, notification and recovery decisions above in a guided lab so your team moves fast and correctly when a real ransomware incident hits — no theory, just the sequence you will actually run.

Related

Frequently asked questions

Should I power off infected machines right away?

Generally no. CISA #StopRansomware guidance advises isolating affected systems from the network — disabling the port, pulling the cable, or quarantining through your EDR — rather than powering them off where feasible, because a hard shutdown can destroy volatile memory and artifacts that forensics and potential decryption efforts rely on. Power down only if you cannot otherwise disconnect a system and encryption is actively spreading.

Is it legal to pay the ransom?

It depends, and it is a question for counsel, not a technical team. The US Treasury’s Office of Foreign Assets Control (OFAC) has issued advisories warning that making or facilitating a ransom payment to a sanctioned person or jurisdiction can violate US sanctions law, potentially on a strict-liability basis. This is general information, not legal advice: if payment is ever considered, involve legal counsel, your insurer and law enforcement, and have specialists perform sanctions due diligence first. Do not assume any specific attacker is or is not sanctioned.

We have backups — is the incident basically over?

No. Two reasons. First, many ransomware operations are double-extortion: the attacker steals data and threatens to publish it, so a clean restore does not address the data-theft side or any breach-notification obligations it triggers. Second, if you restore without first finding how the attacker got in and removing their persistence and compromised credentials, you will likely be reinfected. Confirm your backups were not reachable or deleted by the attacker, and test-restore in isolation before trusting them.

Who do we notify, and when?

Early and broadly. Engage legal counsel and brief leadership immediately. Notify your cyber insurer promptly — policies frequently require it and may dictate approved vendors. Report to law enforcement: in the US, CISA and the FBI (via a local field office or IC3.gov) request notification of ransomware incidents. Then work through any statutory, regulatory or contractual breach-notification deadlines, which a data-exfiltration component can trigger. Let counsel help sequence external notifications.

Is there any free way to decrypt files?

Sometimes. The No More Ransom project (nomoreransom.org) — a joint initiative of Europol, law enforcement and security vendors — provides free decryptors for a number of ransomware families, and you can upload a sample to identify the strain. It will not cover every variant, but it should be checked before anyone contemplates payment. Preserve encrypted samples and the ransom note so a decryptor can be matched if one exists.

Do we need an outside incident-response firm?

Usually yes, unless you have mature in-house DFIR capability. Specialist responders confirm the ransomware family, hunt for additional footholds and persistence, validate the true scope including possible data exfiltration, and guide eradication so recovery does not restore the attacker along with your systems. If you hold cyber insurance or an IR retainer, engaging the firm is typically routed through them — contact your insurer before independently retaining anyone.

🎉 New here? Use code WELCOME10 for 10% off any plan at checkout
How to Respond to a Ransomware Attack — PlayCISO · PlayCISO