Malware & ransomware

How to Remove a Rootkit: Step-by-Step Removal and Recovery

Rootkits hide below normal antivirus scans, so removal means working outside the infected system. Here is the step-by-step process that actually works.

Cysoro Security TeamPublished · 7 min read
HIDDEN PROCESSrootkit.sys — not listed Scan blocked MALWARE & RANSOMWARE Remove arootkit Scan outside Windows. Then wipe if it returns.
Quick answer

To remove a rootkit, disconnect from the internet, back up only clean personal files, boot into Safe Mode or run a Microsoft Defender Offline scan, then run a dedicated rootkit scanner and a full antivirus scan. If the infection returns or tools are blocked, wipe the drive and reinstall the operating system from known-clean media.

Key takeaways

  • Rootkits hide below normal antivirus scans, so an offline or boot-time scan is usually the first effective step.
  • Disconnect, back up clean files only, and change passwords from a clean device after removal.
  • If a bootkit or firmware rootkit survives a reinstall, wipe the drive and re-flash firmware or seek professional help.

A rootkit is the hardest kind of malware to remove because it is designed to hide. It can sit below your antivirus, change what scans see, and reinstall itself after every reboot. Removing one therefore means working outside the infected system, not just running another quick scan.

What is a rootkit?

A rootkit is malware that gains deep access to a computer and hides itself, and often other malware, from normal detection. It can intercept system calls, hide files and processes, and disable security software.

Rootkits get their name from Unix, where "root" is the administrator account and a "kit" is a set of tools. On Windows the same idea applies: the attacker wants administrator-level control that survives reboots and stays invisible.

Most rootkits arrive the same way other malware does — a malicious download, a phishing attachment, a compromised installer, or an unpatched vulnerability. The difference is what happens next: instead of showing itself, the rootkit digs in and opens a quiet back door.

What are the main types of rootkit?

Rootkits are usually grouped by how deep they sit in the system. The deeper the layer, the harder the removal and the more damage a successful infection can do.

TypeWhere it livesHow hard to removeTypical sign
User-mode rootkitApplications and user processesEasierHidden processes, changed settings
Kernel-mode rootkitOperating system kernelHardAntivirus disabled, scans miss files
BootkitMaster boot record or boot loaderVery hardInfection returns after reinstall
Firmware rootkitBIOS or UEFI firmwareHardestSurvives drive replacement
Hypervisor rootkitBelow the operating systemVery hardWhole system runs inside a hidden layer

User-mode rootkits are the most common on home computers. Kernel-mode rootkits, such as the Spicy Hot Pot family that hijacked browsers on Windows systems, are rarer but far more persistent. Bootkits and firmware rootkits are uncommon for home users, yet they are the reason a wipe does not always work.

How do you know if you have a rootkit?

No single symptom proves a rootkit infection, because the same signs can come from failing hardware or ordinary malware. Look for a pattern, especially security tools that stop working for no clear reason.

Seven warning signs of a rootkitAntivirus will not open or updateSettings change back by themselvesSlow PC with no clear causeBrowser redirects to strange sitesUnexplained network trafficFiles or processes you cannot seeThreats return after every restart — treat this as a strong rootkit clue
Warning signs that point toward a rootkit rather than ordinary malware. Illustration by Cysoro.
  • Security software fails. Your antivirus will not open, update, or finish a scan, or it reports nothing while the computer clearly misbehaves.
  • Changes undo themselves. Browser home pages, search settings, or system settings revert after you fix them.
  • Performance drops. The computer is slow, the fan runs constantly, or data use rises with no app to explain it.
  • Hidden activity. Task Manager shows high use but no obvious process, or files appear and disappear.
  • Infection returns. The same threat comes back after every restart or after a clean scan. This is the strongest clue.

If you see two or three of these together, stop using the machine for banking, email, or work logins. Our guide to how to know if your phone is hacked covers similar warning signs on mobile, where the tools differ but the logic is the same.

What should you do before removing a rootkit?

Preparation matters more with a rootkit than with ordinary malware. A rushed cleanup can destroy the only clean copies of your files or let the attacker keep your passwords.

  1. Disconnect from the internet. Unplug the network cable and turn off Wi-Fi. This stops the rootkit sending data out and downloading reinforcements.
  2. Do not log in to anything sensitive. Assume keystrokes and passwords on this machine may be observed until it is clean.
  3. Back up clean personal files only. Copy documents and photos to an external drive. Do not copy programs or installers.
  4. Download tools from a clean device. If you need a rescue USB or a second scanner, download it on a different computer.
  5. Note your BitLocker recovery key. Microsoft warns to suspend BitLocker before an offline scan, or you may be asked for the recovery key on restart.
Do not restore a full system image yetAn old backup may contain the same rootkit. Restore personal files only, and scan them from a clean device first.

How do you remove a rootkit step by step?

Work in this order: isolate the machine, scan from outside Windows, scan again with a dedicated tool, then clean up and change passwords. Skip ahead only if a step clearly fails.

Rootkit removal in five steps1Disconnectunplug network,turn off Wi-Fi2Offline scanDefender Offline,before Windows loads3Rootkit tooldedicated scannerin Safe Mode4Full scanfull antivirus scan,check results5Reset loginschange passwordsfrom a clean deviceIf the infection returns after step 4, go to wipe and reinstall.
The removal order that gives an offline scan the best chance to work. Illustration by Cysoro.

Step 1: Run a Microsoft Defender Offline scan

Microsoft Defender Offline runs from outside the normal Windows kernel, so it can target malware that hides from scans inside Windows, including rootkits that infect the master boot record. Microsoft says its protection focuses on firmware and rootkits, as explained in Microsoft's Defender Offline documentation.

