Malware & ransomware

Why Would a Rootkit Be Used by a Hacker? 7 Reasons Explained

A rootkit rarely does the damage itself. It hides the malware that does — keeping a hacker inside for months, invisible to the tools meant to find them.

Cysoro Security TeamPublished · 9 min read
SYSTEMps auxnetstat -anls -la /binno threats found! MALWARE & RANSOMWARE Rootkitreasons Hidden. Persistent. Dangerous.
Quick answer

A hacker uses a rootkit to stay hidden and keep privileged access after breaking in. A rootkit hides files, processes, and network connections, survives reboots and cleaning attempts, disables security tools, and buys the attacker time to steal data, move sideways, or stage ransomware. MITRE ATT&CK lists it as technique T1014 under defense evasion, because its job is concealment, not the attack itself.

Key takeaways

  • A rootkit is post-exploitation malware: it hides an attack that has already happened, it does not start one.
  • Hackers use rootkits for persistence, stealth, privilege, and time — months of quiet access instead of a quick smash-and-grab.
  • Detection needs boot integrity, memory forensics, and behavior checks, because the infected system itself cannot be trusted to report the truth.

A rootkit is the opposite of a smash-and-grab attack. It does not steal your files or lock your screen on day one. It makes sure nobody notices the attacker who is already inside, and it keeps that attacker inside for as long as possible.

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 tampers with what the system reports, so files, processes, and connections simply do not appear.

The name comes from root, the administrator account on Unix systems, and kit, a set of tools. A rootkit needs administrator or root rights to work at a deep level, which is why attackers usually install it after they have already broken in, not as the first step.

MITRE ATT&CK, the framework security teams use to classify attacker behavior, lists rootkits as technique T1014 under defense evasion. That placement is the key to understanding them: a rootkit rarely does the damage itself. It protects whatever does.

Why would a hacker use a rootkit? The 7 reasons

Hackers use rootkits because they extend dwell time. A persistent attacker who survives reboots, cleaning attempts, and routine scans can quietly steal data for months, and the tools defenders rely on may report false information.

  1. To stay hidden. A rootkit hides malicious files, processes, network connections, and registry entries from users and from security tools.
  2. To keep access after a breach. It maintains a backdoor so the attacker can return even after passwords are changed or the first malware is removed.
  3. To survive reboots and cleanup. Boot and firmware rootkits run before the operating system, so they can reinstall malware after a restart or even after an operating system reinstall.
  4. To disable security tools. A rootkit can suspend antivirus and endpoint protection processes, turn off logging, and blind monitoring, as the Lazarus group's FudModule rootkit did to Microsoft Defender and CrowdStrike Falcon.
  5. To steal data quietly. By hiding large outbound transfers and credential stealers, a rootkit lets espionage and data theft run for months without triggering alarms.
  6. To move sideways. Hidden tools for lateral movement, such as credential dumpers and remote access utilities, can spread to other machines while each infected host looks clean.
  7. To stage a bigger attack. In ransomware operations, a rootkit delays detection and blocks defensive tooling until encryption is ready to run. In cryptojacking, it hides mining processes and masks CPU spikes.

Those reasons add up to one goal: time. A quick attack is loud and gets caught. A rootkit turns a break-in into a long, quiet tenancy, and time is what makes espionage, data theft, and ransomware staging pay.

Where a rootkit sits in an attack1. Break inphishing, exploit,stolen login2. Escalategain admin orkernel rights3. Install rootkithide files, processes,and connections4. Persistsurvive rebootsand cleaning5. Cash outsteal data, mine,or encryptA rootkit is installed at step 3 — after the break-in, before the payoff.
A rootkit is post-exploitation malware: it protects an attack that has already happened. Illustration by Cysoro.

What are the main types of rootkit?

Rootkits are classified by how deep they sit. The deeper the rootkit, the harder it is to see and the harder it is to remove.

TypeWhere it livesStealthSurvives OS reinstall?
User-modeNormal process space, hooks APIsLowerNo
Kernel-modeOperating system kernelHighNo, usually
BootkitBootloaderVery highYes, often
FirmwareBIOS, UEFI, or device firmwareVery highYes
HypervisorVirtualization layer under the OSVery highYes
LibraryShared system librariesMediumNo

User-mode rootkits hook system APIs or replace libraries such as DLLs, so file and process listings skip the attacker's files. They are easier to deploy but more detectable by endpoint tools.

Kernel-mode rootkits hook or patch system calls at the core of the operating system, giving the attacker unrestricted access to hardware, drivers, and security controls. On Linux, they load malicious kernel modules that override functions such as readdir() to hide files and directories.

Bootkits infect the bootloader, such as GRUB or the Windows Boot Manager, and run before the kernel loads. Firmware rootkits live in UEFI or BIOS, or even in the firmware of a network card or drive, and are invisible to endpoint agents. Recovery often requires reflashing the hardware. Hypervisor rootkits run the target operating system inside a virtual layer the attacker controls, so the guest looks normal while everything is monitored.

