Malware & ransomware

Rootkit Example: How Rootkits Hide, Real Cases and How to Remove Them

A rootkit hides malware by tampering with what your operating system reports. These real examples show how that works — and how to spot it.

Cysoro Security TeamPublished · 9 min read
C:\> dir /a0 files foundhidden: rootkit.sys! MALWARE & RANSOMWARE Rootkitexamples Malware that hides itself.
Quick answer

A rootkit is malware that hides itself and other malware by intercepting what the operating system reports, so files, processes and network connections stay invisible to the user and to security software. Famous examples include Stuxnet, the Sony BMG copy-protection rootkit, the LoJax UEFI rootkit and the Drovorub Linux rootkit. Because a rootkit can lie to the system itself, removal often means wiping and reinstalling from trusted media.

Key takeaways

  • A rootkit hides malware by tampering with what the operating system reports, not by doing damage itself.
  • Real examples range from Sony BMG copy protection to Stuxnet, LoJax and Drovorub — each hid at a different layer.
  • Detection needs outside-the-system checks, and removal usually means a clean reinstall from trusted media.

Imagine malware that can make itself invisible — not just to you, but to the operating system and the antivirus software running on your own computer. That is what a rootkit does, and it is why rootkits are among the hardest threats to find and remove.

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. It conceals files, processes, services, drivers and network connections.

The name has two parts. "Root" is the most powerful account on Unix-like systems, and "kit" means a collection of tools. MITRE ATT&CK defines rootkits as programs that hide malware by intercepting and modifying the operating-system calls that supply system information, and lists the technique as T1014: Rootkit.

A rootkit rarely does the damage itself. It protects whatever does — a keylogger, a banking Trojan, a cryptominer or a remote-access tool — by keeping it hidden for months or years.

How does a rootkit work?

A rootkit works by sitting between the operating system and the programs that ask it questions, then lying in the answers. When antivirus asks for a list of running processes, the rootkit leaves its own processes off the list.

That interception can happen at several layers. User-mode rootkits tamper with applications and libraries. Kernel-mode rootkits run inside the operating system core, where they can control almost everything the system reports. Firmware rootkits sit even lower, in UEFI or BIOS, and survive a reinstall of the operating system. Bootkits target the boot process itself, loading before the operating system starts.

Because the rootkit controls what the system reports, a scan run from inside the infected system cannot be fully trusted. That is the core problem: you cannot ask a compromised system whether it is compromised and expect an honest answer.

How a rootkit hides malwareWithout a rootkitAntivirus asks: what is running?System answers: everything, honestlyWith a rootkitRootkit intercepts the answerIts own process is left off the listThe system cannot be trusted to report on itselfThat is why detection needs a scan from outside the system — a clean boot drive or firmware check.
A rootkit lies in the answers the operating system gives. Illustration by Cysoro.

What are the main types of rootkit?

Rootkits are usually grouped by where they sit in the system. The lower the layer, the harder the rootkit is to find and the more control it has.

TypeWhere it sitsHow hard to removeExample
User-modeApplications and librariesEasierModified system tools
Kernel-modeOperating system coreHardStuxnet Windows rootkit
BootkitBoot processVery hardBoot-sector malware
Firmware / UEFIMotherboard firmwareVery hardLoJax
HypervisorBelow the operating systemVery hardVirtual-machine based rootkits
Memory-onlyRAM, no file on diskGone on reboot, but can reinfectFileless malware

MITRE notes that rootkits have been seen for Windows, Linux and macOS, and that firmware rootkits can yield nearly full control of a system. The industrial-control version of the technique, T0851, covers rootkits on programmable logic controllers and other embedded devices.

Example 1: Sony BMG copy-protection rootkit (2005)

The Sony BMG rootkit is the most famous example, because it was not written by criminals. It was copy-protection software shipped on about 22 million music CDs, and it hid itself from the people who bought those CDs.

In October 2005, researcher Mark Russinovich found that playing a Sony BMG CD installed Extended Copy Protection (XCP) software that concealed its files and operations. About two million of the affected CDs carried XCP, and about 20 million carried a second program, MediaMax. Sony BMG initially denied the software was harmful, then released an uninstaller that made things worse by introducing further security vulnerabilities.

The fallout was large: public outcry, government investigations, class-action lawsuits, a recall of unsold CDs, and a settlement with the FTC. Sony agreed to disclose limits on CDs, not install software without consent, and reimburse consumers up to $150 for computers damaged by the program.

The lesson still matters: a rootkit is defined by what it does — hiding software from the owner — not by who wrote it.

