Ransomware Response Explained: What to Do When Attackers Strike

Ransomware Response Explained: What to Do When Attackers Strike

Ransomware response is the structured process an organisation follows after ransomware is discovered, from the first containment steps through recovery and the review that follows. The central question it answers is simple: when ransomware strikes, what do you do first, in which order, and who decides? A rehearsed response turns a crisis into a sequence of decisions.

Ransomware encrypts files and demands payment for the decryption key, and modern attacks often steal data first and threaten to publish it. The hours after discovery matter more than any other part of the incident, because early containment limits how much is encrypted and how much data leaves the network. This guide explains the response step by step.

Key takeaways

  • Ransomware response follows the incident response phases in NIST SP 800-61 Rev. 3 (2025): Preparation; Detection and Analysis; Containment, Eradication, and Recovery; and Post-Incident Activity.
  • Contain first, then investigate: isolating affected systems stops the encryption spreading while you work out what happened.
  • Do not switch infected machines off before advice, because evidence held in memory can be lost.
  • Most government guidance advises against paying the ransom, because payment does not guarantee recovery.
  • Recovery from tested, offline backups is the fastest reliable route back to normal operations.

What ransomware response actually means

Ransomware response is the security-specific work of handling a ransomware incident: confirming the attack, stopping it spreading, removing the attacker, restoring systems and learning from the event. It sits inside the wider discipline of incident response, and it follows the same four phases defined by NIST SP 800-61 Rev. 3, published in 2025: Preparation; Detection and Analysis; Containment, Eradication, and Recovery; and Post-Incident Activity.

Response is not the same as prevention, though the two are linked. Prevention tries to stop the attack; response deals with the attack that got through. Organisations that plan their response in advance recover faster, spend less and communicate better than those that improvise under pressure.

Best for: any organisation that could be hit by ransomware, which means any organisation with systems connected to the internet and data worth encrypting.

The first hour: what to do immediately

The first hour sets the course of the whole response. The priority is containment: stop the attack spreading to more systems.

That usually means isolating affected machines from the network, either by unplugging network cables, disabling Wi-Fi, or using endpoint protection tools to quarantine them remotely. Do this for machines that show signs of encryption, and for any machine that might be infected but has not yet shown symptoms.

At the same time, alert the people named in your incident response plan: the security team, IT leadership and senior management. If you have cyber insurance or an incident response firm on retainer, contact them now, because their advice in the first hours is worth more than their help later. Preserve evidence where you can: take photographs of ransom notes on screens, note the exact time the attack was discovered, and do not delete logs or files.

A laptop with a blank screen on a desk next to a coiled grey network cable that has been unplugged, with a notepad and phone nearby
Isolating an affected machine from the network is usually the first containment step, and it buys time for the rest of the response.

Detection and analysis: work out what happened

Once the spread is contained, the team needs to understand the attack. Which systems are encrypted, and which are not? When did the attacker first get in, and how?

What data, if any, was stolen before the encryption started? These questions shape every decision that follows, from what to tell regulators to whether backups are safe to restore.

Analysts answer them by examining logs, endpoint protection alerts and the ransomware note itself, which usually names the ransomware family and gives payment instructions. The note can also reveal whether the attackers claim to have stolen data. Forensic analysis takes time, and early answers are often incomplete, so the team should share what it knows and be honest about what it does not yet know.

A common finding is that the attacker was inside the network for days or weeks before the encryption started. That matters, because it means backups taken during that period may contain the attacker’s tools, and it means the attacker may have stolen credentials that are still valid. For practical guidance on turning incident analysis into repeatable procedures, see our guide to turning model incidents into runbooks.

Containment: stop the attack spreading

Containment has two stages. Short-term containment is the immediate isolation described above: disconnect affected systems, disable compromised accounts and block malicious addresses at the firewall. The goal is to stop the encryption and the data theft as quickly as possible, even if that disrupts normal work.

The ransom decision

At some point, every ransomware response faces the question of whether to pay. Most government guidance advises against it.

CISA, the FBI and the UK’s National Cyber Security Centre all advise against paying, for three reasons: payment does not guarantee that the data will be recovered, it marks the organisation as willing to pay, and it funds further criminal activity. Decryption tools supplied by attackers sometimes fail, and in some cases the attackers take the money and disappear.

Best for: senior leadership and legal teams, who should understand the arguments before an incident, not discover them during one.

Eradication: remove the attacker completely

Eradication means removing the cause of the incident: the ransomware itself, the attacker’s access, and any backdoors they left behind. This is slower work than containment, and it is tempting to rush it, but restoring systems before the attacker is fully removed risks a second attack on the same day.

