Use this when malware may hide itself in the OS, kernel or boot chain.
Rootkit
A rootkit hides malware by modifying the OS, kernel, bootloader or firmware, so normal tools do not show its files or processes. Secure Boot, measured boot and offline scans help detect it.
1. Rootkits hide malware at kernel or firmware level.
2. Hard to detect from inside the OS.
3. Secure Boot, HVCI, driver blocklists.
4. Offline/memory forensics.
5. Reimage (and possibly reflash firmware).
rootkit → hooks OS → hides activity
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Detection Verify boundary
- Compare results from a live system with an offline scan (Defender Offline, booting from rescue media).
- Look for hidden processes or drivers (memory analysis with Volatility).
- Check Secure Boot and Measured Boot logs for changes.
fltmcanddriverquery /vfor unexpected drivers.
Step 2 Common mistakes Narrow the fault
- Trusting the OS of a rooted system for analysis.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Normal tools may not see it.
- Secure Boot and measured boot help.
- Offline scans are more reliable.
rkhunter --check— Linux rootkit checkchkrootkit— alternative- Secure Boot/measured boot status — bootkit protection
ReferenceWhy it matters1 section · depth on demand
Defences
- Secure Boot, measured boot and TPM attestation.
- Kernel-mode code signing and HVCI (memory integrity) on Windows.
- Offline or boot-time scans when a rootkit is suspected.
Kernel or firmware rootkits usually require reinstalling or reflashing; cleaning is unreliable.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
A rootkit hides malicious activity by modifying the operating system or firmware — concealing files, processes, network connections and registry keys from administrators and security tools. Kernel-mode and boot-level rootkits are especially hard to detect from inside the running system.
| Type | Location | Defence |
|---|---|---|
| User-mode | Hooks in applications/libraries | EDR, integrity monitoring |
| Kernel-mode | Drivers/modules | Driver signing, HVCI, vulnerable driver blocklist |
| Bootkit | Boot loader | Secure Boot, measured boot |
| Firmware/UEFI | Platform firmware | Firmware updates, Secure Boot, attestation |
Detection often needs an outside view: offline scanning, memory forensics, network monitoring of hidden traffic, or attestation. Rebuild compromised systems (including firmware updates) rather than attempting removal.
Types
| Level | Example | Detection |
|---|---|---|
| User mode | Hooks in processes | EDR, memory scans |
| Kernel mode | Malicious drivers | Driver signing, HVCI, Secure Boot |
| Bootkit | Modified boot loader | Secure Boot, Measured Boot |
| Firmware (UEFI) | LoJax, CosmicStrand | Firmware scanning, vendor updates |
Rebuild rather than clean; for firmware rootkits, reflash or replace the board.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Malware → Rootkit. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%