How to Remove Malware When Your Antivirus Can’t: Ultimate Guide

Your antivirus found malware but can't remove it, or it keeps coming back after every restart. The full escalation ladder, from Safe Mode to a rescue USB.
Shield ascending a staircase, representing step-by-step malware removal escalation

The scan finishes, your antivirus reports “threat removed,” and you get on with your day. Then you restart the computer and the same alert is back. Same detection name, same file path, sometimes within seconds of reaching the desktop. Or worse: the machine is clearly sick, ads where no ads should be, a browser that opens pages you never asked for, and the scan comes back clean.

Both situations mean the same thing. Your antivirus has lost this particular fight, and running the same scan a fourth time will not change the score. What works is escalating in the right order, from the least destructive fix to the last resort. That order is this guide.


Why does malware keep coming back after removal?

Almost always because the removal was incomplete. Modern malware rarely lives in one file. It plants a second component, a dropper or a scheduled task or a service, whose only job is to reinstall the visible part after your antivirus deletes it. The alert you keep seeing is the reinstallation being caught, over and over, while the thing doing the reinstalling stays invisible.

Microsoft’s own troubleshooting guidance describes exactly this loop: a detection that returns right after every restart usually points to a hidden component quietly reinstalling the malware your antivirus keeps removing. Rootkits push the same trick deeper, hooking into Windows so that scans running inside Windows cannot see them at all.

There is a second, less technical reason: reinfection. If the malware arrived through an installer from an untrustworthy source, a poisoned email attachment, or a browser extension you still have installed, cleaning the file without closing the door just schedules the next infection.

The fixes below are ordered from least destructive to most. Work down the list and stop when the machine stays clean.

Loop diagram showing a hidden dropper reinstalling malware after each antivirus removal
The restart loop: the scanner keeps winning the battle the dropper keeps restarting.

Before you touch anything

A few minutes of preparation prevents most of the ways this process goes wrong.

  1. Disconnect the computer from the internet. Pull the network cable or switch off Wi-Fi. Many infections phone home for instructions or fresh components, and cutting the connection freezes them in place.
  2. Open your antivirus and note the exact detection name from its history or protection log, for example Trojan:Win32/Wacatac. That name is your search key later and tells a technician everything at a glance.
  3. Unplug external drives and USB sticks. They can carry the infection out, and some malware copies itself to anything removable.
  4. If you have a recent backup, confirm it predates the infection before you ever restore from it. Restoring an infected backup is the most common way people reinfect a machine they just spent a weekend cleaning.

You will need administrator access on the infected PC, and for the later fixes a second clean computer plus an empty USB stick of at least 8 GB. Laptops should stay plugged in; offline scans do not pause for a dead battery.


Fix 1: Safe Mode, then a second opinion

Safe Mode starts Windows with the bare minimum of drivers and services, which keeps most malware from loading and defending itself. It is the cheapest escalation and it resolves a surprising share of stubborn cases.

  1. Hold Shift (⇧) while clicking Restart from the Start menu, then choose “Troubleshoot”, “Advanced options”, “Startup Settings”, “Restart”, and press 4 for Safe Mode. Stay off the network unless a download is unavoidable.
  2. Update your antivirus definitions if you are using Safe Mode with Networking, then run a full scan, not a quick one. Let it finish, even if that takes an hour or more.
  3. Quarantine or remove everything it finds, restart normally, and run the full scan again.
Windows Startup Settings screen listing Safe Mode boot options

Did it work? If the scan in normal mode comes back clean and stays clean after another restart, you are done with the removal half of this guide. If the detection returns, bring in a different engine.

No single engine catches everything, and signature-based scanning has blind spots by design. When your installed antivirus keeps missing or half-removing something, a scanner built on a different engine sees the machine with fresh eyes.

  1. Install Malwarebytes Free from the Malwarebytes page in the Softoto library and run a Threat Scan. It has a long record of clearing infections that the resident antivirus already gave up on. Use it as an on-demand scanner alongside your main protection, not as a second real-time shield; two real-time engines fighting over the same files causes problems of its own.
  2. Follow with AdwCleaner for the browser side of the mess: hijacked search engines, injected extensions, and the adware that generic scans often ignore. It is a portable tool, seconds to run, and it targets exactly the junk that makes a browser misbehave.
  3. Quarantine everything found, restart, and scan once more with both tools.

Did it work? Adware and browser hijackers usually die here. A detection that still survives both engines has persistence deeper than the normal Windows session can reach, which is what the next fix is for.


Fix 2: Microsoft Defender Offline

This is the specific cure for the restart loop. Defender Offline reboots the machine into a small trusted environment and scans the disk from outside Windows, where rootkits and boot-time malware have nowhere to hide and nothing to hook.

  1. Save your work. The scan restarts the PC without much ceremony.
  2. Open Windows Security, go to “Virus & threat protection”, click “Scan options”, select “Microsoft Defender Offline scan”, and press “Scan now”.
  3. The computer restarts into the scanning environment. The pass takes about ten minutes and removes what it finds without asking. When it finishes, the machine boots back into Windows on its own.
  4. Check the results under “Protection history”, then run one more normal full scan to confirm.
Windows Security scan options with Microsoft Defender Offline scan selected
The offline scan hides at the bottom of the scan options list.

