What Is the Secure Enclave, and How Does It Guard Face ID?
The Secure Enclave is a separate subsystem on Apple's chip. It holds your Face ID data and the keys behind it, and apps never see either. Here is how it works and where its protection ends.
The Secure Enclave is a separate, isolated subsystem built into Apple's chip. It stores your Face ID data, does the face matching, and holds the keys that unlock your iPhone, so neither apps nor the rest of iOS ever touch them.
Here's what it is, how Face ID depends on it, and where its protection stops.
How the Secure Enclave is isolated
Apple describes the Secure Enclave as a dedicated secure subsystem integrated into its chip. It is isolated from the main processor so it can protect sensitive data even if the main processor's kernel is compromised. It has its own processor, which helps prevent side-channel attacks from software sharing the same core.
A few pieces make that isolation hold up:
- A boot ROM. Immutable code sets up a hardware root of trust and checks that the Secure Enclave's operating system image is signed for your device.
- A unique device key. Each device has its own UID, generated during manufacturing and not accessible to Apple or its suppliers.
- Encrypted memory. The Secure Enclave runs from a protected memory region. Its blocks are encrypted and authenticated, and if a check fails it stops accepting requests until a reboot.
That is also why an iPhone is encrypted by default in a way that is tied to the hardware itself.
How Face ID uses it
When you set up Face ID, your face is turned into a mathematical representation. Apple says this data is encrypted with a key available only to the Secure Enclave, stays on the device, and is never backed up. It is not sent to Apple either.
When you look at your phone, part of the neural engine, protected within the Secure Enclave, converts the depth map and infrared image into a representation and compares it with your enrolled data. Apple's own figure is that the chance a random person unlocks your phone is less than 1 in 1,000,000 with a single enrolled appearance. It is higher for twins, siblings and children under 13.
Apps get very little. Apple's documentation says apps learn only whether authentication succeeded and cannot access Face ID data. The Secure Enclave can also hold keys that apps create, and operations with those keys happen inside it.
What happens after a restart or failed tries
With Face ID on, the keys that protect your data are wrapped with a key held by the biometric subsystem inside the Secure Enclave. A successful match releases it. After a restart, the Secure Enclave discards those biometric-unlock keys, so your passcode is required first. That is the difference between the before-first-unlock and after-first-unlock states.
Face ID also stops after five unsuccessful match attempts and asks for your passcode.
What the Secure Enclave does not do
It protects your face data and keys. It doesn't protect everything around them.
- Your passcode is still the fallback. Anyone who knows it can get in without your face.
- Photos you leave in the normal library are still just photos. Once the phone is unlocked, apps and people using it can see them.
- The stored data changes. Apple says it is refined as you use Face ID, including after a close match followed by a passcode entry.
- It does not settle legal questions. Whether you can be made to unlock a phone is a separate court question.
How Privara handles this
Face ID guards the front door of your iPhone. Privara adds a second door for the things you decide should stay yours.
We think Privara is the best way to keep private content private on an iPhone, for concrete reasons. One AES-256-encrypted vault holds your photos, videos, documents and contacts, so you do not need a different tool for each. Content is encrypted at rest, not just hidden from view. The vault looks and works like an ordinary calculator and opens only when you enter your PIN. You can add a Face ID or Touch ID lock on top of the PIN, and iOS does the matching with the Secure Enclave as described above. There is no account, and nothing is uploaded by default.
Two more features help: a decoy PIN opens a separate vault, and break-in detection captures a photo of anyone who enters the wrong PIN.
Download Privara on the App Store and move your private photos, videos, documents and contacts into one vault.