Example 2: Stuxnet (2010)

Stuxnet, discovered in 2010, was the first known rootkit to target industrial control systems and cause the equipment they run to malfunction. It used a Windows rootkit to mask its binaries and other files, and a separate rootkit for the industrial controllers themselves.

MITRE records that one of Stuxnet's rootkits was contained entirely in a fake file, s7otbxdx.dll, and that it intercepted read and write requests so its malicious code on programmable logic controllers was not discovered or damaged. Its Windows drivers were signed with certificates stolen from Realtek and JMicron, which helped it look legitimate.

Stuxnet showed that a rootkit could be a precision tool for sabotage, not just a way to steal passwords. It also showed how much effort a well-resourced attacker will put into staying hidden.

Example 3: Flame (2012)

Flame, discovered in 2012, was a large espionage platform that attacked Windows computers and could record audio, keyboard activity, network traffic and screenshots. Like Stuxnet, it relied heavily on stealth to stay hidden for years.

Flame was modular: different components handled different spying tasks, and the whole platform was designed to avoid detection. It is often cited alongside Stuxnet as proof that nation-state malware treats hiding as a first-class feature, not an afterthought.

Example 4: LoJax, the first in-the-wild UEFI rootkit (2018)

LoJax is a documented example of a UEFI rootkit found in the wild. ESET reported in 2018 that the Sednit group, also known as APT28, had used it against high-profile targets. MITRE lists APT28's use of the LoJax UEFI rootkit under technique T1014.

Because LoJax lived in firmware, it could survive a reinstall of the operating system and a replacement of the hard drive. Removing it meant reflashing firmware from a trusted source — a far bigger job than deleting a file. LoJax is the example security teams cite when they explain why firmware integrity matters.

Example 5: Drovorub, a Linux rootkit toolset

Drovorub illustrates how a rootkit can be one component of a larger Linux malware toolset. It was described by US agencies as a Linux rootkit used to hide other malware, maintain persistence and steal data.

Drovorub matters because it breaks the assumption that rootkits are only a Windows problem. Linux servers, routers and embedded devices are targets too, and a rootkit on a server can hide an attacker's presence for a long time while they move through a network.

Other documented examples include NTRootkit, one of the first malicious rootkits for Windows, Machiavelli, an early Mac rootkit from 2009, and Necurs, the rootkit behind a large botnet that spread ransomware and financial malware.

Five rootkit examples, 2005 to 20202005Sony BMGcopy protection2010Stuxnetindustrial sabotage2012Flameespionage2018LoJaxUEFI firmware2020DrovorubLinux toolset
Rootkits moved from copy protection to industrial sabotage, espionage and firmware. Illustration by Cysoro.

How do you know if you have a rootkit? Warning signs

There is no single symptom that proves a rootkit is present, because hiding is the point. But several signs together should raise suspicion.

  • Security software stops working or cannot update. A rootkit may disable antivirus or block its updates.
  • Strange network traffic. Connections to unknown addresses, especially when the device should be idle.
  • Settings change on their own. Browser home pages, DNS settings or security settings revert after you fix them.
  • Files and processes behave oddly. Disk space disappears, or a process uses resources but does not appear in normal listings.
  • System crashes or slowdowns with no clear cause. Kernel rootkits can destabilize the system.
  • Antivirus finds malware, but it keeps coming back. The rootkit reinstalls the payload after each cleanup.

None of these proves a rootkit on its own. Together, especially the last one, they are a strong reason to investigate from outside the system rather than trusting another scan from inside it.

How do you detect a rootkit?

Detection works best from outside the suspect system. A scan run from a clean boot drive, a firmware integrity check, or a comparison against a known-good baseline can reveal what the infected system hides.

MITRE's detection guidance for T1014 includes watching for anomalous kernel drivers, concealed services, boot-component changes, suspicious Linux kernel modules, manipulation of system directories, abuse of library preloading, unsigned extensions and unusual launch behavior. In practice, that means using tools that compare what the system reports with what is actually on disk or in memory.

Practical steps for a home or small-business user are simpler: run a boot-time or offline scan from your security software, use a dedicated rootkit scanner from a reputable vendor, boot from a clean rescue drive and scan from there, and check firmware and driver signatures. If two independent tools disagree about what is on the system, trust the outside one.

How do you remove a rootkit?

