Rootkit

From HandWiki
Revision as of 17:32, 6 February 2024 by Wincert (talk | contribs) (linkage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Software designed to enable access to unauthorized locations in a computer

A rootkit is a collection of computer software, typically malicious, designed to enable access to a computer or an area of its software that is not otherwise allowed (for example, to an unauthorized user) and often masks its existence or the existence of other software.[1] The term rootkit is a compound of "root" (the traditional name of the privileged account on Unix-like operating systems) and the word "kit" (which refers to the software components that implement the tool).[2] The term "rootkit" has negative connotations through its association with malware.[1]

Rootkit installation can be automated, or an attacker can install it after having obtained root or administrator access.[3] Obtaining this access is a result of direct attack on a system, i.e. exploiting a vulnerability (such as privilege escalation) or a password (obtained by cracking or social engineering tactics like "phishing"). Once installed, it becomes possible to hide the intrusion as well as to maintain privileged access. Full control over a system means that existing software can be modified, including software that might otherwise be used to detect or circumvent it.

Rootkit detection is difficult because a rootkit may be able to subvert the software that is intended to find it. Detection methods include using an alternative and trusted operating system, behavioral-based methods, signature scanning, difference scanning, and memory dump analysis. Removal can be complicated or practically impossible, especially in cases where the rootkit resides in the kernel; reinstallation of the operating system may be the only available solution to the problem. When dealing with firmware rootkits, removal may require hardware replacement, or specialized equipment.

History

The term rootkit or root kit originally referred to a maliciously modified set of administrative tools for a Unix-like operating system that granted "root" access.[4] If an intruder could replace the standard administrative tools on a system with a rootkit, the intruder could obtain root access over the system whilst simultaneously concealing these activities from the legitimate system administrator. These first-generation rootkits were trivial to detect by using tools such as Tripwire that had not been compromised to access the same information.[5][6] Lane Davis and Steven Dake wrote the earliest known rootkit in 1990 for Sun Microsystems' SunOS UNIX operating system.[7] In the lecture he gave upon receiving the Turing award in 1983, Ken Thompson of Bell Labs, one of the creators of Unix, theorized about subverting the C compiler in a Unix distribution and discussed the exploit. The modified compiler would detect attempts to compile the Unix login command and generate altered code that would accept not only the user's correct password, but an additional "backdoor" password known to the attacker. Additionally, the compiler would detect attempts to compile a new version of the compiler, and would insert the same exploits into the new compiler. A review of the source code for the login command or the updated compiler would not reveal any malicious code.[8] This exploit was equivalent to a rootkit.

The first documented computer virus to target the personal computer, discovered in 1986, used cloaking techniques to hide itself: the Brain virus intercepted attempts to read the boot sector, and redirected these to elsewhere on the disk, where a copy of the original boot sector was kept.[1] Over time, DOS-virus cloaking methods became more sophisticated. Advanced techniques included hooking low-level disk INT 13H BIOS interrupt calls to hide unauthorized modifications to files.[1]

The first malicious rootkit for the Windows NT operating system appeared in 1999: a trojan called NTRootkit created by Greg Hoglund.[9] It was followed by HackerDefender in 2003.[1] The first rootkit targeting Mac OS X appeared in 2009,[10] while the Stuxnet worm was the first to target programmable logic controllers (PLC).[11]

Sony BMG copy protection rootkit scandal

Screenshot of RootkitRevealer, showing the files hidden by the Extended Copy Protection rootkit
Main page: Social:Sony BMG copy protection rootkit scandal

In 2005, Sony BMG published CDs with copy protection and digital rights management software called Extended Copy Protection, created by software company First 4 Internet. The software included a music player but silently installed a rootkit which limited the user's ability to access the CD.[12] Software engineer Mark Russinovich, who created the rootkit detection tool RootkitRevealer, discovered the rootkit on one of his computers.[1] The ensuing scandal raised the public's awareness of rootkits.[13] To cloak itself, the rootkit hid any file starting with "$sys$" from the user. Soon after Russinovich's report, malware appeared which took advantage of the existing rootkit on affected systems.[1] One BBC analyst called it a "public relations nightmare."[14] Sony BMG released patches to uninstall the rootkit, but it exposed users to an even more serious vulnerability.[15] The company eventually recalled the CDs. In the United States, a class-action lawsuit was brought against Sony BMG.[16]

Greek wiretapping case 2004–05

The Greek wiretapping case 2004–05, also referred to as Greek Watergate,[17] involved the illegal telephone tapping of more than 100 mobile phones on the Vodafone Greece network belonging mostly to members of the Greek government and top-ranking civil servants. The taps began sometime near the beginning of August 2004 and were removed in March 2005 without discovering the identity of the perpetrators. The intruders installed a rootkit targeting Ericsson's AXE telephone exchange. According to IEEE Spectrum, this was "the first time a rootkit has been observed on a special-purpose system, in this case an Ericsson telephone switch."[18] The rootkit was designed to patch the memory of the exchange while it was running, enable wiretapping while disabling audit logs, patch the commands that list active processes and active data blocks, and modify the data block checksum verification command. A "backdoor" allowed an operator with sysadmin status to deactivate the exchange's transaction log, alarms and access commands related to the surveillance capability.[18] The rootkit was discovered after the intruders installed a faulty update, which caused SMS texts to be undelivered, leading to an automated failure report being generated. Ericsson engineers were called in to investigate the fault and discovered the hidden data blocks containing the list of phone numbers being monitored, along with the rootkit and illicit monitoring software.

Uses

Modern rootkits do not elevate access,[4] but rather are used to make another software payload undetectable by adding stealth capabilities.[9] Most rootkits are classified as malware, because the payloads they are bundled with are malicious. For example, a payload might covertly steal user passwords, credit card information, computing resources, or conduct other unauthorized activities. A small number of rootkits may be considered utility applications by their users: for example, a rootkit might cloak a CD-ROM-emulation driver, allowing video game users to defeat anti-piracy measures that require insertion of the original installation media into a physical optical drive to verify that the software was legitimately purchased.

Rootkits and their payloads have many uses:

  • Provide an attacker with full access via a backdoor, permitting unauthorized access to, for example, steal or falsify documents. One of the ways to carry this out is to subvert the login mechanism, such as the /bin/login program on Unix-like systems or GINA on Windows. The replacement appears to function normally, but also accepts a secret login combination that allows an attacker direct access to the system with administrative privileges, bypassing standard authentication and authorization mechanisms.
  • Conceal other malware, notably password-stealing key loggers and computer viruses.[19]
  • Appropriate the compromised machine as a zombie computer for attacks on other computers. (The attack originates from the compromised system or network, instead of the attacker's system.) "Zombie" computers are typically members of large botnets that can–amongst other things–launch denial-of-service attacks, distribute email spam, and conduct click fraud.[20]

In some instances, rootkits provide desired functionality, and may be installed intentionally on behalf of the computer user:

  • Detect attacks, for example, in a honeypot.[21]
  • Enhance emulation software and security software.[22] Alcohol 120% and Daemon Tools are commercial examples of non-hostile rootkits used to defeat copy-protection mechanisms such as SafeDisc and SecuROM.[23] Kaspersky antivirus software also uses techniques resembling rootkits to protect itself from malicious actions. It loads its own drivers to intercept system activity, and then prevents other processes from doing harm to itself. Its processes are not hidden, but cannot be terminated by standard methods.
  • Anti-theft protection: Laptops may have BIOS-based rootkit software that will periodically report to a central authority, allowing the laptop to be monitored, disabled or wiped of information in the event that it is stolen.[24]
  • Bypassing Microsoft Product Activation[25]

Types

There are at least five types of rootkit, ranging from those at the lowest level in firmware (with the highest privileges), through to the least privileged user-based variants that operate in Ring 3. Hybrid combinations of these may occur spanning, for example, user mode and kernel mode.[26]

User mode

Computer security rings (Note that Ring -1 is not shown)

User-mode rootkits run in Ring 3, along with other applications as user, rather than low-level system processes.[27] They have a number of possible installation vectors to intercept and modify the standard behavior of application programming interfaces (APIs). Some inject a dynamically linked library (such as a .DLL file on Windows, or a .dylib file on Mac OS X) into other processes, and are thereby able to execute inside any target process to spoof it; others with sufficient privileges simply overwrite the memory of a target application. Injection mechanisms include:[27]

  • Use of vendor-supplied application extensions. For example, Windows Explorer has public interfaces that allow third parties to extend its functionality.
  • Interception of messages.
  • Debuggers.
  • Exploitation of security vulnerabilities.
  • Function hooking or patching of commonly used APIs, for example, to hide a running process or file that resides on a filesystem.[28]
...since user mode applications all run in their own memory space, the rootkit needs to perform this patching in the memory space of every running application. In addition, the rootkit needs to monitor the system for any new applications that execute and patch those programs' memory space before they fully execute.
—Windows Rootkit Overview, Symantec[4]

Kernel mode

Kernel-mode rootkits run with the highest operating system privileges (Ring 0) by adding code or replacing portions of the core operating system, including both the kernel and associated device drivers.[citation needed] Most operating systems support kernel-mode device drivers, which execute with the same privileges as the operating system itself. As such, many kernel-mode rootkits are developed as device drivers or loadable modules, such as loadable kernel modules in Linux or device drivers in Microsoft Windows. This class of rootkit has unrestricted security access, but is more difficult to write.[29] The complexity makes bugs common, and any bugs in code operating at the kernel level may seriously impact system stability, leading to discovery of the rootkit.[29] One of the first widely known kernel rootkits was developed for Windows NT 4.0 and released in Phrack magazine in 1999 by Greg Hoglund.[30][31] Kernel rootkits can be especially difficult to detect and remove because they operate at the same security level as the operating system itself, and are thus able to intercept or subvert the most trusted operating system operations. Any software, such as antivirus software, running on the compromised system is equally vulnerable.[32] In this situation, no part of the system can be trusted.

A rootkit can modify data structures in the Windows kernel using a method known as direct kernel object manipulation (DKOM).[33] This method can be used to hide processes. A kernel mode rootkit can also hook the System Service Descriptor Table (SSDT), or modify the gates between user mode and kernel mode, in order to cloak itself.[4] Similarly for the Linux operating system, a rootkit can modify the system call table to subvert kernel functionality.[34][35] It is common that a rootkit creates a hidden, encrypted filesystem in which it can hide other malware or original copies of files it has infected.[36] Operating systems are evolving to counter the threat of kernel-mode rootkits. For example, 64-bit editions of Microsoft Windows now implement mandatory signing of all kernel-level drivers in order to make it more difficult for untrusted code to execute with the highest privileges in a system.[37]

Bootkits

A kernel-mode rootkit variant called a bootkit can infect startup code like the Master Boot Record (MBR), Volume Boot Record (VBR), or boot sector, and in this way can be used to attack full disk encryption systems.[38] An example of such an attack on disk encryption is the "evil maid attack", in which an attacker installs a bootkit on an unattended computer. The envisioned scenario is a maid sneaking into the hotel room where the victims left their hardware.[39] The bootkit replaces the legitimate boot loader with one under their control. Typically the malware loader persists through the transition to protected mode when the kernel has loaded, and is thus able to subvert the kernel.[40][41][42] For example, the "Stoned Bootkit" subverts the system by using a compromised boot loader to intercept encryption keys and passwords.[43][self-published source?] In 2010, the Alureon rootkit has successfully subverted the requirement for 64-bit kernel-mode driver signing in Windows 7, by modifying the master boot record.[44] Although not malware in the sense of doing something the user doesn't want, certain "Vista Loader" or "Windows Loader" software work in a similar way by injecting an ACPI SLIC (System Licensed Internal Code) table in the RAM-cached version of the BIOS during boot, in order to defeat the Windows Vista and Windows 7 activation process.[citation needed] This vector of attack was rendered useless in the (non-server) versions of Windows 8, which use a unique, machine-specific key for each system, that can only be used by that one machine.[45] Many antivirus companies provide free utilities and programs to remove bootkits.

Hypervisor level

Rootkits have been created as Type II Hypervisors in academia as proofs of concept. By exploiting hardware virtualization features such as Intel VT or AMD-V, this type of rootkit runs in Ring -1 and hosts the target operating system as a virtual machine, thereby enabling the rootkit to intercept hardware calls made by the original operating system.[6] Unlike normal hypervisors, they do not have to load before the operating system, but can load into an operating system before promoting it into a virtual machine.[6] A hypervisor rootkit does not have to make any modifications to the kernel of the target to subvert it; however, that does not mean that it cannot be detected by the guest operating system. For example, timing differences may be detectable in CPU instructions.[6] The "SubVirt" laboratory rootkit, developed jointly by Microsoft and University of Michigan researchers, is an academic example of a virtual-machine–based rootkit (VMBR),[46] while Blue Pill software is another. In 2009, researchers from Microsoft and North Carolina State University demonstrated a hypervisor-layer anti-rootkit called Hooksafe, which provides generic protection against kernel-mode rootkits.[47] Windows 10 introduced a new feature called "Device Guard", that takes advantage of virtualization to provide independent external protection of an operating system against rootkit-type malware.[48]

Firmware and hardware

A firmware rootkit uses device or platform firmware to create a persistent malware image in hardware, such as a router, network card,[49] hard drive, or the system BIOS.[27][50] The rootkit hides in firmware, because firmware is not usually inspected for code integrity. John Heasman demonstrated the viability of firmware rootkits in both ACPI firmware routines[51] and in a PCI expansion card ROM.[52] In October 2008, criminals tampered with European credit-card-reading machines before they were installed. The devices intercepted and transmitted credit card details via a mobile phone network.[53] In March 2009, researchers Alfredo Ortega and Anibal Sacco published details of a BIOS-level Windows rootkit that was able to survive disk replacement and operating system re-installation.[54][55][56] A few months later they learned that some laptops are sold with a legitimate rootkit, known as Absolute CompuTrace or Absolute LoJack for Laptops, preinstalled in many BIOS images. This is an anti-theft technology system that researchers showed can be turned to malicious purposes.[24]

Intel Active Management Technology, part of Intel vPro, implements out-of-band management, giving administrators remote administration, remote management, and remote control of PCs with no involvement of the host processor or BIOS, even when the system is powered off. Remote administration includes remote power-up and power-down, remote reset, redirected boot, console redirection, pre-boot access to BIOS settings, programmable filtering for inbound and outbound network traffic, agent presence checking, out-of-band policy-based alerting, access to system information, such as hardware asset information, persistent event logs, and other information that is stored in dedicated memory (not on the hard drive) where it is accessible even if the OS is down or the PC is powered off. Some of these functions require the deepest level of rootkit, a second non-removable spy computer built around the main computer. Sandy Bridge and future chipsets have "the ability to remotely kill and restore a lost or stolen PC via 3G". Hardware rootkits built into the chipset can help recover stolen computers, remove data, or render them useless, but they also present privacy and security concerns of undetectable spying and redirection by management or hackers who might gain control.

Installation and cloaking

Rootkits employ a variety of techniques to gain control of a system; the type of rootkit influences the choice of attack vector. The most common technique leverages security vulnerabilities to achieve surreptitious privilege escalation. Another approach is to use a Trojan horse, deceiving a computer user into trusting the rootkit's installation program as benign—in this case, social engineering convinces a user that the rootkit is beneficial.[29] The installation task is made easier if the principle of least privilege is not applied, since the rootkit then does not have to explicitly request elevated (administrator-level) privileges. Other classes of rootkits can be installed only by someone with physical access to the target system. Some rootkits may also be installed intentionally by the owner of the system or somebody authorized by the owner, e.g. for the purpose of employee monitoring, rendering such subversive techniques unnecessary.[57] Some malicious rootkit installations are commercially driven, with a pay-per-install (PPI) compensation method typical for distribution.[58][59]

Once installed, a rootkit takes active measures to obscure its presence within the host system through subversion or evasion of standard operating system security tools and application programming interface (APIs) used for diagnosis, scanning, and monitoring.[60] Rootkits achieve this by modifying the behavior of core parts of an operating system through loading code into other processes, the installation or modification of drivers, or kernel modules. Obfuscation techniques include concealing running processes from system-monitoring mechanisms and hiding system files and other configuration data.[61] It is not uncommon for a rootkit to disable the event logging capacity of an operating system, in an attempt to hide evidence of an attack. Rootkits can, in theory, subvert any operating system activities.[62] The "perfect rootkit" can be thought of as similar to a "perfect crime": one that nobody realizes has taken place. Rootkits also take a number of measures to ensure their survival against detection and "cleaning" by antivirus software in addition to commonly installing into Ring 0 (kernel-mode), where they have complete access to a system. These include polymorphism (changing so their "signature" is hard to detect), stealth techniques, regeneration, disabling or turning off anti-malware software,[63] and not installing on virtual machines where it may be easier for researchers to discover and analyze them.

Detection

The fundamental problem with rootkit detection is that if the operating system has been subverted, particularly by a kernel-level rootkit, it cannot be trusted to find unauthorized modifications to itself or its components.[62] Actions such as requesting a list of running processes, or a list of files in a directory, cannot be trusted to behave as expected. In other words, rootkit detectors that work while running on infected systems are only effective against rootkits that have some defect in their camouflage, or that run with lower user-mode privileges than the detection software in the kernel.[29] As with computer viruses, the detection and elimination of rootkits is an ongoing struggle between both sides of this conflict.[62] Detection can take a number of different approaches, including looking for virus "signatures" (e.g. antivirus software), integrity checking (e.g. digital signatures), difference-based detection (comparison of expected vs. actual results), and behavioral detection (e.g. monitoring CPU usage or network traffic).

For kernel-mode rootkits, detection is considerably more complex, requiring careful scrutiny of the System Call Table to look for hooked functions where the malware may be subverting system behavior,[64] as well as forensic scanning of memory for patterns that indicate hidden processes. Unix rootkit detection offerings include Zeppoo,[65] chkrootkit, rkhunter and OSSEC. For Windows, detection tools include Microsoft Sysinternals RootkitRevealer,[66] Avast Antivirus,[67] Sophos Anti-Rootkit,[68] F-Secure,[69] Radix,[70] GMER,[71] and WindowsSCOPE. Any rootkit detectors that prove effective ultimately contribute to their own ineffectiveness, as malware authors adapt and test their code to escape detection by well-used tools.[Notes 1] Detection by examining storage while the suspect operating system is not operational can miss rootkits not recognised by the checking software, as the rootkit is not active and suspicious behavior is suppressed; conventional anti-malware software running with the rootkit operational may fail if the rootkit hides itself effectively.

Alternative trusted medium

The best and most reliable method for operating-system-level rootkit detection is to shut down the computer suspected of infection, and then to check its storage by booting from an alternative trusted medium (e.g. a "rescue" CD-ROM or USB flash drive).[72] The technique is effective because a rootkit cannot actively hide its presence if it is not running.

Behavioral-based

The behavioral-based approach to detecting rootkits attempts to infer the presence of a rootkit by looking for rootkit-like behavior. For example, by profiling a system, differences in the timing and frequency of API calls or in overall CPU utilization can be attributed to a rootkit. The method is complex and is hampered by a high incidence of false positives. Defective rootkits can sometimes introduce very obvious changes to a system: the Alureon rootkit crashed Windows systems after a security update exposed a design flaw in its code.[73][74] Logs from a packet analyzer, firewall, or intrusion prevention system may present evidence of rootkit behaviour in a networked environment.[26]

Signature-based

Antivirus products rarely catch all viruses in public tests (depending on what is used and to what extent), even though security software vendors incorporate rootkit detection into their products. Should a rootkit attempt to hide during an antivirus scan, a stealth detector may notice; if the rootkit attempts to temporarily unload itself from the system, signature detection (or "fingerprinting") can still find it.[75] This combined approach forces attackers to implement counterattack mechanisms, or "retro" routines, that attempt to terminate antivirus programs. Signature-based detection methods can be effective against well-published rootkits, but less so against specially crafted, custom-root rootkits.[62]

Difference-based

Another method that can detect rootkits compares "trusted" raw data with "tainted" content returned by an API. For example, binaries present on disk can be compared with their copies within operating memory (in some operating systems, the in-memory image should be identical to the on-disk image), or the results returned from file system or Windows Registry APIs can be checked against raw structures on the underlying physical disks[62][76]—however, in the case of the former, some valid differences can be introduced by operating system mechanisms like memory relocation or shimming. A rootkit may detect the presence of such a difference-based scanner or virtual machine (the latter being commonly used to perform forensic analysis), and adjust its behaviour so that no differences can be detected. Difference-based detection was used by Russinovich's RootkitRevealer tool to find the Sony DRM rootkit.[1]

Integrity checking

The rkhunter utility uses SHA-1 hashes to verify the integrity of system files.

Code signing uses public-key infrastructure to check if a file has been modified since being digitally signed by its publisher. Alternatively, a system owner or administrator can use a cryptographic hash function to compute a "fingerprint" at installation time that can help to detect subsequent unauthorized changes to on-disk code libraries.[77] However, unsophisticated schemes check only whether the code has been modified since installation time; subversion prior to that time is not detectable. The fingerprint must be re-established each time changes are made to the system: for example, after installing security updates or a service pack. The hash function creates a message digest, a relatively short code calculated from each bit in the file using an algorithm that creates large changes in the message digest with even smaller changes to the original file. By recalculating and comparing the message digest of the installed files at regular intervals against a trusted list of message digests, changes in the system can be detected and monitored—as long as the original baseline was created before the malware was added.

More-sophisticated rootkits are able to subvert the verification process by presenting an unmodified copy of the file for inspection, or by making code modifications only in memory, reconfiguration registers, which are later compared to a white list of expected values.[78] The code that performs hash, compare, or extend operations must also be protected—in this context, the notion of an immutable root-of-trust holds that the very first code to measure security properties of a system must itself be trusted to ensure that a rootkit or bootkit does not compromise the system at its most fundamental level.[79]

Memory dumps

Forcing a complete dump of virtual memory will capture an active rootkit (or a kernel dump in the case of a kernel-mode rootkit), allowing offline forensic analysis to be performed with a debugger against the resulting dump file, without the rootkit being able to take any measures to cloak itself. This technique is highly specialized, and may require access to non-public source code or debugging symbols. Memory dumps initiated by the operating system cannot always be used to detect a hypervisor-based rootkit, which is able to intercept and subvert the lowest-level attempts to read memory[6]—a hardware device, such as one that implements a non-maskable interrupt, may be required to dump memory in this scenario.[80][81] Virtual machines also make it easier to analyze the memory of a compromised machine from the underlying hypervisor, so some rootkits will avoid infecting virtual machines for this reason.

Removal

Manual removal of a rootkit is often extremely difficult for a typical computer user,[27] but a number of security-software vendors offer tools to automatically detect and remove some rootkits, typically as part of an antivirus suite. (As of 2005), Microsoft's monthly Windows Malicious Software Removal Tool is able to detect and remove some classes of rootkits.[82][83] Also, Windows Defender Offline can remove rootkits, as it runs from a trusted environment before the operating system starts.[84] Some antivirus scanners can bypass file system APIs, which are vulnerable to manipulation by a rootkit. Instead, they access raw file system structures directly, and use this information to validate the results from the system APIs to identify any differences that may be caused by a rootkit.[Notes 2][85][86][87][88] There are experts who believe that the only reliable way to remove them is to re-install the operating system from trusted media.[89][90] This is because antivirus and malware removal tools running on an untrusted system may be ineffective against well-written kernel-mode rootkits. Booting an alternative operating system from trusted media can allow an infected system volume to be mounted and potentially safely cleaned and critical data to be copied off—or, alternatively, a forensic examination performed.[26] Lightweight operating systems such as Windows PE, Windows Recovery Console, Windows Recovery Environment, BartPE, or Live Distros can be used for this purpose, allowing the system to be "cleaned". Even if the type and nature of a rootkit is known, manual repair may be impractical, while re-installing the operating system and applications is safer, simpler and quicker.[89]

Defenses

System hardening represents one of the first layers of defence against a rootkit, to prevent it from being able to install.[91] Applying security patches, implementing the principle of least privilege, reducing the attack surface and installing antivirus software are some standard security best practices that are effective against all classes of malware.[92] New secure boot specifications like UEFI have been designed to address the threat of bootkits, but even these are vulnerable if the security features they offer are not utilized.[50] For server systems, remote server attestation using technologies such as Intel Trusted Execution Technology (TXT) provide a way of verifying that servers remain in a known good state. For example, Microsoft Bitlocker's encryption of data-at-rest verifies that servers are in a known "good state" on bootup. PrivateCore vCage is a software offering that secures data-in-use (memory) to avoid bootkits and rootkits by verifying servers are in a known "good" state on bootup. The PrivateCore implementation works in concert with Intel TXT and locks down server system interfaces to avoid potential bootkits and rootkits.

Another defense mechanism called the Virtual Wall (VTW) approach, serves as a lightweight hypervisor with rootkit detection and event tracing capabilities. In normal operation (guest mode), Linux runs, and when a loaded LKM violates security policies, the system switches to host mode. The VTW in host mode detects, traces, and classifies rootkit events based on memory access control and event injection mechanisms. Experimental results demonstrate the VTW's effectiveness in timely detection and defense against kernel rootkits with minimal CPU overhead (less than 2%). The VTW is compared favorably to other defense schemes, emphasizing its simplicity in implementation and potential performance gains on Linux servers.[93]

See also

Notes

  1. The process name of Sysinternals RootkitRevealer was targeted by malware; in an attempt to counter this countermeasure, the tool now uses a randomly generated process name.
  2. In theory, a sufficiently sophisticated kernel-level rootkit could subvert read operations against raw file system data structures as well, so that they match the results returned by APIs.

References

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 "Rootkits, Part 1 of 3: The Growing Threat". McAfee. 2006-04-17. http://www.mcafee.com/us/local_content/white_papers/threat_center/wp_akapoor_rootkits1_en.pdf. 
  2. Evancich, N.; Li, J. (2016-08-23). "6.2.3 Rootkits". Cyber-security of SCADA and Other Industrial Control Systems. Springer. p. 100. ISBN 9783319321257. https://books.google.com/books?id=4ZTlDAAAQBAJ&pg=PA100. 
  3. "What is Rootkit – Definition and Explanation" (in en). 2021-04-09. https://www.kaspersky.com/resource-center/definitions/what-is-rootkit. 
  4. 4.0 4.1 4.2 4.3 "Windows Rootkit Overview". Symantec. 2006-03-26. http://www.symantec.com/avcenter/reference/windows.rootkit.overview.pdf. 
  5. Sparks, Sherri; Butler, Jamie (2005-08-01). "Raising The Bar For Windows Rootkit Detection". Phrack 0xb (x3d). 
  6. 6.0 6.1 6.2 6.3 6.4 Myers, Michael; Youndt, Stephen (2007-08-07). An Introduction to Hardware-Assisted Virtual Machine (HVM) Rootkits (Report). Crucial Security. 
  7. Andrew Hay; Daniel Cid; Rory Bray (2008). OSSEC Host-Based Intrusion Detection Guide. Syngress. p. 276. ISBN 978-1-59749-240-9. https://books.google.com/books?id=h37q2q3wvcUC&pg=PA276. 
  8. Thompson, Ken (August 1984). "Reflections on Trusting Trust". Communications of the ACM 27 (8): 761. doi:10.1145/358198.358210. http://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thompson.pdf. 
  9. 9.0 9.1 Greg Hoglund; James Butler (2006). Rootkits: Subverting the Windows kernel. Addison-Wesley. p. 4. ISBN 978-0-321-29431-9. https://books.google.com/books?id=fDxg1W3eT2gC. 
  10. Dai Zovi, Dino (2009-07-26). "Advanced Mac OS X Rootkits". Blackhat. Endgame Systems. https://www.blackhat.com/presentations/bh-usa-09/DAIZOVI/BHUSA09-Daizovi-AdvOSXRootkits-SLIDES.pdf. Retrieved 2010-11-23. 
  11. "Stuxnet Introduces the First Known Rootkit for Industrial Control Systems". Symantec. 2010-08-06. http://www.symantec.com/connect/blogs/stuxnet-introduces-first-known-rootkit-scada-devices. 
  12. "Spyware Detail: XCP.Sony.Rootkit". Computer Associates. 2005-11-05. http://www.ca.com/us/securityadvisor/pest/pest.aspx?id=453096362. 
  13. Russinovich, Mark (2005-10-31). "Sony, Rootkits and Digital Rights Management Gone Too Far". TechNet Blogs. Microsoft. https://blogs.technet.microsoft.com/markrussinovich/2005/10/31/sony-rootkits-and-digital-rights-management-gone-too-far/. 
  14. "Sony's long-term rootkit CD woes". BBC News. 2005-11-21. http://news.bbc.co.uk/2/hi/technology/4456970.stm. 
  15. Felton, Ed (2005-11-15). "Sony's Web-Based Uninstaller Opens a Big Security Hole; Sony to Recall Discs". https://freedom-to-tinker.com/blog/felten/sonys-web-based-uninstaller-opens-big-security-hole-sony-recall-discs/. 
  16. Knight, Will (2005-11-11). "Sony BMG sued over cloaking software on music CD". New Scientist. https://www.newscientist.com/article/dn8307. Retrieved 2010-11-21. 
  17. Kyriakidou, Dina (March 2, 2006). ""Greek Watergate" Scandal Sends Political Shockwaves". Reuters. http://www.tiscali.co.uk/news/newswire.php/news/reuters/2006/02/03/odd/34greekwatergate34scandalsendspoliticalshockwaves.html. [dead link]
  18. 18.0 18.1 Vassilis Prevelakis; Diomidis Spinellis (July 2007). "The Athens Affair". https://spectrum.ieee.org/telecom/security/the-athens-affair/0. 
  19. Russinovich, Mark (June 2005). "Unearthing Root Kits". Windows IT Pro. http://www.windowsitpro.com/Article/ArticleID/46266/46266.html. Retrieved 2010-12-16. 
  20. Marks, Joseph (July 1, 2021). "The Cybersecurity 202: DOJ's future is in disrupting hackers, not just indicting them". https://www.washingtonpost.com/politics/2021/07/01/cybersecurity-202-dojs-future-is-disrupting-hackers-not-just-indicting-them/. 
  21. Steve Hanna (September 2007). "Using Rootkit Technology for Honeypot-Based Malware Detection". CCEID Meeting. http://www.vividmachines.com/download/icsicceid.pdf. 
  22. Russinovich, Mark (6 February 2006). "Using Rootkits to Defeat Digital Rights Management". Winternals. SysInternals. http://www.sysinternals.com/blog/2006/02/using-rootkits-to-defeat-digital.html. 
  23. "Symantec Releases Update for its Own Rootkit". HWM (March): 89. 2006. https://books.google.com/books?id=5-oDAAAAMBAJ&pg=PA89. 
  24. 24.0 24.1 Ortega, Alfredo; Sacco, Anibal (2009-07-24). "Deactivate the Rootkit: Attacks on BIOS anti-theft technologies". Black Hat USA 2009. Boston, MA: Core Security Technologies. https://www.blackhat.com/presentations/bh-usa-09/ORTEGA/BHUSA09-Ortega-DeactivateRootkit-PAPER.pdf. Retrieved 2014-06-12. 
  25. Kleissner, Peter (2009-09-02). "Stoned Bootkit: The Rise of MBR Rootkits & Bootkits in the Wild". http://www.stoned-vienna.com/downloads/The%20Rise%20of%20MBR%20Rootkits%20&%20Bootkits%20in%20the%20Wild.pdf. 
  26. 26.0 26.1 26.2 Anson, Steve; Bunting, Steve (2007). Mastering Windows Network Forensics and Investigation. John Wiley and Sons. pp. 73–74. ISBN 978-0-470-09762-5. https://books.google.com/books?id=BhdP2PZy6SoC. 
  27. 27.0 27.1 27.2 27.3 "Rootkits Part 2: A Technical Primer". McAfee. 2007-04-03. http://www.mcafee.com/us/local_content/white_papers/wp_rootkits_0407.pdf. 
  28. Kdm. "NTIllusion: A portable Win32 userland rootkit". Phrack 62 (12). http://www.phrack.org/issues.html?issue=62&id=12. 
  29. 29.0 29.1 29.2 29.3 "Understanding Anti-Malware Technologies". Microsoft. 2007-02-21. http://download.microsoft.com/download/a/b/e/abefdf1c-96bd-40d6-a138-e320b6b25bd3/understandingantimalwaretechnologies.pdf. 
  30. Hoglund, Greg (1999-09-09). "A *REAL* NT Rootkit, Patching the NT Kernel". Phrack 9 (55). http://phrack.org/issues.html?issue=55&id=5. Retrieved 2010-11-21. 
  31. Chuvakin, Anton (2003-02-02). An Overview of Unix Rootkits (Report). Chantilly, Virginia: iDEFENSE. http://www.megasecurity.org/papers/Rootkits.pdf. Retrieved 2010-11-21. 
  32. Butler, James; Sparks, Sherri (2005-11-16). "Windows Rootkits of 2005, Part Two". Symantec Connect. Symantec. http://www.symantec.com/connect/articles/windows-rootkits-2005-part-two. 
  33. Butler, James; Sparks, Sherri (2005-11-03). "Windows Rootkits of 2005, Part One". Symantec Connect. Symantec. http://www.symantec.com/connect/articles/windows-rootkits-2005-part-one. 
  34. Burdach, Mariusz (2004-11-17). "Detecting Rootkits And Kernel-level Compromises In Linux". Symantec. http://www.symantec.com/connect/articles/detecting-rootkits-and-kernel-level-compromises-linux. 
  35. Osborne, Charlie (September 17, 2019). "Skidmap malware buries into the kernel to hide illicit cryptocurrency mining". https://www.zdnet.com/article/skidmap-malware-buries-into-the-kernel-to-hide-cryptocurrency-mining/. 
  36. Marco Giuliani (11 April 2011). "ZeroAccess – An Advanced Kernel Mode Rootkit". Webroot Software. http://pxnow.prevx.com/content/blog/zeroaccess_analysis.pdf. 
  37. "Driver Signing Requirements for Windows". Microsoft. http://www.microsoft.com/whdc/winlogo/drvsign/drvsign.mspx. 
  38. Salter, Jim (July 31, 2020). "Red Hat and CentOS systems aren't booting due to BootHole patches". https://arstechnica.com/gadgets/2020/07/red-hat-and-centos-systems-arent-booting-due-to-boothole-patches/. 
  39. Schneier, Bruce (2009-10-23). "'Evil Maid' Attacks on Encrypted Hard Drives". http://www.schneier.com/blog/archives/2009/10/evil_maid_attac.html. 
  40. Soeder, Derek; Permeh, Ryan (2007-05-09). "Bootroot". eEye Digital Security. http://www.eeye.com/Resources/Security-Center/Research/Tools/BootRoot. 
  41. Kumar, Nitin; Kumar, Vipin (2007). "Vbootkit: Compromising Windows Vista Security". Black Hat Europe 2007. https://www.blackhat.com/presentations/bh-europe-07/Kumar/Whitepaper/bh-eu-07-Kumar-WP-apr19.pdf. 
  42. "BOOT KIT: Custom boot sector based Windows 2000/XP/2003 Subversion". NVlabs. 2007-02-04. http://www.nvlabs.in/archives/5-BOOT-KIT-Custom-boot-sector-based-Windows-2000XP2003-Subversion.html. 
  43. Kleissner, Peter (2009-10-19). "Stoned Bootkit". Peter Kleissner. http://www.stoned-vienna.com/. [self-published source]
  44. Goodin, Dan (2010-11-16). "World's Most Advanced Rootkit Penetrates 64-bit Windows". https://www.theregister.co.uk/2010/11/16/tdl_rootkit_does_64_bit_windows/. 
  45. Francisco, Neil McAllister in San. "Microsoft tightens grip on OEM Windows 8 licensing". https://www.theregister.com/2012/08/03/windows_oem_activation_30/. 
  46. King, Samuel T.; Chen, Peter M.; Wang, Yi-Min; Verbowski, Chad; Wang, Helen J.; Lorch, Jacob R. (2006-04-03). "SubVirt: Implementing malware with virtual machines". 2006 IEEE Symposium on Security and Privacy (S&P'06). Institute of Electrical and Electronics Engineers. pp. 14 pp.-327. doi:10.1109/SP.2006.38. ISBN 0-7695-2574-1. http://www.eecs.umich.edu/virtual/papers/king06.pdf. Retrieved 2008-09-15. 
  47. Wang, Zhi; Jiang, Xuxian; Cui, Weidong; Ning, Peng (2009-08-11). "Countering Kernel Rootkits with Lightweight Hook Protection". in Al-Shaer, Ehab (General Chair). CCS 2009: 16th ACM Conference on Computer and Communications Security. Jha, Somesh; Keromytis, Angelos D. (Program Chairs). New York: ACM New York. doi:10.1145/1653662.1653728. ISBN 978-1-60558-894-0. http://research.microsoft.com/en-us/um/people/wdcui/papers/hooksafe-ccs09.pdf. Retrieved 2009-11-11. 
  48. "Device Guard is the combination of Windows Defender Application Control and virtualization-based protection of code integrity (Windows 10)". 11 July 2023. https://msdn.microsoft.com/en-us/library/dn986865(v=vs.85).aspx. 
  49. Delugré, Guillaume (2010-11-21). "Reversing the Broacom NetExtreme's Firmware". hack.lu. Sogeti. http://esec-lab.sogeti.com/dotclear/public/publications/10-hack.lu-nicreverse_slides.pdf. Retrieved 2010-11-25. 
  50. 50.0 50.1 "Hacking Team Uses UEFI BIOS Rootkit to Keep RCS 9 Agent in Target Systems - TrendLabs Security Intelligence Blog". 2015-07-13. http://blog.trendmicro.com/trendlabs-security-intelligence/hacking-team-uses-uefi-bios-rootkit-to-keep-rcs-9-agent-in-target-systems/. 
  51. Heasman, John (2006-01-25). "Implementing and Detecting an ACPI BIOS Rootkit". Black Hat Federal 2006. NGS Consulting. https://www.blackhat.com/presentations/bh-europe-06/bh-eu-06-Heasman.pdf. Retrieved 2010-11-21. 
  52. Heasman, John (2006-11-15). "Implementing and Detecting a PCI Rootkit". Next Generation Security Software. http://www.ngsconsulting.com/research/papers/Implementing_And_Detecting_A_PCI_Rootkit.pdf. 
  53. Modine, Austin (2008-10-10). "Organized crime tampers with European card swipe devices: Customer data beamed overseas". The Register. Situation Publishing. https://www.theregister.co.uk/2008/10/10/organized_crime_doctors_chip_and_pin_machines/. 
  54. Sacco, Anibal; Ortéga, Alfredo (2009). "Persistent BIOS infection". CanSecWest 2009. Core Security Technologies. http://cansecwest.com/csw09/csw09-sacco-ortega.pdf. Retrieved 2010-11-21. 
  55. Goodin, Dan (2009-03-24). "Newfangled rootkits survive hard disk wiping". The Register. Situation Publishing. https://www.theregister.co.uk/2009/03/24/persistent_bios_rootkits/. 
  56. Sacco, Anibal; Ortéga, Alfredo (2009-06-01). "Persistent BIOS Infection: The Early Bird Catches the Worm". Phrack 66 (7). http://phrack.org/issues.html?issue=66&id=7. Retrieved 2010-11-13. 
  57. Ric Vieler (2007). Professional Rootkits. John Wiley & Sons. p. 244. ISBN 9780470149546. 
  58. Matrosov, Aleksandr; Rodionov, Eugene (2010-06-25). "TDL3: The Rootkit of All Evil?". Moscow: ESET. p. 3. http://www.eset.com/resources/white-papers/TDL3-Analysis.pdf. 
  59. Matrosov, Aleksandr; Rodionov, Eugene (2011-06-27). "The Evolution of TDL: Conquering x64". ESET. http://www.eset.com/us/resources/white-papers/The_Evolution_of_TDL.pdf. 
  60. Gatlan, Sergiu (May 6, 2021). "New Moriya rootkit used in the wild to backdoor Windows systems". https://www.bleepingcomputer.com/news/security/new-moriya-rootkit-used-in-the-wild-to-backdoor-windows-systems/. 
  61. Brumley, David (1999-11-16). "Invisible Intruders: rootkits in practice". USENIX. http://www.usenix.org/publications/login/1999-9/features/rootkits.html. 
  62. 62.0 62.1 62.2 62.3 62.4 Davis, Michael A.; Bodmer, Sean; LeMasters, Aaron (2009-09-03). "Chapter 10: Rootkit Detection". Hacking Exposed Malware & Rootkits: Malware & rootkits security secrets & solutions. New York: McGraw Hill Professional. ISBN 978-0-07-159118-8. http://www.mhprofessional.com/downloads/products/0071591184/0071591184_chap10.pdf. 
  63. Trlokom (2006-07-05). "Defeating Rootkits and Keyloggers". Trlokom. http://www.trlokom.com/pdf/TrlokomRootkitDefenseWhitePaper.pdf. 
  64. Dai Zovi, Dino (2011). "Kernel Rootkits". http://www.sans.org/reading_room/whitepapers/threats/kernel-rootkits_449. 
  65. "Zeppoo". SourceForge. 18 July 2009. http://sourceforge.net/projects/zeppoo/. 
  66. Cogswell, Bryce; Russinovich, Mark (2006-11-01). "RootkitRevealer v1.71". Microsoft. https://technet.microsoft.com/en-us/sysinternals/bb897445.aspx. 
  67. "Rootkit & Anti-rootkit". https://www.avast.com/c-rootkit. 
  68. "Sophos Anti-Rootkit". Sophos. http://www.sophos.com/products/free-tools/sophos-anti-rootkit.html. 
  69. "BlackLight". F-Secure. http://www.f-secure.com/en_UK/security/security-lab/tools-and-services/blacklight/index.html. 
  70. "Radix Anti-Rootkit". usec.at. http://www.usec.at/rootkit.html. 
  71. "GMER". http://www.gmer.net/. 
  72. Harriman, Josh (2007-10-19). "A Testing Methodology for Rootkit Removal Effectiveness". Dublin, Ireland: Symantec Security Response. http://www.symantec.com/avcenter/reference/testing_methodology_for_rootkit_removal.pdf. 
  73. Cuibotariu, Mircea (2010-02-12). "Tidserv and MS10-015". Symantec. http://www.symantec.com/connect/blogs/tidserv-and-ms10-015. 
  74. "Restart Issues After Installing MS10-015". Microsoft. 2010-02-11. https://blogs.technet.microsoft.com/msrc/2010/02/11/restart-issues-after-installing-ms10-015/. 
  75. Steinberg, Joseph (June 9, 2021). "What You Need To Know About Keyloggers". https://bestantivirus.com/blog/keyloggers.html. 
  76. "Strider GhostBuster Rootkit Detection". Microsoft Research. 2010-01-28. http://research.microsoft.com/en-us/um/redmond/projects/strider/rootkit/. 
  77. "Signing and Checking Code with Authenticode". Microsoft. https://msdn.microsoft.com/en-us/library/ms537364(VS.85).aspx. 
  78. "Stopping Rootkits at the Network Edge". Beaverton, Oregon: Trusted Computing Group. January 2017. http://www.trustedcomputinggroup.org/files/resource_files/C2426F48-1D09-3519-AD02D13C71B888A6/Whitepaper_Rootkit_Strom_v3.pdf. 
  79. "TCG PC Specific Implementation Specification, Version 1.1". Trusted Computing Group. 2003-08-18. http://www.trustedcomputinggroup.org/files/resource_files/87B92DAF-1D09-3519-AD80984BBE62D62D/TCG_PCSpecificSpecification_v1_1.pdf. 
  80. "How to generate a complete crash dump file or a kernel crash dump file by using an NMI on a Windows-based system". Microsoft. https://support.microsoft.com/en-us/kb/927069. 
  81. Seshadri, Arvind (2005). "Pioneer". Proceedings of the twentieth ACM symposium on Operating systems principles. Carnegie Mellon University. pp. 1–16. doi:10.1145/1095810.1095812. ISBN 1595930795. 
  82. Dillard, Kurt (2005-08-03). "Rootkit battle: Rootkit Revealer vs. Hacker Defender". http://searchenterprisedesktop.techtarget.com/news/column/0,294698,sid192_gci1112754,00.html. 
  83. "The Microsoft Windows Malicious Software Removal Tool helps remove specific, prevalent malicious software from computers that are running Windows 7, Windows Vista, Windows Server 2003, Windows Server 2008, or Windows XP". Microsoft. 2010-09-14. https://support.microsoft.com/en-us/kb/890830. 
  84. Bettany, Andrew; Halsey, Mike (2017). Windows Virus and Malware Troubleshooting. Apress. p. 17. ISBN 9781484226070. https://books.google.com/books?id=s8FCDgAAQBAJ&pg=PA17. 
  85. Hultquist, Steve (2007-04-30). "Rootkits: The next big enterprise threat?". InfoWorld. http://www.infoworld.com/article/2663426/security/rootkits--the-next-big-enterprise-threat-.html. Retrieved 2010-11-21. 
  86. "Security Watch: Rootkits for fun and profit". CNET Reviews. 2007-01-19. http://reviews.cnet.com/4520-3513_7-6686763-1.html. 
  87. Bort, Julie (2007-09-29). "Six ways to fight back against botnets". PCWorld (San Francisco: PCWorld Communications). http://www.pcworld.com/article/137821/article.html. Retrieved 2009-04-07. 
  88. Hoang, Mimi (2006-11-02). "Handling Today's Tough Security Threats: Rootkits". Symantec Connect. Symantec. http://www.symantec.com/connect/blogs/handling-todays-tough-security-threats-rootkits. 
  89. 89.0 89.1 Danseglio, Mike; Bailey, Tony (2005-10-06). "Rootkits: The Obscure Hacker Attack". Microsoft. https://technet.microsoft.com/en-us/library/cc512642.aspx. 
  90. Messmer, Ellen (2006-08-26). "Experts Divided Over Rootkit Detection and Removal". NetworkWorld.com (Framingham, Mass.: IDG). http://www.networkworld.com/article/2306180/lan-wan/experts-divided-over-rootkit-detection-and-removal.html. 
  91. Skoudis, Ed; Zeltser, Lenny (2004). Malware: Fighting Malicious Code. Prentice Hall PTR. p. 335. ISBN 978-0-13-101405-3. https://books.google.com/books?id=JHgX8_pVPpEC. 
  92. Hannel, Jeromey (2003-01-23). "Linux RootKits For Beginners - From Prevention to Removal" (PDF). SANS Institute. http://www.sans.org/reading_room/whitepapers/linux/linux-rootkits-beginners-prevention-removal_901. 
  93. Li, Yong-Gang; Chung, Yeh-Ching; Hwang, Kai; Li, Yue-Jin (2021). "Virtual Wall: Filtering Rootkit Attacks to Protect Linux Kernel Functions". IEEE Transactions on Computers 70 (10): 1640–1653. doi:10.1109/TC.2020.3022023. https://ieeexplore.ieee.org/document/9186825. 

Further reading

  • Blunden, Bill (2009). The Rootkit Arsenal: Escape and Evasion in the Dark Corners of the System. Wordware. ISBN 978-1-59822-061-2. 
  • Hoglund, Greg; Butler, James (2005). Rootkits: Subverting the Windows Kernel. Addison-Wesley Professional. ISBN 978-0-321-29431-9. 
  • Grampp, F. T.; Morris, Robert H. Sr. (October 1984). "The UNIX System: UNIX Operating System Security". AT&T Bell Laboratories Technical Journal 62 (8): 1649–1672. doi:10.1002/j.1538-7305.1984.tb00058.x. 
  • Kong, Joseph (2007). Designing BSD Rootkits. No Starch Press. ISBN 978-1-59327-142-8. 
  • Veiler, Ric (2007). Professional Rootkits. Wrox. ISBN 978-0-470-10154-4. 

External links