Skip to content
Blog

Confidential Computing and Trusted Execution for Containers

Starting from NIST SP 800-190's container threat model, this post covers hardware TEEs — Intel TDX, AMD SEV-SNP, ARM CCA — encrypted memory, remote attestation, key broker services, and when they change the game.

Published on • November 15, 2026

AI Assistant

NIST SP 800-190, the Application Container Security Guide (September 2017), mapped the container threat model with uncomfortable clarity: containers share a single host kernel, so a kernel vulnerability is an escape; the orchestration API is a high-value attack surface; images carry provenance risk; and secrets leak through configuration. What the guide could not prescribe, because the hardware did not exist in production form, was the strongest available answer to the shared-kernel problem: make the host itself unable to read the workload. That is confidential computing — hardware-enforced Trusted Execution Environments (TEEs) in which container workloads run in encrypted memory regions that the hypervisor, the cloud operator, and a compromised root account cannot inspect.

The Threat Model SP 800-190 Leaves Open

SP 800-190 organizes its recommendations around the attack surfaces of the container stack: the application, the container configuration itself (privileged mode, capabilities, resource limits), the host OS kernel, the orchestration API, and the image supply chain. Its mitigations — minimal images, seccomp/AppArmor profiles, RBAC on the API, signed registries, kernel patching — all assume one thing: the host is trusted. You run your workload on infrastructure whose administrators you do not control, and every mitigation evaporates the moment the host OS or hypervisor is compromised or simply nosy.

Regular containers sit at the weakest end of a spectrum. Compare the isolation tiers:

PropertyContainers (runc)VMsTEE containers
Kernel boundaryShared host kernelSeparate guest kernelSeparate guest kernel
Memory readable by hostYes (root can read /proc/<pid>/mem)Yes (hypervisor can read guest RAM)No — encrypted with per-VM keys
Integrity of executionHost controls schedulingHost controls vCPUMeasured launch + runtime integrity
Overhead~0Hundreds of MB, boot in secondsVM overhead + encryption engine cost
AttestationNoneNone (standard VMs)Remote attestation of measurements

The middle column is why TEEs matter for containers: a VM isolates but does not hide — a cloud operator with hypervisor access can still dump guest memory. TEEs close that gap in silicon.

The TEE Landscape

Intel TDX (Trust Domain Extensions) treats a VM as a hardware-isolated “Trust Domain”: guest memory is encrypted with AES in the memory encryption engine, vCPU state and the Secure EPT (nested page tables) live in protected memory, and the VMM runs outside the TD with no ability to read or modify its memory. TDX reached production silicon on 4th Gen Xeon Scalable (Sapphire Rapids) in 2023 and is standard on subsequent Xeon generations; the DCAP (Data Center Attestation Primitives) stack produces quotes for remote verification.

AMD SEV-SNP is the stronger cousin in one specific way: SEV encrypts memory per VM, SEV-ES additionally encrypts guest register state, and SEV-SNP (Secure Nested Paging, shipping since EPYC Milan in 2021) adds integrity protection via an RMP (Reverse Map Table) — the hypervisor cannot remap guest pages to trick the guest into writing secrets elsewhere, which was the classic memory-encryption attack. Attestation uses signed reports with the chip’s ID block, with key material (VCEK) fetched from AMD’s Key Distribution Service.

ARM CCA (Confidential Compute Architecture) extends the model to Armv9 with the Realm Management Extension: a third isolation domain alongside Normal world and Secure World, where “Realms” are attested, memory-protected guests. Silicon support is emerging across Neoverse-class designs and the Arm server ecosystem, making CCA the one to watch for ARM-based cloud and edge fleets — the architecture is specified, but deployment is earlier than TDX or SEV-SNP.

All three share the same primitive: memory encryption with keys the platform cannot use, plus a hardware root of trust that emits a signed attestation describing exactly what was launched.

Attestation and the Key Broker Service

Encryption is useless if you cannot verify what you are talking to. The confidential-computing handshake follows a fixed choreography:

  1. Measured launch. Firmware, kernel, and init components are hashed into a launch measurement as the guest boots (with TDX, the TD’s MRTD/RTMRs; with SEV-SNP, the launch digest in the VMPCK-protected measurement area).
  2. Quote generation. The guest requests a signed attestation quote containing the measurement, platform identity, and a nonce from the verifier — never trusting the hypervisor to relay it unmodified.
  3. Verification. A relying party checks the quote against the vendor’s endorsement chain (Intel PCS certificates, AMD KDS key retrieval) and against an expected measurement — an allowlist of known-good firmware/kernel hashes.
  4. Key release. Only then does a Key Broker Service (KBS) release data-encryption keys, image-pull credentials, or configuration secrets to the guest, typically through an Attestation Agent running inside the trusted environment.

Step 4 is where containers plug in. The Confidential Containers (CoCo) project — building on Kata Containers — implements exactly this flow for Kubernetes: a pod scheduled onto a TEE-capable node boots a confidential VM, its Attestation Agent proves the launch to the KBS, and the KBS then hands over the decryption keys for the container image (ocicrypt-encrypted) and workload secrets. The cluster operator never sees either.

What TEEs Do and Do Not Change

Honest scoping prevents over-buying:

  • They defend against: a malicious or compromised cloud operator, hypervisor-level memory inspection, a compromised host OS reading guest RAM, cold-boot and physical memory probing within the encryption engine’s bounds.
  • They do not defend against: a malicious guest application (the workload is still your code), denial of service by the host (it can always stop scheduling your vCPU), side channels (cache-timing and speculative-execution leakage remain an active research area — mitigations exist but are not free), or supply-chain attacks on the images you ask the KBS to decrypt.
  • They change the compliance story: for regulated workloads, the attestation record gives auditors a cryptographically verifiable statement of what code ran — stronger than any host-based attestation agent, which runs on the very system you are trying not to trust.

When to Reach for Them

Confidential containers earn their overhead — roughly VM-class footprint plus a few percent CPU for memory encryption — in specific situations: cross-cloud or multi-tenant processing where the infrastructure provider is outside your trust boundary (healthcare data under HIPAA, financial records, EU personal data), AI workloads protecting model weights or customer prompts at inference time, key custody and HSM-adjacent services, and edge deployments where a physically exposed server must process sensitive traffic. They are the wrong tool for latency-critical, high-density batch jobs where the host is already yours — SP 800-190’s guidance plus good operational hygiene covers that ground at far lower cost.

The through-line from 2017 to 2026: SP 800-190 told you the host kernel was the problem; TEEs are the industry’s answer for when you can no longer even trust the host.

References