Ransomware: What to Do in the First 24 Hours

Ransomware: What to Do in the First 24 Hours

When ransomware hits, the pressure is to do something fast: reboot, restore, pay. Most of the damage that could still be avoided is caused by those first reactions. This is the sequence incident responders follow, and why.

Hour 0 to 1: contain without destroying evidence

  • Disconnect, do not power off. Unplug the network cable or disable Wi-Fi on affected machines. Switching them off wipes memory, which may hold the encryption process, the attacker's tools and sometimes key material.
  • Isolate what is still healthy. Separate backups, domain controllers and file servers from the affected segment. If your backup system is reachable from the network, take it offline now.
  • Disable the entry path. Suspend remote access such as VPN and remote desktop, and any account that shows unusual activity.
  • Do not delete or reinstall anything yet. Encrypted files, ransom notes and logs are evidence, and sometimes the only way to identify the strain.

Hour 1 to 4: understand what you are dealing with

Three questions shape every later decision.

  • How far has it spread? List the affected systems and the ones you have confirmed clean. Assume the attacker had access before the encryption started, often for days.
  • Was data taken? Most current groups copy data before encrypting it and threaten to publish it. Outbound traffic logs and the ransom note usually indicate whether this is "double extortion".
  • Which strain is it? The note, the file extension and a sample identify the family. For some older families, free decryptors exist through the No More Ransom project.

Start a written timeline now: who noticed what, when, and every action taken. Investigators, insurers and regulators will all ask for it.

Hour 4 to 12: people and obligations

  • Activate the response team: IT, management, legal counsel and communications. Use a channel that does not depend on the compromised systems, since the attacker may be reading your email.
  • Call your cyber insurer before hiring vendors or negotiating. Many policies require prior notice and name approved responders.
  • Check notification deadlines. If personal data is affected, the GDPR gives 72 hours to notify the supervisory authority. NIS2 entities owe an early warning within 24 hours. In Brazil, the LGPD regulation sets three business days. The clock runs from the moment you became aware.
  • Report to law enforcement. It supports insurance claims and occasionally leads to decryption keys seized from the group.

Hour 12 to 24: plan the recovery

  • Verify the backups before trusting them. Confirm they are complete, recent and were not reachable by the attacker. Restore a sample to an isolated machine and test it.
  • Close the door first. Restoring into an environment the attacker still controls means being encrypted twice. Reset credentials, patch the entry point and remove persistence before systems return.
  • Restore in business order: identity services, then core applications, then everything else.
  • Keep the encrypted originals. A decryptor may appear later, and forensics may need the disks.

Should you pay?

Authorities advise against it, and the practical arguments are strong: payment does not guarantee a working key, does not undo the data theft, and marks you as a payer. In some cases paying a sanctioned group is itself illegal. It is a decision for management with legal counsel and the insurer, taken with full knowledge of what the backups can restore, never in the first hours and never alone.

Five mistakes that make it worse

  1. Powering off or reinstalling machines before evidence is captured.
  2. Restoring from backup while the attacker still has access.
  3. Contacting the attackers from a corporate account or without advice.
  4. Telling customers or the press more than you have verified.
  5. Declaring the incident over when files are back, without finding how the attacker got in.

Before it happens

The companies that recover fastest decided all of this in advance: an offline or immutable backup that is tested, a written incident procedure with names and phone numbers, multi-factor authentication on remote access, and monitoring that notices the intrusion in the days before the encryption starts.

If you are in the middle of an incident, our incident response team is available 24/7, and our digital forensics service handles evidence under chain of custody, data recovery and ransomware rescue. To see the attack before the encryption, the Autonomous Cybersecurity Ecosystem provides 24/7 detection and response with human analysts.

Protect your business with autonomous AI security

Our Autonomous Cybersecurity Ecosystem monitors threats 24/7 so your team can focus on what matters.

Discover Autonomous Cybersecurity Ecosystem →

Subscribe to our newsletter

Security insights in your inbox.

Share this article