TEEs for Dummies
Hands-on guides for setting up and testing trusted execution environments: Intel SGX, Intel TDX, AMD SEV-SNP, Arm TrustZone, Arm CCA, and RISC-V PMP.
This is a dummy-friendly starting point, not a production deployment guide. Source material is also on GitHub: tees-for-dummies.
Articles
- TEEs for dummies — what a TEE is, process-level vs VM-level isolation, and the TCB
- Intel SGX — hardware check, SDK/PSW/driver install, first enclave
- SGX with Gramine — unmodified apps in an SGX enclave via a library OS
- SGX with Occlum — same idea, Docker-based Occlum flow
- WebAssembly in SGX — Wasm runtime inside the enclave
- Arm TrustZone and OP-TEE — STM32MP157D-DK1, build, flash,
xtest - Arm CCA — Realms, RME, and current simulator-based testing
- Intel TDX — confidential VMs, Canonical setup, Nginx/
wrkoverhead - AMD SEV-SNP — confidential VMs on AMD
- RISC-V PMP — PMP basics and VisionFive 2 setup
All tutorials assume Linux (mostly Ubuntu) and TEE-capable hardware unless a simulator is mentioned.