Practical steps include rebuilding affected systems from known-clean images rather than trying to clean them in place, resetting all passwords and credentials that the attacker may have touched, and closing the vulnerability or entry point the attacker used. If the attacker entered through a phishing email, that means reviewing email security; if they entered through an unpatched system, that means patching it before it is reconnected.

Recovery: restoring systems and data

Recovery is the return to normal operations, and it starts with restoring data from backups. The backups used must be clean, which is why offline backups matter: a backup that the attacker could reach may itself be encrypted or contain the attacker’s tools. Restore in priority order, starting with the systems the business needs most, and verify each one before moving to the next.

Restored systems should be monitored closely after they come back online, because an attacker who was missed may try again. Passwords should be reset, security tools should be confirmed as running, and any system that cannot be verified as clean should stay offline. Recovery timelines are often longer than people expect: even with good backups, a full recovery can take days or weeks, and the business should plan for that.

Our guide to cloud disaster recovery, and how RTO and RPO actually work explains how recovery time and recovery point objectives shape a realistic recovery plan.

Communication and notification

Communication is a response task in its own right, not an afterthought. Staff need to know what is happening and what they should and should not do, such as not switching machines on or off without instruction.

Customers and partners need honest, timely updates, even when the full picture is not yet known. Regulators may need formal notification within a set deadline, depending on the jurisdiction and the type of data involved.

Response phases compared

Phase Main goal Typical duration
Detection and analysis Confirm the attack and understand its scope Hours
Short-term containment Stop encryption and data theft spreading Hours
Eradication Remove the attacker and close the entry point Days
Recovery Restore systems and data from clean backups Days to weeks
Post-incident activity Review, learn and improve defences Weeks

The table shows why preparation matters: the phases that take longest, eradication and recovery, are the ones that benefit most from work done before the attack, such as tested backups and a rehearsed plan.

Post-incident activity: learn from the attack

The work does not end when systems are restored. A post-incident review should examine what happened, what worked, what failed and what should change. The review should cover the technical causes, the response itself, and the communication, and it should produce specific actions with owners and deadlines.

Your ransomware response checklist

  • Isolate affected machines from the network immediately, and do not switch them off without advice.
  • Alert the incident response team, senior management, your insurer and any retained response firm.
  • Preserve evidence: photograph ransom notes, note discovery times, and do not delete logs.
  • Confirm the scope: which systems are encrypted, and whether data was stolen.
  • Protect backups and identity systems from further attack.
  • Involve legal advisers before any discussion of payment, and record the decision.
  • Rebuild affected systems from clean images and reset credentials the attacker may have touched.
  • Restore from verified clean backups in priority order, monitoring each system as it returns.
  • Notify regulators, customers and partners as required, through a single spokesperson.
  • Run a blameless post-incident review and turn its findings into funded actions.

Common mistakes to avoid

The most damaging mistake is paying the ransom without understanding the attack. Payment does not guarantee recovery, and it does not remove the attacker from the network. Organisations that pay and then restore without eradicating the attacker have been hit again by the same group.

Another mistake is restoring from backups before checking that they are clean. Backups taken after the attacker entered the network may contain their tools, and restoring them reintroduces the threat.

A third mistake is skipping the post-incident review, usually because everyone is exhausted. That is understandable, but it means the same incident can happen again.

Frequently asked questions

What is the first thing to do when ransomware is discovered?

Isolate the affected systems from the network and alert the incident response team. Do not switch machines off before advice, and do not delete anything. Early containment limits how much is encrypted and how much data is stolen.

Should you pay the ransom?

Most government guidance advises against paying, because payment does not guarantee recovery and encourages further attacks. The decision is a business and legal one, so involve senior management, legal advisers and your insurer.

How long does recovery from ransomware take?

It depends on the scope of the attack and the quality of the backups. With tested offline backups, core systems can often be restored in days. Without them, recovery can take weeks or months, and some data may never be recovered.

Can you recover encrypted files without paying?

Sometimes, if a free decryption tool exists for that ransomware family, or if clean backups are available. In many cases, though, the only reliable route is restoring from backups. Law enforcement and security researchers publish free decryptors for some variants, so it is worth checking before considering payment.

Who should be involved in a ransomware response?

The security and IT teams, senior management, legal advisers, communications staff and, where relevant, the cyber insurer and an external incident response firm. Law enforcement should also be notified, as they can advise and may already be investigating the same group.

How do you know the attacker is fully gone?

Through forensic analysis and monitoring after recovery. Systems are rebuilt from clean images, credentials are reset, and the entry point is closed. Monitoring continues for weeks afterwards, because a missed backdoor can lead to a second attack.

Note: this article is general information about defensive security practices. It does not provide instructions for creating or deploying ransomware, and it should not be used as a substitute for professional incident response advice tailored to your organisation.

Latest articles

Scroll to Top