Confidential computing explained simply is this: it is a way of protecting data while it is being used, by running it inside a sealed-off area of the processor that even the owner of the machine cannot look into. The central question is whether that really keeps data safe in someone else’s cloud, and the short answer is yes for a large class of attacks, but it does not protect against everything.
Data has three states, and until recently only two of them were properly protected. Data at rest is protected by encryption on disk, and data in transit is protected by encryption on the network. Data in use was exposed, because the processor had to hold it in plain form while a program worked on it. Confidential computing closes that gap by giving the data a locked room inside the chip itself. This guide explains how that room works, what it guards against, and where its walls end.
Key takeaways
- Confidential computing protects data while it is being processed, not just while it is stored or sent.
- A trusted execution environment, or enclave, is a sealed area of the processor that hides data and code.
- Remote attestation lets you prove an enclave is genuine before you send it anything sensitive.
- Enclaves protect against prying administrators and compromised operating systems, but not against every attack.
- Confidential computing works best alongside encryption and access control, not instead of them.
What confidential computing actually does
A trusted execution environment is a small, isolated part of the processor that runs code and data in a way the rest of the system cannot see. The operating system, the hypervisor, and even the cloud provider’s own administrators are all kept outside. Inside the enclave, data is decrypted and processed normally; outside it, the same data looks like meaningless scrambled memory.
The protection is enforced by hardware, not by policy. In an ordinary server, the operating system can read any program’s memory. In confidential computing, the processor itself refuses. The memory used by the enclave is encrypted with a key that lives inside the chip, and the chip will only decrypt it for code running inside the enclave. That is stronger than a promise in a contract, because it does not depend on anyone behaving well.
How enclaves work
An enclave starts with a measured launch. When the program is loaded, the processor records a fingerprint of the code, called a measurement, which captures exactly which software is running. If anyone has changed the code, the measurement changes too. That fingerprint is the basis for everything else the enclave promises.
Inside the enclave, the program runs normally, but its memory is encrypted and isolated: the processor encrypts data as it leaves the chip and decrypts it as it comes back. The enclave has a limited amount of protected memory, so programmers need to keep the working set small and move data in and out in encrypted form.
The main technologies come from the big chip makers. Intel’s Software Guard Extensions, known as SGX, carve out small enclaves inside an application. AMD’s Secure Encrypted Virtualization, or SEV, encrypts whole virtual machines. Arm’s Confidential Compute Architecture, or CCA, takes a similar approach for Arm-based systems. The details differ, but the idea is the same: a hardware boundary that the rest of the system cannot cross.

