This complete guide explains how to respond to a ransomware attack in the first 72 hours, covering rapid containment steps, effective use of Endpoint Detection and Response (EDR) tooling, backup validation and restoration confidence, and regulatory reporting obligations that may apply. The goal is to reduce business impact, protect evidence for investigation, and meet disclosure requirements without creating additional risk.
Declare an incident, assign an incident commander, and initiate the ransomware playbook. Establish a secure communications channel outside affected systems, such as an out-of-band chat solution or prearranged phone bridge. Freeze all nonessential IT changes to avoid contaminating evidence or spreading the malware.
Containment starts with network isolation of compromised endpoints and servers. Prefer switching ports to a quarantine VLAN or disabling Wi‑Fi and network adapters locally. Avoid powering off systems unless encryption is actively in progress and cannot be otherwise stopped; memory artifacts can be critical for forensics and potential key recovery.
Block known malicious indicators of compromise at perimeter firewalls, secure web gateways, and DNS filtering. Disable or restrict remote administration protocols such as SMB, RDP, WinRM, SSH, and PowerShell Remoting where not required for urgent response. Temporarily enforce stricter east‑west segmentation rules to contain spread.
Assume credential theft. Revoke potentially exposed tokens, API keys, and OAuth grants. Stage an emergency password reset for privileged accounts through a clean administrative workstation. Consider rapidly enabling or enforcing multifactor authentication for all remote access to limit further compromise; see the complete guide to multi-factor authentication for policy options and enrollment tips.
Use EDR telemetry to identify patient zero, process lineage, persistence mechanisms, lateral movement, and encryption threads. Prioritize endpoints showing suspicious encryption behavior, mass file renames, shadow copy deletions, or unusual use of tools like PsExec, WMI, and ntdsutil. Tag compromised hosts and push containment policies to block malicious processes and network destinations.
Preserve volatile data before remediation. Acquire memory from key systems, capture EDR timelines, export event logs, collect copies of ransom notes, and snapshot virtual machines where feasible. Keep cryptographic hashes of collected artifacts and maintain a clear chain of custody to support potential legal or regulatory proceedings.
Investigate scheduled tasks, startup folders, services, Run keys, WMI subscriptions, and newly created local accounts. Inspect domain controllers for Golden/Silver Ticket activity, DCShadow attempts, and irregular replication events. Rotate Kerberos, krbtgt, and service account credentials as needed, using a clean environment to avoid re-compromise.
Use EDR to quarantine binaries, kill malicious processes, and remove persistence entries. Patch vulnerable systems that enabled initial access, such as exposed RDP, VPN appliances, web apps, or outdated hypervisors. Tighten allowlists and disable macros, unsigned scripts, and risky PowerShell settings temporarily while containment holds.
Catalog affected file shares, databases, virtual machines, and SaaS data. Confirm whether exfiltration occurred by reviewing outbound network logs and known data theft tooling. If data misuse is suspected, prepare for breach notification obligations and customer communications under counsel.
Follow the 3‑2‑1 principle where possible: three copies on two media types with one offline or immutable. Verify integrity by:
Ensure immutable snapshots or air‑gapped copies are free from tampering. Validate that backup agents and repositories are not part of the blast radius, and rotate repository credentials if compromise is suspected.
Design a prioritized recovery sequence for domain services, identity providers, core applications, and user endpoints. Restore into a quarantined network segment with strict egress controls and continuous EDR monitoring. Reissue certificates, rotate secrets, and rebuild gold images to prevent reintroduction of persistence.
Where safe and lawful, consult reputable repositories for known decryptors. If considering negotiations, be aware of legal restrictions and sanctions risks. Guidance from counsel is essential, and payment does not guarantee successful decryption or deletion of stolen data. Maintain evidence of all communications and decisions for due diligence.
Notification rules vary by jurisdiction and sector. Examples to verify with counsel include:
If an extortion element suggests data exfiltration or threats to critical infrastructure, regulators and sector-specific authorities may expect prompt engagement even before full scoping is complete. Document the date and time of awareness, the impact assessment to date, and actions taken.
Engage law enforcement where appropriate. Screen threat actor identifiers and wallet addresses against sanctions lists. Consult legal counsel about potential restrictions on payments and the implications of engaging with designated entities.
Issue clear, factual internal updates to employees with guidance on device handling, phishing vigilance, and acceptable use during recovery. For external stakeholders, coordinate statements with legal and PR teams, focusing on what happened, what is known so far, steps taken, and how impacted parties will be supported. Avoid disclosing investigative details that could aid the attacker.
Apply lessons immediately: enforce least privilege, remove legacy protocols, segment recovery networks, and roll out conditional access. Prioritize controls that reduce ransomware blast radius, including strong identity governance, privilege elevation workflows, and application allowlisting.
Enable behavioral rules for mass encryption, shadow copy deletions, and suspicious archiving or data staging. Configure automatic isolation for endpoints matching high-confidence ransomware behaviors while prompting for analyst review on medium-confidence signals.
Enrich EDR detections with current indicators and threat profiles. Apply domain and IP blocks for confirmed command-and-control and exfiltration channels. Review false positives to avoid disrupting critical services during restoration.
Analysts should use hardened, separate admin workstations that are verified clean. Restrict EDR console access behind multifactor authentication and just-in-time privileges. Log all administrative actions for auditability.
Adopt immutable storage options and offline copies so that encryption and wiper malware cannot alter backups. Protect backup consoles with network isolation, MFA, and privileged access controls. Regularly test recovery time and recovery point objectives to maintain service-level expectations.
For databases and complex platforms, run integrity checks and transaction log reviews post-restore. Confirm that identity providers, secrets vaults, and license servers integrate correctly. Establish a clean-room staging process to certify workloads before they rejoin production.
Keep detailed records of restore points, systems recovered, validation steps, and the personnel involved. This documentation supports regulator inquiries and internal audits and accelerates future recoveries.
Use the incident as a catalyst to implement stricter segmentation, continuous verification, and least privilege. For a structured approach, review how to implement Zero Trust security across identities, devices, and applications, starting with high-risk pathways exposed during the attack.
Harden email ingress, web filtering, remote access, and software supply chain controls. Conduct tabletop exercises and red team assessments to measure readiness. Build and rehearse an actionable playbook; small teams can start with a ransomware incident response plan that sets roles, triggers, and communications.
Strengthen endpoint posture with application allowlisting, tamper protection, and regular patching. Improve password hygiene and enforce strong authentication at all edges. For broader preventive strategies aligned to this threat, compare the essential strategies for protecting your business against ransomware attacks to current gaps and prioritize high-impact fixes.
Isolation should begin immediately upon detection to prevent lateral movement and additional encryption. Use network controls or EDR quarantine rather than powering off devices unless active encryption leaves no alternative, because memory capture can aid forensics.
Payment is a business and legal decision that carries risks, including sanctions exposure and the possibility that decryption fails or stolen data is still leaked. Consult legal counsel, screen for sanctions issues, and consider known decryptors and clean restore options first.
A safe backup is from a timestamp before compromise, passes malware scans in a sterile network, matches known-good hashes for sampled data, and supports successful application-level tests. Immutability and air-gapping improve confidence.
GDPR requires notifying the supervisory authority of a qualifying personal data breach within 72 hours where feasible. NIS2 includes a 24-hour early warning and a more complete notification within 72 hours for certain entities. New York DFS also has a 72-hour reporting requirement for specified cyber events. Always verify applicability with counsel.
High-value capabilities include rapid host isolation, behavioral detection of encryption activity, process lineage and timeline reconstruction, memory capture support, malware quarantine, and automated blocking of command-and-control destinations with analyst oversight.