How to Remove Stubborn Malware
In this article
Malware can sometimes survive standard removal attempts, hiding in startup entries, scheduled tasks, or legitimate-looking processes. This guide walks you through a systematic approach to identify and eliminate persistent malware from a Windows PC, using built-in tools and a few free utilities. Before starting, back up any important files to an external drive (disconnect it after), and ensure you have another device available to download tools if your internet is compromised.
What You'll Need
- A Windows PC (Windows 10 or 11)
- Another device (phone or PC) to download tools if needed
- A USB flash drive (at least 8GB) for creating a rescue disk
- Internet connection (if available)
Step-by-Step
- Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi. This stops malware from communicating with its command server and prevents further data theft.
- Boot into Safe Mode with Networking. Restart your PC and press F8 (or Shift + Restart) to access Advanced Startup. Choose Safe Mode with Networking. This loads only essential drivers, making it harder for malware to run.
- Open Task Manager and identify suspicious processes. Press Ctrl+Shift+Esc. Look for processes with high CPU or memory usage, unfamiliar names, or those that restart after you end them. Note the file location by right-clicking and selecting “Open file location.”
- Run Windows Defender Offline Scan. In Windows Security, go to Virus & threat protection > Scan options and select Microsoft Defender Offline scan. This scans before Windows fully loads, catching rootkits and bootkits. Restart when prompted.
- Use a second-opinion scanner. Download Malwarebytes Free on another device, transfer it via USB, install and run a full scan. This catches adware and PUPs that Defender might miss.
- Check startup items and scheduled tasks. Open Task Manager > Startup and disable anything suspicious. Press Win+R, type
taskschd.mscto open Task Scheduler. Look for tasks that run at logon or with high privileges; delete any that reference the malware file paths. - Inspect browser extensions and shortcuts. In your browser, remove any unknown extensions. Right-click your browser shortcut and check that the “Target” field doesn’t have extra URLs or command-line arguments.
- Delete temporary files. Use Disk Cleanup (cleanmgr) or manually clear
%temp%,C:\Windows\Temp, and browser caches. Malware often hides there. - Use a rescue disk. Create a bootable USB with a tool like Kaspersky Rescue Disk or Bitdefender Rescue CD on another PC. Boot from the USB and run a full scan. This works even if Windows won’t start.
- Reset or reinstall Windows if needed. If the malware persists, use Windows Recovery to reset the PC (Keep my files) or perform a clean install. This is the most reliable way to remove deeply embedded malware.
Common Mistakes
- Skipping Safe Mode – many malware variants won’t run in Safe Mode, making them easier to delete.
- Not disconnecting from the internet – malware can re-download itself or receive new instructions.
- Only running one scanner – no single tool catches everything; use at least two.
- Ignoring system restore points – malware can hide in restore points; disable System Restore temporarily during cleanup.
- Deleting files without checking dependencies – some malware injects into legitimate processes; blindly ending them can crash your system.
Tips
- Keep your OS and software updated – many malware infections exploit known vulnerabilities.
- Use a standard (non-admin) account for daily use – malware often needs admin rights to install.
- After cleanup, change all your passwords (email, bank, social) from a clean device.
- Enable ransomware protection in Windows Security.
- Regularly back up important files to an external drive or cloud service.
Troubleshooting
Malware returns after reboot: This indicates persistence mechanisms. Re-run the scan in Safe Mode, then check the registry for run keys: Win+R, type regedit, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and HKEY_CURRENT_USER\...\Run. Delete any suspicious entries.
Windows won’t boot: Use a rescue disk to scan. If the system is still unbootable, use Windows Recovery Environment (WinRE) to perform a system restore or startup repair.
Files are encrypted (ransomware): Do not pay. Try to restore from backup. Some decryptors are available for specific ransomware families from No More Ransom.
Malware blocks security tools: Rename the installer (e.g., mbam.exe to scan.exe) and run it. Boot into Safe Mode with Command Prompt and run the installer from there.
Internet is slow or hijacked: Reset your browser proxy settings (Settings > Network & Internet > Proxy) and flush DNS: ipconfig /flushdns in Command Prompt (admin).
Frequently Asked Questions
Can malware survive a factory reset?
Some malware can persist in the firmware (e.g., UEFI rootkits) or in the recovery partition. A clean install (deleting all partitions) usually removes it, but firmware-level malware may require firmware reflashing.
Is it safe to use the same USB drive for multiple tools?
Yes, but ensure the drive is clean before using it. Format it after each use to avoid carrying malware.
How do I know if a process is malicious?
Check the file location – if it’s in AppData, Temp, or ProgramData and has a random name, it’s suspicious. You can search the filename online, but be cautious of fake results.
Will malware removal delete my personal files?
Most scanners only remove infected files. However, some ransomware may have encrypted files that you’ll need to restore from backup. A system reset may remove installed apps but keep personal files if you choose “Keep my files”.
What is the best free malware removal tool?
Microsoft Defender (built-in) and Malwarebytes Free are both effective. For stubborn infections, a rescue disk from Kaspersky or Bitdefender is helpful.
Should I pay a ransom if my files are encrypted?
No. Paying doesn’t guarantee you’ll get your files back and funds criminal activity. Restore from backups or use free decryptors if available.