What Is a Rootkit? The Malware Built to Hide From Your Security Tools

Key Takeaways
Most malware wants to do damage fast. A rootkit wants something different. It wants to stay.
Rootkits have one goal above all others: don't get caught. They burrow into the deepest parts of your system, turn off the lights on themselves, and give attackers a quiet, persistent foothold that can last months or even years. Your antivirus might scan your computer every day and never see a thing.
That's not a hypothetical. It's how some of the most consequential cyberattacks in history have worked.
What is a rootkit, exactly?
A rootkit is a type of malware that gives attackers unauthorized access to your device while actively hiding that access from you and your security software.
Once installed, a rootkit doesn't just sit there. It operates in the background, stealing passwords, logging keystrokes, recruiting your device into a botnet, or opening a backdoor for more malware. All while making itself invisible to the tools meant to stop it, as Kaspersky explains.
The tricky part is how they get in. Phishing emails are one of the most common delivery methods, tricking someone into clicking a link or opening a file. Attackers also exploit unpatched software vulnerabilities, or bundle rootkits inside seemingly legitimate downloads like pirated apps or infected PDFs.
Why rootkits are so hard to detect
Most security software works by scanning the operating system: checking running processes, file directories, and system logs for anything that looks wrong.
A rootkit operates at or below the level being scanned. It can intercept those queries and return false results, causing security tools to report a clean system while the attack continues. Some rootkits go further and disable antivirus software outright.
This is what makes them different from other malware. A virus or ransomware announces itself, eventually. A rootkit is built to stay silent. Wikipedia's technical overview of rootkits describes this as the rootkit "subverting the software that is intended to find it," which is a precise summary of the problem.
The main types of rootkits
Not all rootkits work the same way. Where they hide determines how dangerous they are and how hard they are to remove.
Kernel-mode rootkits are the most severe. They operate at the core of your operating system, the kernel, which is the layer that controls everything else. Because they're embedded this deep, they can alter how your OS functions and are extremely difficult to detect or remove.
User-mode rootkits run at the application level, the same layer as your everyday software. They're more detectable than kernel-mode variants, but still capable of serious damage. Antivirus tools can sometimes catch them.
Bootloader rootkits (bootkits) replace or corrupt the bootloader, the small program that starts your OS before anything else loads. That means the rootkit activates before your operating system even wakes up, so it can load before many security tools start. Windows' Secure Boot and Trusted Boot check the bootloader and startup components to help defend against this.
Firmware rootkits go deeper still. They embed into the firmware of your hardware, like your router, your hard drive, or your computer's BIOS chip. Because they live below the operating system, wiping your drive and reinstalling your OS won't touch them. In some cases, Wikipedia notes, removal may require hardware replacement.
Memory rootkits hide in your RAM rather than on your hard drive. They disappear on reboot, which limits their longevity but also makes them harder to catch during a standard scan.
Virtual rootkits load underneath the entire operating system, hosting it as a virtual machine. This lets them intercept hardware calls and manipulate the OS without ever modifying the kernel directly.
Real attacks that show what rootkits can do
This isn't theoretical. Rootkits and rootkit techniques have played a part in some of the most damaging incidents in the history of digital security.
Stuxnet (2010) was a worm that used rootkit techniques to hide itself, and Wikipedia describes it as the first discovered malware to spy on and subvert industrial systems. Symantec's analysis counted about 100,000 infected hosts across more than 155 countries, with roughly 60% in Iran, and described what it called the first PLC rootkit, which hid the malicious code running on industrial controllers. The Institute for Science and International Security estimated that about 1,000 centrifuges at Natanz were taken out of service in late 2009 or early 2010, more than 10% of those installed, and called Stuxnet a reasonable explanation, though not a confirmed cause. That jump from digital code to physical consequences is a line most malware never crosses.
Sony BMG (2005) was a different kind of rootkit, one that came from a company most people trusted. Sony BMG shipped copy-protection software on its music CDs. About 2 million discs across 52 titles carried the XCP software, which used rootkit techniques to hide files on the computers that played them, and about 20 million more carried a separate tool called MediaMax (Wikipedia). As the Electronic Frontier Foundation documents, XCP hid files, created security vulnerabilities, and was hard to remove. The FTC later said the software created security vulnerabilities and was concealed from consumers.
ZeroAccess (2011) was installed more than 9 million times and built a botnet used for click fraud and Bitcoin mining, according to SecurityWeek reporting on Sophos research. More than 1 million systems were actively infected, and newer versions dropped the kernel-mode components and ran from user-mode memory. It operated quietly enough that most users never knew their machines were being used for someone else's financial gain.
More recently, the FudModule rootkit has been tied to North Korean threat actors. In 2024, Microsoft reported with medium confidence that Citrine Sleet used a Chromium zero-day (CVE-2024-7971) to run code in the browser, then a separate Windows kernel zero-day (CVE-2024-38106) to escape the browser sandbox and deploy FudModule. It is a data-only rootkit that uses Direct Kernel Object Manipulation to stay hidden. FudModule has also been linked to other North Korean groups and to several different zero-days during 2024, according to Gen Digital's research.
How to detect a rootkit infection
Detection is the hardest part. Standard antivirus tools can miss rootkits, especially deep ones, because the rootkit can intercept the scan itself. That said, there are methods that work, particularly when multiple approaches are combined.
NIST's guidance on malware incident handling notes that rootkits are very hard to detect, so security professionals typically combine several methods:
- Behavior-based detection looks for unusual system activity rather than known signatures. If your CPU is pegged at 90% for no visible reason, or your network is sending data you didn't initiate, that's worth investigating.
- Difference scanning compares what the operating system reports against what a trusted external tool finds. If those two views don't match, something is hiding between them.
- Memory dump analysis captures a raw snapshot of RAM and examines it outside the running OS, where a rootkit can't interfere with the results.
- Booting from an external trusted OS (like a clean USB drive) lets you scan your system from outside of it, so the rootkit can't manipulate what you see.
On Windows, Microsoft Defender Offline runs a scan outside the normal Windows kernel and focuses on firmware and rootkits. Secure Boot and Trusted Boot add a layer against bootkits by checking the bootloader and startup components before they run. Neither is a guarantee, since attacks like FudModule show that kernel exploits can sometimes get around built-in protections, so no single tool catches everything.
What to do if you suspect a rootkit
If you think your system is compromised, restart carefully. Memory rootkits disappear on reboot, but deeper variants won't. Run an offline scan such as Microsoft Defender Offline, ideally from a trusted environment. If the rootkit persists, Microsoft strongly recommends reinstalling the operating system and your security software and restoring from a backup, and NIST says it is often best to rebuild the host. Restore only from a backup you know predates the infection, and change your passwords from a separate, clean device. In the worst cases, specifically firmware rootkits, you may need to replace hardware entirely.
Don't wait until you're suspicious. Prevention is significantly easier than removal.
How to reduce your risk
You can't guarantee a rootkit never touches your system, but you can make it much harder for one to get in and much easier to catch early.
- Keep your OS and software updated. Many rootkits arrive through known vulnerabilities that patches would have closed.
- Be careful about what you download and where it comes from. Pirated software and third-party app stores are common delivery points.
- Treat unexpected emails, texts, and links with suspicion. Phishing is one of the most common ways rootkits get in, so verify requests through a separate channel before you click or open an attachment.
- Keep Secure Boot and memory integrity turned on in Windows. They are built to block tampered boot components and unsafe drivers, though no protection is perfect.
- Use multi-factor authentication, ideally passkeys or a hardware security key. A rootkit that logs your keystrokes can capture passwords and one-time codes typed on the infected device, so phishing-resistant methods hold up better.
Conclusion
A rootkit is usually the end of a chain, not the start. Most get in through a phishing link, an unpatched vulnerability, or pirated software, so patching, careful downloading, and Windows' built-in boot and driver protections close off the most common routes. If you do suspect an infection, recover from a clean state: rebuild the system, restore only from a backup you trust, and change your passwords from a clean device.
Guardio doesn't scan for malware and can't detect or remove a rootkit, but it covers related risks, including the phishing and scam sites that are a common first step. Browsing protection on your computer and phone blocks phishing and scam sites before they open and explains why. Email Security flags phishing emails that get past the Gmail spam filter, and on iPhone the Text Message Filter sends malicious texts to junk. Identity Breach Monitoring alerts you if your email address or phone number appears in a known data breach. No tool catches everything.
Get a free security scan with Guardio today and stay protected from phishing.
FAQs
Can a rootkit survive a factory reset?
Firmware rootkits can survive a factory reset because they live in hardware-level firmware, not on the operating system or storage drive that gets wiped. For most other rootkit types, reinstalling the operating system from trusted media is the usual fix, though firmware variants may require hardware replacement.
What's the difference between a rootkit and a virus?
A virus replicates itself and spreads, often making itself visible through symptoms like slowdowns or crashes. A rootkit is built specifically to remain hidden and to maintain persistent access for an attacker. Rootkits are often used to deliver other malware, including viruses, while staying invisible themselves.
How do rootkits get installed?
Common entry points are phishing emails, malicious downloads, exploited software vulnerabilities, and compromised websites that trigger drive-by downloads. Once an attacker has initial access, they install the rootkit to establish a persistent, hidden foothold on the device.
Can antivirus software detect a rootkit?
Standard antivirus can miss rootkits, especially deep ones, because rootkits can intercept and manipulate the data that antivirus tools scan. Offline scans such as Microsoft Defender Offline, behavior-based detection, and booting from a trusted external OS are more reliable methods for finding rootkits on an infected system.
Is a rootkit the same as spyware?
Not exactly. Rootkits and spyware can overlap since rootkits often carry spyware payloads, but they're different things. Spyware collects data. A rootkit is about access and concealment. A rootkit can hide spyware on your system, making the spyware much harder to find and remove.
What is the most famous rootkit attack?
Stuxnet (2010) is one of the best-known attacks to use rootkit techniques. It was a worm that infected roughly 100,000 hosts and is considered a likely cause of about 1,000 centrifuges being taken out of service in Iran's nuclear program. It was the first discovered malware to spy on and subvert industrial control systems.





-%20Why%20That%20Code%20on%20the%20Table%20Could%20Be%20a%20Trap%201.avif)