On Windows 11 and Windows 10 version 1607 or newer, open Windows Security, choose Virus and threat protection, then Scan options, select Microsoft Defender Offline scan, and choose Scan now. Save your work first: the PC restarts, scans for about 15 minutes, then restarts again. Check Protection history afterward for what it found.

Step 2: Boot into Safe Mode and run a dedicated rootkit tool

Safe Mode starts Windows with only the minimum drivers and services, which prevents many rootkits from loading at startup. From there, run a dedicated rootkit scanner from a trusted vendor, then a full antivirus scan. Our guide to how to boot into safe mode walks through the Windows and Mac steps.

Do not run two real-time antivirus products at once, and do not trust a scanner downloaded from a random forum link. Use the vendor's official site, downloaded on a clean device if possible.

Step 3: Try a bootable rescue scan if tools are blocked

If the rootkit blocks every scanner you try, use a bootable rescue disk or USB from a reputable antivirus vendor, created on a clean computer. Booting from that media means the infected Windows never loads, so the rootkit cannot hide from the scan.

Step 4: Clean up, update, and change passwords

Once scans come back clean, update Windows and every application, especially browsers and plugins. Then, from a clean device, change passwords for email, banking, and work accounts, and check for unfamiliar forwarding rules, devices, or sessions.

Check whether any password you used on the infected machine appears in a known breach with our pwned password checker. If it does, change it everywhere you reused it.

When should you wipe and reinstall instead?

Wipe and reinstall when scans keep failing, the same infection returns, or the rootkit is at boot or firmware level. A clean install is slower, but it is the only reliable answer for a deeply embedded infection.

Back up personal files first, then reinstall from known-clean installation media, not from a recovery partition on the infected drive. After reinstalling, install updates before restoring files, and scan every restored file.

For a firmware rootkit, even a clean install may not be enough. Re-flash the BIOS or UEFI firmware from the manufacturer's official download, using a clean computer to prepare the update. If that is beyond your comfort level, take the machine to a professional — firmware work done wrong can brick a device.

Rootkit vs virus vs Trojan: what is the difference?

A virus spreads by infecting files, a Trojan pretends to be legitimate software, and a rootkit hides. One infection can combine all three: a Trojan delivers the rootkit, which then hides a virus or a back door.

The practical difference is detection. Ordinary malware often announces itself with pop-ups or obvious damage. A rootkit's whole job is to stay quiet, which is why an offline scan and a wipe are part of the answer in a way they rarely are for a simple virus.

How do you prevent rootkits?

Prevention is mostly the same hygiene that stops other malware, with extra attention to the deep layers a rootkit targets. Keep Secure Boot on, apply firmware updates, and do not disable security features to install unsigned software.

  • Install updates promptly. Operating system, firmware, and application updates close the vulnerabilities rootkits exploit.
  • Use an administrator account sparingly. Run day-to-day work as a standard user so malware cannot easily gain deep access.
  • Keep Secure Boot enabled. It helps block bootkits that try to load before Windows.
  • Download from official sources. Cracked software and unofficial installers are a common rootkit delivery route.
  • Keep backups offline. A clean, disconnected backup is what makes a wipe and reinstall a nuisance instead of a disaster.

For a wider baseline, our small business cybersecurity checklist covers updates, backups, and device security together.

Panda Security's rootkit removal guide follows the same order: disconnect, Safe Mode, dedicated tool, then full scan.

The bottom line

A rootkit is not removed by running the same scan twice and hoping. Disconnect the machine, scan from outside Windows with an offline or bootable scan, follow up with a dedicated rootkit tool, and be ready to wipe and reinstall if the infection survives.

Afterward, update everything, restore only scanned personal files, and change your passwords from a clean device. You can check whether a password was exposed in a breach with the free pwned password checker.

Frequently asked questions

Can a rootkit be removed without reinstalling Windows?

Often, yes. An offline scan or a dedicated rootkit removal tool run from Safe Mode or bootable media can remove many user-mode and kernel-mode rootkits. Bootkits and firmware rootkits are the exception and may still need a wipe and reinstall.

How do I know if I have a rootkit?

Common signs are antivirus tools that will not open, settings that change back, unexplained slowness or network traffic, and browser redirects. No single sign proves a rootkit, so confirm with an offline scan rather than guessing from symptoms alone.

Does antivirus remove rootkits?

Standard antivirus can remove some rootkits, but a rootkit running inside Windows can hide from or disable the same scan. That is why Microsoft and security vendors recommend an offline or boot-time scan, which runs before the rootkit loads.

Can a rootkit survive a factory reset?

A normal reset can remove many rootkits, but a bootkit or firmware rootkit can survive it because it lives outside the operating system. If infection returns after a clean reinstall, treat firmware as suspect and re-flash it or get professional help.

Should I back up files before removing a rootkit?

Yes, but back up only documents, photos and other personal files you need, and scan them from a clean device before restoring them. Do not back up programs, installers or system files, because they may carry the infection.

Is it safe to keep using a computer with a rootkit?

No. A rootkit can log keystrokes, steal passwords and open a back door for other malware. Disconnect from the internet, do not log in to banking or email, and start removal from another device if you need to download tools.

How long does rootkit removal take?

A straightforward case can take one to two hours, including scans and updates. A stubborn infection that needs a wipe and reinstall, plus restoring files and changing passwords, can take most of a day.

Sources

  1. Microsoft Learn — Microsoft Defender Offline scan in Windows
  2. Avast — What is a Rootkit and How to Remove it?
  3. Panda Security — Rootkit Removal: A Step-by-Step Guide
  4. NinjaOne — How to Detect and Remove Rootkits
  5. CISA — Malware analysis and incident response guidance
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Microsoft Defender Offline documentation and vendor rootkit-removal guidance from Avast, Panda Security and NinjaOne.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free