Incident Response

Ransomware Incident Response: The Process from Containment to Recovery

Ransomware Reverse Editorial TeamLast technical review: 11 min read

Ransomware incident response follows a fixed order: confirm the incident, contain the spread, preserve evidence, investigate the attack path, fully remove the attacker and only then restore operations in a controlled way. Restoring systems before eradication risks re-encryption through the same access paths and compromised accounts.

Key takeaways

  • Secure memory dumps, images and logs with a documented chain of custody before systems are rebooted or reinstalled.
  • Establish initial access, persistence, lateral movement and exfiltration instead of examining only the encrypted system.
  • Reset all privileged accounts, service accounts and local admin accounts, and reset the krbtgt account twice so that forged Kerberos tickets become worthless.
  • Keep heightened monitoring in place for weeks after recovery to detect attackers returning through overlooked access paths.
  • Define roles and responsibilities in advance, because a ransomware incident involves management, data protection, communications, legal and the insurer.

What ransomware incident response is really about

A ransomware attack is rarely a single event. Encryption is usually just the visible end of a longer chain: initial access, privilege escalation, movement across the network, often data theft, and only then the encryption itself. The job of incident response (IR) is to break that chain, reconstruct it in full and remove the attacker from the environment in a way you can verify.

That leads to the most important principle: recovery comes after eradication, not before. Restoring encrypted servers from backup without knowing the attack path and the compromised accounts often means rebuilding the environment with the same backdoor still in place.

This article walks through a proven eight-phase process. It does not replace an organisation-specific incident response plan, but it helps leadership and IT make decisions in the right order. For the first minutes after discovery, see Ransomware: the first 60 minutes.

How this maps to NIST SP 800-61 Rev. 3 and the BSI

In April 2025, the US National Institute of Standards and Technology (NIST) published SP 800-61 Revision 3, which fully supersedes the widely used Rev. 2 from 2012.[1] Rather than a standalone life cycle (Preparation; Detection & Analysis; Containment, Eradication & Recovery; Post-Incident Activity), Rev. 3 frames incident response through the six functions of the Cybersecurity Framework (CSF) 2.0:[1]

  • Govern, Identify, Protect – preparation, risk management and safeguards
  • Detect – finding and analysing possible attacks
  • Respond – actions taken on a detected incident
  • Recover – restoring affected assets and operations

In Rev. 3, lessons learned are no longer an afterthought at the end; they feed continuous improvement back into every function via the Improvement category of the Identify function.[1]

Germany's Federal Office for Information Security (BSI) publishes "Ransomware: Erste Hilfe bei einem schweren IT-Sicherheitsvorfall" – a compact emergency guide aimed at SMEs and smaller public bodies – and a ransomware measures catalogue for preparation.[2][3] The eight phases below are a practical, ransomware-specific breakdown of these frameworks.

PhaseKey questionNIST CSF 2.0
1 IdentificationIs this ransomware, and how big is it?Detect
2 ContainmentHow do we stop the spread?Respond
3 Evidence PreservationWhich traces must we secure?Respond
4 InvestigationHow did they get in, and what did they do?Respond
5 EradicationIs the attacker completely gone?Respond
6 RecoveryHow do we bring things back safely?Recover
7 MonitoringIs the attacker trying to return?Detect / Recover
8 Lessons LearnedWhat do we change for good?Govern / Identify (Improvement)

The eight phases in detail

