Course contentsShow
← Security
Lesson 1923 of 3,05239. Cloud Security - Compute and ServerlessFree lesson

Cloud VM Threat Model and Attack Surface

Understanding unique threats to cloud VMs including hypervisor attacks, instance isolation failures, and cloud-specific risks.

Cloud VM Threat Model and Attack Surface

You'll learn how cloud virtual machines face unique security threats that differ from traditional physical servers, and where attackers focus their efforts.

The Cloud VM Threat Landscape

Cloud VMs introduce a multi-tenant attack surface where your instances share physical hardware with other customers. Think of it like living in an apartment building: while you have your own locked unit, you share walls, utilities, and building infrastructure with neighbors you don't know—and can't control.

Key Threat Vectors

Hypervisor attacks target the virtualization layer itself. If an attacker compromises the hypervisor, they could potentially access all VMs on that host. This is like breaking into the building's management office—you'd have master keys to every apartment.

Instance isolation failures occur when boundaries between VMs break down. Side-channel attacks (like Spectre/Meltdown) exploit CPU-level vulnerabilities to leak data across VM boundaries. Your neighbor might "hear through the walls" by measuring CPU timing or cache behavior.

Cloud-specific risks include:

  • Snapshot/AMI exposure: Forgotten credentials or keys in disk images
  • Metadata service exploitation: Accessing 169.254.169.254 for temporary credentials
  • Resource exhaustion: Co-tenant launching CPU/memory attacks affecting your performance
  • VM escape vulnerabilities: Breaking out of guest OS to hypervisor layer
  • Stale or unpatched base images: Using outdated OS images with known vulnerabilities

The Shared Responsibility Gap

Many breaches happen because customers assume the cloud provider secures the OS and applications. The provider secures the hypervisor down, but you secure everything in your VM—OS patches, applications, configurations, and data.

Key Takeaway: Cloud VMs face layered threats from hypervisor vulnerabilities, multi-tenant isolation weaknesses, and cloud-specific attack vectors like metadata service abuse—requiring defense-in-depth strategies that account for shared infrastructure risks.