Confidential computing

Confidential computing protects data while it is being processed, by running code inside a hardware-isolated trusted execution environment that can prove to outsiders what software it is running.

Data has three states: stored, moving across a network, and in use. Encryption has long protected the first two. Confidential computing aims at the third. Computation runs inside a trusted execution environment (TEE), a region of a processor whose memory is encrypted and walled off by the hardware from the operating system, the hypervisor and the people who run the machine. The idea is that a cloud provider can host the work without being able to read it.

The second half of the idea is attestation. Before sending sensitive data, a user's software asks the TEE for a cryptographically signed report of exactly what code it is running, then checks that report against what it expects. Without attestation a compromised server could simply claim to be running trusted software. With it, trust shifts from the operator's promises to the chip maker's hardware and a verifiable measurement of the code.

The hardware has arrived in stages. Intel's SGX appeared on PC processors in 2015, AMD's SEV-SNP on its EPYC server chips in 2021, Arm's Confidential Compute Architecture in 2021 and Intel's TDX in 2023. Nvidia added confidential computing to its H100 data centre GPUs in 2022, which mattered for AI: trust is extended from a protected virtual machine on the CPU to the GPU, and data and code crossing between them are encrypted. The Confidential Computing Consortium, an industry group under the Linux Foundation, was formed in 2019.

In AI the technique is used to protect two things: the prompts and documents users send to a model running in someone else's cloud, and the model weights themselves, which are valuable and a target for theft. Apple's Private Cloud Compute, described in June 2024, applies similar ideas to Apple Intelligence: requests go only to Apple silicon servers whose software measurements match images Apple publishes for researchers to inspect, the servers keep no user data after answering, and they offer no remote shell for administrators.

It is not a guarantee of secrecy. Researchers have repeatedly found side-channel attacks that leak data from TEEs, including SGAxe and ÆPIC against Intel SGX and CipherLeaks against AMD's SEV-SNP. Encryption between CPU and GPU also costs speed: in 2023 Nvidia measured transfers between them on the H100 at roughly 4 gigabytes per second in this mode, limited by the CPU's encryption speed. Confidential computing narrows who must be trusted to the chip maker and the published code. A privacy claim built on it is only as strong as the hardware, the firmware and the attestation checks behind it.

Common questions

What is a trusted execution environment?

A trusted execution environment, or TEE, is an isolated area of a processor where code and data are protected by the hardware, typically by encrypting memory and blocking access from the operating system and hypervisor. It can produce a signed report of what software it is running, so outsiders can check it before sending data.

Does confidential computing stop the cloud provider seeing my data?

That is its purpose: the data is decrypted only inside the TEE, which the provider's administrators and software cannot read into. You still have to trust the chip maker's hardware and firmware, and side-channel attacks have broken TEEs in the past, so it reduces the parties you must trust rather than removing trust altogether.

Is Apple Private Cloud Compute confidential computing?

Apple does not use that label, but Private Cloud Compute relies on the same core ideas. User devices send requests only to servers that cryptographically prove they run publicly logged software, and the servers are built so that Apple's own staff have no privileged access to user data.

Can GPUs run confidential computing?

Yes. Nvidia introduced confidential computing on its H100 GPUs in 2022. The GPU works with a protected virtual machine on the CPU, proves its identity through attestation, and encrypts data and code moving between CPU and GPU, at some cost in transfer speed.

Finding more

Search for "trusted execution environment attestation", "confidential computing GPU" and "confidential AI inference" to see how the technique is used for AI. Reliable sources include documentation from chip makers and cloud providers, the Confidential Computing Consortium, and peer-reviewed security research, which is where weaknesses in TEEs are published. Treat marketing claims of complete privacy with care and look for whether a service offers attestation that customers or researchers can check themselves.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.