Free tech learning for everyone, from basics to pro

Incident ResponseCyber SecurityIntermediate

Responding to ransomware: the first hours, recovery and prevention

In short: Ransomware encrypts systems and often steals data first, so response has to stop the spread, protect backups and evidence, and manage legal and business decisions together. Preparation, especially tested offline backups and MFA, decides most of the outcome.

How modern ransomware works

Ransomware is malicious software that encrypts files or systems and demands payment for the key. Most serious attacks today are run by organised groups, often using a ransomware-as-a-service model where developers rent the tools to affiliates. A typical intrusion starts with stolen credentials, an unpatched internet-facing device such as a VPN gateway, or phishing. The attackers then spend days or weeks moving through the network, gaining administrator rights, deleting or encrypting backups and copying data out. Only then do they encrypt.

Most groups use double extortion: pay to decrypt, and pay again so stolen data is not published. That means restoring from backup solves only part of the problem.

The first hours

The first hours of a ransomware incidentDetectalert orransom noteIsolatehosts andsegmentsMobiliseIR team,insurerPreserveevidence andlogsScopewhat and howfarProtectbackupstake offline
Figure 1. Early actions focus on stopping spread, calling the right people and protecting evidence and backups.
  1. Isolate affected machines from the network using EDR isolation or by unplugging network cables or disabling Wi-Fi. Avoid powering machines off if you can, because memory may hold useful evidence and sometimes keys.
  2. Activate the plan: incident commander, IT, management, and your cyber insurer, who may require you to use their approved response firm.
  3. Protect backups: disconnect backup systems and check whether they are intact. Change backup administrator credentials from a clean device.
  4. Preserve evidence: keep the ransom note, logs, a sample of encrypted files and EDR data. Do not delete anything yet.
  5. Scope: which systems, accounts and data are affected; how did they get in; is data exfiltration likely?
  6. Switch to out-of-band communication: assume email and chat may be watched.

Recovery and the payment question

Recovery means rebuilding from known-good sources, not just decrypting. Prioritise critical services, reset all privileged credentials (including service accounts), close the entry point, and monitor closely as systems return. Rebuilding identity systems such as Active Directory carefully is often the critical path.

ConsiderationWhy it matters
Payment does not guarantee recoveryDecryptors can be slow or faulty, and stolen data may still be leaked or sold
Legal riskPaying a sanctioned group can break sanctions law; take legal advice
Changing rulesSome governments, including the UK, have moved to restrict payments by public bodies and require reporting; check current law
Free decryptorsFor some older families, the No More Ransom project offers free tools

Law enforcement and national agencies such as the UK NCSC advise against paying. Whatever happens, the decision belongs to senior leadership with legal advice, not the technical team.

Reporting and prevention

Report to the police and national cyber agency, and check notification duties: if personal data is affected, UK GDPR may require notice to the Information Commissioner's Office (ICO) within 72 hours (see communication and legal duties).

Ransomware prevention controlsMFA everywhereremote access, email, adminPatch edge devicesVPNs, firewallsImmutable backupsoffline, testedLeast privilegeseparate admin accountsEDR coverageevery endpointSegmentationlimit spread
Figure 2. Six controls that address the most common ransomware entry points and limit the damage when one gets through.

Test restores regularly, keep at least one backup copy offline or immutable, and protect backup consoles with separate credentials and MFA. Most ransomware incidents exploit gaps that were known but not yet fixed.

Real-world example: ransomware at a family-run manufacturer

Early one morning, staff at a fictional furniture manufacturer find that files on the shared drive have strange extensions and a ransom note sits on every desktop. The IT manager follows the ransomware playbook: he disconnects affected machines from the network but leaves them powered on, disables the compromised admin account and calls the cyber insurer's incident line. Investigators find the attackers entered through an unpatched VPN appliance and copied some files before encrypting. The offline backups are intact, so the board decides not to pay. Systems are rebuilt and restored over four days, starting with orders and payroll. The firm reports the data theft to the regulator and notifies affected customers, then patches the VPN and adds MFA.

Practice

Why is it often better to isolate than to power off an infected machine?
Isolation stops spread while keeping memory contents, which may hold evidence or encryption keys.
What is double extortion?
Attackers both encrypt systems and steal data, demanding payment to decrypt and to avoid publishing the data.
Who should decide whether to pay a ransom?
Senior leadership, with legal advice and input from insurers and law enforcement, not the technical team alone.

Key takeaways

  • Modern ransomware groups usually steal data before encrypting.
  • First hours: isolate, mobilise, protect backups, preserve evidence, scope.
  • Recovery means rebuilding from clean sources and resetting credentials.
  • Payment is a legal and business decision with no guarantee of recovery.
  • MFA, patching, immutable backups, least privilege, EDR and segmentation prevent most attacks.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.