The Darker Side of Virtualization
The Darker Side of Virtualization
Related
Security Risk
Problem: Defense mechanism at layer X can be disabled by malware at layer below X
Virtual-Machine Based Rootkit (VMBR)
Definition: Rogue VMM inserted between hardware and OS
Rootkit = Malware with privileged access
How it works:
- VMBR enables separate malicious OS to run surreptitiously
- Makes malicious OS invisible to guest OS and apps
Malicious Activities
Under VMBR protection:
- Observe - steal passwords, credit cards, documents
- Run malicious services - spam, DDoS, crypto mining
- Interfere - modify data, inject false info, manipulate programs
VMBR Insertion Scenarios
(a) VMBR below OS: (b) VMBR below VMM:
┌──────────┐ ┌──────────┐
│ App │ │ App │
├──────────┤ ├──────────┤
│ OS │ │ Guest OS │
├──────────┤ ├──────────┤
│Malicious │ ← VMBR │Malicious │ ← VMBR
│ OS │ │ OS │
├──────────┤ ├──────────┤
│ VMBR │ │ VMM │
├──────────┤ ├──────────┤
│ Hardware │ │ VMBR │
└──────────┘ ├──────────┤
│ Hardware │
└──────────┘
Why VMBRs are Dangerous
Detection extremely difficult:
- Malicious OS below victim OS
- No way for victim to inspect what's below
- All integrity checks can be spoofed
Real-world: Blue Pill rootkit (2006) demonstrated this using AMD-V to insert beneath Windows Vista undetected
Defense Mechanisms
Modern Protections:
- Trusted Boot / Secure Boot
- UEFI firmware verifies bootloader signature
- Prevents unauthorized hypervisor installation
- TPM (Trusted Platform Module)
- Hardware chip storing cryptographic keys
- Can attest system state
- Intel TXT / AMD-V SKINIT
- Measured hypervisor launch
- Creates hardware root of trust
- Security audits
- Monitor unexpected VM exits
- Check anomalous hypervisor behavior