How to Remove a Rootkit: Scans, Boot Repair and When to Reinstall
Rootkit removal comes down to one problem: a rootkit can change what the infected system reports, including what your antivirus sees. To remove a rootkit you need a check that runs from somewhere it does not control, and a plan for when cleaning in place is not good enough.
This guide is for Windows 10 and 11, which is where nearly all consumer rootkits are found. Mac, Linux and Android are covered at the end. If you are not yet sure you have a rootkit, start with how to detect a rootkit.
Before you start: triage
Do these first, in this order. They limit the damage regardless of what the scans find.
- Disconnect from the network. Unplug the Ethernet cable or turn off Wi-Fi. This cuts the attacker’s remote access and stops data leaving. Reconnect only briefly when a step below needs updates.
- Change passwords from a clean device. Use a phone or another computer you trust. Start with your email account (it can reset everything else), then banking, then your password manager, then everything else. Turn on two-factor authentication where it is offered.
- Warn your bank if you did any banking on the infected computer recently, and watch for unfamiliar transactions.
- Do not log in to important accounts on the infected computer until it is clean.
- If it is a work computer, stop here and call your IT or security team. They may need the machine as evidence, and cleaning it yourself can destroy that.
Rootkits rarely act alone. They hide a payload such as a keylogger or a backdoor, which is why passwords come before scanning.
Step 1: Update Windows and run a full scan
Connect briefly to install Windows updates and Microsoft Defender security intelligence updates, then disconnect again. In Windows Security > Virus & threat protection > Scan options, run a Full scan.
A clean result here is not proof. A kernel-mode rootkit can hide from a scan run inside Windows. Go on to Step 2 either way.
Step 2: Run Microsoft Defender Offline
Microsoft Defender Offline restarts the PC into a separate, trusted environment and scans from outside the normal Windows kernel, so drivers loaded by a rootkit never get the chance to run. Microsoft says it targets malware that tries to bypass the Windows shell, such as rootkits that infect or overwrite the master boot record. It is built into Windows 10 version 1607 and later and Windows 11, and it is free.
Before you run it:
- Save your work. The PC will restart.
- Suspend BitLocker if your system drive is encrypted, or have your recovery key ready. Microsoft warns you may otherwise be asked for the key when the PC restarts into the scan.
- Check the PC is not ARM-based. Microsoft lists ARM versions of Windows 10 and 11 as unsupported.
To run it:
- Open Windows Security.
- Select Virus & threat protection, then Scan options.
- Select Microsoft Defender Offline scan, then Scan now.
- Confirm the prompts. Windows signs you out and restarts.
Microsoft says the scan takes about 15 minutes, then the PC restarts into Windows. To see what it found, open Windows Security > Virus & threat protection > Protection history.
If nothing happens after the restart, the Windows Recovery Environment may be disabled. Microsoft’s documentation says the offline scan silently fails without it, and shows how to check its status with reagentc /info from an administrator command prompt.
Bootable rescue USBs from other vendors are covered in offline rootkit scan, including which ones have been discontinued.
Step 3: Get a second opinion from a rootkit scanner
Different scanners use different detection methods, so a second tool is worth running. Use tools that are still maintained. Several well-known names are not.
| Tool | Status (November 2026) | Notes |
|---|---|---|
| Microsoft Defender Offline | Current, built into Windows | The first choice; see Step 2 |
| Malwarebytes for Windows | Current; free version scans and removes | Rootkit scanning is off by default; see below |
| Microsoft Safety Scanner | Current, free | Portable scanner; expires 10 days after download, so download it fresh each time |
| ESET Online Scanner | Current, free | One-time scan; ESET’s suggested replacement for its retired SysRescue Live disc |
| Kaspersky TDSSKiller | Discontinued | Kaspersky staff confirmed in 2023 it was replaced by Kaspersky Virus Removal Tool |
| Kaspersky Virus Removal Tool | Current outside the US | Kaspersky stopped US downloads and US signature updates in September 2024 |
Malwarebytes with “Scan for rootkits” enabled
The free version of Malwarebytes scans and removes threats; real-time protection is the paid part. Its rootkit check is not part of the default scan. Malwarebytes’ current documentation says the option is available only in a Custom Scan: open the Scanner card, choose Advanced scanners, then Configure Scan, and tick Scan for rootkits. Older versions put a Scan for rootkits switch under Settings > Security instead.
Malwarebytes notes two caveats: the option slows the scan, and because rootkits have become rare, a rootkit detection from this check is more likely than usual to be a false positive. It is also not available on ARM-based PCs. If it flags something, check the name against an offline scan before deleting anything. More in Malwarebytes Anti-Rootkit.
Kaspersky tools in the US
TDSSKiller was for years the standard free rootkit remover, and many older guides still point to it. A Kaspersky employee confirmed on the company’s forum in July 2023 that it was discontinued and fully replaced by Kaspersky Virus Removal Tool. Separately, the US Commerce Department barred Kaspersky from providing antivirus signature and software updates to US users from 29 September 2024, and Kaspersky withdrew its downloads for US customers. A Kaspersky tool that cannot update is of little use against current threats, so US readers should use the other tools above. See Kaspersky TDSSKiller for the history.
Avoid “rootkit remover” downloads from unfamiliar sites or pop-up ads. Fake scanners are a common way to install the very malware you are trying to remove. The scanners we have checked are compared in the best rootkit scanners.
Step 4: Decide whether to clean or reinstall
What the scans find decides the next step.
| What you found | What to do |
|---|---|
| Nothing, and no symptoms | Probably clean. Keep protections on and watch for symptoms |
| Adware, a trojan or a user-mode rootkit, cleaned by the scanner | Rerun the offline scan. If it comes back clean, you can usually keep the installation |
| A kernel-mode rootkit or driver-level detection | Back up documents and wipe and reinstall (Step 6) |
| A bootkit, or a detection in the boot sector or EFI partition | Clean install that deletes all partitions (Step 6) |
| A firmware or UEFI detection | Firmware reflash first, then reinstall (Step 7) |
| Scanners disagree, or the infection keeps coming back | Treat it as kernel-level and reinstall |
The reason to reinstall after a kernel rootkit is not that scanners are useless. It is that a kernel rootkit had full control of the machine for an unknown time. It could have disabled protections, planted other malware, changed system files or added accounts. A scanner can remove what it recognises; it cannot prove that nothing else was changed. A reinstall can. Microsoft’s own guidance for the BlackLotus bootkit was to reformat the device, not clean it.
Step 5: Repair boot problems
Some rootkits, and some removals, leave Windows unable to start. If the PC fails to boot after a scan removed something:
- Open the Windows Recovery Environment. Windows usually opens it by itself after repeated failed starts; otherwise boot from Windows installation media and choose Repair your computer.
- Choose Troubleshoot > Advanced options > Startup Repair.
Startup Repair fixes damaged boot files. It does not prove the bootkit is gone. If the scan identified a bootkit, plan on a clean install anyway. Background on how these infections work is in bootkits and firmware rootkits.
Step 6: Wipe and reinstall Windows
This is the reliable fix for kernel-mode rootkits and bootkits.
Back up the right things. Copy documents, photos and other personal files to an external drive. Do not back up programs, installers or a full system image, which could carry the infection across. Plan to reinstall applications from their official sources.
Make installation media on a clean computer. Download Windows from Microsoft’s official Download Windows page and use its Media Creation Tool to make a USB installer.
Choose the right kind of reinstall:
- Reset this PC (in Windows 11, Settings > System > Recovery, then Reset PC), choosing to remove everything, reinstalls Windows and is fine for most user-mode and kernel-mode infections. It does not give you control over the disk’s partitions.
- A clean install from USB, deleting every partition is the choice for a bootkit. When the installer asks where to install Windows, delete all partitions on the system drive, including the EFI System Partition and recovery partition, and install to the unallocated space. Windows creates fresh ones. This is what removes a bootkit living on the EFI partition.
After installing, connect to the internet, install all Windows updates, then scan the external backup drive before opening files from it.
Step 7: If the infection is in the firmware
Firmware rootkits are rare and usually tied to targeted attacks, but they are the one case where a reinstall does nothing. The infection lives on the motherboard’s flash chip and comes back after a new drive and a new Windows.
- Contact the PC or motherboard maker for the official firmware image for your exact model and instructions for writing a complete clean image.
- Reflash the firmware using that method, working from a clean computer to download it.
- If the maker cannot provide a reliable reflash, the remaining option is replacing the motherboard, or for a laptop, the machine. ESET gave the same two options for the LoJax firmware rootkit.
- Then wipe and reinstall Windows as in Step 6.
Rootkits on Mac, Linux and Android
- Mac: macOS System Integrity Protection blocks changes to protected system files, even by administrators. See Mac rootkit detection for what to check and when to reinstall macOS.
- Linux: use rkhunter and chkrootkit as a first pass, then examine the disk from a live USB. A confirmed kernel module rootkit means reinstalling. See Linux rootkit detection.
- Android: a factory reset clears most infections; malware built into the firmware needs a reflash of official firmware. See Android rootkit detection.
After-care
Once the machine is clean:
- Change passwords again, this time including anything you had to log in to during cleanup.
- Check your accounts for unfamiliar sign-ins, forwarding rules in email, new recovery addresses and linked devices.
- Turn on the built-in protections. In Windows Security > Device security > Core isolation details, switch on Memory integrity. Make sure Secure Boot is on in the UEFI settings. These are explained in kernel-mode rootkits.
- Use a standard account day to day. Installing a rootkit driver needs administrator rights, so a non-admin account removes the easiest route.
- Keep Windows, drivers and firmware updated.
- Keep a real-time antivirus on. Microsoft Defender is adequate for most people. See antivirus rootkit protection.
An infection is also a good moment to review what you share and how exposed your accounts are. MK Library’s guide to protecting your privacy online covers the account and browser settings worth tightening. For broader malware checks, see how to check for malware.
Frequently asked questions
- Can a rootkit be removed without reinstalling Windows?
- Often, for user-mode rootkits and some kernel-mode ones that a current offline scan identifies and cleans. For a confirmed kernel-mode rootkit or bootkit, a full wipe and reinstall is the reliable fix, because there is no way to be sure what else it changed while it controlled the system.
- What is the best free rootkit remover?
- Start with Microsoft Defender Offline, which is built into Windows 10 and 11 and scans before Windows loads. For a second opinion, the free version of Malwarebytes can scan for rootkits once the option is enabled. Kaspersky's old TDSSKiller is discontinued and Kaspersky tools no longer receive updates in the US.
- Does a factory reset remove a rootkit?
- Reset this PC with the option to remove your files reinstalls Windows and clears most user-mode and kernel-mode infections. It does not let you delete and recreate the EFI System Partition, where UEFI bootkits such as BlackLotus live, so a clean install that deletes all partitions is the safer choice for a bootkit. Neither removes a firmware rootkit.
- How long does a Microsoft Defender Offline scan take?
- Microsoft says about 15 minutes. The PC restarts into a separate scanning environment, runs the scan and then restarts into Windows. The results appear under Protection history in Windows Security.
- Should I change my passwords after a rootkit infection?
- Yes, and do it from a different device you trust, not the infected one. A rootkit often hides a keylogger or credential stealer, so assume anything typed on the infected computer was exposed. Start with email, banking and any password manager.