What Is Confidential Computing? Protecting Data in Use and Understanding Attestation
Confidential computing runs code inside a hardware-backed Trusted Execution Environment (TEE) to isolate code and data in memory during computation from other software on the cloud host. It addresses “data in use,” which storage encryption and network encryption alone do not protect. Enabling a TEE does not secure the application, its outputs, or key management by itself; design what must be isolated and what evidence must be checked.
Confidential computing runs code inside a hardware-backed Trusted Execution Environment (TEE) to isolate code and data in memory during computation from other software on the cloud host. It addresses “data in use,” which storage encryption and network encryption alone do not protect. Enabling a TEE does not secure the application, its outputs, or key management by itself; design what must be isolated and what evidence must be checked.
Why protect data while it is in use?
Data has different states: stored, moving across a network, and being processed. Disk encryption reduces exposure if storage is accessed, and TLS reduces eavesdropping in transit. But a program must process data in a form it can read in memory. Confidential computing asks who could read or alter that memory at that moment in a cloud environment.
A TEE separates part of the CPU and memory into a hardware-protected boundary. Memory encryption and access controls make its contents difficult to read from outside that boundary. Authorized code inside can still process data in plaintext, while the hypervisor or other host processes should not be able to read that memory as ordinary host memory. The precise boundary and mechanisms differ among AMD SEV-SNP, Intel TDX, Intel SGX, and provider implementations.
How does a VM-level TEE differ from an enclave?
The main difference is the size of the protected boundary. A VM-level TEE is designed to protect the memory of an entire VM, including its operating system and applications. Microsoft Azure and Google Cloud offer confidential VMs based on AMD SEV-SNP or Intel TDX. These may suit existing VM workloads that need limited code changes, but first check supported CPU, VM size, OS image, and region combinations.
An enclave puts a smaller sensitive portion of an application and its memory inside a separate boundary. AWS Nitro Enclaves partitions vCPUs and memory from a parent EC2 instance to create an isolated execution environment. Processes, users, and the kernel of the parent instance cannot access enclave memory. The trade-off is a deliberately constrained interface: an enclave has no external networking, persistent storage, or interactive access, and communicates with its parent only through a local socket. It can fit a small, narrowly scoped task, but should not be treated like a general-purpose server.
How can remote attestation control key release?
Creating a confidential VM does not by itself confirm that the running instance has the expected hardware and code state. Remote attestation lets a hardware root of trust measure aspects of the environment and issue signed evidence. A separate verifier compares that evidence with approved expectations. A measurement, often a cryptographic hash, is a fingerprint of state such as a boot image, firmware, kernel, or application. Which components are measured depends on the technology.
For example, an AWS Nitro Enclave can request an attestation document containing measurements of its image and code. An AWS KMS key policy can allow operations such as decryption only when the measurements match approved values. The flow is: encrypted data is delivered; the enclave presents signed evidence; the key service compares it with policy; and, if the conditions match, the enclave is allowed to use the key. The existence of an attestation document is not enough: the verifier must validate its signature and define which measurements, versions, and policies are acceptable.
How should you design an implementation?
As a hypothetical example, suppose several organizations want sensitive data processed only by a specific analysis program. Each provider encrypts its data before delivery. The operator stores the decryption key in an external key-management service. When the job starts, the TEE presents its measured evidence to the key service; policy permits key use only for approved code and security state. The approved program decrypts and analyzes data only inside the TEE. Before results leave, a separate check ensures they do not contain identifying information or raw input.
At minimum, decide:
**Threat model:** Identify the data to protect and the adversaries in scope, such as a cloud host administrator or host kernel outside the TEE boundary.
**Protection boundary:** Choose whether you need an entire VM or only sensitive functions in an enclave, then select a matching service.
**Attestation policy:** Specify approved firmware, boot state, and application measurements, and decide how updates that change measurements will be deployed.
**Key lifecycle:** Decide where keys live, who can authorize decryption, and how to handle failed attestation, revocation, and recovery.
**Inputs, outputs, and operations:** Check that plaintext, logs, errors, and results leaving the TEE do not expose sensitive data.
How can you verify that a configuration is active?
Use the provider’s configuration query and attestation verification rather than relying only on a console label. For example, Google Cloud documents using gcloud to inspect a VM’s confidential-computing type:
gcloud compute instances describe INSTANCE_NAME \
--zone=ZONE_NAME \
--format="yaml(confidentialInstanceConfig)"The output can show whether confidentialInstanceType is SEV, SEV_SNP, or TDX. In a Linux guest, a dmesg memory-encryption message can be a supplementary signal, depending on the distribution, but logs alone do not replace remote attestation. In a separate test environment, also verify that the key service withholds keys when evidence is not approved and that approval and denial logs follow the intended policy. This is an example from provider documentation; it was not run in this environment.
Check more than the VM family and CPU: verify supported OS images, regions and zones, disk interfaces, network features, backup, and disaster-recovery requirements. Google’s support documentation lists technology-specific constraints and differences in image attestation support. Azure notes that a confidential VM cannot be freely converted to a standard VM or resized to any ordinary size. Recheck current support matrices and quotas at deployment time.
Which risks does confidential computing leave to you?
A TEE protects a defined hardware boundary around memory and execution; it does not automatically stop a flawed application from processing the wrong data or authorized code from sending plaintext outside the boundary. Application vulnerabilities, weak key policies, excessive outputs, log leaks, and a misconfigured verifier need separate controls. A TEE also does not replace encryption at rest or in transit; protect storage and network links independently.
Include hardware and firmware defects, implementation-specific side-channel risks, and patch or migration policies in the threat model. Products differ in the attacks they mitigate and the features they support. Do not infer complete protection from every provider or management layer from the label “confidential VM.” For highly sensitive data, release keys only for approved measurements and review application outputs and operating procedures so that the protection boundary matches the actual security requirement.
References
[Microsoft: TEE and Azure confidential-computing models](https://learn.microsoft.com/en-us/azure/confidential-computing/trusted-execution-environment)
[Microsoft: Azure confidential VM options and deployment considerations](https://learn.microsoft.com/en-us/azure/confidential-computing/virtual-machine-options)
[Google Cloud: Confidential VM overview, including SEV, SEV-SNP, and TDX](https://docs.cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview)
[Google Cloud: Remote attestation overview](https://docs.cloud.google.com/confidential-computing/confidential-vm/docs/attestation-overview)
[Google Cloud: Verify Confidential Computing is enabled](https://docs.cloud.google.com/confidential-computing/confidential-vm/docs/verify-confidential-computing-enabled)
[AWS: Nitro Enclaves overview and constraints](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html)
[AWS: Nitro Enclaves cryptographic attestation](https://docs.aws.amazon.com/enclaves/latest/user/set-up-attestation.html)
[AWS: Attestation-based KMS key policies](https://docs.aws.amazon.com/enclaves/latest/user/kms.html)