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

Cross-View Differential Analysis

Comparing different views of the same data to detect discrepancies caused by rootkit hooking.

Cross-View Differential Analysis

What you'll learn: You'll discover how to unmask hidden rootkits by comparing different ways of viewing the same system data and spotting suspicious mismatches.

The Core Concept

Rootkits hide their presence by hooking into system calls and manipulating what you see when you query the system. But here's the catch: they can't hook everything at once. Cross-view differential analysis exploits this by checking the same information through multiple paths—like asking different witnesses about the same event—and looking for inconsistencies.

Think of it like checking your bank balance. You could log into the website, call customer service, visit an ATM, or check your monthly statement. If the website shows 5,000buteveryothersourceshows5,000 but every other source shows 5,500, something's wrong—someone's manipulating what you see through that one channel.

How It Works in Practice

When hunting rootkits, you compare:

  • Kernel vs. user-space views: Query process lists from both kernel memory dumps and standard APIs
  • API vs. raw disk reads: Compare file listings from filesystem APIs against direct sector-by-sector disk scanning
  • Different API layers: Check the same data through high-level functions versus low-level system calls

A rootkit hooking the NtQuerySystemInformation API might hide a process from Task Manager, but that process will still appear in raw kernel memory. A filesystem rootkit might hide a file from FindFirstFile, but you'll spot it scanning the Master File Table directly.

Key Takeaway: Cross-view differential analysis catches rootkits by comparing multiple independent views of system data—discrepancies reveal where malicious hooks are distorting reality, since attackers rarely hook every possible access path consistently.