Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Rootkit Types: A Cyber Threat Library

· 8 min read · Home Tech

In this article
  1. What Is a Rootkit?
  2. User-Mode Rootkits
  3. Kernel-Mode Rootkits
  4. Bootkits (Bootloader Rootkits)
  5. Hypervisor-Based and Firmware Rootkits
  6. Rootkit Detection and Removal
  7. Common Misconceptions
  8. Frequently Asked Questions

Rootkits are a class of malware that hide their presence and grant attackers persistent, privileged access to a system. This article catalogs the main types of rootkits, explaining how each one works, where it lives, and how it evades detection. You'll learn the differences between user-mode, kernel-mode, bootkit, and other variants, along with practical guidance on detection and removal.

in t | Time elapsed | min | 60 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

What Is a Rootkit?

A rootkit is a collection of software tools that enables an attacker to maintain hidden, privileged access to a computer. The name comes from the Unix term "root" (the highest-privilege user account) and "kit" (a set of tools). Unlike a virus or worm that spreads and announces itself, a rootkit's defining trait is stealth: it actively conceals its own files, processes, network connections, and registry entries from the operating system and security software.

The typical rootkit attack chain begins with initial compromise—often via phishing, a drive-by download, or an unpatched vulnerability—followed by privilege escalation to gain administrator or kernel-level rights, then installation of the rootkit itself. Once installed, the rootkit can disable security tools, steal credentials, exfiltrate data, or turn the machine into a botnet node. The key danger is persistence: even after a reboot, the rootkit reloads itself, and traditional antivirus often fails to see it because the malware actively subverts the very mechanisms that detection relies on.

User-Mode Rootkits

User-mode (or application-level) rootkits operate in the same privilege ring as normal applications, typically by intercepting API calls that programs make to the operating system. They replace or hook functions in system DLLs (like ntdll.dll or kernel32.dll on Windows) so that when a process asks for a directory listing, the rootkit filters out its own files.

A classic example is the HackerDefender rootkit from the early 2000s, which hooked Windows APIs to hide processes, files, and registry keys. These rootkits are relatively easy to write and test, but they are also the easiest to detect because security software can compare the API responses with the raw system state. Modern user-mode rootkits often use more advanced techniques like DLL injection and unhooking to evade detection, but they still operate in the least-privileged layer of the system.

Kernel-Mode Rootkits

Kernel-mode rootkits run with the highest operating system privileges, inside the kernel itself. They can modify kernel data structures, hook system calls, and directly manipulate device drivers. Because they operate at the same level as the operating system core, they can hide almost anything from every user-mode process, including antivirus software.

Examples include the Sony BMG copy-protection rootkit (2005), which installed a kernel driver that hid itself and certain files, and the more sophisticated ZeroAccess rootkit, which used kernel-mode components to create a peer-to-peer botnet. Kernel rootkits are harder to write and more dangerous: a bug in the kernel code can cause a blue screen of death (BSOD), but a well-written one can remain undetected for years. Detection requires comparing kernel memory with expected values, often using specialized tools like RootkitRevealer or kernel-level forensic analysis.

Bootkits (Bootloader Rootkits)

Bootkits are a particularly insidious type of rootkit that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or the UEFI firmware. They load before the operating system starts, meaning they can decrypt or patch the kernel before it even runs, making them nearly invisible to any software-based detection.

The Alureon (also known as TDL4) bootkit infected the MBR and used a custom filesystem driver to hide its payload. More recent bootkits target UEFI Secure Boot, either by exploiting vulnerabilities or by installing a malicious driver signed with a stolen certificate. Because bootkits run before the OS, they can disable security features like Secure Boot or kernel patch protection. Removal often requires reflashing the firmware or wiping the entire disk, as simply deleting files won't remove the infection from the boot chain.

Hypervisor-Based and Firmware Rootkits

Hypervisor-based rootkits (also called virtual machine-based rootkits) create a thin hypervisor layer between the hardware and the operating system. The rootkit runs as a hypervisor, and the actual OS runs as a guest virtual machine. This gives the attacker complete control over the system while remaining virtually undetectable from inside the guest. The SubVirt proof-of-concept from Microsoft Research demonstrated this in 2006, but no widespread real-world hypervisor rootkit has been seen in the wild, likely due to the complexity of writing a stable hypervisor for arbitrary hardware.