Ransomware incident response: phases and parallel workstreams1. Detect & assess, 2. Contain, 3. Preserve evidence, 4. Investigate, 5. Eradicate, 6. Recover, 7. Monitor, 8. Lessons learned. IR team: technical and forensics (phases 1–8); Crisis team and management (phases 1–8); Communication: staff, customers, partners (phases 1–8); Data protection and legal (GDPR notice within 72 h if required) (phases 1–4); Notify cyber insurer (phases 1–2); Data recovery for encrypted data (phases 5–6); Hardening and monitoring (phases 7–8). Gate: attackers removed? – no restore before. Detect &assessContainPreserveevidenceInvestigateEradicateRecoverMonitorLessonslearnedIR team: technical and forensicsCrisis team and managementCommunication: staff, customers, partnersData protection and legal (GDPR notice within 72 h if required)Notify cyber insurerData recovery for encrypteddataHardening and monitoringGate: attackers removed?no restore before © 2026 ransomware-reverse.de
Ransomware incident response: phases and parallel workstreams1. Detect & assess, 2. Contain, 3. Preserve evidence, 4. Investigate, 5. Eradicate, 6. Recover, 7. Monitor, 8. Lessons learned. IR team: technical and forensics (phases 1–8); Crisis team and management (phases 1–8); Communication: staff, customers, partners (phases 1–8); Data protection and legal (GDPR notice within 72 h if required) (phases 1–4); Notify cyber insurer (phases 1–2); Data recovery for encrypted data (phases 5–6); Hardening and monitoring (phases 7–8). Gate: attackers removed? – no restore before. IR team: technical and forensicsACrisis team and managementBCommunication: staff, customers, partnersCData protection and legal (GDPR notice within 72 h ifrequired)DNotify cyber insurerEData recovery for encrypted dataFHardening and monitoringG1Detect & assessABCDE2ContainABCDE3Preserve evidenceABCD4InvestigateABCD5EradicateABCFGate: attackers removed? – no restore before6RecoverABCF7MonitorABCG8Lessons learnedABCG © 2026 ransomware-reverse.de
Ransomware incident response: phases and parallel workstreams. Technical and organisational work runs in parallel. Recovery only starts once the attackers are demonstrably gone.

1. Identification – confirm the incident and establish the picture

Goal: Confirm that you are dealing with ransomware, which systems are affected and whether the attacker is still active.

Typical activities:

  • Gather indicators: ransom notes, changed file extensions, EDR or antivirus alerts, deleted backups or shadow copies
  • Record when the first anomaly was noticed
  • Roughly scope affected systems, accounts and sites
  • Narrow down the ransomware family from the note and extension (see Detect ransomware)
  • Convene the crisis team and agree on a communication channel outside the potentially compromised infrastructure

Artefacts: Incident ticket or situation report, initial timeline, screenshots of the ransom note, list of affected systems.

Common mistakes: Treating it as "a virus on one PC". Coordinating via the compromised email system. Not documenting from minute one.

2. Containment – stop the spread

Goal: Prevent further encryption, data exfiltration and privilege escalation without needlessly destroying evidence.

Typical activities:

  • Disconnect affected systems (switch port, VLAN, EDR isolation)
  • Restrict internet access and VPN, block remote-support tools
  • Disable suspicious and privileged accounts, except for a few controlled admin accounts needed for clean-up[5]
  • Isolate at least one known-good domain controller[5]
  • Shield backup servers and repositories so they cannot be deleted or encrypted after the fact

Artefacts: Log of every action with time and owner, firewall changes, disabled accounts.

Common mistakes: Shutting down everything without a plan. Changing admin passwords from compromised machines. Forgetting cloud access, remote management tools and service accounts.

3. Evidence Preservation – secure forensically sound evidence

Goal: Retain evidence for root-cause analysis, insurers, law enforcement and the data protection assessment.

Typical activities:

  • Capture memory images of selected systems before they are rebooted[4]
  • Take forensic images or snapshots of affected servers and VMs[4]
  • Secure logs: Windows event logs, firewall, VPN, proxy, EDR, cloud audit logs
  • Keep the ransom note, sample encrypted files and any recovered binaries
  • Maintain a chain of custody: who secured what, and when

Artefacts: Images with hash values, log exports, evidence register.

Common mistakes: Logs rolling over because retention is too short. Reinstalling systems before images exist. Storing evidence on compromised storage.

4. Investigation – establish the attack path and scope

Goal: Understand exactly how the attacker operated so they can be fully removed and the gap closed.

The investigation answers five core questions:

  • Initial access: How did they get in? Common routes include unpatched VPN or firewall appliances, stolen credentials without MFA, phishing or exposed remote access.[4]
  • Persistence: Which backdoors were planted? Scheduled tasks, new services, additional admin accounts, remote management tools, GPO changes.
  • Lateral movement: Which paths and accounts did they use? RDP, SMB, PsExec, WMI, stolen hashes or Kerberos tickets.
  • Exfiltration: Was data stolen, and if so, what? Firewall and proxy logs, unusual upload volumes, archiving tools and cloud storage clients provide clues.
  • IOCs: Which indicators of compromise (IP addresses, domains, hashes, file names, accounts) can be derived to sweep the entire environment?

Artefacts: Attack timeline, IOC list, list of compromised accounts and systems, exfiltration assessment as the basis for notification decisions.

