Malware & ransomware

What Is a Rootkit? Types, Real Examples, Detection and Removal

A rootkit does not do the damage itself — it hides whatever does. Here is how it works, the real cases that made it famous, and why removal usually means rebuilding.

Cysoro Security TeamPublished · 8 min read
C:\> dir0 files foundhidden process: 1!MALWARE & RANSOMWARERootkitThe malware that hides malware.MITRE ATT&CK T1014 · Defense evasion
Quick answer

A rootkit is malicious software that gives an attacker privileged, persistent access to a computer while hiding itself and other malware from the user, the operating system and security tools. It works by intercepting what the system reports about files, processes and network connections. MITRE ATT&CK lists it as technique T1014 under defense evasion, and a confirmed kernel or firmware rootkit usually means rebuilding the machine.

Key takeaways

  • A rootkit's job is stealth: it hides other malware and keeps a backdoor open, rather than causing damage itself.
  • The deeper it lives — user mode, kernel, boot, firmware — the harder it is to detect and remove.
  • Detection must look from outside the infected system; removal of a deep rootkit usually means a full rebuild.

A rootkit is the malware that makes other malware invisible. It does not usually steal your files itself. It hides the program that does, keeps the backdoor open, and makes your own computer lie to you about what is running on it.

What is a rootkit?

A rootkit is a set of tools that gives an attacker privileged access to a computer while hiding that access from the owner, the operating system and security software. Its purpose is long-term, undetected control.

The name has two parts: "root" is the most powerful account on Unix-like systems, and "kit" means a collection of tools. Modern use is broader: a Windows, macOS or Linux rootkit does not need the Unix root account. NIST defines rootkits to include both tools installed after an attacker gains root access and collections of files that maliciously alter normal host behavior.

MITRE ATT&CK catalogs the technique as T1014: Rootkit, under defense evasion. That framing matters: a rootkit rarely does the damage itself; it protects whatever does, by hiding files, processes, network connections, registry keys and boot components.

How does a rootkit work?

A rootkit works by intercepting and altering the answers the operating system gives. When a security scanner asks for a list of running processes, files on disk or open connections, the rootkit edits the answer and removes itself from the results.

Common hiding methods include hooking system calls and APIs, patching kernel data structures so a process disappears from the active-process list, filtering directory listings, and hiding network traffic. A classic Windows example intercepts directory-enumeration APIs so malicious files disappear from the results shown by Explorer or the command prompt.

The lower the layer a rootkit controls, the harder it is to find. A user-mode rootkit hooks application-level functions. A kernel rootkit runs as a driver with the same privileges as the operating system. A bootkit runs before the operating system. A firmware rootkit lives in UEFI or BIOS flash on the motherboard.

The deeper it lives, the harder it is to removeUser mode — hooks APIs, injects into processesEasiest to detectKernel mode — malicious driver, ring 0Bootkit — infects bootloader or boot recordFirmware — UEFI or BIOS flashHardest to removeEach layer can hide everything above it. A firmware rootkit can survive a clean reinstall.
Rootkit types by layer — depth buys stealth and persistence. Illustration by Cysoro.

What are the main types of rootkits?

Rootkits are usually grouped by the layer they operate at. One toolset can contain components at more than one layer, so the boundaries are not always strict.

TypeWhere it hidesHow hard to remove
User-modeApplication level; hooks APIs, replaces libraries, injects into processesModerate
Kernel-modeOperating system core; malicious or exploited driverHard; rebuild usually needed
BootkitMaster boot record or bootloader; runs before the OSHard
FirmwareUEFI, BIOS or device firmware on the motherboardVery hard; may need reflash or new hardware
HypervisorVirtualization layer; runs the real OS inside a controlled virtual machineVery hard
Memory-onlyRuns in memory without writing to disk; gone on reboot unless it persists elsewhereModerate, if caught early

User-mode rootkits

User-mode rootkits run with ordinary application privileges, often called ring 3. They hook the functions programs use to list files, processes and connections. They are the easiest type to build and the easiest to detect, because the kernel itself remains trustworthy and can be used to cross-check what applications report.

Kernel-mode rootkits

Kernel rootkits load into the core of the operating system, usually as a malicious or exploited device driver. They can intercept native APIs, modify kernel data structures and influence everything user applications see. Modern protections such as driver signature enforcement and hypervisor-protected code integrity exist largely to raise the cost of this class.

Bootkits and firmware rootkits

A bootkit infects the master boot record or volume boot record so it executes before the operating system loads. A firmware rootkit lives in UEFI or BIOS flash, or in embedded device firmware, and can re-establish malware even after the operating system is reinstalled. Toolkits such as LoJax and MoonBounce are documented examples of UEFI persistence.

