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.
| Technology | Vendor | Isolation unit | Typical use |
|---|---|---|---|
| Intel SGX | Intel | Application enclave | Key handling, small trusted modules |
| Intel TDX | Intel | Confidential virtual machine | Lift-and-shift cloud workloads |
| AMD SEV-SNP | AMD | Confidential virtual machine | General cloud virtual machines |
| Arm CCA | Arm | Realm | Mobile, edge and server platforms |
| NVIDIA H100 confidential mode | NVIDIA | GPU with protected memory | Confidential AI training and inference |
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.
| Control | Data state protected | Main adversary excluded | Performance cost |
|---|---|---|---|
| Disk encryption | At rest | Physical theft of media | Very low |
| TLS | In transit | Network eavesdroppers | Low |
| Confidential computing | In use | Host, hypervisor and operators | Low to moderate |
| Homomorphic encryption | In use | Any party without the key | Very high |
| Secure multi-party computation | In use | Any single participant | High |
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:
- Select confidential virtual machines or enclaves that match the workload’s need for unmodified software versus minimal trust.
- Build reproducible images so that expected measurements are known before deployment.
- Bind key release to an attestation policy in the key management service or an attestation verifier.
- Encrypt disks and network traffic inside the TEE, so data never appears in plaintext outside it.
- Monitor firmware versions and revoke trust in outdated microcode after security advisories.
The following decision table maps common situations to a typical design choice.
| Situation | Typical choice | Reason |
|---|---|---|
| Migrating an existing database to cloud | Confidential virtual machine | No code changes required |
| Protecting a signing key service | Application enclave | Smallest trusted computing base |
| Training models on sensitive records | Confidential GPU with attested VM | Accelerator memory also protected |
| Joint analytics between competitors | Enclave with shared attestation policy | Each party verifies the code |
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.
| Mistake | Consequence | Remedy |
|---|---|---|
| Skipping attestation verification | Secrets released to an impostor | Enforce policy-bound key release |
| Trusting the host for storage | Tampered inputs or rollback | Encrypt and integrity-protect inside TEE |
| Ignoring firmware advisories | Known side channels remain open | Require minimum TCB version |
| Logging sensitive values | Data leaves the TEE in plaintext | Review all output paths |
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.