Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The Trust Boundary Problem

CNCF Confidential Containers

Running workloads on third-party infrastructure (eg. in public cloud) provides flexibility and scale. But it comes at a cost: when you run workloads on someone else’s infrastructure, you must trust the infrastructure owner. Let’s examine what that trust actually means, and why it is a deeper problem than it first appears.


Trust Boundary in Traditional Virtualisation

In traditional virtualisation, the provider fully controls everything below the guest VM — the hypervisor, host OS, device firmware, and hardware. This means the provider can:

The tenant trust boundary sits above the hypervisor. Everything below it belongs to the provider.

Trust Boundary in Virtualisation

Why Existing Mitigations Fall Short

The table below shows common security mechanisms, their intended protections and where the protections fail when the attacker controls the infrastructure:

MechanismProtects AgainstFails When
Encryption at restStolen disksAttacker controls the hypervisor (reads key from memory)
Encryption (TLS) in transitNetwork eavesdroppingAttacker controls the VM (terminates TLS inside guest)
Secure BootUnsigned bootloadersProvider defines trusted signing certificates
Measured/Trusted BootTampered boot componentsOnly proves machine runs provider’s approved software
SELinux / AppArmorProcess-level isolationBypassed by hypervisor-level access
Namespace isolationContainer escapesHypervisor can still access all guest memory

Real-World Attack Scenarios

Each attack scenario represents a class of attack that a privileged infrastructure operator (or a compromised one) can carry out:

1. Live Memory Dump

A hypervisor administrator uses QEMU/KVM or cloud management APIs to pause a VM and dump its entire memory contents to disk. The dump contains:

This requires no vulnerability in the guest OS. It is a built-in capability of every hypervisor.

2. Cold-Boot Attack

Physical access to a server allows an attacker to freeze DRAM chips (preserving memory contents for minutes to hours), remove them, and read them in another machine. AES keys, RSA private keys, and session data are all recoverable.

3. Hypervisor-Level Keylogger

By intercepting virtual keyboard I/O at the hypervisor layer, an attacker captures keystrokes before they reach the guest OS, including passwords, PINs, and passphrases entered by users.

4. DRAM Bus Snooping

Physical access to the memory bus allows passive reading of unencrypted DRAM traffic. Without memory encryption, all guest data transiting the memory bus is plaintext.

5. Snapshot & Restore Attack

An attacker takes a VM snapshot, restores the VM to that earlier state, and observes outputs to extract cryptographic secrets.

6. Rogue or Coerced Insider

A cloud provider employee with hypervisor access, whether acting maliciously, under coercion, or compelled by a legal order, can inspect any running VM without the tenant’s knowledge.

7. Co-Tenant Side-Channel Attacks

A co-tenant VM running on the same physical host can leak secrets from another VM without any hypervisor access, by exploiting shared hardware resources:

CPU Cache Timing (Spectre/Meltdown family) Modern CPUs share the Last-Level Cache (LLC, typically L3) across physical cores, with L1 and L2 per-core. SMT siblings on the same core share L1/L2, but cross-VM co-tenant attacks primarily exploit the shared LLC. A malicious co-tenant can measure cache access times to infer which memory addresses a victim VM is accessing — and from that, reconstruct cryptographic keys or sensitive data patterns.

DRAM Rowhammer By repeatedly reading (“hammering”) rows of DRAM, an attacker flips bits in adjacent memory rows belonging to another process or VM. This can corrupt page table entries and escalate privilege, even without any software vulnerability.

Branch Predictor & TLB Attacks Shared branch predictors and Translation Lookaside Buffers leak information about the control flow and memory access patterns of co-resident VMs.

Why this matters: these attacks require no hypervisor access and no software vulnerability in the victim — only physical co-residency on the same host.


The Insider Threat Taxonomy

Not all privileged attackers are equal. Here is how they map to real roles:

AdversaryAccess LevelWhat They Can Do
Physical datacenter adminHardware, DRAM busCold-boot, bus sniffing, hardware implants
Hypervisor/cloud operatorHypervisor APIMemory dump, snapshot, VM pause/inspect
Cloud platform engineerManagement planeVM migration, storage access, network tap
Co-tenant (side-channel)Shared hardwareCache-timing attacks, Spectre/Meltdown variants
Compromised orchestrationK8s/cloud APIWorkload injection, secret exfiltration via env vars

The Compliance Gap

Regulations increasingly require that data be protected from infrastructure operators, not just external attackers:

RegulationJurisdictionRequirementTraditional Cloud Problem
GDPREUAppropriate technical measures to protect personal dataCloud provider has access to personal data in memory
HIPAAUSPHI must be protected against unauthorised accessHypervisor admins can access PHI in running workloads
PCI-DSSGlobalCardholder data must be protected at all times“In use” is an unprotected state in traditional VMs
FedRAMP / IL4/IL5US FederalUS government data must not be accessible to CSP staffStructural impossibility without hardware isolation
DORAEUICT risk management must address third-party service provider accessCloud infrastructure access breaks the ICT supply chain trust requirements
NIS2EUCybersecurity risk management for essential/important entities, including supply chain securityThe cloud provider’s privileged access to workloads is itself a supply-chain risk that must be managed

Confidential Computing is increasingly cited by compliance frameworks as the mechanism to satisfy these “data in use” requirements.


Why Hardware Enforcement Is the Only Solution

Any purely software-based isolation boundary can be bypassed by software running at a higher privilege level. It is by design: the hypervisor must be able to manage guest resources.

The only way to make the isolation boundary uncrossable by software is to have the hardware itself enforce it:

This is what Confidential Computing provides: a hardware-enforced boundary that even the hypervisor cannot cross.


Confidential Computing

Enter Confidential Computing

Confidential Computing introduces hardware-enforced TEE boundaries where:

The tenant trust boundary now extends down to the hardware, bypassing the hypervisor entirely. The following chapters explain the mechanisms that make this possible.