01
TEE initialization
The CPU initializes a Trusted Execution Environment — a hardware-isolated region of memory protected by the processor's memory encryption engine. On AMD SEV-SNP systems, each confidential VM gets its own AES-128 encryption key managed exclusively by the AMD Secure Processor. On Intel TDX systems, Trust Domain Extensions create hardware-isolated Trust Domains with similar guarantees.
02
Code and data loaded into the enclave
The AI application — model weights, inference runtime, and input data — is loaded into the TEE. The CPU measures a cryptographic hash of everything loaded, creating a record of exactly what is running inside the enclave. This measurement becomes the basis for remote attestation.
03
Processing with memory encryption
All computation happens inside the enclave with memory encrypted by the CPU's memory encryption engine. When data is written to RAM, it is automatically encrypted. When read back for processing, it is decrypted only inside the CPU core. The host OS, hypervisor, and any co-located workloads see only ciphertext.
04
Remote attestation
Before a client sends sensitive data to the enclave, it requests an attestation report. The TEE generates a hardware-signed report containing the measurements of what is running inside. The client verifies this report against AMD's or Intel's certificate chain, confirming that the hardware is a genuine TEE, the correct unmodified software is running, and the enclave is in a secure state.
05
Sealed result returned
Inference results are returned to the client over a secure channel established after attestation. The host operator can see that computation occurred and when — but cannot see prompts, model weights, or outputs. The enclave can optionally seal state to disk, encrypted in a key only it can access.