Common mistakes: Looking only at the encrypted system instead of the route to it. Ruling out exfiltration without checking the logs. Stopping the investigation as soon as "systems are back up".

5. Eradication – remove the attacker completely

Goal: Eliminate every access path, backdoor and compromised identity before production systems return.

Typical activities:

  • Close the initial access vector (patch, decommission, enforce MFA)
  • Remove identified persistence; prefer rebuilding compromised systems over "cleaning" them
  • Credential reset: all privileged accounts, service accounts, gMSAs, local administrator accounts (e.g. via LAPS) and, depending on the findings, all user accounts[5][6]
  • Reset krbtgt twice: The krbtgt password history holds two passwords; only a double reset removes the old password and renders forged Kerberos tickets useless.[6][7] In normal operation, Microsoft advises waiting at least the maximum ticket lifetime (10 hours by default) between the two resets.[7] In an acute compromise, Microsoft instead recommends two resets in rapid succession, ideally using a tested script and with all remaining domain controllers online, to minimise authentication failures.[5]
  • Rotate trust passwords, API keys, certificates and cloud secrets that were reachable from compromised systems[6]
  • Sweep the environment again using the IOC list

Artefacts: Eradication log, evidence of credential resets, formal go-ahead for recovery.

Common mistakes: Resetting krbtgt only once. Forgetting service accounts. Keeping a "cleaned" system in service although its persistence is not fully understood.

6. Recovery – a controlled restart

Goal: Bring business-critical processes back in a safe order.

Typical activities:

  • Define the restore sequence based on business priorities (RTO/RPO): usually identity and network first, then core applications
  • Check restore points against IOCs and test them in an isolated environment before use[1]
  • Rebuild systems hardened and patched, then load data from verified backups
  • Where no clean backups exist, assess the options: decryptor, file system or storage recovery

Artefacts: Recovery plan, restore logs, business sign-off from process owners.

Common mistakes: Restoring from a backup that already contains the backdoor. Bringing everything up at once. Reformatting disks that still held recoverable data. More on this in Ransomware backup recovery.

7. Monitoring – catch the attacker coming back

Goal: Make sure the attacker cannot return through an access path that was missed.

Typical activities:

  • Heightened monitoring for weeks: EDR, SIEM, identity logs, VPN and cloud sign-ins
  • Targeted alerts on known IOCs and on the threat group's behavioural patterns
  • Watching leak sites for publication of stolen data

Artefacts: Monitoring concept, alert rules, reports to the crisis team.

Common mistakes: Scaling monitoring back as soon as systems are restored. No clear ownership for alerts outside business hours.

8. Lessons Learned – improve for good

Goal: Fix root causes and strengthen preparation for the next incident.

Typical activities:

  • Debrief with everyone involved, as soon as practical
  • Final report covering root cause, timeline, decisions and open actions[1]
  • Action plan: MFA, an admin tiering model, segmentation, immutable backups, logging and retention periods
  • Update the incident response plan and emergency contacts, schedule exercises

Artefacts: Final report, prioritised action plan, updated IR plan. For the strategic view, see Cyber resilience.

Common mistakes: No final report. Actions without owners or deadlines. Looking for someone to blame instead of a root cause.

Roles and responsibilities (RACI)

A ransomware incident is not purely an IT matter. The matrix below shows a typical split (R = Responsible, A = Accountable, C = Consulted, I = Informed). Adapt it to your own organisation.

TaskExecutive managementIT lead / adminsIR providerData protectionCommunicationsLegalInsurer
Convene crisis team, set prioritiesARCIICI
Containment measuresIRA/CI––I
Evidence preservation / forensicsICR/AI–CC
Investigating attack path & exfiltrationICR/AC–CI
Notification duties (e.g. GDPR Art. 33)ACCRCRI
Internal & external communicationACCCRCI
Decision on the ransom demandACCCCRC
Eradication & credential resetIRA/C–––I
Recovery & sign-offARCII–I
Lessons learned & action planARCCCCI

Incident response vs. data recovery

In a crisis, incident response and data recovery are often confused. They are different tasks, handled by different specialists.

Incident responseData recovery
GoalStop the attack, find the cause, remove the attackerRestore encrypted or damaged data
Typical questionsHow did they get in? Are they still active? Was data stolen?Can file systems, VMs, databases or RAID structures be reconstructed?
TimingImmediately on discoveryAfter containment, alongside recovery planning
OutcomeClean, hardened environment, report, IOCsUsable data when backups and decryptors are unavailable

