How does a rootkit hide malware inside Windows?
A rootkit is a hiding toolkit for malware. It intercepts what the Windows core, called the kernel, reports and cuts its own files and programs from the answer, so they vanish from view.

Rootkit
A rootkit is a set of tools an attacker uses after gaining administrator control of a computer, which security people call root-level access. Its job is hiding. On Windows, it edits the answers the system gives, so malware files and programs vanish from view. A well-known case came in 2005, when some Sony BMG music CDs secretly installed software that hid every file, folder and registry key whose name started with $sys$.
The defense starts from that hiding. If malware controls what Windows reports, tools running inside Windows can get the same edited answer. That’s why Microsoft Defender has an offline scan. It restarts the PC and scans in the Windows Recovery Environment (Windows RE), before Windows starts. Persistent malware has a more difficult time hiding there.
What a rootkit actually does
Task Manager asks the Windows core, called the kernel, for the list of running programs. A rootkit intercepts that request, a trick called hooking. It modifies the operating system’s API (Application Programming Interface) calls that report system information. Then it cuts its own entries from the answer before Task Manager shows the list.
To get that power, a driver rootkit poses as a trusted hardware driver and runs in kernel mode, with the same privileges as Windows itself. Admin rights alone are not enough on current systems. Since Windows 10 version 1607, with Secure Boot on, Windows only loads a new kernel driver if Microsoft’s Dev Portal has signed it. So the attacker also needs a signed driver. Some rootkits go lower. A bootkit hides in the bootloader and a firmware rootkit hides in firmware. Both can start before Windows.
How a rootkit hides malware, step by step
- Get administrator control first. The attacker already has root-level access to the PC before the rootkit goes in.
- Load a trusted-looking driver. The hiding code poses as a hardware driver and runs in kernel mode, with Windows-level power.
- Hook the system’s answers. When a tool like Task Manager asks the kernel what’s running, the rootkit intercepts the request.
- Cut its own entries. The rootkit removes its files and programs from the answer, so the list looks normal.
The result is a PC that looks clean from the inside. Microsoft puts it plainly: after a rootkit infects a device, you can’t trust any information that device reports about itself. Ten days after the Sony BMG software was exposed, other malware was already using the $sys$ prefix to hide.
A clean Task Manager is not a clean PC
Many people believe that if Task Manager shows nothing strange, the PC is fine. A rootkit breaks that idea. Task Manager only shows what the kernel tells it, and the rootkit edits that answer. A short, normal list of programs is exactly what a working rootkit wants you to see. So the check has to come from outside the running Windows.
What to do
- In Windows Security, open Virus & threat protection, then Scan options, then choose Microsoft Defender Antivirus (offline scan). Older builds call it Microsoft Defender Offline scan.
- Let the PC restart. The scan runs before Windows starts, then the PC restarts again.
- Check the results in Protection history in Windows Security.
- Don’t treat a clean Task Manager as proof. If you suspect a rootkit, check from outside Windows.
Watch it in 60 seconds
