Rootkits - Stealthy Malware Deep in Your OS
About 2 min read
A rootkit is malware that lurks deep within a system and hides its own presence from the OS and security software. The name derives from "root," the highest privilege in Unix/Linux, and attackers use it to maintain persistent access to a system. Because it is hard to detect, there are cases where information is stolen over long periods without the infection ever being noticed.
Why Absence from a List Is Not Evidence
A process list or a list of network connections merely displays the answers returned by a query to the operating system. A rootkit embedded in the kernel sits in a position where it can rewrite the response to that query itself, so it can arrange for the rows about itself not to be returned. In that case, the absence of suspicious entries from a list is not evidence that nothing suspicious exists. It is a state in which the instrument of observation is controlled by the object being observed, and a result that looks normal cannot be distinguished from things actually being normal. Where a rootkit is suspected, observation therefore has to be switched to methods that do not go through the operating system. Acquiring and analyzing the contents of memory directly, examining the disk from an environment booted from separate media, and recording traffic on the network side all share the property of not asking the compromised operating system for the answer. Before judging whether something was detected, a step is needed to confirm where that information came from.
The Hiding Structure of Rootkits
Types of Rootkits
Kernel-mode rootkits are embedded in the OS kernel, which makes them difficult to detect. User-mode rootkits run at the application layer, hiding processes and files. Bootkits infect the OS boot process and begin operating before the OS is loaded. UEFI rootkits infect the firmware, so reinstalling the OS does not remove them.
Why Discovery Is Delayed
What makes a rootkit troublesome is less the scale of the damage than the route by which it is discovered. Suppose the monitoring depends on the information that the machine under examination reports about itself. If the process list and the traffic view have been rewritten, the monitoring screen keeps showing "nothing unusual," and as time passes the traces of the intrusion are overwritten and become harder to follow. In that case, discovery is triggered by information arriving from outside the system: a remark from a party the machine communicates with, a notice from a business partner, or leaked data found elsewhere. If an opening for re-entry such as a backdoor remains, the intruder returns by the same route even after the rootkit appears to have been removed. In incident response, the work has to proceed on the premise that what the machine reports cannot be trusted, cross-checking against separate evidence such as network-side records.
Detection and Removal
Because ordinary virus scans do not reliably detect them, dedicated rootkit detection tools or scanning from outside the OS (booting from bootable media) are used. If a kernel-mode rootkit is confirmed, a clean reinstall of the OS is one countermeasure. As preventive measures, keeping the OS and software up to date, protecting administrator accounts with strong random passwords, and enabling multi-factor authentication can reduce the risk of initial intrusion.
Was this article helpful?
Related Terms
- Computer Worms - Self-Spreading Network MalwareA worm replicates itself across networks without user interaction. Learn how worms exploit vulnerabilities and how segmentation limits their spread.
- Trojan Horse Malware - Disguised Digital ThreatsA trojan poses as legitimate software to slip past defenses. Once inside, it can steal data, install backdoors, or download additional malware payloads.
- Malware Types - Viruses, Trojans, Worms, and MoreMalware is any software designed to damage or exploit a device. Learn to identify viruses, trojans, worms, and spyware, and how to remove them safely.
- Botnets - How Infected Device Networks OperateA botnet is a network of compromised devices controlled remotely for DDoS, spam, and theft. Explore the botnet lifecycle and how takedowns are executed.