← Back to section · Hardware & Chips
TEE Isolation Models: Two Worlds on One Processor
A TEE adds no separate chip; it carves an isolated region inside the main processor. Normal world versus secure world, enclaves, and confidential virtual machines are three different ways of cutting — with different trust boundaries and different costs.
A secure element buys isolation with a separate chip, at the price of limited compute and narrow interfaces. A Trusted Execution Environment (TEE) takes the other road: it carves an isolated region inside the main processor, letting sensitive code run directly on the high-performance CPU while staying confidential from the operating system, the hypervisor and other software on the same machine. This is the technical foundation commonly called confidential computing, which in recent years has spread from mobile devices to servers and the cloud. Its key question is singular: how exactly is the isolation cut?
The First Cut: Splitting the World in Two
ARM TrustZone is the best-known model. Hardware divides processor state into a normal world and a secure world: the secure world runs a small trusted operating system and a set of trusted applications, while the normal world runs the full operating system and ordinary applications. The two worlds share one processor and one memory, but are strictly separated by address-space controllers and secure monitor calls — the normal world cannot access memory marked secure, and world switches pass through a controlled monitor mode. Fingerprint verification, payment keys and content protection on phones rely heavily on this model.
The trust boundary of this cut is clear: the secure world’s software is deliberately kept small enough to audit, and however large and untrusted the normal world becomes, it can only request services through defined interfaces. The limitation is equally plain: all trusted applications in the secure world share one trusted operating system, so a single vulnerability can affect them all, and the isolation granularity stops there — it cannot be subdivided further.
The Second Cut: An Enclave per Application
The enclave model, represented by Intel SGX, refines the granularity to the application: an ordinary application can place a small portion of its code and data into an enclave, whose memory is encrypted and integrity-protected by the processor so that even the operating system and hypervisor see only ciphertext. An enclave can produce remote attestations proving to a distant party that it runs the expected code. The rest of the application stays in the normal environment and communicates with the enclave through controlled calls.
The cost of the enclave model lies in programming and deployment: developers must partition trusted and untrusted code by hand and scrutinise every data crossing; enclave memory capacity, threading models and restricted system calls have all caused real migration friction. Confidential virtual machines have an easily overlooked detail of their own: the VM as a whole is protected, but its input and output data still traverses untrusted channels to and from the host, so the encryption and integrity of disk and network data remain the guest system’s own responsibility — isolation does not automatically cover the data plane. In recent years the server road has shifted toward a third cut: placing an entire virtual machine inside encryption and isolation (confidential VMs, of the AMD SEV or Intel TDX kind), where applications need almost no modification — at the price of expanding the trusted computing base to the whole guest operating system. The object of isolation shifts from “guard against the host” to “guard even against the cloud provider’s hypervisor”, and the audit burden moves with it.
Loading and Governing Trusted Applications
The isolated region is not empty: it must hold a trusted operating system, trusted applications and their configuration data, and where that code comes from, who signs it and how it is updated form one face of TEE governance. With TrustZone, for example, trusted applications are usually signed by the device or platform vendor and updated together with the firmware; ordinary application developers have no right to push code into the secure world. The enclave model is far more open — any application may bring its own enclave — but the enclave’s measurement must face scrutiny by remote verifiers, shifting the governance pressure to the attestation step. Industry bodies have standardised internal and client APIs for TEEs so that trusted applications are developed and invoked under common conventions, but what the standards unify is the interface, not each vendor’s implementation quality.
Beyond loading lies the governance of data: when trusted code must persist data, it can only store it in sealed form in the normal world’s file system, bound to the code measurement and device keys against substitution and rollback. Updates must serve two ends at once: trusted code must patch vulnerabilities no slower than ordinary software, yet updating the secure world as a whole engages the boot chain’s signature and version management. Many real TEE deployment risks lie not in the isolation mechanism itself but in these governance details — who may update, how updates are verified, how old data is migrated — failing to keep up.
Isolation Is Not Invulnerability
The three cuts share the same set of boundary conditions. First, the root of trust sits with the processor vendor: if the microcode, fused keys or isolation implementation is flawed, users cannot repair it and can only wait for vendor updates. Second, side channels are outside the default promise: cache timing, page-fault observation and similar channels have repeatedly been used to extract information from enclaves and secure worlds — a TEE promises architectural isolation, not physical non-leakage. Third, rollback and availability: protected data stored outside the chip can be replaced with an older version and replayed, so anti-rollback needs extra mechanisms such as monotonic counters; and the host can deny service at any time — a TEE protects confidentiality and integrity, not availability.
In practice, therefore, TEEs and discrete secure chips divide the labour: the TEE provides isolation close to compute, suited to running complete sensitive logic; secure elements and TPMs provide an independent root of trust, suited to custodying root keys and witnessing boot. Mature platform designs often use both — anchoring trust in a discrete chip and carrying computation in a TEE. Understanding how the isolation is cut is understanding how this division of labour should be accounted.
Tags: TEETrusted ExecutionTrustZoneConfidential Computing