In short
In an active ransomware attack, isolate affected systems, leave evidence and original data untouched, keep backups off the network and bring in an incident response team early. Whether to power systems down depends on the situation. Incident response (containment, forensics) and data recovery (restoring encrypted data) are two separate tasks.
The situation in 30 seconds
Files won't open. A ransom note appears on desktops or in folders. Files carry a new extension. These are the classic signs of a ransomware attack.
What matters now is structure, not speed at any cost. Three principles almost always apply:
- Stop the spread: isolate affected systems from the network.
- Destroy nothing: leave original data, logs and evidence untouched.
- Separate the tasks: containment and forensics (incident response) are different from restoring encrypted data (data recovery).
Immediate actions: 10 steps
The order is a guide. In practice, several steps run in parallel.
1. Disconnect affected systems from the network
Unplug network cables, disable Wi-Fi, block affected switch ports or VLANs. For virtualised workloads, disconnect the virtual network adapters. The goal is to interrupt encryption and lateral movement.
2. Don't power down hastily – but don't wait either
Whether to shut a system down depends on the scenario:
- Encryption visibly still running: isolate immediately and, if necessary, shut down to limit data loss – for example if the system cannot be disconnected from the network.
[2] - Encryption finished, system isolated: leave it running. Volatile artefacts in memory (processes, network connections, possibly key material) can be valuable for forensics.
[1] [2] - Unclear: isolate first, then decide with specialists.
3. Don't modify encrypted original data
Don't rename, move or delete files. Don't format or re-initialise drives. Encrypted data is the basis for any later decryption or data recovery.
4. No clean-up tools on original systems
Antivirus remediation, "repair" utilities or reinstalls destroy evidence and can overwrite data. Clean-up comes after preservation and analysis.
5. Document the ransom note and file extensions
Take photos or screenshots of the ransom note, note its file name, the new extension, the attackers' contact addresses or Tor links, and when the incident was discovered. These markers help identify the ransomware family – for example via the ransomware database.
6. Preserve logs and security events
Export firewall, VPN, proxy, EDR and Windows event logs before they rotate or attackers wipe them. Domain controllers and remote access gateways are especially important.
7. Keep backups away from compromised systems
Don't connect backup storage, offline media or snapshots to a network where attackers may still be active. First check that backups are intact and free of malicious code.
8. Engage an incident response team
An experienced team coordinates containment, forensics, root cause analysis and restart. The earlier, the more evidence is still usable.
9. Assess recoverability separately
In parallel with containment, clarify: Are there clean backups? Is there a known decryptor? Are RAID, NAS, SAN or virtual machines affected? If there is no reliable restore path, consider ransomware data recovery.
10. Set up communication and escalation paths
Form a crisis team: management, IT lead, data protection, legal, communications. Notify your cyber insurer early and clarify reporting obligations. If email or messaging may be compromised, switch to an out-of-band channel.
Who handles what? Decision matrix
| Situation | Primary contact |
|---|---|
| Attack still running / systems compromised | Cybernotfall24 – Incident Response |
| Root cause unknown / entry point unclear | Cybernotfall24 – Incident Response |
| Servers or clients need forensic assessment | Cybernotfall24 – Incident Response |
| Data encrypted or storage damaged | DATA REVERSE – Data Recovery |
| RAID, NAS, server storage or virtual machine affected | DATA REVERSE – Data Recovery |
| Backup restore fails | depends on cause: incident response (backup compromised) or DATA REVERSE (backup storage damaged) |
| Looking for a decryptor | Identify the ransomware type, check reputable decryptor sources: Ransomware decryption |
| Restart planning | Incident response and recovery together |
Many incidents need both paths: incident response makes the environment safe again, data recovery brings back data for which no clean backup exists.
Which route fits your situation?
What not to do
Responders see these mistakes again and again. Many of them cannot be undone.
- Rebuilding systems before evidence is preserved. Traces of the attack path disappear – and often the chance of data recovery with them.
- Running unknown "decryptors" from forums. Dubious tools can permanently damage data or be malware themselves.
- Formatting encrypted drives or re-initialising a RAID. This makes reconstruction much harder or impossible.
- Restoring backups right away. Without root cause analysis, attackers may strike again through the same gap or existing access.
[1] - Negotiating with attackers on your own. Contact, payment and communication have legal and insurance consequences. More in Should you pay the ransom?
- Continuing to use compromised accounts. If admin or domain accounts may be affected, communicate over a clean channel and coordinate password resets.
[1] - Keeping the incident quiet. Deadlines such as the GDPR breach notification (Article 33, generally within 72 hours) start when you become aware.
[1]
What information to preserve now
Incident response and data recovery teams almost always need this information. Collect it as far as possible without altering systems.
About the attack
- Ransom note (photo/copy) and its file name
- New file extension and a sample encrypted file
- Time of discovery, first anomalies
- List of affected systems (servers, clients, hypervisors, storage)
- Attacker contact addresses and leak site references
About the infrastructure
- Network diagram, sites and remote access points
- Domain controllers and privileged accounts
- Backup design: software, storage locations, last successful backup
- Storage details: RAID level, NAS/SAN model, hypervisor (e.g. VMware ESXi, Hyper-V)
About traces and logs
- Firewall, VPN and proxy logs
- EDR/antivirus alerts from recent weeks
- Windows event logs from relevant servers
- Memory captures where appropriate (trained staff only)
About the organisation
- Contacts with decision-making authority
- Contact details for cyber insurer, data protection officer and legal counsel
- External IT providers with access to the environment
The next hours and days
After the immediate actions comes structured handling. Typical phases:
- Containment: close attacker access, disable compromised accounts, segment the network.
- Investigation: establish initial access, persistence, lateral movement and possible data exfiltration.
- Eradication: remove malware, backdoors and tampered configurations.
- Recovery: rebuild systems from clean sources; restore data from verified backups, via decryptor or through data recovery.
- Post-incident review: lessons learned, hardening, stronger cyber resilience.
For a detailed walk-through of the first hour, read Ransomware: the first 60 minutes. The full process is covered in The ransomware incident response process.
Can the ransomware be decrypted?
Free decryptors exist for some ransomware families, for example via the No More Ransom project. However, not every type of ransomware has a solution.
If no decryptor is available, the options are a clean backup or professional data recovery. The differences are explained in Decryption vs. data recovery.
Data recovery by system
- NAS Encrypted by Ransomware: Data Recovery for NAS Systems
- QNAP NAS Encrypted by Ransomware: Data Recovery and First Steps
- Synology NAS Encrypted by Ransomware: Data Recovery and First Steps
- Veeam Backups Encrypted or Deleted by Ransomware: What Can Still Be Recovered
- Hyper-V After Ransomware: Recovering Encrypted VHDX Files and VMs
- Proxmox VE after Ransomware: Recovering VMs, ZFS and Backups
- Recovering SQL Server, Exchange & Databases After Ransomware
- DATEV Data Encrypted by Ransomware: Recovery and First Steps
- Ransomware on VMware ESXi: Attack Paths, First Response and Recovery
- Ransomware on Servers, NAS, RAID or VMware: What Can Be Recovered?
Ransomware by sector
Frequently asked questions
What should I do immediately after a ransomware attack?
Disconnect affected systems from the network without cleaning or reinstalling them. Document the ransom note, file extensions and timestamps, preserve logs and keep backups offline. Then bring in an incident response team to coordinate containment and forensics.
Should I shut down the affected server?
It depends on the scenario. Powering down destroys volatile evidence in memory that can matter for forensics. If encryption is still running or the attack is spreading, immediate isolation or shutdown may be necessary. When in doubt, cut the network connection first and decide together with incident response specialists.
Should we pay the ransom?
Authorities such as Germany's BSI and initiatives like No More Ransom advise against paying. Payment guarantees neither a working key nor that stolen data will stay unpublished. The decision has legal and insurance implications that should be clarified with specialist counsel and your insurer.
Can backups be affected too?
Yes. Attackers often deliberately target backup servers, snapshots and repositories to delete or encrypt them. Verify backups before connecting them to cleaned systems. A backup may also already contain malware or attacker backdoors.
When do I need incident response, and when data recovery?
Incident response is needed while the attack is ongoing, the entry point is unknown or systems need forensic assessment. Data recovery makes sense when data is encrypted or drives, RAID, NAS, SAN or virtual machines are damaged and no clean backup exists. In many cases both run in parallel.
Do we have to report the incident?
If personal data may be affected, organisations subject to the GDPR may need to notify the supervisory authority within 72 hours under Article 33. Certain sectors have additional reporting duties. Clarify this promptly with your data protection officer, legal counsel and insurer. Reporting the crime to the police is always an option.
Related ransomware profiles
- Lockbit
.lockbit - Akira
.akira - BlackBasta
.basta - Phobos
.phobos
Read next
Sources and further reading
- [1]BSI (German Federal Office for Information Security) – Ransomware: first aid for a serious IT security incident (German) bsi.bund.de
- [2]CISA – #StopRansomware Guide (Response Checklist) cisa.gov
- [3]No More Ransom – Decryption tools and guidance nomoreransom.org
- [4]BSI (German Federal Office for Information Security) – I have an incident. What should I do? bsi.bund.de