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

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)

Which describes a TEE (trusted execution environment)?

  1. AA hardware-protected execution environment isolated even from the normal OS, used for critical work such as key handling and authentication
  2. BAn environment for speeding up internet traffic
  3. 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.

In confidential computing, a user's verification server (the verifier) checks the attestation report received from a VM-based TEE before handing over the key that decrypts the data. Which is the most appropriate set of things for the verifier to check?

  1. 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
  2. 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
  3. 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.

Questions that mention Trusted execution environment (TEE) (4)

Trusted execution environment (TEE) appears in 6 practice questions across 2 topics, including Hardware Security: Advanced Topics and Trends, Hardware Security.

  1. Some data-center GPUs provide features that let them be used for confidential computing together with a CPU TEE. Which correctly describes the idea of this mechanism?
  2. Which describes remote attestation?
  3. Among the TEEs used in confidential computing, which correctly describes the difference between VM-based TEEs that protect a whole virtual machine (such as AMD SEV-SNP and Intel TDX) and enclave-based TEEs that protect part of an application (such as Intel SGX)?
  4. Which correctly describes the realm introduced in Arm CCA (Confidential Compute Architecture)?

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