scanrootkit

How to Detect a Rootkit (and Whether You Should Scan for One)

Detecting a rootkit is harder than detecting ordinary malware because the thing you are looking for controls the answers you get. A rootkit edits what the operating system reports about files, processes, drivers and network connections. Ask the infected system “is anything hidden here?” and the rootkit can simply answer “no”.

Every working detection method gets around this the same way: it collects a second view of the system from somewhere the rootkit does not control, then compares the two. This guide explains those methods in plain terms, then points you to step-by-step checks for Windows, Linux, Mac and Android.

If you are not yet sure what a rootkit is, start with what is a rootkit.

Should you scan for rootkits at all?

For most people, a current antivirus already does some rootkit checking in the background. Microsoft Defender and Malwarebytes, for example, both include rootkit detection. A dedicated rootkit scan is worth running when you have a concrete reason:

A scan “just in case” does no harm, but expect some rootkit scanners to report false positives. Malwarebytes, for example, warns that because rootkits have become rarer, its rootkit scan results are more likely to be false positives than they used to be.

Why symptoms are unreliable

Lists of “rootkit symptoms” circulate widely: slow performance, blue screens, changed browser settings, odd network activity. All of them can be caused by a rootkit. All of them are far more often caused by something else, such as a failing drive, a bad driver update or an ordinary adware install.

The deeper problem is that a rootkit’s whole purpose is to avoid symptoms. A competent one keeps CPU use low, avoids crashing the machine and leaves no visible files. The infections that do cause obvious problems are usually the badly written ones.

Symptoms that are more meaningful than general slowness:

Symptom Why it matters
Security software disabled and cannot be turned back on Malware commonly attacks the tools that would find it
Real-time protection turns off by itself Logged on Windows as Defender event 5001; check whether you or an update caused it
A detection that returns after every removal Something hidden is reinstalling the visible payload
Network connections your firewall logs show but your tools do not A classic sign of a cross-view discrepancy
Blue screens that started right after an unknown driver appeared Kernel code that does not belong there tends to destabilise the system

Even these only justify a scan. They do not confirm an infection.

Detection method 1: cross-view comparison

This is the core technique behind most rootkit scanners. The scanner gathers the same information twice:

  1. The high-level view. It asks the operating system through the normal functions, the same ones File Explorer, Task Manager and ps use.
  2. The low-level view. It reads the raw data directly: the disk’s file system structures, the registry hive files, or kernel memory.

Anything that appears in the low-level view but is missing from the high-level view is being hidden. Microsoft’s old RootkitRevealer tool worked exactly this way, comparing Windows API results with a raw scan of the NTFS volume and registry hives, and its documentation notes the limit of the approach: a kernel-mode rootkit can, in theory, interfere with the raw reads too.

Cross-view checks also produce harmless discrepancies. Files created or deleted during the scan, NTFS metadata files and some security products that hide their own data can all show up. Each hit needs a judgement call, which is why the better scanners match results against known-good lists before showing them to you.

Detection method 2: integrity checking

Integrity checking asks a different question: has anything that should never change, changed?

The weakness is the baseline. If the system was already compromised when the baseline was taken, or if the database is stored somewhere the attacker can edit, the check proves little. Keep integrity databases on read-only or offline media where you can.

Detection method 3: memory forensics

Memory forensics means saving a copy of the computer’s RAM to a file, then examining that file on a different, clean machine. Because the analysis happens elsewhere, the rootkit cannot interfere with it.

The standard open-source tool is Volatility 3, maintained by the Volatility Foundation. It reconstructs the operating system’s internal structures from the memory image. Two of its techniques show the idea well:

Volatility has equivalent checks for Linux, including plugins that compare the kernel’s module list with sysfs and carve memory for hidden kernel modules.

This is specialist work. Capturing memory correctly, matching symbol files to the exact kernel or Windows build, and interpreting results all take practice. For a home user it is mainly useful to know that it exists, because it is what an incident responder will do if you hand them a seriously compromised server.

Detection method 4: offline scanning

An offline scan boots the computer from a separate, trusted environment, so the installed operating system, and any rootkit inside it, never starts. The scanner then reads the disk as plain data.

This defeats almost all user-mode and kernel-mode rootkits, because their hiding code only works while it is running. It does not help against a firmware rootkit in the motherboard’s flash chip, which sits below the disk.

Options include:

The offline rootkit scan guide covers each option in detail.

Detection method 5: behaviour and logs

A rootkit can hide files and processes on the machine it controls. It has a much harder time hiding what it does from devices it does not control.

Detection by platform

Platform First step Stronger check Guide
Windows 10 and 11 Full scan in Windows Security, Malwarebytes rootkit scan Microsoft Defender Offline scan Windows
Linux rkhunter, chkrootkit, package verification Boot from live media, compare hashes, memory capture Linux
macOS Confirm SIP is on, review login items and launch agents KnockKnock, Malwarebytes for Mac Mac
Android Play Protect, check for unknown admin and accessibility apps Reflash official firmware if the device is suspect Android

The tools themselves are compared in the best rootkit scanners, with separate pages for Malwarebytes, rkhunter and chkrootkit.

What to do with a positive result

Do not delete things by hand based on one scanner’s report. First, get a second opinion from a different vendor’s tool, preferably one that runs offline. If two independent tools agree, or if the finding is a kernel driver or a modified boot record, plan for removal.

Before you start, use a different, clean device to change the passwords for your email and bank, because anything typed on the infected machine may have been captured. Then follow how to remove a rootkit. For kernel-mode infections and bootkits, wiping the drive and reinstalling the operating system is the dependable fix.

Frequently asked questions

What is a rootkit scan?
A rootkit scan looks for software that hides itself by tampering with the operating system. Instead of only matching files against known malware, it compares what the system reports with what is really on the disk or in memory, and flags anything that one view shows and the other hides.
Should I scan for rootkits?
If you have a specific reason to suspect one, yes. Security tools that switch themselves off, a scanner that keeps finding the same malware after removal, or an alert from your antivirus about a hidden driver are good reasons. For routine protection, a current antivirus with its built-in rootkit checks is enough for most people.
Can a rootkit hide from a rootkit scanner?
Yes. A rootkit running in the kernel can, in principle, falsify anything a scanner running on the same system asks for. That is why an offline scan, which boots from a clean environment so the rootkit never runs, is the stronger test.
Is a slow computer a sign of a rootkit?
Rarely on its own. Slowness, crashes and high fan noise have many ordinary causes, and a well-built rootkit tries hard not to cause any of them. Treat symptoms as a reason to scan, not as evidence of infection.
Does a clean scan prove there is no rootkit?
No scan can prove a negative. A clean result from an online scan plus a clean offline scan from a second vendor is about as strong as home-user evidence gets. Beyond that, the reliable answer is a wipe and reinstall.