Firmware rootkits go even deeper, embedding malicious code in the BIOS, UEFI firmware, or hardware components like the network card's option ROM. The LightEater rootkit (2015) targeted the Management Engine (ME) on Intel chipsets, and the LoJax rootkit (2018) was the first known UEFI rootkit found in the wild, infecting the SPI flash memory. These rootkits survive OS reinstallation and even hard drive replacement, requiring firmware reflashing or hardware replacement to remove.

Rootkit Detection and Removal

Because rootkits are designed to hide, standard antivirus scans often miss them. Detection typically requires specialized techniques:

  • Signature-based scanning – looks for known rootkit code patterns, but fails against new or polymorphic variants.
  • Behavioral monitoring – watches for unusual system calls, hidden processes, or attempts to modify kernel structures.
  • Memory forensics – analyzes a memory dump for anomalies, such as kernel hooks or unauthorized drivers.
  • Cross-view detection – compares the system view from different privilege levels (e.g., API vs. raw disk) to spot discrepancies.
  • Boot-time scanning – uses a clean, trusted boot medium (like a live USB) to scan the disk before the rootkit loads.

Removal is equally challenging. For user-mode rootkits, booting into Safe Mode and running a dedicated anti-rootkit tool (like Malwarebytes Anti-Rootkit or Kaspersky TDSSKiller) often works. Kernel-mode and bootkit infections may require a full system reinstall, and firmware rootkits may demand firmware reflashing or hardware replacement. In enterprise environments, the safest response is to treat the machine as compromised and rebuild it from known-good media, as complete trust cannot be restored after a kernel-level compromise.

Common Misconceptions

One common misconception is that rootkits are only a Windows problem. While Windows is a frequent target due to its popularity, rootkits exist for Linux, macOS, and even mobile platforms. The Moker rootkit targeted Linux, and XcodeGhost infected iOS apps by tampering with the development toolchain.

Another myth is that a rootkit is always a single piece of software. In reality, a rootkit is often a toolkit containing multiple components: a dropper, a loader, a kernel driver, and various utilities to maintain stealth and functionality. The term "rootkit" describes the stealth mechanism, not the entire malware package.

Finally, many people believe that reinstalling the OS always removes a rootkit. This is true for user-mode and most kernel-mode rootkits, but not for bootkits that infect the firmware or for rootkits that hide in the hard drive's service area (like the Mebromi BIOS rootkit). For those, a full disk wipe and firmware reset are necessary.

Frequently Asked Questions

Can a rootkit be detected by antivirus software?

Traditional antivirus that relies solely on file signatures often misses rootkits because they hide their files and processes. However, modern security suites include anti-rootkit modules that use behavioral monitoring, memory scanning, and boot-time checks. These can detect many known rootkits, but a well-written, novel rootkit can still evade them. For high-risk environments, periodic memory forensics and bootable scans are recommended.

How do I know if my computer has a rootkit?

Signs include unexplained system slowdowns, disabled security tools, strange network traffic, or unexpected system crashes. But rootkits are designed to hide these symptoms, so the absence of symptoms doesn't guarantee a clean system. If you suspect a rootkit, run a bootable anti-rootkit scanner from a trusted USB drive, or use a tool like Microsoft's Sysinternals Autoruns to check for suspicious startup entries and kernel drivers.

What is the difference between a rootkit and a trojan?

A trojan is a type of malware that disguises itself as a legitimate file to trick users into running it. A rootkit is a stealth mechanism that hides the presence of malware. A trojan can install a rootkit, and a rootkit can be used to deliver trojans. The key distinction is that the rootkit's primary purpose is concealment, while a trojan's primary purpose is deception.

Are rootkits illegal?

Creating or distributing rootkits is illegal in most jurisdictions under computer fraud and abuse laws, as they are designed to gain unauthorized access and cause damage. However, rootkit technology is also used in legitimate contexts, such as digital rights management (DRM) and law enforcement investigations. The Sony BMG rootkit was legally problematic because it was installed without user consent, demonstrating that even commercial use can cross legal lines.

Can a rootkit infect a smartphone?

Yes, though less common than on desktop systems. Android devices are more susceptible due to the ability to sideload apps and modify the system partition. Rootkits on Android typically require root access, which is obtained via exploits. iOS is more locked down, but jailbroken devices can be infected. Mobile rootkits often hide malicious apps or intercept communications.

What should I do if I find a rootkit?

Disconnect the machine from the network immediately to prevent data exfiltration. Then, attempt removal with a dedicated anti-rootkit tool. If the rootkit is kernel-mode or a bootkit, assume the system is compromised and back up only essential data files (not executables), then perform a full reinstall from trusted media. For firmware rootkits, contact the hardware vendor for reflashing instructions or consider replacing the affected hardware.