Course contentsShow
← Security
Lesson 1562 of 3,05231. Operating System Security - MalwareFree lesson

Integrity Verification and Trusted Baselines

Verifying system files, kernel structures, and executables against trusted baselines from clean media.

Integrity Verification and Trusted Baselines

You'll learn how to detect rootkit modifications by comparing your running system against known-good reference states.

The Core Idea

Integrity verification is the process of checking whether your current system files, kernel structures, and executables match a trusted baseline—a verified snapshot taken from clean, uncompromised media or installation. Think of it like having the original blueprint of a building: if walls have been moved or doors added without your knowledge, comparing the current state to the blueprint reveals unauthorized changes.

Rootkits excel at hiding themselves from traditional detection tools by manipulating the very commands you use to look for them. But they can't hide from comparisons against an external, trusted reference.

How It Works

Creating a Trusted Baseline

First, establish your reference point using clean installation media or a freshly installed system before it touches potentially hostile networks. This baseline includes:

  • Cryptographic hashes of critical executables (/bin/ls, ps, netstat)
  • Known-good kernel structures and system call tables
  • Expected file attributes, permissions, and metadata
  • Digital signatures of signed binaries

Verification Process

Periodically (or during incident response), compare your live system against this baseline:

  1. Boot from trusted external media (Live CD/USB) to avoid using potentially compromised system tools
  2. Mount the suspect system read-only
  3. Hash critical files and compare against baseline hashes
  4. Check kernel memory structures against expected values
  5. Flag any discrepancies as potential compromise indicators

Mismatches reveal tampering: modified binaries, hooked system calls, or hidden files that rootkits depend on.

Key Takeaway: Integrity verification defeats rootkit stealth by comparing the current system state against an immutable trusted baseline created from clean media, revealing modifications that in-system tools cannot detect.