Demystifying the Secure Enclave Processor
by Tarjei Mandt & Mathew Solnik & David Wang The secure enclave processor (SEP) was introduced by Apple as part of the A7 SOC with the release of the iPhone 5S, most notably to support their fingerprint technology, Touch ID. SEP is designed as a security circuit configured to perform secure services for the rest of the SOC, with with no direct access from the main processor. In fact, the secure enclave processor runs it own fully functional operating system - dubbed SEPOS - with its own kernel, drivers, services, and applications. This isolated hardware design prevents an attacker from easily recovering sensitive data (such as fingerprint information and cryptographic keys) from an otherwise fully compromised device. Despite almost three years have passed since its inception, little is still known about the inner workings of the SEP and its applications. The lack of public scrutiny in this space has consequently led to a number of misconceptions and false claims about the SEP. In this presentation, we aim to shed some light on the secure enclave processor and SEPOS. In particular, we look at the hardware design and boot process of the secure enclave processor, as well as the SEPOS architecture itself. We also detail how the iOS kernel and the SEP exchange data using an elaborate mailbox mechanism, and how this data is handled by SEPOS and relayed to its services and applications. Last, but not least, we evaluate the SEP attack surface and highlight some of the findings of our research, including potential attack vectors.

Using Undocumented CPU Behavior to See Into Kernel Mode and Break KASLR in the Process

Reflections on Trusting TrustZone

Architecture All Access: Modern CPU Architecture Part 1 – Key Concepts | Intel Technology

Is Apple Security a MYTH?

Platform Security–A Detailed Comparison of RISC-V to ARM’s TrustZone

Defcon 21 - The Secret Life of SIM Cards

Keynote - "What's in a Jailbreak? Hacking the iPhone: 2014 - 2019" - Mark Dowd

HTTP/2 & Quic - Teaching Good Protocols to Do Bad Things

SGX Secure Enclaves in Practice: Security and Crypto Review

AWS re:Invent 2020: Deep dive on AWS Nitro Enclaves for applications running on Amazon EC2

0x2 - Confidential Computing at AWS, the Nitro system and Nitro Enclaves

#HITBGSEC 2016 SG Conference Track D1 - The Apple Sandbox: Deeper Into The Quagmire - Jonathan Levin

Attacking Encrypted USB Keys the Hard(ware) Way

Something is jamming GPS over Europe. Here's what we found

Cyberattacks, data encryption, extortion - How cybercriminals operate | DW Documentary

Breaking Samsung's ARM TrustZone

SGX Secure Enclaves: The Future of Application Security in the Cloud

Side-Channel Attacks on Everyday Applications

Behind the Scenes of iOS Security

