Confidential computing in the cloud

TEEs that protect data in use from the host itself: SGX enclaves, TDX and SEV-SNP confidential VMs, Arm CCA realms, attestation-gated key release in KMS, the side-channel record and when the cost is worth paying.

🔒 PROLesson·13 min read·Advanced → Staff
confidential computingAMD SEV-SNPIntel TDXIntel SGXNitro Enclavessecure key release

01Data in use and the TEE landscape

✓What you will learn
  • Explain what a trusted execution environment protects and from whom
  • Compare SGX enclaves with TDX, SEV-SNP and Arm CCA confidential VMs
  • Design key release on attestation with cloud KMS policies
  • Name the side-channel history and what it means for your threat model
  • Decide when confidential computing is worth the cost and when it is theatre

Encryption at rest and in transit leave one gap: data is plaintext in memory while it is being processed, and the hypervisor, the host OS, a cloud admin or a cold-boot attacker can read that memory. Confidential computing closes the gap with a trusted execution environment (TEE): CPU-enforced isolation plus memory encryption, so that even privileged host software cannot read or silently modify the protected workload, and remote attestation so that you can prove it before trusting it with secrets.

TechnologyIsolation unitTrusted computing baseAttestation rootNotes
Intel SGXEnclave inside a processCPU plus enclave code onlyIntel (DCAP, ECDSA quotes)Smallest TCB; app must be partitioned; removed from recent client CPUs, still on Xeon
Intel TDXWhole VM (trust domain)CPU, TDX module, guest OSIntel quote with MRTD and RTMR registersLift and shift a VM; the hypervisor is outside the TCB
AMD SEV-SNPWhole VMAMD secure processor, guest OSReport signed by a chip-unique VCEK chained to AMD's rootAdds integrity (reverse map table) to SEV memory encryption
Arm CCARealm VMRealm management monitor, guest OSArm CCA token from the platformArmv9 RME; cloud availability still early
AWS Nitro EnclavesCarved-out VM with no network or storageNitro hypervisor and cardNitro attestation document with PCRsNot a CPU TEE; trusts AWS Nitro, not the parent instance

The big shift since 2021 is from enclaves (rewrite your app into trusted and untrusted halves) to confidential VMs (run an unmodified OS in an encrypted VM). The TCB grows, because the whole guest kernel is now trusted, but adoption becomes realistic. Confidential containers (the CNCF CoCo project, AKS confidential containers) go one step further: each pod runs in its own lightweight confidential VM via Kata, so the Kubernetes node is outside the TCB.

◎Interview radar

Interviewers test whether you know who a TEE defends against. The answer is the host: hypervisor, host OS, cloud operator, other tenants. It does not defend the workload from its own bugs. An SQL injection in a confidential VM is still an SQL injection.

This is an advanced module

Hardware roots of trust & confidential computing is part of the Pro pass. 3 more sections — the deep dives, the final design, follow-ups and the test — unlock with it.

Already a cyart.io or studio.cyart.io member? Your pass code is in your Studio account.