If…, then how…
If ransomware has encrypted production, do we restore or rebuild?
Add to board memoOpen the memo
The short answer
- Recommendation
- Decide system by system, after containment, with the backups protected and the way in closed. Restore data onto the patched system only where you know the route in and every change and the attacker had no administrator rights there; otherwise rebuild from a trusted source and restore only data.
- Reasoning
- Attackers usually gain administrator rights and go for the backups before they encrypt, so restoring straight away can bring them back. A copy is safe only if it dates from before the earliest sign of the attacker and passes an integrity check and a scan. A restore onto a system the attacker may still control is the costliest mistake in a cyber recovery, so an open question counts as no. Plan recovery as if nothing will be paid.
- Considerations
- The steps and defaults are those of the CISO Times ransomware playbook and resilience pack, such as a 2-hour quiet period before containment is confirmed and 7 days of closer monitoring for Severity 1 and 2. Your own playbook may set different ones.
- If no backup copy is intact and clean, rebuild and recover data from other sources, and tell the executive incident lead at once: recovery takes longer.
- Where the attacker had administrator rights, rebuild every system it controlled, starting with the sign-in directory. After a destructive attack, rebuild in an isolated recovery environment with new administrator accounts.
- A patch is not proof the attacker has gone. Each system reconnects only when the recovery criteria are met and its owner has confirmed in writing that it works.
The decision, step by step
Select any step for the reasoning behind it and where the pack covers it.
- Start
- Step
- Decision
- Outcome
- Loop back
Keyboard: Tab to a step, arrow keys move along the flow, Enter pins its explanation, + and − zoom, 0 fits the diagram, Esc closes. The text version below has the same content.
Where a step quotes a number, it is the default in the CISO Times pack. Your own standard may set a different one.
Read as text
The same flow written out: each step, its reasoning and where the pack covers it. 20 steps.
Start
Ransomware has encrypted production systems
By the time a ransom note appears, assume the attacker has been inside for some time, may still be, and may have taken data. Ransomware is usually the last stage of an attack: before encrypting, attackers typically gain administrator rights, spread and try to delete or encrypt the backups. That is why restoring straight away is often the wrong first move.
In the pack
- P09-A06 Ransomware Response PlaybookScenario and triggers
Step
Stop backup jobs and protect the backups
Attackers look for the backups first. Stop synchronisation and backup jobs that touch affected systems, so encrypted files do not overwrite good copies. Confirm at least one backup copy is offline or immutable, and cut the backup system off from the affected network and the shared sign-in directory. In the pack's defaults these steps run within 30 minutes, in parallel with isolation.
In the pack
- P09-A06 Ransomware Response PlaybookContainment in the first hour
Decision
Could isolation stop safety-critical or essential operations?
Isolating devices or cutting off a site can stop operational systems as well as office ones. In the playbook, the incident manager isolates at once, the least disruptive way that stops the harm, and brings in the service owner and specialists before cutting off anything people depend on for safety or essential operations. Stopping a customer-facing service is the executive incident lead's decision unless waiting would let the harm spread. If isolation could stop such operations, or you cannot tell, answer yes.
- Yes, or not known: Contain least disruptive first; bring in the operations owners
- No: Isolate affected devices, and the site if it may spread
In the pack
- P09-A06 Ransomware Response PlaybookSite isolation steps
- P09-A06 Ransomware Response PlaybookDecision tree
- P09-A02 Security Incident Management PolicyResponse and evidence (rule IM-08)
Step
Contain least disruptive first; bring in the operations owners
Keep containing: isolate affected devices, block what crosses between the office and operational networks, and disable affected accounts. Before cutting off anything people depend on for safety or essential operations, the incident manager brings in its service owner and specialists, with outside responders if needed, and decides with them how far to go. Where the operational network is separated from the office network, confirm the separation holds. Record the decision and the reason.
- Then: Is it still spreading?
In the pack
- P09-A06 Ransomware Response PlaybookSite isolation steps
- P09-A06 Ransomware Response PlaybookContainment in the first hour
Step
Isolate affected devices, and the site if it may spread
Isolate affected devices from the network without switching them off, since switching off destroys evidence in memory. Where more than one device is affected or the source is unknown, cut the site or segment off from the other sites, the hosted services and the internet, following the site isolation steps. The incident manager orders isolation without waiting for an executive, choosing the least disruptive containment that stops the spread.
- Then: Is it still spreading?
In the pack
- P09-A06 Ransomware Response PlaybookContainment in the first hour
- P09-A06 Ransomware Response PlaybookSite isolation steps
Decision
Is it still spreading?
No only when there has been no new encryption, alert or attacker activity across every site and hosted service for a quiet period, 2 hours in the playbook's defaults. Not yet known counts as yes. Nothing is restored into an environment where the ransomware is still active.
- Yes, or not known: Widen the isolation and ask for outside help if needed
- No, confirmed: Preserve evidence before anything is wiped
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
Step
Widen the isolation and ask for outside help if needed
Widen the isolation the least disruptive way that stops it: the next site or segment, any shared administrator systems and the link to hosted services. Search for the same indicators everywhere. Ask for outside responders if your own responders cannot keep up. Before stopping anything people depend on for safety or essential operations, bring in its service owner and specialists. Then ask again whether it is still spreading.
- Then: Is it still spreading? (back to an earlier step)
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P09-A06 Ransomware Response PlaybookContainment in the first hour
Step
Preserve evidence before anything is wiped
Evidence is the only way to know how the attacker got in, what it touched and whether data left. Photograph the ransom note, keep the first infected device on and isolated, copy sample encrypted files, and export logs before retention runs out. If a device must be reused, take a full disk image first. Rebuilding without an image is the usual way evidence is lost.
In the pack
- P09-A06 Ransomware Response PlaybookEvidence preservation
Step
Plan recovery as if nothing will be paid
Do not reply to the attacker. The playbook assumes you do not pay, and restore or rebuild does not wait on any demand. Only the board or its equivalent may decide on a ransom: the board, the management board in a two-tier structure, or executive management or the owners where there is no board. Never one manager. It decides only after legal advice including a sanctions check, the insurer's view and a report to law enforcement.
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P09-A06 Ransomware Response PlaybookTailoring notes
Step
Close the way in and remove what the attacker left
Before any system reconnects: find and close the way in, remove new accounts, scheduled tasks, remote access tools and changed directory settings, and reset credentials from clean devices, administrators first. End all signed-in sessions and patch the weakness used. Recovery starts when the monitoring provider confirms these are done with no new activity.
In the pack
- P09-A06 Ransomware Response PlaybookEradicate
Step
Agree the restore order: foundations first
Restore the foundations first: network, sign-in directory, backup system, endpoint protection and monitoring. Then the critical services, in the order the executive incident lead confirms. The resilience pack's default is order of recovery time, shortest first, unless another order is set and the reason recorded. Set the order and target times in advance with each service's owner, and confirm them when recovery starts.
In the pack
- P09-A06 Ransomware Response PlaybookRestore order
- P09-A06 Ransomware Response PlaybookRecover
- P22-A03 Cyber Recovery Operating ProcedureThe recovery order (rule RR-08; P09 V1)
- P22-A03 Cyber Recovery Operating ProcedureFoundations first
Decision
Are the backups intact and clean?
The backup provider checks and the incident manager decides. Clean means copies from before the earliest sign of the attacker, not just before the encryption. A backup that could be reached from the affected network is not safe until it has been checked.
- Yes, checked and clean: For this system, do you know the route in and every change?
- No: Rebuild from clean images; recover data from other sources
- Not yet checked: Do not restore until the backups are checked
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P09-A06 Ransomware Response PlaybookContainment in the first hour
- P22-A06 Clean-Room Recovery & Rebuild ChecklistRecovery Point (rule RR-12; P09 D3)
Step
Do not restore until the backups are checked
Never restore from a copy the attacker could have reached without checking it. Check integrity, find the date of the earliest sign of the attacker, and scan the candidate copies in an isolated place. Then answer the question again.
- Then: Are the backups intact and clean? (back to an earlier step)
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P22-A03 Cyber Recovery Operating ProcedureChoosing the recovery point (rule RR-12; CG-12 to CG-14)
Step
Rebuild from clean images; recover data from other sources
Without clean backups, rebuild each system from a clean image and recover data from wherever else it exists, such as the hosting provider, suppliers or paper records. Tell the executive incident lead at once: recovery will take longer and the restore order matters more. Engage outside responders if needed.
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P22-A03 Cyber Recovery Operating ProcedureWhen to escalate (rule RR-12; P09 D3)
Decision
For this system, do you know the route in and every change?
Ask it separately for each system. Yes only when the investigation has found how the attacker reached this system and accounted for every change it made there. Where the attacker had administrator rights on the system, rebuild it even if the route is known. The managed IT provider recommends, the incident manager decides, and the system owner tests. If unsure, the answer is no.
- Yes: Restore data onto the patched system and check it
- No, or not sure: Rebuild from a clean image, then restore only data
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P22-A03 Cyber Recovery Operating ProcedureThe trust question: restore or rebuild (rule P09 D4; RA-09)
Step
Restore data onto the patched system and check it
Use the newest copy from before the earliest sign of the attacker that passes its integrity check and a scan, both done in an isolated place before it goes back on the network. Restore onto the patched system, change its credentials, and turn on endpoint protection and monitoring before it reconnects.
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P09-A06 Ransomware Response PlaybookRecover
- P22-A03 Cyber Recovery Operating ProcedureStage R4: Restore data (rule RR-12; CG-12 to CG-15)
Step
Rebuild from a clean image, then restore only data
Wipe it and install again from a known-good image kept apart from the network, then restore only data from a checked copy. After a destructive attack, rebuild in an isolated recovery environment with new administrator accounts. Where the attacker had administrator rights, rebuild every system it controlled, starting with the sign-in directory. In the pack's example, the encrypted office PCs were rebuilt rather than cleaned.
In the pack
- P09-A06 Ransomware Response PlaybookDecision tree
- P09-A06 Ransomware Response PlaybookDefinitions
- P09-A06 Ransomware Response PlaybookReports and notices made
- P22-A02 Business Continuity & ICT Resilience PolicyRecovery and return to service (rule RR-13)
- P22-A03 Cyber Recovery Operating ProcedureStage R3: Rebuild clean (rule CG-06 to CG-11)
Decision
Are the recovery criteria met for this system?
The five criteria: the route in closed; the backup or image checked before use; the system patched, scanned and monitored with credentials changed; the owner's written confirmation that it works; the monitoring period started. A patch is not proof the attacker has gone. The resilience pack adds its clean-room checks before return, such as a sweep for persistence and reconciling the restored data.
- Yes: Reconnect in stages under closer monitoring
- No, or not yet: Keep it disconnected until the gap is closed
In the pack
- P09-A06 Ransomware Response PlaybookRecovery criteria
- P22-A02 Business Continuity & ICT Resilience PolicyRecovery and return to service (rule RR-18)
- P22-A06 Clean-Room Recovery & Rebuild ChecklistGates Explained (rule CG-16 to CG-22)
Outcome
Keep it disconnected until the gap is closed
A system that fails a criterion stays off the network. Send the gap back to the step that owns it, and tell the executive incident lead if it changes the restore order or target times.
In the pack
- P09-A06 Ransomware Response PlaybookRecovery criteria
Outcome
Reconnect in stages under closer monitoring
Reconnect one site or service at a time, watched for the indicators found. In the pack's defaults the monitoring period is 7 days for Severity 1 and 2, and the incident closes only when it has passed without the attack returning, every report due has been made and the case log is complete.
In the pack
- P09-A06 Ransomware Response PlaybookRecover
- P09-A06 Ransomware Response PlaybookClosing the incident
- P22-A03 Cyber Recovery Operating ProcedureA staged return (rules CG-21, CG-22; P09 V5)
Practical checklist
- Stop backup jobs on affected systems and confirm at least one copy is offline or immutable.
- Contain until nothing has spread for the quiet period, and preserve evidence before anything is wiped.
- Close the way in, remove what the attacker left and reset credentials from clean devices.
- Agree the restore order with foundations first, then the critical services.
- Check each candidate backup's integrity and scan it in an isolated place, using copies from before the earliest sign.
- Decide for each system whether to restore onto the patched system or rebuild and restore only data.
- Check the recovery criteria for each system before it reconnects.
- Reconnect one site or service at a time under closer monitoring.
Evidence to have ready
- Each restore or rebuild decision: the inputs, who recommended, who decided and when.
- The earliest sign of the attacker and each backup copy's date, integrity check and scan result.
- The recovery criteria results for each system, with the owner's written confirmation that it works.
- The restore order with the reason for any change, and the times each service stopped and returned.
- The data lost against the recovery point objective for each data set, and how it was recovered.
Assumptions
- The steps and defaults are those of the CISO Times ransomware playbook. Your own playbook may set different ones.
- The recovery order, the clean-room rebuild and the checks before return follow the CISO Times resilience pack, which works inside the playbook's decisions and changes none of them. Your own continuity plan may set its own order and target times.
Not covered here
- The evidence needed to reconnect each system. That is “If a service was compromised, what evidence is enough to reconnect it?”.
- Whether your backups will actually restore, tested before an incident. That is “How do we know our backups will actually restore?”.
- Agreeing recovery time and data-loss targets with the business. That is “How do we agree recovery time and data-loss targets with the business?”.
- Planning a cyber recovery in advance, and how it differs from disaster recovery. That is “How do we plan recovery from a destructive cyberattack, and how is it different from disaster recovery?”.
Related questions
- If a service was compromised, what evidence is enough to reconnect it?
- When do we have to notify a regulator, and under which regime?
- Who has the authority to take a production system offline?
- How do we choose which backup to restore from after a cyberattack?
- How do we recover when the attacker may control our sign-in directory?