Updated Apple security document details Touch ID and A7′s Secure Enclave

iphone5s_touchid_heroFollowing the release of a critical security update for iOS, Apple also posted an updated security document for iOS on its website. In this document, Apple provides additional information on its Touch ID sensor and Secure Enclave system.

The new documentation reveals detailed information on how the Touch ID sensor processes a fingerprint.

The 88-by-88-pixel, 500-ppi raster scan is temporarily stored in encrypted memory within the Secure Enclave while being vectorized for analysis, and then it’s discarded after. The analysis utilizes subdermal ridge flow angle mapping, which is a lossy process that discards minutia data that would be required to reconstruct the user’s actual finger- print. The resulting map of nodes never leaves iPhone 5s, is stored without any identity information in an encrypted format that can only be read by the Secure Enclave, and is never sent to Apple or backed up to iCloud or iTunes.

The process is very secure with a single stored fingerprint having a 1 in 50,000 chance of marching randomly with someone else’s fingerprint.

Apple also discusses how the Secure Enclave system encrypts the identification and share with the rest of the system without exposing that data to an outside party.

Each Secure Enclave is provisioned during fabrication with its own UID (Unique ID) that is not accessible to other parts of the system and is not known to Apple. When the device starts up, an ephemeral key is created, tangled with its UID, and used to encrypt the Secure Enclave’s portion of the device’s memory space.

Additionally, data that is saved to the file system by the Secure Enclave is encrypted with a key tangled with the UID and an anti-replay counter.

The Secure Enclave of the A7 chip processes the fingerprint data with the help of the A7 chip. Data is transferred from the Touch ID to the A7 and then to the Secure Enclave. This transfer is encrypted and the data is not read by the A7 during the relay.

Communication between the A7 and the Touch ID sensor takes place over a serial peripheral interface bus. The A7 forwards the data to the Secure Enclave but cannot read it. It’s encrypted and authenticated with a session key that is negotiated using the device’s shared key that is built into the Touch ID sensor and the Secure Enclave. The session key exchange uses AES key wrap- ping with both sides providing a random key that establishes the session key and uses AES-CCM transport encryption.

Appel also describes how the Touch ID is used to unlock an iPhone, providing details on each step in the process.

On devices with an A7 processor, the Secure Enclave holds the cryptographic class keys for Data Protection. When a device locks, the keys for Data Protection class Complete are discarded, and files and keychain items in that class are inaccessible until the user unlocks the device by entering their passcode.

On iPhone 5s with Touch ID turned on, the keys are not discarded when the device locks; instead, they’re wrapped with a key that is given to the Touch ID subsystem. When a user attempts to unlock the device, if Touch ID recognizes the user’s finger- print, it provides the key for unwrapping the Data Protection keys and the device is unlocked. This process provides additional protection by requiring the Data Protection and Touch ID subsystems to cooperate in order to unlock the device.

The decrypted class keys are only held in memory, so they’re lost if the device is rebooted. Additionally, as previously described, the Secure Enclave will discard the keys after 48 hours or 5 failed Touch ID recognition attempts.

This is just a small part of a larger document that provides information on other aspects of iOS security including app security, network security and more. You can read the entire document on Apple’s website.

[Via TechCrunch]