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.

Lesson 5 of 18 · 11 min read · practice only with authorization

Diagram

Layers a rootkit can hide in

Follow the path. One example at a time.

Step 1 of 4

User mode

Hooks in user-space libraries hide files from some tools.

Illustration: User mode
# 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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

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.

  1. MapMalware fundamentals: families, delivery, persistence, and the responseWhat malware categories describe, how infections usually start, where persistence hides on Windows, Linux, and macOS, and why rebuilding usually beats cleaning.

Practice

  1. LabTerminal labRead the files on a scoped host and name the failure in a finding.

Glossary

  1. CardRootkitsThe program hides under the tools you would use to see it.