How to remove ransomware: a safe action plan
If you need to understand how to remove ransomware, act calmly and in order: first isolate the device, then save the evidence, check the system with a reliable antivirus, and only after that proceed to file recovery. Ransomware blocks access to data and demands a ransom, but deleting the malware does not always decrypt the documents. Therefore, the main goal is to stop the spread, not worsen the situation, and choose a safe method of recovery.

What is ransomware and why is it dangerous
Ransomware is a type of malware that encrypts files on a computer, server, external drive, or in a network folder. After encryption, the user sees a ransom note. Sometimes file extensions change, a timer appears, and the desktop is replaced with a message from the attackers.
Such attacks are dangerous for several reasons:
- Files become inaccessible. Documents, photos, databases, and archives can only be opened after decryption.
- Ransomware can spread across the network. If the computer is connected to a shared folder or corporate domain, the risk is higher.
- Some variants steal data. Modern ransomware groups often copy information first and then encrypt it.
- Paying the ransom does not guarantee anything. Criminals may not send a key, send a non-working tool, or demand money again.
It is important to understand: removing the virus and recovering files are different tasks. An antivirus can remove the active threat, but encrypted files usually remain encrypted. Therefore, do not delete everything indiscriminately and do not format the disk until you assess recovery options.
First actions after infection
The first minutes after discovering ransomware are critically important. Your task is to stop the spread and preserve as much data as possible for analysis.
| Step | What to do | Why it is necessary |
|---|---|---|
| 1 | Disconnect the internet and network | To prevent the virus from transmitting data and infecting other devices |
| 2 | Do not turn off the computer unnecessarily | Sometimes keys or important traces of the attack remain in memory |
| 3 | Disconnect external drives | To prevent ransomware from damaging backups |
| 4 | Photograph the ransom note | This will help identify the type of ransomware |
| 5 | Do not pay immediately | Payment does not guarantee recovery and supports criminals |
| 6 | Check other devices | Need to understand the scale of the infection |
If encryption is ongoing right now and files are changing quickly, disconnecting power should only be done as a last resort. For example, if there is no way to quickly unplug the network cable or turn off Wi-Fi. In normal situations, it is better to isolate the computer from the network first to avoid losing data in RAM.
How to remove ransomware step by step
Below is a practical plan for home computers and small offices. If a server, accounting database, Active Directory domain, or several workstations are infected, it is best to involve a cybersecurity specialist immediately.

1. Isolate the infected device
Immediately disconnect the computer from the network:
- Unplug the Ethernet network cable.
- Turn off Wi-Fi using the hardware button, system settings, or router.
- Disable Bluetooth if storage devices are connected through it.
- Disconnect external drives, USB flash drives, and memory cards.
- Do not connect the phone as a drive.
If the computer is in an office, warn colleagues. Do not open shared network folders from other devices. Temporarily disable NAS network storage if there is suspicion that ransomware has accessed it.
2. Document signs of infection
Before removing the malware, save information that may be useful for identifying the ransomware family:
- the name of the ransom note;
- the text of the message or a screenshot;
- new file extensions;
- email addresses, Telegram accounts, or websites of the attackers;
- a sample encrypted file that does not contain confidential data;
- the date and approximate time when the attack started.
Do not send personal documents to attackers. For analysis, the ransom note and a small encrypted file without sensitive information are usually sufficient.
3. Check if encryption is still ongoing
Open folders with recently changed files and see if new encrypted copies are appearing. Also, pay attention to CPU and disk usage in the task manager.
If activity continues, do not open documents, archives, or unknown programs. Do not try to manually terminate random processes unless you are sure of their purpose. A mistake could lead to data loss or disrupt system operation.
4. Boot into safe mode or from a recovery drive
To remove ransomware, it is better to use an environment where the malware process does not start automatically.
In Windows, you can try safe mode:
- Open recovery options.
- Go to the section of special boot options.
- Choose to restart with additional parameters.
- Start safe mode without networking, if the internet is not needed.
- If you need to update the antivirus, use safe mode with networking, but only after isolating the local network.
An even safer approach is to use a bootable antivirus drive. This is a flash drive or disk with a separate checking environment that needs to be prepared on a clean computer, then boot the infected device from this drive and scan the disks.
5. Perform a full antivirus check
Use a well-known and updated antivirus. Built-in Windows protection tools, corporate EDR, or scanning utilities from reputable vendors will all work. The main thing is to download tools only from official websites.
Recommended order:
- Update antivirus databases on a clean device or in an isolated environment.
- Run a full scan on all local disks.
- Check external drives separately but do not open any files on them.
- Send detected threats to quarantine if the antivirus offers this option.
- Save the scanning report.
- Repeat the check with another reliable scanner if there are doubts.
Do not install multiple antivirus programs with permanent protection at once. They may conflict with each other. For a second check, it is better to use a portable scanner or bootable media.
6. Remove suspicious programs and auto-start items
After the main check, it is worth reviewing what was launched along with the system. Ransomware often enters through a malicious attachment, a pirated activator, a fake update, a macro in a document, or remote access with a weak password.
Check:
- recently installed programs;
- auto-start items;
- task scheduler;
- browser extensions;
- unknown services;
- download folders and temporary directories;
- remote access tools that you did not install.
If you are not sure, do not manually delete system components. It is better to send the file for antivirus checking or consult a specialist. Incorrect removal can complicate recovery.
7. Change passwords from a clean device
If the ransomware was in the system, do not rule out the theft of passwords. Change credentials only from a device that is definitely not infected.
First, change passwords for:
- email accounts;
- cloud storage;
- banking and payment services;
- Microsoft, Google, or Apple accounts;
- corporate VPN and remote desktop;
- admin panels for websites, CRM, and accounting systems;
- router and NAS.
Also enable two-factor authentication wherever possible. If shared passwords are used in the company, they need to be changed immediately.