What are real examples of rootkits?

Three cases show the range: a commercial copy-protection tool that became a security disaster, a state-sponsored worm that damaged physical equipment, and the botnet rootkits that hid spam and fraud at scale.

Sony BMG copy protection, 2005

In 2005, Sony BMG shipped music CDs with copy-protection software called Extended Copy Protection, created by First 4 Internet. The software silently installed a rootkit that hid any file whose name started with a particular prefix, $sys$, from the user.

Security researcher Mark Russinovich discovered it on his own computer in October 2005 after creating the rootkit detection tool RootkitRevealer. Malware authors soon exploited the cloaking to hide their own files. Sony recalled the discs and faced class-action lawsuits, and the case remains the textbook example of a rootkit shipped by a legitimate company. About 22 million CDs were affected, according to the Electronic Frontier Foundation, as reported in later summaries of the case.

Stuxnet, 2010

Stuxnet, uncovered in 2010, was a highly sophisticated worm targeting Iran's nuclear facilities. It included a Windows kernel-mode rootkit that concealed its files and processes, with drivers signed using certificates stolen from Realtek and JMicron, plus a separate rootkit for industrial controllers.

It is often cited as the first known cyberweapon: it destroyed a significant part of Iran's uranium centrifuges while remaining difficult to detect, by manipulating programmable logic controllers so centrifuges damaged themselves. The rootkit was not the weapon; it was the cloak that let the weapon work undetected.

Botnet-era rootkits: Rustock, Alureon and ZeroAccess

Rustock, from 2006, built one of the largest spam botnets, with estimates ranging from 150,000 to 2.4 million infected machines. Alureon, also known as TDL-4, infected about 1.5 million computers in the US and stole data while compromising security systems. ZeroAccess, a kernel-mode rootkit from 2011, turned infected computers into revenue sources for click fraud and spam.

These cases share a pattern: the rootkit itself earned no money. It protected the spam engine, the click-fraud module or the data stealer that did. Remove the cloak and the rest becomes visible to normal security tools.

What are the signs of a rootkit infection?

Rootkits are designed to leave few signs, so no single symptom proves one. A cluster of these, especially after a known infection, is worth investigating from outside the system.

  • Security tools stop working or cannot update, and logs show gaps or missing entries.
  • Performance drops for no clear reason, or the machine is slow at startup and shutdown.
  • Network traffic you cannot explain, especially at odd hours or to unknown addresses.
  • Files or processes disappear from listings, or the same scan gives different results on different runs.
  • Settings change themselves: browser home pages, firewall rules, or accounts you did not create.
  • Blue screens or crashes after installing software, as happened with some Sony BMG components.

Do not rely on a scan from inside the suspect system to clear it. If the system is lying about what is running, it can also lie to the scanner. That is the central problem of rootkit detection.

How do you detect a rootkit?

Dependable detection looks at the system from outside, or looks for side effects a rootkit cannot fully hide. The infected system cannot be trusted to report on itself.

Detect from outside the infected system1. Offline scanBoot from trusted external media.The rootkit never runs.2. Memory analysisExamine a memory image forhidden processes and drivers.3. Cross-view comparisonCompare what the host reportswith traffic seen at the firewall.4. Integrity measurementSecure Boot and TPM measuredboot catch changed boot files.
Four ways to see past a rootkit's cloaking. Illustration by Cysoro.
  • Offline scanning: boot from trusted external media and scan the disk. The rootkit's cloaking code never runs, so hidden files become visible.
  • Behavioral and memory-based detection: modern endpoint detection tools watch for unsigned driver loads, API hooking and suspicious kernel behavior, rather than relying only on file signatures.
  • Cross-view comparison: compare what the host reports with an external view, such as network traffic at a firewall. A process the host denies but the firewall sees is a strong signal.
  • Integrity measurement: Secure Boot, TPM-based measured boot and file integrity monitoring detect unauthorized changes to boot components and critical system files.

For a home user, the practical version is simpler: run a reputable offline or boot-time scan, check network traffic from the router, and if anything still looks wrong, treat the machine as compromised and rebuild it.

The documented history of these cases, from NTRootkit in 1999 to Stuxnet and the Sony BMG scandal, is summarized in the Wikipedia rootkit article.

How do you remove a rootkit?

