SGX, AMD SEV, ARM TrustZone: Core Differences

Intel SGX offers fine-grained per-enclave memory encryption for application-level isolation, AMD SEV (with SNP) encrypts entire virtual machines under hypervisor isolation, and ARM TrustZone partitions the entire system-on-chip into secure/normal worlds, each with distinct trust boundaries and ideal use cases for LLM isolation.

The top 3

  1. Isolation Scope: App vs. VM vs. System-Wide: Intel SGX offers fine-grained, application-level enclaves, protecting specific code and data from the OS and hypervisor. AMD SEV (with SEV-SNP) provides coarse-grained protection by encrypting entire virtual machines, isolating them from the hypervisor. ARM TrustZone implements system-wide separation, partitioning the SoC into a Secure World and a Normal World with hardware-enforced boundaries.
  2. Attestation Methods: Verifying Trust Remotely: Intel SGX provides robust remote attestation, allowing a third party to cryptographically verify that an enclave is legitimate and running untampered code. AMD SEV-SNP offers cryptographic attestation signed by the AMD chip, verifiable externally, ensuring VM integrity against hypervisor tampering. ARM TrustZone, while providing hardware primitives, typically requires building an attestation layer on top, with varying rigor depending on the vendor's implementation.
  3. Remote Attestation: Verifying Enclave Integrity: Intel SGX uses cryptographic measurements of the enclave to verify its integrity remotely. AMD SEV employs a 'launch measurement' of the virtual machine. ARM TrustZone relies on device-specific attestation mechanisms, ensuring the secure world's authenticity.

Sources

Open the full topic