←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Notes

Virtualization Security, VM Escape & 5-Tier Defense in Depth

Study material and explanations for Unit 4

Virtualization Security Management and Architecture

Because virtualization allows multiple untrusted users to share the exact same physical server chips and memory buses, securing the hypervisor is the foundation of cloud security.


1. Major Virtualization Security Threats

Critical Virtualization Vulnerabilities
🚨 VM Escape
Attacker breaks out of guest VM and gains root access to the host hypervisor
🦹 Hyperjacking
Attacker installs a malicious rootkit hypervisor underneath the host OS
🔀 VM Hopping
Attacker on VM 1 attacks or snoops on VM 2 running on the same host
📉 Resource Starvation
One malicious VM hogs 100% CPU/RAM, freezing neighbor VMs (Noisy Neighbor)

Understanding the 4 Virtualization Threats:

1. VM Escape (The Worst-Case Scenario)

  • Concept: A user rents a small Linux virtual machine. By exploiting a bug in the virtual graphics or network driver emulation software, the user breaks through the boundary of their VM and gains root shell control over the physical host machine.
  • Once an attacker escapes to the hypervisor, they can view, alter, or steal memory from all other customer VMs running on that physical box.

2. Hyperjacking

  • An advanced rootkit stealthily installs a rogue hypervisor below the host operating system. Because it operates beneath the OS, traditional anti-virus programs running inside the OS cannot detect it.

3. VM Hopping

  • In a multi-tenant public cloud, an attacker analyzes virtual network traffic or shared memory caches to jump directly from their own VM into another company’s VM located on the same physical server.

4. Noisy Neighbor (Resource Starvation / DoS)

  • If a cloud provider fails to enforce strict CPU and memory limits, one customer’s crypto-mining process or infinite loop can consume 100% of the physical machine’s disk I/O and RAM, causing neighboring customer websites to freeze.

2. Best Practices for Hypervisor Security Management

  1. Regular Hypervisor Patching: Keep VMware ESXi, KVM, or Hyper-V updated with the latest security microcode fixes.
  2. Disable Unnecessary Virtual Hardware: Disconnect virtual floppy drives, unused COM ports, and USB controllers from production VMs to reduce the attack surface.
  3. Hardware-Assisted Virtualization: Enable Intel VT-x or AMD-V security extensions with memory encryption (e.g., AMD SEV).
  4. Enforce Strict Resource Quotas: Set hard CPU caps (e.g., max 4 cores, max 8GB RAM per VM) to prevent noisy neighbor attacks.

💡 DAVV Exam Tip

Question (5 Marks): “Explain VM Escape and Hyperjacking. How can virtualization security be maintained?”

  • Define VM Escape: An attack where a program breaks out of the guest VM and interacts directly with the hypervisor.
  • Define Hyperjacking: Taking over the hypervisor by installing a stealth rootkit beneath the operating system.
  • List 3 security practices: Regular patching, disabling unused virtual ports, and resource quotas.