Plan for a rebuild, not a cleanup, if a kernel or firmware rootkit is confirmed. That is the advice in most vendor and practitioner guidance, and it follows from the detection problem: you cannot prove a compromised system is clean by asking the compromised system.

  1. Disconnect the machine from the network so it cannot spread, exfiltrate data or receive new instructions.
  2. Do not trust the machine for passwords. Change passwords from a clean device, starting with email and banking, and check for new mail-forwarding rules and unknown devices.
  3. Back up only data, not programs. Copy documents and photos to external storage, and scan them from a clean machine before restoring them.
  4. Wipe and reinstall from known-good media, with the latest firmware and Secure Boot enabled. For firmware cases, reflash the firmware from the vendor or replace the affected hardware.
  5. Restore data, then monitor. Watch for the same symptoms returning, which would suggest the infection survived or the data was re-infected.

If the rootkit is user-mode only, a reputable offline scan may remove it without a full rebuild. Even then, change the passwords that were used on that machine: if a rootkit was hiding a keylogger, assume the keys were seen. You can check whether a password already appears in known breaches with our pwned password checker.

How do you prevent a rootkit infection?

Prevention is about stopping the privilege gain a rootkit needs, and limiting what one compromised machine can do. No single control covers every layer, so use several.

  • Keep systems patched, especially drivers and firmware. Many kernel rootkits arrive through a known vulnerability or a signed-but-exploited driver.
  • Use Secure Boot and driver signature enforcement, and do not disable them to install unsigned software.
  • Run as a standard user for daily work, not as an administrator, so malware cannot easily load a driver.
  • Use reputable endpoint protection with behavioral detection, not only signature scanning, and keep it updated.
  • Be careful with downloads and USB drives, which were the delivery routes for Stuxnet and many bootkits.
  • Segment and back up. A rootkit on one machine should not mean the whole network is lost, and a tested backup is the fastest way back, as our disaster recovery guide explains.

For a small business, the cheapest high-value steps are patching, standard-user accounts, Secure Boot left on, and a tested backup. They do not make a rootkit impossible, but they raise the cost enough that most attackers move on.

The bottom line

A rootkit is a stealth tool, not a smash-and-grab attack. It hides other malware, keeps a backdoor open, and makes a compromised computer report that everything is fine.

If you suspect one, detect it from outside the system and plan for a rebuild rather than a cleanup. And reduce the chance it ever gets the privilege it needs by patching, using standard accounts, and keeping Secure Boot on — then check your passwords with the free password strength checker.

Frequently asked questions

What is a rootkit in simple terms?

A rootkit is a set of hidden tools that lets an attacker keep privileged access to a computer without being seen. It alters what the operating system reports, so its files, processes and network connections do not show up in normal checks.

What does rootkit mean?

Root refers to the most powerful account on Unix-like systems, and kit means a collection of tools. The term now covers Windows, macOS and Linux tools that hide privileged access, not only tools that use the Unix root account.

How does a rootkit work?

A rootkit inserts itself between the operating system and anything that asks it questions. When a scanner asks for a list of files or processes, the rootkit intercepts the answer and removes itself and its companion malware from the results.

Can antivirus detect a rootkit?

Sometimes, but not reliably. A scanner running inside an infected system can be fed a sanitized view, so dependable detection looks from outside: a clean boot, a memory image, a hypervisor view, or a trusted baseline compared against what the host reports.

How do you remove a rootkit?

For a user-mode rootkit, a reputable offline scan may work. For a kernel, boot or firmware rootkit, the safe answer is usually to wipe the drive, reinstall from known-good media, reset firmware where possible, and change passwords from a clean device.

What is the difference between a rootkit and a virus?

A virus spreads by infecting files and often causes visible damage. A rootkit is a stealth tool: it hides malware and keeps access open. The two often work together, with the rootkit protecting the virus or backdoor.

What is a bootkit?

A bootkit is a rootkit that infects the boot record or bootloader, so it runs before the operating system loads. That early start makes it very hard to detect and remove, because it can control what the operating system sees from the beginning.

Can a rootkit survive reinstalling Windows?

A normal rootkit on the hard drive does not survive a full wipe and clean reinstall from trusted media. A firmware rootkit in UEFI or BIOS can survive, which is why firmware-level cases sometimes need a firmware reflash or a replacement board.

Sources

  1. MITRE ATT&CK — Technique T1014: Rootkit
  2. Palo Alto Networks — What Is a Rootkit?
  3. Wikipedia — Rootkit
  4. LastPass — Rootkits Uncovered: What They Are and Why You Should Care
  5. Bitdefender — What is a Rootkit?
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 MITRE ATT&CK T1014, Palo Alto Networks and the documented Sony BMG and Stuxnet cases.

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