What is Confidential computing?
A way of computing in which data being processed are handled inside a hardware-protected TEE, so that even the OS, the hypervisor and the cloud provider's administrators cannot read them. It protects data in use, in addition to encrypting data at rest and in transit. There are VM-based TEEs that protect a whole virtual machine (such as AMD SEV-SNP, Intel TDX and Arm CCA) and enclave-based TEEs that protect part of an application (such as Intel SGX). Secret data and keys are released only after the state inside has been checked by remote attestation.
Japanese name: 機密コンピューティング
Confidential computing appears in 4 practice questions across 2 topics, including Hardware Security: Advanced Topics and Trends, Hardware Security.
Field: Hardware Security: Advanced Topics and Trends
VM-based and enclave-based TEEs
A VM-based TEE protects the memory of a whole virtual machine, so existing OSes and applications run almost unchanged, but a large body of software including the guest OS enters the trusted computing base (TCB). An enclave runs only the part that handles secrets in a protected region, so the TCB is small, but the application has to be split and rewritten. In VM-based TEEs, besides encryption, integrity protection that stops the hypervisor from remapping pages or writing back old contents is also important. As of the mid-2020s, schemes that combine a CPU TEE with a GPU to run AI workloads under confidential computing are also offered.
FAQ
If the memory is encrypted, why is attestation needed?
Encryption only keeps outsiders from reading; it says nothing about what is running inside. The workload might be running in a fake TEE, on a tampered guest OS or on firmware that predates a vulnerability fix, so the key that decrypts the data is released only after the measurements and version numbers signed with the CPU's key have been checked.
Does it remove the need to trust the cloud provider at all?
It greatly reduces the worry that memory contents are read, but the CPU vendor and its firmware must still be trusted, and the provider can still disrupt the service by withholding resources. Check for each scheme what is trusted and what it protects against.