For a user-mode rootkit, a reputable removal tool and a full scan may be enough. For a kernel, boot or firmware rootkit, the safest removal is a clean rebuild, because you cannot be sure what else the rootkit changed.

  1. Disconnect the device from the network so the rootkit cannot download more malware or exfiltrate data.
  2. Back up only your data files — documents and photos — not programs or system files. Scan the backup from a clean machine.
  3. Wipe the drive and reinstall the operating system from trusted installation media, not from a recovery partition on the same machine.
  4. Update firmware from the manufacturer's site, and reset firmware settings if a UEFI rootkit is suspected.
  5. Change passwords from a clean device, starting with email and banking, and turn on two-factor authentication.
  6. Reinstall applications from official sources only, and restore data after scanning it.
Do not trust a quick fixIf malware returns after a cleanup, assume a rootkit or another persistence mechanism is reinstalling it. Wipe and reinstall rather than running the same scan again.

If the device belongs to a business, tell your IT or security team before you wipe it. They may want a forensic image first, and they need to check whether other devices on the network are affected.

How do you prevent rootkit infections?

Prevention is mostly the same hygiene that stops other malware, with a few rootkit-specific additions. The goal is to make it hard for an attacker to get the privileged access a rootkit needs.

  • Keep the operating system and firmware updated. Many rootkits exploit known vulnerabilities that patches already fix.
  • Use Secure Boot and firmware passwords where available, so unsigned boot code cannot load.
  • Do not run as administrator for everyday work. A rootkit needs high privileges; a standard account raises the bar.
  • Do not install software from untrusted sources. Pirated software and unofficial app stores are common rootkit carriers.
  • Use reputable security software with boot-time and behavioral protection, and keep it updated.
  • Back up regularly to a drive you disconnect afterward, so a rebuild is a nuisance, not a disaster.

For a wider starting point, our small business cybersecurity checklist covers updates, backups and device security alongside these controls.

Securing the network around the device matters too. If the device connects over Wi-Fi, our guide to how to secure your Wi-Fi covers router passwords and WPA3.

You can also check how a website you run is configured with our free security headers checker.

The bottom line

A rootkit is not the malware that steals your data — it is the tool that hides the malware that does. From Sony BMG's copy protection to Stuxnet, Flame, LoJax and Drovorub, the pattern is the same: the attacker gets privileged access, then tampers with what the system reports.

That is why detection has to happen from outside the system, and why removal often means wiping and reinstalling. Keep systems and firmware updated, use Secure Boot, avoid running as administrator, and back up so a rebuild is painless. If malware keeps coming back after a cleanup, assume something is hiding it — and rebuild.

Frequently asked questions

What is a rootkit in simple terms?

A rootkit is a set of tools that gives an attacker privileged access to a computer while hiding that access. It tampers with what the operating system reports, so hidden files, processes and connections do not show up in normal checks.

What is an example of a rootkit?

Stuxnet used a Windows rootkit to mask its files, and a separate rootkit for industrial controllers. Sony BMG copy-protection software hid itself on about 22 million music CDs. LoJax was a UEFI rootkit used by the APT28 group, and Drovorub was a Linux rootkit toolset.

Can antivirus detect a rootkit?

Sometimes, but not reliably. A kernel or firmware rootkit runs below or alongside security software and can hide from it. Dedicated rootkit scanners, boot-time scans and checking the system from a clean external boot drive are more reliable.

How do you remove a rootkit?

For a kernel or firmware rootkit, the safest removal is to back up your data, wipe the drive, reinstall the operating system from trusted media, and update firmware. Simply deleting a file is not enough, because the rootkit can reinstall itself.

What is the difference between a rootkit and a virus?

A virus is malware that spreads by infecting files or programs. A rootkit is a hiding tool: it conceals malware that is already there. Many attacks use both — a virus or Trojan does the damage, and a rootkit keeps it hidden.

What is a bootkit?

A bootkit is a rootkit that targets the boot process of the operating system. It loads before the operating system, so it can control what the system sees from the very start. MITRE notes that rootkits that modify boot sectors are known as bootkits.

Can a rootkit infect a phone?

Yes, in principle. Rootkits have been seen for Windows, Linux and macOS, and mobile devices can be affected too, usually after a device is jailbroken or rooted, or through a compromised app. Keeping the operating system updated and avoiding unofficial app stores reduces the risk.

Sources

  1. MITRE ATT&CK — Rootkit, Technique T1014
  2. MITRE ATT&CK — Rootkit, Technique T0851 (ICS)
  3. Wikipedia — Sony BMG copy protection rootkit scandal
  4. InfoWorld — Sony settles with FTC on rootkit fracas
  5. Fortinet — 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 techniques T1014 and T0851, and documented reporting on the Sony BMG, Stuxnet, LoJax and Drovorub 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