Demystifying the Secure Enclave Processor
summary
Breaks down the SEP as a separate ARMv7a core with image4 manifest firmware supplied by the AP at every boot, inline memory encryption for external RAM, and a one-way hardware mailbox/out-of-line buffers RPC that exposes ~8 AKF endpoints (biometric among them). SEPOS runs an L4-derived microkernel with predictable load addresses, a K&R heap, weak stack cookies and no ASLR, making handler bugs exploitable; suggests practical hardware vectors (clock/voltage glitching, side‑channel, fuse/JTAG manipulation) and notes which mitigations exist and which do not.
AI-written summary · about
chapters (40)
- 0:00Intro
- 1:56Talk Outline
- 2:13SEP's ARM Core: Kingfisher
- 4:19Physical Memory
- 5:11SEP KF Filter Diagram
- 7:20Memory Protections
- 8:34SEP Memory Protection Bootstrap
- 9:27Memory Encryption Modes
- 10:20Key Generation
- 10:35Beginning Stage 3
- 12:44Img4 - Manifest
- 13:23Reversing SEP's Img4 Parser: Stage 2
- 14:48Img4 Parsing Flow
- 16:56Mailbox Mechanism
- 17:23Mailbox Message Format
- 18:33SEP Endpoints (1/2)
- 18:59Control Endpoint (EPO) Handles control requests issued to the SEP
- 19:29Control Endpoint Opcodes
- 20:24Endpoint Registration (AP)
- 22:49SEPOS Architecture
- 23:25Kernel (L4) Initializes the machine state to a point where it
- 24:04System Calls (1/2)
- 24:23Privileged System Calls
- 25:21SEPOS (INIT) Initial process on boot root task
- 26:00SEPOS App Initialization
- 26:48Application List
- 27:21Bootstrap Server Implements the core functionality of SEPOS
- 29:56Entitlement Assignment
- 31:20Driver Interaction
- 32:45Service Interaction
- 33:01SEP Applications Primarily designed to support various drivers running in the AP
- 34:18Attack Surface: AKF Endpoints
- 35:11Attack Surface: Endpoint Handler
- 36:42Stack Corruptions
- 38:22Heap Corruptions: malloc()
- 40:20SEPOS Mitigations Summary
- 41:39Attacking IMG4
- 42:19Attack Surface: Hardware
- 44:20End Game: JTAG
- 45:11Conclusion SEPOS was designed with security in mind
related talks
40mKeeping secrets in your opponent's hands
41mProtected Execution Facility
48mOP-TEE: Using the ARM Trust-Zone to Control Tamper Resistant Processors
38mOne Ring -3 To Secure Them All: Computing with Hardware Enclaves
53mBehind the Scenes of Intel Security and Manageability Engine
39mAn Overview of the Self Boot Engine (SBE) in POWER9 base OpenPOWER Systems
55mProtected Execution Facility On Power
28mSanctum: Minimal Hardware Extensions for Strong Software Isolation