In practice, the two work hand in hand: the IR team makes the environment trustworthy again, and data recovery comes in when backups are missing, compromised or incomplete. See Ransomware decryption vs. data recovery and Ransomware data recovery for details.

Which route fits your situation?

What a ransomware incident response plan should settle in advance

The process works far better under pressure when the basics are agreed beforehand:

  • Crisis team with names, deputies and decision-making authority
  • Emergency contacts available offline: IR provider, insurer, data protection, legal
  • Out-of-band communication that does not depend on your own AD or mail server
  • Critical systems and restore order, with RTO/RPO
  • Offline or immutable backups, including regular restore tests
  • Adequate log retention, stored centrally outside the production environment
  • Documented and rehearsed procedure for krbtgt and credential resets
  • Regular tabletop exercises involving executive management

The BSI checklists and CISA's #StopRansomware Guide are good starting points. For immediate emergency steps, see Ransomware emergency; for the scope of professional support, see Incident response.

Once an incident is closed, a penetration test can check whether the attack path has really been closed and no other entry points remain open.

Conclusion

Ransomware incident response is an ordered process, not a race to the fastest restore. The sequence – identify, contain, preserve, investigate, eradicate, recover, monitor, learn – protects you from suffering the same attack twice. The phases most often skipped under time pressure are the ones that matter most: evidence preservation, establishing persistence and exfiltration, and a complete credential reset including the double krbtgt reset.

Frequently asked questions

How long does incident response take after a ransomware attack?

It depends on scope, infrastructure, data situation and how well prepared the organisation was. Containment can often be achieved within hours, while investigation, eradication and a staged recovery usually take considerably longer. A credible responder will give an estimate after an initial assessment, not a blanket timeframe.

Should I shut down encrypted systems immediately?

Not as a blanket rule. If encryption is still running, powering off may limit further damage, but it also destroys volatile evidence in memory. In many cases, isolating the system from the network while leaving it running is the better compromise. Ideally, make that call together with your incident response team.

Why does the krbtgt password have to be reset twice?

Active Directory keeps the two most recent krbtgt passwords valid. Only after two resets is a password the attacker may have stolen no longer accepted, which invalidates forged Kerberos tickets (Golden Tickets). In normal operation, Microsoft advises waiting at least the maximum ticket lifetime (10 hours by default) between the two resets to avoid authentication problems. In an acute compromise, Microsoft instead recommends two resets in rapid succession, ideally scripted and with all remaining domain controllers online.

Can we restore straight from backup?

Only after containment and eradication. Backups may contain backdoors, compromised accounts or malware that was already staged. Restore points should be checked against known IOCs and validated in an isolated environment before they go back into production.

What is the difference between incident response and data recovery?

Incident response stops the attack, establishes how the attacker got in and removes them from the environment. Data recovery restores encrypted or damaged data and storage systems when no clean backup and no decryptor are available. The two complement each other but are not interchangeable.

Do we have to report a ransomware incident?

If personal data is affected, Article 33 of the GDPR generally requires notifying the supervisory authority within 72 hours. Depending on sector, size and jurisdiction, further reporting obligations may apply. That assessment belongs with your data protection officer and legal counsel, and should be coordinated with your cyber insurer.

Do we need an external incident response provider?

If the incident involves suspected domain compromise, data exfiltration or your team lacks forensic experience, external support is usually advisable. Also check whether your cyber insurance policy specifies approved providers or requires prior consent.

Related ransomware profiles

Read next

Sources and further reading

  1. [1]NIST SP 800-61 Rev. 3 – Incident Response Recommendations and Considerations for Cybersecurity Risk Management (April 2025) csrc.nist.gov
  2. [2]BSI (German Federal Office for Information Security) – Ransomware: First aid for a serious IT security incident (German) bsi.bund.de
  3. [3]BSI – Ransomware measures catalogue (German) bsi.bund.de
  4. [4]CISA – #StopRansomware Guide cisa.gov
  5. [5]Microsoft – Incident Response ransomware approach and best practices learn.microsoft.com
  6. [6]Microsoft – Active Directory Forest Recovery: Perform initial recovery learn.microsoft.com
  7. [7]Microsoft – AD Forest Recovery: Reset the krbtgt password learn.microsoft.com