Rootkits and bootkits: hiding below the operating system and how Secure Boot helps
Rootkits hide processes, files, and connections by tampering with the OS; bootkits load before it. How kernel drivers and boot components are abused, why Secure Boot, measured boot, and driver blocklists matter, and when to rebuild instead of clean.
Diagram
Layers a rootkit can hide in
Step 1 of 4
User mode
Hooks in user-space libraries hide files from some tools.
# User mode # Hooks in user-space libraries hide files from some # tools.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Vulnerable drivers
- What fails
- Attackers load legitimately signed drivers with known flaws to reach the kernel.
- Who is affected
- Hosts without driver blocklists.
- What you would notice
- Known vulnerable drivers listed by LOLDrivers.
- What you change
- Enable the vulnerable driver blocklist and HVCI.
Boot integrity
- What fails
- Secure Boot verifies boot components; measured boot records them in the TPM.
- Who is affected
- Hosts with Secure Boot off or outdated revocation lists.
- What you would notice
- Secure Boot disabled in device health reports.
- What you change
- Enforce Secure Boot and apply revocation updates.
Trusting the host
- What fails
- A rootkit can lie to tools running on the same OS.
- Who is affected
- Investigators.
- What you would notice
- Clean-looking live results on a host behaving oddly.
- What you change
- Use offline or memory analysis and prefer rebuilds.
Memory forensics
Memory images analyzed with Volatility 3 can show hidden processes and drivers that the live OS does not report, because the analysis does not rely on the compromised kernel’s answers.
$ vol -f mem.raw windows.psscan | head $ vol -f mem.raw windows.modules | grep -i rtcore $ vol -f mem.raw windows.malfind
Check yourself
Recognition and the fix. Nothing here is a procedure.
Why can live tools miss a kernel rootkit?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.