What is Trusted execution environment (TEE)?
A hardware-protected execution environment isolated even from the normal OS, used for critical work such as key handling and authentication, for example Arm TrustZone.
Field: Hardware Security
Read the beginner explainer: How Do Fingerprint and Face Unlock Work on Your Phone?
Japanese name: TEE(信頼できる実行環境)
The idea
The operating systems of smartphones and PCs are huge, and their vulnerabilities cannot be eliminated completely. Processing that must stay protected even if the operating system is taken over is therefore run in a separate, isolated environment: computations that use keys, fingerprint matching, payment, copyright protection and so on. The isolation is guaranteed not by software conventions but by the hardware that controls the processor and memory.
Main schemes
Arm TrustZone divides processor operation into a normal world and a secure world. Bus signals distinguish which world each region of memory and each peripheral belongs to. In the secure world, a small operating system runs with dedicated applications on top of it. Intel SGX places part of an application in a protected region and encrypts its memory so that even the operating system cannot read it. In the cloud, schemes that protect a whole virtual machine and hide its contents even from the cloud provider are spreading.
Limits
Software running inside a TEE can also have bugs. Many studies have shown information leaking from protected regions through caches and speculative execution. In addition, since a TEE shares the main processor, its defense against attacks that physically tamper with the chip is not as strong as that of an independent security chip. To confirm that the correct software is running in the TEE of a remote device, remote attestation is used.
Try it: questions about Trusted execution environment (TEE)
- AA hardware-protected execution environment isolated even from the normal OS, used for critical work such as key handling and authentication
- BAn environment for speeding up internet traffic
- CA text editor for writing programs
Show answer and explanation
Answer: A. A hardware-protected execution environment isolated even from the normal OS, used for critical work such as key handling and authentication
A normal OS is large and complex, so eliminating vulnerabilities completely is difficult. A TEE uses hardware mechanisms to create a small execution environment separated from the normal OS, where especially sensitive tasks run, such as fingerprint matching, payment processing and handling DRM keys. The goal is that even if the normal OS is compromised, the TEE's memory and keys remain out of reach. Arm TrustZone is a representative example.
- AThat the signature chains to the CPU vendor's key, the boot-time measurements are as expected, the TCB version is at or above the fixed version, and the verifier's nonce is included
- BIf the report's signature chains to the genuine CPU vendor's key, the software running inside can also be considered safe, so measurements and version numbers need not be checked
- CThat the virtual machine name, IP address and memory size written in the report match what was agreed in the contract with the cloud provider
Show answer and explanation
Answer: A. That the signature chains to the CPU vendor's key, the boot-time measurements are as expected, the TCB version is at or above the fixed version, and the verifier's nonce is included
Checking the signature shows only that the report came from a genuine TEE. What booted inside is checked by comparing the measurements with known-good values, and the presence of the nonce sent by the verifier shows that the report was made just now and is not a replay. Moreover, a TEE running firmware or microcode from before a vulnerability was fixed can still produce correctly signed reports, so the verifier also checks that the TCB version (security version numbers) in the report is at or above the fixed version. If the report includes the hash of a public key for communication, the key handed over can be made to reach only that virtual machine.
FAQ
How does it differ from a secure element?
A secure element is an independent chip built to withstand physical attacks. Its performance is low, but its protection is strong. A TEE is an isolated environment inside the main processor: its performance is high, but its resistance to physical attacks is limited.
How is it used in smartphone fingerprint authentication?
Fingerprint data is stored and matched inside the TEE or a dedicated security chip. Only the result, match or no match, is passed to the normal operating system.
Books on Hardware Security Ad
As an Amazon Associate I earn from qualifying purchases.
Comparisons that include this term
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.
Back to the glossary