Your phone stores fingerprints, payment tokens and DRM keys. Even if a hacker fully owns Android, those secrets must stay safe. How? ARM builds a second, isolated computer inside the same chip — TrustZone. It's one of the most important security ideas in modern silicon.
TrustZone splits the entire system into two worlds:
The crucial guarantee: Normal-world software physically cannot read or write Secure-world memory or peripherals. This isn't enforced by the OS (which could be hacked) — it's enforced by hardware.
How does hardware know which world it's in? A single signal: the NS (Non-Secure) bit. It tracks the current world and — crucially — propagates across the system bus (AMBA, Day 19). Every memory and peripheral access carries its NS state, so RAM regions and devices can be tagged secure or non-secure. A non-secure access to a secure address is blocked by hardware, full stop.
You can't just jump between worlds — that would defeat the isolation. On Cortex-A, the only gateway is the Secure Monitor, tiny trusted code in the most privileged Monitor mode. Software requests a crossing with the SMC (Secure Monitor Call) instruction; the Monitor carefully saves and restores state as it passes control between worlds.
The Secure world hosts a Trusted Execution Environment (TEE) — a minimal trusted OS (e.g. OP-TEE) running small trusted applications. Real uses you rely on daily:
Security means nothing if the secure code itself is tampered with. Secure boot establishes a chain of trust: an immutable boot ROM (Day 25) verifies the next stage's signature before running it, which verifies the next, and so on. TrustZone's Secure world is brought up first, under this verified chain, so trusted code is genuine before the Normal world even starts.
Microcontrollers got their own, lighter variant in ARMv8-M. Instead of a Secure Monitor and worlds you switch via SMC, TrustZone-M divides the memory map into secure/non-secure regions and lets calls cross at special NSC (Non-Secure Callable) entry points with very low overhead — security for tiny IoT devices without a heavyweight TEE.
TrustZone is a hardware-enforced second computer inside the chip: a Secure world the Normal world can never peek into, tracked by the NS bit across the whole bus. Worlds cross only through the Secure Monitor via SMC, the Secure world runs a TEE for keys/payments/biometrics, and secure boot guarantees that trusted code is authentic.
A hardware feature splitting the system into an isolated Secure world and a Normal world, so trusted code/secrets stay safe even if the main OS is compromised.
The Non-Secure signal marking the current world; it propagates on the bus so hardware can block non-secure access to secure resources.
The Trusted Execution Environment — the Secure-world OS where keys, payments and biometrics are handled in isolation.