Note: This is a modified post originally written for a previous role in 2023.

Confidential Computing refers to technologies that protect data during processing by running the compute inside a secure, hardware-based environment called a Trusted Execution Environment (TEE). Some implementations are also referred to as Secure Enclaves. This ensures that data and code remain confidential and tamper-proof, even from cloud providers or system administrators.
An imperfect analogy is thinking of the TEE a as a safe deposit box at a bank for using your data. The bank itself is a place that conducts certain functions and has some security. To take it a step further, only a select group of people can enter the room where the boxes are, and then taking it a step further, only a certain key can open it.
Where the analogy falls short is that the TEE is not only a secure container but can run powerful applications. For example, if you stored your medical records in this box, the secure enclave could run AI models on those contents, such as scanning those documents to assess potential risk of certain disease.
More precisely speaking, the TEE is an environment that provides for isolation of code and data from an operating system using hardware-based CPU-level isolation. Secure enclaves offer a process called attestation to verify that the CPU and apps running are genuine and unaltered.
In addition to secure processing, encrypting the data at its source prior to transit or storage protects data further. Encryption renders the data not readable. Combining public key encryption with using secure enclaves means that the data can only be decrypted, or used, in the secure enclave environment.

Confidential Computing is a growing area with heavy investment, especially with the need for secure AI. A specific example is the AWS Nitro Enclave. An example of an implementation I worked on was modularizing running video Automatic Content Recognition leverage OP-TEE on TV SoC to ensure no piracy could occur for DRM content.

Additionally, enclaves also have a verification process called attestation that helps you verify the enclave’s integrity. To pull on that bank analogy again and stretch it: is the bank legit? Am I going into the right room and opening a real safety deposit box and not a fake that’s stealing my valuables, or valuable data?
The Confidential Computing Consortium, an industry trade group that advocates for the adoption of this paradigm for computing and protecting data, has a White Paper on these terms to learn more.
So Why is Confidential Computing a Thing?
Data breaches happen everyday at a shocking, scary, and embarrassing pace. The impact of these breaches not only have financial consequences but also violate the data privacy of individuals. These exposures of data often happen when data is being used, and there are many potential points of failure as shown by the diagram below.

The imperfect analogy I’ve given is if you’re walking with an open bag of cash around the city behind your back or leaving that open bag of cash in the backseat of a car with your windows down while you’re driving and parking. We would never do that, but this is basically what’s happening to data in the wild in many cases.
Cybersecurity is a broad field that aims to protect data but often focuses on external threats. It’s stopping the robber and not the person from leaving the cash unprotected. There’s a lot of nuance in cybersecurity. What a lot of cybersecurity solutions don’t focus on are internal threats, eg. someone at a company makes a mistake and exposes the data or doesn’t treat it with care. All it takes is one point of failure for a data breach.

A lot of companies have resorted to methods like tokenization that alter data in a way that protects it, but that also makes the data less usable. However this is akin to burying cash in the ground. It’s safe, but you can’t use it while it’s rotting down there.
One area where we don’t hear often about data breaches anymore that was once a blocker for e-commerce is credit card numbers being stolen while in-transit when making an online purchase. This is because TLS technology, encryption technology, protects that process. This begs the question, why don’t we use it more?
The answer is that encryption technology is difficult and widespread adoption takes a long time. We are trying to democratize encryption. This way, even if a wider system gets compromised, such as this example of a EC2 cloud virtual machine, the data in the enclave remains secure.

While no solution is 100% bulletproof, combining encryption with using data in these secure environments can solve a big part of the problem.
What Can I Do with Encryption Combined with Secure Processing?
Encryption at the source means more security as data moves through different pipelines. The secure enclave paradigm protects the data by only allowing the data to be decrypted and used for a specific purpose by specific authorized parties inside of the enclave.
What is Attestation?
Attestation is a process that the enclave uses to prove its identity using a cryptographically signed attestation document that has unique measures. It’s the digital equivalent of a certificate of authentication or document notarization. Blockchain uses this concept heavily.
A real world example of how this is used outside of data management and processing is how my alma mater verifies degrees. There are Blockchain-based measures and checks to verify the authenticity, individuality, and validity that I, indeed, graduated.

For the more technically minded, this Cryptographic attestation – AWS Nitro Enclaves provides a deeper dive The below diagram from AWS shows where the attestation sits within AWS’s architecture and the system output of verifying attestation.


A good example attestation implementation runs through the following checks:
– [X] Verify the Root
– [X] Verify Certificate
– [X] Verify the KMS policy
– [X] Verify Platform Configuration Registers
– [X] Verify checksum of Function
To summarize: attestation is the process in which the authenticity of an enclave is verified.
Encryption, Secure Enclaves, and Attestation


Like a safety deposit box where you can only open with your key, the data can only be unlocked and used in the secure processing environment. The legitimacy of the TEE is proven through attestation.
Platforms can add value by layering additional checks on top of this process, such as being able to specify datasets that can only be used for specific tasks, by specific individuals or integrating with a zero-trust model.
Leave a Reply