Confidential computing

On this page 7

Confidential computing is the protection of data in use by performing computation inside a hardware-based, attested trusted execution environment (TEE). In infrastructure defense within cybersecurity, it closes the last gap in the data lifecycle: encryption at rest protects stored data and TLS protects data in transit, but conventional systems must decrypt data in memory before processing it.

A TEE isolates code and data from the host operating system, the hypervisor, cloud administrators and other tenants, and it lets a remote party verify cryptographically what is running before releasing secrets. The approach shifts trust away from infrastructure operators toward the CPU vendor’s hardware root of trust, which makes it central to regulated workloads in public clouds.

How confidential computing isolates data in use

Confidential computing relies on three hardware mechanisms working together: memory encryption, access isolation and remote attestation. The processor encrypts protected memory with keys that never leave the chip, so a memory dump, a malicious hypervisor or a cold boot attack sees only ciphertext.

Access isolation is enforced by the CPU itself. Page tables and integrity structures prevent privileged software from reading, remapping or replaying protected pages. The trusted computing base therefore shrinks to the processor firmware and the workload, excluding the host kernel, the hypervisor and the cloud control plane.

Remote attestation completes the model. The TEE produces a signed report containing a measurement, a cryptographic hash of the loaded code and configuration, chained to a key certified by the hardware vendor. A relying party, typically a key management service, checks the report against an expected policy and only then releases decryption keys to the workload.

Main TEE technologies and their isolation models

Hardware TEEs differ mainly in the granularity of isolation: some protect a small application enclave, others protect an entire virtual machine. The table compares the most widely deployed platforms.

TechnologyVendorIsolation unitTypical use
Intel SGXIntelApplication enclaveKey handling, small trusted modules
Intel TDXIntelConfidential virtual machineLift-and-shift cloud workloads
AMD SEV-SNPAMDConfidential virtual machineGeneral cloud virtual machines
Arm CCAArmRealmMobile, edge and server platforms
NVIDIA H100 confidential modeNVIDIAGPU with protected memoryConfidential AI training and inference
Common trusted execution environment platforms

Enclave models such as SGX offer the smallest trusted computing base but require applications to be partitioned or run through a library operating system. Confidential virtual machines accept a larger trusted base, the guest kernel, in exchange for running unmodified software, which explains their dominance in current cloud offerings.

Confidential computing compared with other data protection controls

Confidential computing complements rather than replaces other controls, because each control protects data in a different state or against a different adversary. The comparison below positions it among related techniques.

ControlData state protectedMain adversary excludedPerformance cost
Disk encryptionAt restPhysical theft of mediaVery low
TLSIn transitNetwork eavesdroppersLow
Confidential computingIn useHost, hypervisor and operatorsLow to moderate
Homomorphic encryptionIn useAny party without the keyVery high
Secure multi-party computationIn useAny single participantHigh
Data protection controls by data state

Purely cryptographic methods such as homomorphic encryption avoid hardware trust but are often orders of magnitude slower. Confidential computing typically costs a single-digit to low double-digit percentage of overhead for compute-bound workloads, though I/O-heavy workloads can suffer more because data must be copied through bounce buffers.

Deploying confidential workloads in practice

A sound deployment treats attestation as the gate for every secret, not as an optional audit step. Practitioners usually follow these steps:

  1. Select confidential virtual machines or enclaves that match the workload’s need for unmodified software versus minimal trust.
  2. Build reproducible images so that expected measurements are known before deployment.
  3. Bind key release to an attestation policy in the key management service or an attestation verifier.
  4. Encrypt disks and network traffic inside the TEE, so data never appears in plaintext outside it.
  5. Monitor firmware versions and revoke trust in outdated microcode after security advisories.

The following decision table maps common situations to a typical design choice.

SituationTypical choiceReason
Migrating an existing database to cloudConfidential virtual machineNo code changes required
Protecting a signing key serviceApplication enclaveSmallest trusted computing base
Training models on sensitive recordsConfidential GPU with attested VMAccelerator memory also protected
Joint analytics between competitorsEnclave with shared attestation policyEach party verifies the code
Choosing a confidential computing approach

Limitations, attacks and common misconceptions

Confidential computing does not make vulnerable code safe. A buffer overflow or injection flaw inside the TEE remains exploitable, and an attacker who controls the workload’s own inputs can still exfiltrate data through legitimate outputs.

Side-channel attacks are the most persistent weakness. Research attacks such as Foreshadow, Plundervolt and various cache-timing and controlled-channel techniques extracted secrets from enclaves, and vendors responded with microcode updates and TCB recovery that changes attestation results. The table lists frequent mistakes and their remedies.

MistakeConsequenceRemedy
Skipping attestation verificationSecrets released to an impostorEnforce policy-bound key release
Trusting the host for storageTampered inputs or rollbackEncrypt and integrity-protect inside TEE
Ignoring firmware advisoriesKnown side channels remain openRequire minimum TCB version
Logging sensitive valuesData leaves the TEE in plaintextReview all output paths
Frequent deployment mistakes

A final misconception is that confidential computing removes the need to trust anyone. It moves trust to the hardware vendor and its attestation infrastructure, a trade-off that organizations should state explicitly in their threat model.

The idea in brief

When a computer works on data, it normally has to unlock that data first, and anyone who controls the machine could peek at it. Confidential computing gives the data a sealed room inside the processor. Work happens in that room, and even the owner of the building cannot look through the walls.

Before handing over the keys, the data owner can also ask the room to prove what software is inside. Only if the answer matches does the data go in. This makes it safer to use rented cloud computers for sensitive work.

A practical scenario

A regional hospital network wants to run a fraud detection and billing analytics service in a public cloud, but its security team will not accept that cloud administrators could read patient records in memory. Engineers deploy the service on AMD SEV-SNP confidential virtual machines built from a reproducible image whose measurement is registered in the hospital’s key management service.

At boot, each virtual machine presents an attestation report; the key service checks the measurement and the minimum firmware version and only then releases the database decryption key. Performance testing shows roughly 6 percent overhead on the nightly batch jobs. The compliance team documents that neither the cloud operator nor the hypervisor can access plaintext records, and the project passes its internal risk review.