What to do in the event of a ransomware attack: step-by-step response plan
If you are looking for what to do during a ransomware attack, you need to act quickly but without panic. The main goal in the first minutes is to stop the spread of the malware, preserve evidence, protect backups, and prepare for a safe recovery. This article explains a practical course of action for companies and home users: how to identify ransomware, what to disconnect, who to notify, whether to pay the ransom, and how to reduce the risk of a repeat attack.
Ransomware blocks access to files and systems and then demands a ransom for a decryption key. Sometimes attackers also steal data and threaten to publish it. Therefore, the response should consider not only the recovery of files but also the potential information leak.
Short plan for the first 15 minutes
Below is a condensed algorithm that helps buy time and reduce damage. It is suitable for most cases when encrypted files, a ransom note, or mass data access errors appear on the computer.
- Isolate the infected device from the network. Disconnect the Ethernet cable, Wi-Fi, and VPN. Do not connect external drives.
- Do not delete the ransom note or suspicious files. They may be needed for investigation and finding a decryption tool.
- Do not restart the computer without a specialist's instruction. Sometimes after a reboot, traces of the attack are lost or encryption continues.
- Notify the IT or information security officer. If you are at home, record the time of the incident and take a screenshot of the screen.
- Disable shared folders and network storage, if accessible. It is important to stop the spread through SMB, RDP, VPN, and other channels.
- Check backups, but do not connect them to the infected environment. Backups need to be protected from overwriting and infection.
- Gather minimal information. Device name, user, time of detection, extensions of encrypted files, ransom note text.
- Do not pay immediately. First, assess the scale, availability of backups, legal risks, and the possibility of free decryption.

How to understand that it is a ransomware attack
Not every file corruption means ransomware. However, there are signs that collectively almost always indicate a ransomware attack.
Main signs of infection
Typical symptoms include:
- files have received a new unusual extension;
- documents, databases, photos, or archives can no longer be opened;
- files with ransom payment instructions have appeared in the folders;
- the desktop has changed to a threatening message;
- antivirus, EDR, or SIEM has recorded mass file changes;
- servers have begun to operate slowly, and disks are actively writing data;
- users have lost access to network folders;
- accounts are suddenly blocked or being used from unusual addresses;
- logs show connections via RDP, PowerShell, PsExec, or suspicious scripts.
The situation is particularly dangerous when encryption occurs simultaneously on multiple computers or a file server. This means that attackers may have already gained administrative rights.
What not to consider as evidence on its own
A single damaged file, disk error, or software failure is not always linked to ransomware. Therefore, it is important not to jump to conclusions. First, check the logs, antivirus events, login history, and status of other devices. But if there is a ransom note and mass renaming of files, respond as if it were a real incident.
Step-by-step incident response
During a ransomware attack, it is important to act sequentially. Chaotic actions hinder investigation and can increase damage. Below is a practical order that can be used as a checklist.
Step 1. Appoint a coordinator
There should be one responsible coordinator in the company: IT director, information security specialist, shift supervisor, or external expert. They record decisions, distribute tasks, and prevent conflicting actions.
For a home user, the coordinator's role is simpler: record the discovery time, what was happening before the incident, what devices were connected, and what files were affected.
Step 2. Isolate infected systems
Isolation is the main priority. Disconnect the network on infected devices, but do not begin to turn everything off indiscriminately without a plan. If encryption is actively happening on a file server, immediate disconnection of the network interface or blocking access to shared resources may be necessary.
Actions to take:
- disconnect network cables from infected workstations;
- turn off Wi-Fi and VPN clients;
- block suspicious accounts;
- temporarily restrict RDP, SMB, and administrative connections;
- disable synchronization of cloud folders if it spreads encrypted files;
- separate critical servers from the user network.
What to avoid: do not connect flash drives, external disks, and backup media to the infected computer. This can encrypt the only copy of the data.
Step 3. Preserve evidence
Evidence helps understand the ingress path and determine a restoration method. Do not delete the ransom note, suspicious executable files, archives, scripts, and logs. If possible, create a disk image or a snapshot of the virtual machine.
It is helpful to preserve:
- screenshots of the ransom messages;
- a sample of an encrypted file and its original, if available;
- the text of the ransom demand;
- logs from Windows, Linux, VPN, firewall, mail gateway, and EDR;
- a list of active processes and network connections;
- information about the time of first activity.
Do not send confidential files to random sites for verification. Use only trusted services and pre-remove personal or commercial data if possible.
Step 4. Stop attacker accounts
Many modern ransomware attacks start not with a virus file, but with a stolen password. Attackers gain access through VPN, RDP, cloud panel, email, or an administrator account. Therefore, it is necessary to quickly check suspicious logins.
Actions:
- disable accounts identified in suspicious logins;
- change administrator passwords from a clean device;
- revoke active VPN sessions and tokens;
- check forwarding rules in emails;
- enable MFA where it was not present;
- check new accounts and changes in administrator groups.
It is important to change passwords only after isolating infected systems. If malware is running on the computer, it may intercept the new credentials.