How does a rootkit get installed?

A rootkit needs high privileges, so attackers get them first and install the rootkit second. Common routes are phishing attachments, trojanized downloads, drive-by exploits, exposed internet-facing applications, poisoned software packages, and vulnerable signed drivers.

Phishing is a common first step before a rootkit is installed, as our spear phishing guide explains.

Privilege escalation is usually the step before installation. Attackers use a local exploit, stolen administrator credentials, or a malicious driver to gain kernel rights. In August 2026, researchers reported that the Lazarus group used a Windows zero-day in the AFD.sys driver to gain kernel privileges and deploy an updated FudModule rootkit.

Supply-chain routes are growing. In June 2026, more than 400 hijacked Arch Linux AUR packages were reported delivering an infostealer together with an eBPF rootkit. Attackers also inject malicious drivers into legitimate software updates, or load a vulnerable signed driver to bypass driver verification.

Once installed, the rootkit alters the operating system's core behavior. On Windows, it may hook the System Service Descriptor Table or modify kernel modules. On Linux, it may change /etc/ld.so.preload to hook library functions, as the Rocke group did to hide its cryptomining software from process lists.

What are real examples of rootkits?

Real rootkit cases show the range, from state espionage to ransomware staging and supply-chain attacks. These are documented cases, not hypothetical ones.

LoJax: a UEFI rootkit that survived reinstalls

LoJax, linked to the state-linked group APT28, was a UEFI rootkit that persisted in firmware and re-infected systems after the operating system was reinstalled. It is the classic example of why a firmware rootkit is so hard to remove: wiping the disk does not touch it.

Stuxnet: a rootkit that hid sabotage

Stuxnet, which targeted industrial control systems, contained a rootkit that intercepted read and write requests so its malicious code on programmable logic controllers was not discovered or damaged. MITRE records this under its ICS rootkit technique, T0851, and notes that firmware rootkits can feed false information to the main device and inhibit its expected responses.

FudModule: a rootkit that switched off security tools

In early 2024, the North Korean Lazarus group exploited a Windows zero-day, CVE-2024-38193, to deploy an enhanced FudModule rootkit. It could suspend protected processes of security software including Microsoft Defender and CrowdStrike Falcon, letting the attackers work without being seen. The attacks were linked to campaigns targeting cryptocurrency professionals.

CosmicStrand: a UEFI rootkit in consumer PCs

In 2022, Kaspersky researchers uncovered CosmicStrand, a persistent UEFI rootkit embedded in motherboard firmware of consumer-grade PCs. Attributed to Chinese-speaking threat actors, it hijacked the Windows boot process before the operating system or security tools loaded, and allowed attackers to implant additional payloads after boot. Victims included organizations in China, Iran, Vietnam, and Russia.

RESURGE: a rootkit in edge devices

In March 2025, CISA reported that RESURGE malware was actively exploited against Ivanti Connect Secure appliances, targeting CVE-2025-0282. The malware combined rootkit capabilities with dropper, backdoor, bootkit, proxy, and tunneler functions, and could survive reboots and maintain persistent access. The attacks were attributed to Chinese nation-state hackers.

How do you know if you have a rootkit?

Rootkits are designed to hide, so the signs are often indirect: a machine that behaves oddly while its own tools insist everything is fine. No single sign proves a rootkit, but several together should trigger a proper investigation.

  • Security tools stop working or are disabled without explanation, or logs have gaps.
  • High CPU, network, or disk use with no visible process to explain it.
  • Files, processes, or connections that appear in one tool but not in another, or that disappear when you look for them.
  • Browser redirects, changed settings, or new accounts you did not create.
  • Slow performance and crashes on a machine that was previously stable.
  • Antivirus scans finish suspiciously fast or report nothing on a machine with obvious symptoms.

The core problem is trust. If a rootkit has hooked the operating system, the operating system cannot be trusted to report on itself. That is why detection has to come from outside the infected system, or from a layer below it.

Detecting a rootkit: look from outside the systemBoot integritySecure Boot, measured boot, firmwareattestation and driver signingMemory forensicsinspect RAM from outside the OS;hidden processes show up hereExternal scanningboot from clean media and scanthe disk without running the OSBehavior monitoringalert on driver loads, tool tampering,and unexplained traffic
Do not trust the infected system to report on itself — check from boot, memory, or clean media. Illustration by Cysoro.

How do you detect and remove a rootkit?

Detection needs a layer the rootkit cannot control. MITRE's guidance for T1014 is to monitor driver and kernel-module loads, verify system and boot integrity, and alert on security-tool tampering.