Remote attestation: proving the enclave is genuine
An enclave is only useful if you can check that it is real before you trust it with your data. That check is called remote attestation. The enclave asks the processor for a signed report containing the fingerprint of the code it is running. That report is signed with a key buried inside the chip, which only a genuine processor can hold. You verify the signature, compare the fingerprint with the code you expect, and only then send your data.
Attestation also lets enclaves prove themselves to each other, so two enclaves on different machines can check one another’s fingerprints before sharing data. That is how confidential computing supports joint work between organisations that do not trust each other. Our guide to cloud security explains the other controls that protect data in cloud environments, most of which remain necessary alongside enclaves.
Where confidential computing is used today
Finance is the most visible user. Banks run fraud detection, risk calculations and anti-money-laundering checks on data that is sensitive and heavily regulated, often in shared cloud environments. Confidential computing lets them run that work in the cloud while keeping the data hidden from the provider and from other tenants on the same machine.
Healthcare is close behind. Hospitals and research groups need to analyse patient data together without exposing individual records, and enclaves give them a place to do it under hardware protection. A hospital can send encrypted patient data to an enclave, have the research code run inside it, and receive only the aggregated result. The data is never visible outside the enclave.
Artificial intelligence is the fastest-growing use. Training and running AI models involves data that companies regard as commercially sensitive. Confidential computing lets several organisations pool their data for training without any of them seeing the others’ records, and lets a model owner run their model on a customer’s data without either side seeing the other’s. Our guide to edge AI explains how AI is moving onto devices, where the same problem appears in a different form.
Comparing the main approaches to protecting data in use
| Approach | Main benefit | Main risk | Best for |
|---|---|---|---|
| Hardware enclave | Strong protection, enforced by the chip | Needs special hardware and software | Cloud workloads with sensitive data |
| Encrypted virtual machine | Protects a whole server at once | Larger trusted area, harder to check | Moving existing servers to the cloud |
| Homomorphic encryption | Data never decrypted at all | Much slower than plain computation | Narrow, high-value calculations |
| Ordinary encryption | Fast and widely supported | Data exposed while being used | Storage and transfer |
| Access control alone | Simple, cheap, well understood | Depends on people behaving well | Low-risk internal systems |
What enclaves cannot protect
Enclaves are not a cure for every problem, and the honest case for them starts with their limits. The first limit is the software inside the enclave. The hardware guarantees that nobody outside can read the data, but buggy or malicious code inside can leak the data itself. The measurement proves which code is running, but it says nothing about whether that code is any good.
The second limit is side-channel attacks. These do not break into the enclave directly; instead they watch how it behaves from the outside, such as how long it takes to answer or which parts of memory it touches. Attackers have used these signals to extract secrets from enclaves, and chip makers have had to patch their designs in response. Anyone relying on enclaves should follow the chip maker’s security updates closely.
The third limit is the rest of the system. Data has to travel to the enclave and back, and it is exposed during that journey unless it is encrypted. Keys have to be stored somewhere, and if they are mishandled, the enclave’s protection is worthless. Confidential computing protects one stretch of the data’s journey, not the whole of it. Our guide to zero trust explains the wider principle: trust nothing by default, and verify every part of the system.
What good practice looks like
Good practice starts with keeping the trusted code small. The enclave should contain only the code that genuinely needs to see the sensitive data. Every line of code inside the enclave is code you must trust completely, because the hardware cannot check whether it is doing the right thing. Teams should audit that code carefully and resist putting whole applications inside enclaves when a small piece would do.
Recovery planning is the second pillar. Enclaves fail and hardware is replaced, so data inside an enclave should be recoverable from encrypted backups held elsewhere, with keys stored separately. Our guide to backup and disaster recovery explains how to build that plan, and why it should be tested before it is needed.
Confidential computing checklist
- Put only the code that genuinely needs the sensitive data inside the enclave, and keep it small.
- Verify remote attestation every time, against the exact fingerprint you expect, before sending data.
- Audit the code inside the enclave carefully, and keep it updated like any other software.
- Encrypt data before it travels to the enclave, and encrypt the results on their way out.
- Follow the chip maker’s security updates closely, especially for side-channel fixes.
- Store keys separately from the enclave, under proper key management, with limited access.
- Test performance on realistic workloads, since enclave memory limits can slow large jobs down.
- Keep encrypted backups of enclave data elsewhere, and test restoring them before you need to.
- Keep a human in charge of which code is trusted and which fingerprints are accepted, not a default setting.
Frequently asked questions
What is confidential computing?
It is a way of protecting data while it is being processed, by running it inside a sealed area of the processor called a trusted execution environment, or enclave. The operating system, the hypervisor and the cloud provider cannot see inside, so the data stays hidden while it is being used.
What is a trusted execution environment?
It is an isolated part of the processor that runs code and data in a way the rest of the system cannot inspect. Its memory is encrypted with a key held inside the chip, and the chip refuses to decrypt it for anything outside the enclave. Intel SGX, AMD SEV and Arm CCA are the main implementations.
What is remote attestation?
It is the check that proves an enclave is genuine before you trust it. The processor signs a report containing a fingerprint of the code running inside, and you verify the signature and compare the fingerprint with the code you expect. Only then do you send your data.
Does confidential computing replace encryption?
No. It works alongside encryption, which still protects data at rest and in transit. Confidential computing covers the gap in between, the moment when data is actually being used. A complete system needs all three, plus access control and monitoring.
Can an enclave be hacked?
Yes, in limited ways. Flawed code inside the enclave can leak data, and side-channel attacks can extract secrets by watching how the enclave behaves from outside. Chip makers patch these problems as they are found, so keeping hardware and firmware updated matters.
Do I need confidential computing for my business?
It depends on how sensitive your data is and where it runs. If you process regulated data in a shared cloud, or you need to collaborate with organisations you do not fully trust, it is worth serious consideration. If your data runs on machines you control, ordinary encryption and access control are usually enough.
The bottom line
Confidential computing explained in one line is this: it gives your data a locked room inside the processor, so it stays hidden even while it is being used, on machines you do not own. That closes the last unprotected gap in how data is handled, and for finance, healthcare and anyone running sensitive work in the cloud, it is a practical tool. It is not a replacement for the rest of security, though: the code inside the room still has to be trustworthy, the data still has to be protected on its way in and out, and the hardware has to be kept up to date.







