Skip to content

What to do after a ransomware attack: the first 24 hours

A plain-English ransomware response checklist for the first 24 hours: isolate, preserve evidence, call the right people, decide about payment, and recover safely. Based on CISA and NCSC guidance.

Axrok Team9 min read

The worst time to work out your ransomware plan is while your screens show a ransom note. People type "ransomware attack what to do" into a search box at the moment of highest stress, so this post is written to be read quickly and acted on. It follows the joint #StopRansomware guidance from CISA, the FBI, the NSA and MS-ISAC, along with advice from the UK's National Cyber Security Centre, and puts the steps in the order most organisations need them.

This is general guidance, not legal advice or a substitute for a professional incident response provider. If you are in the middle of an attack, get specialist help as early as you can.

Key takeaways

  • Contain first. Isolate affected systems and, if needed, take parts of the network offline. CISA suggests doing this in a coordinated way and using phone calls rather than email, so attackers do not realise they have been spotted.
  • Preserve evidence before you wipe or rebuild anything.
  • Call for help early: an incident response provider, your cyber insurer, your lawyer, and law enforcement.
  • Paying is a business and legal decision, not a technical one. The NCSC and the US government both discourage it, and payment carries no guarantee.
  • Check whether you have a legal duty to report. Under the UK GDPR, for example, a notifiable personal data breach must be reported within 72 hours of becoming aware of it.
  • Recover from clean, offline backups, and only after you understand how the attackers got in.

First, understand what you are facing

Ransomware is malware that encrypts files so that systems become unusable, followed by a demand for payment. CISA's guide also describes "double extortion", where attackers steal data first and threaten to publish it, and in some cases skip the encryption and extort victims with data theft alone. The NCSC notes that attackers usually ask you to contact them through an anonymous email address or web page and to pay in cryptocurrency, and that they may threaten to leak data.

That matters for your response. Restoring files from backup may solve the encryption problem, but it does not solve the stolen data problem, and it does not remove the attacker's access.

Minutes 0 to 60: contain

1. Identify and isolate affected systems. CISA's checklist says to determine which systems are impacted and immediately isolate them. If several systems or subnets look affected, take the network offline at the switch level. If that is not possible, unplug network cables or remove devices from Wi-Fi. For cloud resources, take snapshots of volumes so you have a point-in-time copy for later investigation.

2. Do not tip off the attacker. CISA warns that after an initial compromise, attackers may watch your communications to see whether they have been detected. It recommends isolating systems in a coordinated manner and using out-of-band communication, such as phone calls, so that the attacker does not move sideways or deploy ransomware widely before you have contained it. Assume that email and chat on the affected network may be read.

3. Power down only as a last resort. If you cannot disconnect a device, CISA says to power it down to avoid further spread. It also warns that this loses evidence held in volatile memory, so do it only when you cannot isolate the device another way.

Hours 1 to 4: preserve evidence and get help

4. Preserve what an investigator needs. CISA advises taking system images and memory captures of a sample of affected devices, collecting relevant logs, and keeping samples of any suspicious files and indicators such as suspected command-and-control addresses. It specifically mentions volatile evidence such as system memory and logs that overwrite quickly. Do not reinstall or "clean up" machines yet.

5. Bring in professionals. The NCSC recommends that UK organisations use an NCSC-assured Cyber Incident Response provider when dealing with incidents, from small businesses to large enterprises. Elsewhere, look for a reputable incident response firm. If you have cyber insurance, contact your insurer early, because the policy may set conditions about who you can use and when you must notify.

6. Tell law enforcement. CISA suggests reporting to CISA, your local FBI field office, the FBI's Internet Crime Complaint Center (IC3) or the US Secret Service, and asking about available decryptors, since researchers have sometimes found flaws in particular ransomware variants. UK organisations can report to the NCSC.

7. Keep a running log. Write down what you saw, when, who did what, and what decisions were made and why. You will need it for the investigation, insurance, regulators and your own review.

Hours 4 to 24: scope the attack and decide about notification

8. Find out how they got in. CISA's checklist points out that a ransomware event may be evidence of an earlier, unresolved compromise. Attackers often use precursor malware or purchased access, and they sometimes drop ransomware to hide other activity. It lists things to hunt for, including new privileged accounts, unusual VPN logins, tools used to disable backups and signs of data being copied out. If you restore without finding the way in, you may be attacked again.

9. Triage what matters. Decide which systems are critical for safety, revenue and other essential services, and plan restoration around that list. Note which systems appear unaffected so you can deprioritise them.