For a suspected infection, the practical steps are:

  1. Disconnect the device from the network to stop data theft and lateral movement, but do not power it off if you need memory forensics, because RAM is lost on shutdown.
  2. Preserve evidence. Take a memory image and a disk image before you clean anything, if the machine matters for an investigation.
  3. Scan from clean media. Boot from a known-good rescue disk or USB and scan the disk without running the infected operating system.
  4. Use a dedicated rootkit scanner. Tools such as Rootkit Hunter (rkhunter) on Linux check for known rootkit signatures and system changes.
  5. Check boot and firmware integrity. Verify Secure Boot status, firmware versions, and driver signatures, and compare them with known-good values.
  6. Wipe and reinstall for kernel, boot, or firmware rootkits. Do not trust a cleanup on the same system. Reinstall from known-good media, and reflash firmware if a firmware rootkit is suspected.
  7. Reset credentials. Assume passwords, tokens, and keys on the machine are compromised, and reset them from a clean device.

For businesses, the same incident should trigger a wider check: look for the same rootkit on other hosts, check for lateral movement, and review logs that were sent off the device, because local logs may have been tampered with.

How do you prevent rootkits?

Prevention is mostly about making the steps before a rootkit harder: stop the break-in, stop privilege escalation, and make the boot chain hard to tamper with.

  • Patch quickly, especially drivers and edge devices. Many rootkits arrive through a known vulnerability or a vulnerable signed driver.
  • Use least privilege. Do not run daily work as an administrator, and limit who can install drivers and kernel modules.
  • Enable Secure Boot and driver signing. Require signed drivers, and block unsigned kernel code where you can.
  • Keep endpoint protection on and monitored. Alert on security-tool tampering, not just on malware detections.
  • Send logs off the device. A rootkit can delete local logs, but it cannot easily delete logs already sent to a central store.
  • Train staff on phishing. Phishing is still a common first step, and a rootkit is only installed after that first compromise succeeds.

For a wider starting point, our small business cybersecurity checklist covers patching, backups, and device security alongside the controls above.

If you suspect a phone rather than a computer is compromised, our guide to how to know if your phone is hacked covers the signs to check first.

The bottom line

A hacker uses a rootkit for the same reason a burglar uses a hidden door: not to break in, but to stay in, unseen, for as long as possible. It hides the real attack, disables the alarms, and buys time to steal, spread, or encrypt.

That is also why rootkits are so dangerous to clean up. If you suspect one, do not trust the infected system to tell you the truth. Disconnect it, scan from clean media, and for deep infections, wipe and reinstall from known-good media. Prevention is cheaper: patch fast, run as a standard user, enable Secure Boot, and keep your logs off the device.

Frequently asked questions

Why would a hacker use a rootkit?

To stay hidden and keep access after breaking in. A rootkit hides the attacker's files, processes, and connections, survives reboots, and disables security tools, so the attacker can steal data or stage a bigger attack over weeks or months.

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 from the owner, the operating system, and security software. It changes what the system reports, so the machine looks healthy while the attacker is inside.

Is a rootkit a virus?

No. A rootkit is a type of malware, but it is not a virus that spreads on its own. It is usually installed after an attacker has already gained access, through phishing, an exploit, or stolen credentials, and its job is to hide and protect other malware.

Can a rootkit steal my passwords?

A rootkit itself usually does not steal passwords, but it hides the tools that do. It can suppress logging, hide credential stealers, and intercept authentication data while security tools are blinded.

Can antivirus detect a rootkit?

Sometimes, but not reliably. A kernel or firmware rootkit can hide from endpoint tools running on the same infected system. Detection often needs boot-time integrity checks, memory forensics, or scanning from a clean external device.

Can you remove a rootkit?

User-mode rootkits can sometimes be removed with a clean scan, but kernel, boot, and firmware rootkits often survive. The safest recovery is to wipe the disk, reinstall from known-good media, and reflash firmware if a firmware rootkit is suspected.

What is the difference between a rootkit and a bootkit?

A bootkit is a type of rootkit that infects the bootloader and runs before the operating system loads. It can patch the kernel as it starts, and it survives operating system reinstalls unless the firmware is rewritten or the disk is wiped.

Who uses rootkits?

State-linked groups, ransomware crews, cryptojacking operators, and botnet owners all use rootkits. MITRE links the technique to groups including APT28, APT41, and Rocke, and to malware including LoJax, Stuxnet, and the FudModule rootkit used by the Lazarus group.

Sources

  1. Palo Alto Networks — What Is a Rootkit?
  2. MITRE ATT&CK — Technique T1014: Rootkit
  3. MITRE ATT&CK — Technique T0851: Rootkit (ICS)
  4. Malware.news — What Is a Rootkit? Definition, Types, Examples, Detection and Removal
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 and T0851, Palo Alto Networks' rootkit guide, and published rootkit case reporting.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free