Did it work? For recurring detections this is the highest-percentage fix in the whole guide. If the alert that came back after every restart is now gone and stays gone, the hidden component is dead. If Defender Offline itself refuses to run, that refusal is information: something is interfering at a level that makes the rescue USB in Fix 4 the correct next move. A useful stopgap on a machine where Defender is broken is Microsoft Safety Scanner, a standalone download that expires ten days after you fetch it. The expiry is deliberate. It forces you to download a copy with current detection data instead of trusting a stale one.


Fix 3: Hunt the leftovers by hand

Scanners remove malware; they are less thorough about the doors malware opened. Five minutes of manual checking closes them. Everything here is reversible, but only remove entries you can actually identify.

  1. Open Task Manager, switch to the “Startup apps” tab, and disable anything you do not recognize. Search the exact name before deciding; plenty of legitimate helpers look cryptic.
  2. Type taskschd.msc into the Start menu and skim the Task Scheduler Library for tasks with random names or tasks that relaunch a program you just removed. This is the classic home of the reinstaller from the restart loop.
  3. In every browser, remove extensions you did not install yourself, then reset the search engine and homepage if they were changed.
  4. In Windows Security under “Virus & threat protection settings”, open “Exclusions”. Malware sometimes adds its own folder here so that every future scan politely walks around it. Delete any exclusion you did not create.
  5. Check your proxy settings under Settings, “Network & internet”, “Proxy”. An unexpected proxy address means your traffic is being routed through someone else’s server; switch it off.
Windows Task Scheduler Library showing the list of scheduled tasks
Windows Security exclusions page where malware can hide its own folder
Any exclusion you did not add yourself is a red flag.

Did it work? Restart and watch. If the machine stays clean, the combination of Fix 2 and this cleanup ended it. Take the passwords step at the end seriously anyway.


Fix 4: A rescue USB built on a clean machine

When malware blocks your scanners, breaks Defender Offline, or Windows barely boots, stop fighting on infected ground. A bootable rescue drive starts the computer from a separate operating system on the USB stick and scans the Windows installation while it is completely inert.

Build the rescue drive on a clean computer, never on the infected one. Anything created on a compromised machine has to be treated as compromised itself.

  1. On a clean PC, get Kaspersky Rescue Disk or ESET SysRescue Live from their Softoto library pages and write the image to the USB stick with Rufus, the same way our bootable USB drive guide walks through.
  2. Plug the stick into the infected machine and boot from it. That usually means pressing F12, F2, or Esc at power-on to pick the boot device. On some systems you will need to disable Secure Boot in the firmware first; re-enable it when you are done.
  3. Update the definitions if the tool offers to, run the deepest scan available, including boot sectors, and let it clean what it finds.
  4. Remove the stick, boot Windows normally, and run a final full scan from inside Windows to confirm.

Did it work? A rescue environment is the strongest scanning position a home user has. What survives an outside-the-OS scan with two different engines is either genuinely gone or beyond scanning as a strategy, which brings us to the honest part.


If nothing worked: the reset, done right

There is a point where continuing to clean costs more than starting over, and it says something that most guides refuse to name it. If you have been through Safe Mode, two second-opinion engines, an offline scan, manual persistence cleanup, and a rescue USB, and the infection is still standing, the remaining moves are forensic work, not home troubleshooting. A clean reinstall of Windows is not defeat. It is the one fix with a known outcome.

A reset or reinstall erases installed programs and, depending on the option chosen, your files. Back up documents and photos first, to a drive you then scan from another machine, and never back up programs or installers from the infected system.

  1. Copy your personal files, documents, photos, browser bookmarks, to an external drive. Files only. Installers, program folders, and anything executable stays behind.
  2. Use Settings, “System”, “Recovery”, “Reset this PC”, and choose “Remove everything” for a compromised machine. For deep infections, the stricter route of reinstalling from official Windows installation media created on a clean PC is worth the extra half hour.
  3. Before restoring anything, scan the backup drive from a clean computer.
  4. Change your passwords from a device that was never infected, starting with email and banking. If the infection was an information stealer, it likely harvested every credential the machine touched, and cleaning the PC does nothing to un-steal them. Turn on two-factor authentication while you are at it.

One caution on a tool people reach for at this stage: System Restore is not a removal method. Restore points can carry the infection right back, and malware frequently deletes or poisons them anyway.

Removal without closing the entry route is a subscription, not a cure. The same door opens twice. Keep Windows and your browser updated, since unpatched holes are the quiet half of how machines get reinfected. Be honest with yourself about where the infection came from; if it rode in with a bundle from a shady mirror, the fix is changing the source, and the Security & Privacy section of the Softoto library exists so that the genuine build, delivered straight from the developer’s servers, is always one click away. And keep one on-demand second-opinion scanner installed. The day your main antivirus hesitates again, you will already own the tiebreaker.

If you are still choosing that main protection, our free antivirus roundup does the comparing for you; whichever you pick, keep Malwarebytes around as the tiebreaker. It earned its place in this guide the hard way, on machines that were already losing.

Share:
Founder & Editor-in-Chief

Nasreddine is the founder of Softoto, a software download library and blog covering Windows, Mac, and mobile software. He spends his days verifying installers, tracking version histories, and separating real developer downloads from the fakes that outrank them. He tests what he can install himself, sources the rest from developer changelogs and advisories, and always says which one it was. Questions or corrections: contact@softoto.com

Discussion

(0)
{{ reviewsTotal }}{{ options.labels.singularReviewCountLabel }}
{{ reviewsTotal }}{{ options.labels.pluralReviewCountLabel }}
{{ options.labels.noReviewsLabel }}
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}
In this article
Newsletter

The Softoto Daily

Five stories shaping tech, in your inbox by 7am.