scanrootkit

What Is a Rootkit? How Rootkits Hide and Why They Are Hard to Find

A rootkit is malicious software whose main job is to stay hidden. It changes how the operating system answers questions such as “which files are in this folder?” or “which programs are running?”, and drops its own entries from every answer. Whatever else the attacker installs, a backdoor, a keylogger or a cryptominer, sits underneath that cover.

The name comes from Unix. root is the all-powerful administrator account, and a “kit” was the bundle of modified system tools (ls, ps, netstat) an intruder dropped onto a machine after breaking in, so the real administrator could no longer see the intruder’s files, processes or connections.

How a rootkit hides

Programs do not read the disk or the process table directly. They ask the operating system through standard functions. On Windows, a file manager lists a folder by calling FindFirstFile and FindNextFile; Task Manager asks the kernel for the list of processes.

A rootkit inserts itself into that chain of calls, a technique called hooking. When any program asks for a folder listing, the request passes through the rootkit’s code first, which removes the lines it wants hidden and hands back the rest. Every tool that relies on the same functions, including some security software, sees the edited answer.

The same trick hides registry keys, drivers, services and open network ports. The higher the privilege the rootkit reaches, the more of the system it can edit.

The main types of rootkit

Type Where it runs What removes it
User mode Inside ordinary programs, by patching libraries in memory Most antivirus scanners
Kernel mode As a driver inside the operating system kernel Offline scan, or a reinstall
Bootkit In the boot loader, before Windows starts Boot repair plus offline scan, or a wipe and reinstall
Firmware (UEFI) In the motherboard’s flash chip Reflashing the firmware, sometimes replacing the board
Memory only In RAM, with no file on disk A reboot, unless the loader that planted it runs again at startup

Kernel-mode rootkits are the classic hard case: once code runs inside the kernel, there is no higher authority on the machine to check its work. The types of rootkits guide covers each layer in detail.

What a rootkit is used for

A rootkit rarely does damage on its own. It is the cloak for a payload:

Some rootkits were not built by criminals at all. In 2005 Sony BMG music CDs installed copy-protection software that hid itself with rootkit techniques, and the hiding mechanism was then abused by other malware. Kernel-level anti-cheat drivers in games draw the same criticism today. The famous rootkits guide covers these cases.

Why modern systems are harder to infect

Rootkits forced a redesign of Windows. 64-bit editions since Windows Vista refuse to load unsigned drivers, and Kernel Patch Protection (PatchGuard) crashes the system if anything modifies core kernel structures. Secure Boot, introduced with Windows 8 PCs, checks the signature of each piece of boot code, which shut out most of the bootkits of the early 2010s. Memory integrity (HVCI) in Windows 10 and 11 runs the code-integrity checks inside a virtualised environment the kernel itself cannot tamper with.

None of this is airtight. Attackers sign drivers with stolen certificates, load old signed drivers with known flaws, or exploit Secure Boot bugs, as the BlackLotus bootkit did in 2023. But a fully patched Windows 11 PC with Secure Boot and memory integrity enabled is a far harder target than an XP machine was.

How rootkits get caught

Because a rootkit edits the answers the operating system gives, detection relies on getting a second opinion from somewhere the rootkit does not control:

The step-by-step version for each platform is in how to detect a rootkit, and the tools that perform these checks are compared in the best rootkit scanners.

If you think you have one

Disconnect the computer from the network, use a different, clean device to change the passwords for email and banking, and run an offline scan. If the scan finds a kernel-mode rootkit or bootkit, a full wipe and reinstall is the most reliable fix. How to remove a rootkit walks through both routes.

Frequently asked questions

Is a rootkit a virus?
Not in the strict sense. A virus spreads by copying itself into other files. A rootkit is a concealment tool, and it usually arrives bundled with other malware, such as a backdoor or a banking trojan, whose activity it hides.
Can antivirus software detect a rootkit?
Often, yes. Microsoft Defender scans for rootkits, and Malwarebytes can once its rootkit scan option is turned on. A rootkit that loads before the antivirus can still blind it, which is why an offline scan from outside the running system is the stronger test.
Does reinstalling Windows remove a rootkit?
A full reinstall that wipes and reformats the drive removes user-mode, kernel-mode and most bootkit infections. It does not remove a firmware rootkit stored in the motherboard's UEFI chip, which survives a new drive and a new operating system.
Which best describes a rootkit?
A collection of software that gives an attacker privileged, persistent access to a computer while hiding its own presence from the user and from security tools.