2.4
In progress
Rootkits
Summary
A rootkit is malware designed to hide itself and other malicious activity by modifying the operating system or firmware. Because it runs with high privileges, it can conceal files, processes and network connections from security tools, making it very hard to detect and remove.
Detailed explanation
- Rootkit: Malware that gains privileged access and conceals its presence by altering system components.
- Privilege levels: Standard user, administrator and SYSTEM or root; rootkits seek the highest level.
- User-mode rootkit: Runs with normal application privileges and hides by altering system tools or libraries.
- Kernel-mode rootkit: Runs in the kernel (ring 0), giving complete control and the ability to hide from the operating system itself.
- Privilege rings: x86 processors define rings 0 to 3; mainstream operating systems use ring 0 for the kernel and ring 3 for applications.
- Firmware rootkit: Hides in UEFI, BIOS or device firmware and survives OS reinstallation and disk replacement.
Capabilities
- Concealment: Hiding files, processes, registry keys and network connections.
- Persistence: Reloading at every boot.
- Log tampering: Removing evidence from logs.
Detection and defense
- Controls: Secure boot and measured boot with a TPM, integrity checking, scanning from trusted external media, EDR and reimaging (or firmware reflashing) rather than cleaning.
Important terms
taken from the text above- Rootkit
- Malware that gains privileged access and conceals its presence by altering system components.
- Privilege levels
- Standard user, administrator and SYSTEM or root; rootkits seek the highest level.
- User-mode rootkit
- Runs with normal application privileges and hides by altering system tools or libraries.
- Kernel-mode rootkit
- Runs in the kernel (ring 0), giving complete control and the ability to hide from the operating system itself.
- Privilege rings
- x86 processors define rings 0 to 3; mainstream operating systems use ring 0 for the kernel and ring 3 for applications.
- Firmware rootkit
- Hides in UEFI, BIOS or device firmware and survives OS reinstallation and disk replacement.
- Concealment
- Hiding files, processes, registry keys and network connections.
- Persistence
- Reloading at every boot.
- Log tampering
- Removing evidence from logs.
What I should remember
- Rootkit: Hides malware with high privileges.
- Kernel-mode rootkit: Runs in ring 0 with full control.
- Firmware rootkit: Survives OS reinstall.
- Secure boot: Helps prevent rootkits loading at startup.
- Remediation: Rebuild the system; cleaning is unreliable.