10. Check your legal duties. If personal data may have been accessed or lost, you may have to notify a regulator and, in high-risk cases, the individuals affected. The UK ICO says the UK GDPR requires notifying it within 72 hours of becoming aware of a notifiable breach, where feasible, even if you do not have all the details yet, and that you must keep a record of every personal data breach whether or not you report it. Other countries, sectors and contracts have their own rules, so ask your lawyer.

Should you pay the ransom?

This is the question people search for next, and it deserves a careful answer.

The NCSC says it and UK law enforcement do not encourage, endorse or condone paying ransom demands, and gives four reasons: there is no guarantee you will get your data or computer back, your computer will still be infected, you will be paying criminal groups, and you are more likely to be targeted in future.

The US Treasury's Office of Foreign Assets Control adds a legal angle. Its updated advisory says the US government strongly discourages paying ransom or extortion demands, and warns that companies that facilitate ransomware payments, including financial institutions, cyber insurance firms and incident response providers, may risk violating sanctions regulations if the recipient has a sanctions connection. It lists proactive steps, such as reporting to law enforcement, as mitigating factors.

Whatever you decide, do not make it alone or in a panic. Involve your lawyer, insurer and incident response provider, and check whether the group is subject to sanctions before any contact. The best protection against ever facing this choice is an offline backup you have actually tested.

Recovery

When the environment is understood and the attacker's access is removed:

  • Rebuild from known-good sources. CISA recommends rebuilding systems by priority using pre-configured standard images where possible, and using infrastructure as code for cloud resources.
  • Reset credentials. Issue password resets for affected systems and accounts once the environment is clean, and update customer-managed encryption keys as needed.
  • Restore from offline backups. Reconnect systems and restore data from offline, encrypted backups by priority, taking care not to re-infect clean systems. If you create a new network segment for recovery, only add systems you have checked.
  • Close the gap. Patch the weakness that was used, whether it was a vulnerability, a stolen password or an exposed remote service.
  • Review. Document what you learned and update your policies, plans and exercises. CISA also encourages sharing lessons and indicators of compromise with CISA or your sector's information sharing group, to help others.

What to do before it happens

A few preparations make the first 24 hours far less chaotic.

  1. Write a one-page response plan with phone numbers for your incident response provider, insurer, lawyer and key staff, stored where you can reach it without your network.
  2. Test your backups. Keep at least one copy offline and practise a restore.
  3. Lock down remote access. Multi-factor authentication on remote access and email is a good first step.
  4. Know what you have. A list of critical systems lets you triage in minutes instead of hours.
  5. Test your defences. A penetration test shows you the paths an attacker could take before one does, and our website security checklist covers the basics for public sites. Our penetration test vs vulnerability scan post explains which one answers which question.
  6. Add monitoring. Detection shortens the time between the first intrusion and your response. Our managed security service is built for teams without their own security operations function.

FAQ

What should I do first after a ransomware attack?

Isolate affected systems from the network, ideally in a coordinated way, and use phone calls rather than email to organise. Then preserve evidence, call an incident response provider and your insurer, and report to law enforcement. Do not wipe or rebuild machines before evidence is captured.

Should I turn off infected computers?

Disconnect them from the network first. CISA says to power down devices only if you cannot disconnect them, because powering off loses evidence held in memory.

Should I pay the ransom?

The NCSC and the US government both discourage paying. Payment gives no guarantee of recovery, does not remove the infection, and may carry sanctions risks. Make the decision with your lawyer, insurer and incident response provider.

Do I have to report a ransomware attack?

It depends on where you operate and what was affected. Under the UK GDPR, a notifiable personal data breach must be reported to the ICO within 72 hours of becoming aware of it, where feasible. Ransomware attacks can also be reported to law enforcement such as the FBI's IC3 or, in the UK, the NCSC.

Can I get my files back without paying?

Sometimes. CISA suggests consulting law enforcement about decryptors, since researchers have found flaws in some ransomware variants and released tools. Offline backups are the most reliable route, as long as you remove the attacker's access first.

Talk it through

If you want to be ready before an incident rather than during one, we are happy to talk it through. Book a free 15-minute call through our contact page or email zayan@axrok.com, and we can help you work out where a penetration test or managed security monitoring would reduce your risk most.

Sources

  • Incident response
  • Ransomware
  • Security strategy

Want this looked at in your environment?

Book a free 15-minute call. A founder reads every enquiry and replies personally.