SlideShare a Scribd company logo
1 of 26
Download to read offline
Secure Boot on Arm systems
Matteo Carlini (Arm)
ENGINEERS
AND DEVICES WORKING
TOGETHER
Agenda
● Introduction & Scope of work
● Arm Trusted Board Boot (PKI, CoT, Authentication Flow)
● Arm Trusted Firmware implementation
● UEFI Secure Boot (PKI, CoT, Authentication Flow)
● UEFI Secure Boot on Arm – EDK2 recap
● Complete CoT
● Secure Variable Storage
● Other OSS Solutions (Android, U-Boot)
● Next steps
ENGINEERS AND DEVICES
WORKING TOGETHER
Introduction
● Secure Boot  a mechanism to build (and maintain!) a complete Chain of Trust
on all the software layers executed in a system, preventing malicious code to be
stored and loaded in place of the authenticated one
● Security through existing specifications, industry standards & OSS
○ Interoperability (same OS/Software on different Platforms/Firmware)
○ Common Secure Boot and Secure Firmware Update Interfaces  Reduced integration effort
○ Stability, frequent updates, wide usage  Reduced maintenance cost
Enterprise/Networking
Embedded
Mobile/Client
UEFI Secure Boot
Secure/Verified Boot
(UEFI?)
Verified Boot
ENGINEERS AND DEVICES
WORKING TOGETHER
Scope of Work
Apps
OS/RTOS
Trusted Software
TrustZone
Extended Root of Trust
iROT
TrustZone
CryptoCell
Keys Hardware
Arm Trusted Firmware
Trusted OS
UEFI
Firmware
OS
Apps
Trusted
Apps
TBSA &
RoT
TBBR
UEFI
TrustZone-
basedTEE
ARMv8-A Architecture
ENGINEERS AND DEVICES
WORKING TOGETHER
Scope of Work
Apps
OS/RTOS
Trusted Software
TrustZone
Extended Root of Trust
iROT
TrustZone
CryptoCell
Keys Hardware
Arm Trusted Firmware
Trusted OS
OS
Apps
Trusted
Apps
TBSA &
RoT
TBBR
TrustZone-
basedTEE
ARMv8-A Architecture
UEFI
Firmware
UEFI
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Board Boot vs UEFI Secure Boot
● TWO DISTINCT MECHANISMS :
different Key/Certificates & PKI
● SAME GOAL : verifying the
authenticity and integrity of a
software/firmware image before
allowing its runtime execution
● DIFFERENT TARGET IMAGES
● Combined together they enable a
full Secure Boot establishing a
complete Chain Of Trust (despite
different PKI) from the very first
firmware executed up to the OS
HARDWARE
UEFI Firmware (BL33)
OS
Arm TF (BLx stages)
BL1
UEFI
Driver
UEFI
App
OS
Loader
UEFI
Secure
Boot
Arm
TBB
App1 App2 App3
RoT
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Board Boot
● Based on Arm TBSA/TBRR documents (available under NDA)
○ TBBR-Client specification (DEN0006C) reference for Arm Trusted Firmware
implementation
● Arm TBB: a reference example on how to build a CoT from the very first ROM
firmware executed (BL1) up to the first normal world firmware (BL33)
● SBBR recent implications (ARMServerAC):
○ v1.1 will generically mandate the use of a “complete cascading Chain of Trust
from the initial firmware up to the first normal world firmware”
○ Arm TBB and Arm Trusted Firmware provide a reference implementation
○ Other 3rd party solutions (BL1/BL2) will also be accepted as long as they start from an
HW RoT and allow a complete verification up to the UEFI compliant firmware (BL33)
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Firmware TBB – PKI Details
● 2 implicitly trusted components (tamper proof)
1. Root Of Trust Public Key (ROTPK) with SHA-256 hash stored on trusted registers
2. Boot Loader Stage 1 (BL1) stored on trusted ROM
● 2 Certificates pairs for each BL3x image
1. Key Certificate
■ Holds the BL3xpub key needed to validate the corresponding Content Certificate
2. Content Certificate
■ Holds the BL3x image hash to be verified against the hash of the loaded image
● 2 Key pairs used to sign/validate Key Certificates
1. Trusted World Key pair (TWpub/priv) used for BL31 & BL32 Key Certificates
2. Normal World Key pair (NWpub/priv) used for BL33 Key Certificate
● Public Keys and hashes are included as extensions to X.509 certificates
● Certificates are self-signed: no need for a valid CA
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Firmware TBB – Authentication Flow
● BL1 responsible for authenticating BL2 stage
1. BL1 verifies ROTPK in BL2 Content Certificate against ROTPK stored hash
2. BL1 verifies BL2 Content Certificate using enclosed ROTPK
3. BL1 loads BL2 and performs its hash verification
4. Execution is transferred to BL2
● BL2 responsible for authenticating BL3x stages (BL31, BL32, BL33)
1. BL2 verifies ROTPK in Trusted Key Certificate against ROTPK stored hash
2. BL2 verifies Trusted Key Certificate using enclosed ROTPK and saves TWpub /NTWpub
3. BL2 verifies BL3x (BL31/BL32) Key Certificate using TWpub
4. BL2 verifies BL3x (BL31/BL32) Content certificate using enclosed BL3xpub key
5. BL2 extracts and saves BL3x hash used for BL3x (BL31/BL32) image verification
6. BL2 verifies BL33 Key Certificate using NTWpub
7. BL2 verifies BL33 Content certificate using enclosed BL33pub key
8. BL2 extracts and saves BL33 hash used for BL33 image verification
○ Execution is transferred to verified BL3x  BL33 images
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Firmware TBB – How it works (BL1)
Secure ROM
ROTPKSHA-256
BL1
Implicitly
Trusted
components
BL3xpriv
Secure world Images
BLKeyPub
BLxHASH
Key Certs
Content
Certs
Reset
BL3x
ROTpriv
ROTPK
BL2HASH
ROTpriv
TWpriv
BL3xpub
NWpriv
BL33pub
BL3xHASH
BL2
Normal world
BL33priv
BL33HASH
2
3
4
Exec
Legenda
Hash check
EL3 Execution
S-EL1 Execution BL images
EL2 Execution
BL33
1
Trusted Key Cert
ROTPK
TWpub
NWpub
ENGINEERS AND DEVICES
WORKING TOGETHER
TWpriv
BL3xpub
Arm Trusted Firmware TBB – How it works (BL2)
Secure ROM
ROTPKSHA-256
BL1
Implicitly
Trusted
components
Trusted Key Cert
BL3xpriv
Secure world Images
BLKeyPub
BLxHASH
Key Certs
Content
Certs
Reset
ROTPK
TWpub
NWpub
BL3x
ROTpriv
ROTpriv
BL3xHASH
BL2
For each BL3x stage
Normal world
Exec2
4
3
5
Legenda
Hash check
EL3 Execution
S-EL1 Execution BL images
EL2 Execution
BL33
BL33priv
BL33HASH
NWpriv
BL33pub
ROTPK
BL2HASH
1
ENGINEERS AND DEVICES
WORKING TOGETHER
Trusted Key Cert
ROTPK
TWpub
NWpub
NWpriv
BL33pub
BL33priv
BL33HASH
Arm Trusted Firmware TBB – How it works (BL2)
Secure ROM
ROTPKSHA-256
BL1
Implicitly
Trusted
components
BL3xpriv
Secure world Images
EL3 Execution
BLKeyPub
BLxHASH
Legenda
S-EL1 Execution BL images
Key Certs
Content
Certs
BL33
Normal world
Reset
EL2 Execution
BL3x
ROTpriv
ROTpriv
BL3xHASH
BL2
Exec
6 8
Hash check
TWpriv
BL3xpub
7
ROTPK
BL2HASH
ENGINEERS AND DEVICES
WORKING TOGETHER
Trusted Key Cert
ROTPK
TWpub
NWpub
Arm Trusted Firmware TBB – How it works (BL3x)
Secure ROM
ROTPKSHA-256
BL1
Implicitly
Trusted
components
BL3xpriv
Secure world Images
BLKeyPub
BLxHASH
Key Certs
Content
Certs
Normal world
Reset
BL3x
ROTpriv
ROTpriv
BL3xHASH
BL2
Exec
Legenda
Hash check
EL3 Execution
S-EL1 Execution BL images
EL2 Execution
BL33
BL33priv
BL33HASH
NWpriv
BL33pub
TWpriv
BL3xpub
ROTPK
BL2HASH
ENGINEERS AND DEVICES
WORKING TOGETHER
Trusted Key Cert
ROTPK
TWpub
NWpub
Arm Trusted Firmware TBB – How it works (BL33)
Secure ROM
ROTPKSHA-256
BL1
Implicitly
Trusted
components
BL3xpriv
Secure world Images
BLKeyPub
BLxHASH
Key Certs
Content
Certs
Normal world
Reset
BL3x
ROTpriv
ROTpriv
BL3xHASH
BL2
Exec
Legenda
Hash check
EL3 Execution
S-EL1 Execution BL images
EL2 Execution
BL33
BL33priv
BL33HASH
NWpriv
BL33pub
TWpriv
BL3xpub
ROTPK
BL2HASH
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Firmware Implementation Overview
● TBB working properly on BL1/BL2 on both AArch64 & AArch32!
○ JUNO and FVP Platforms TBB example running in AArch32 state on GitHub!
● Build flags (summary)
○ TRUSTED_BOARD_BOOT=1 to enable BL1+BL2 TBB support
○ GENERATE_COT=1 build and execute cert_create tool (see below)
○ XXX_KEYS=[path] used to specify location of keys in PEM format
○ Have a look at the user guide(1)!
● Tools:
○ cert_Create too: BL images and Keys as input  Certificates as output
○ Fiptool: Certificates as input  FIP (Firmware Image Package)
● Pre-integration of TBB with the Arm TrustZone CryptoCell product (CC-712) to
take advantage of its HW RoT and crypto acceleration services
ENGINEERS AND DEVICES
WORKING TOGETHER
UEFI Secure Boot
1. A platform ownership model for establishing a trust relationship among:
■ Platform Owner (ODM/OEM/EndUser) – PO
■ Platform Firmware (EDK2 / U-Boot / 3rd party BIOS) – PF
■ OS / 3rd party software vendors – OSV/ISV  SV
○ Uses standard PKI, X.509 certificates and PE images digital signature, based on PE
digest/hash calculation described in Microsoft Authenticode PE Signature Format
○ Signature database (white/black list) update mechanism from trusted sources
2. A generic framework, based on the above model, to allow:
1. The firmware to authenticate UEFI executable images before allowing their
execution, preventing pre-boot malwares to be run
2. The Platform Owner and/or SV to securely update the signature databases into PF
with new/known allowed/forbidden image signatures
ENGINEERS AND DEVICES
WORKING TOGETHER
UEFI Firmware
UEFI Secure Boot – PKI details
● 2 asymmetric key pairs:
1. Platform Key (PK): Trust
relationship between PO & PF
■ PKpriv owned by the PO
■ PKpub enrolled into PF
2. Key Exchange Key (KEK): Trust
relationship between SV & PF
■ Different KEKpriv for each SV
■ Each SV enrolls KEKpub into PF
● Platform firmware NV variables (on
tamper proof storage) to hold:
○ PKpub / KEKpub list
○ Signatures DBs: signatures
white/black lists (db/dbx)
Enrollment
Process
SetupMode
PF NV variables
PO
SV
PKpriv
PKpub KEK1pub
SV
KEK1priv
KEK2priv
Signature_DBs:
db {} / dbx {}
KEK2pub
ROT
ENGINEERS AND DEVICES
WORKING TOGETHER
UEFI Firmware
UEFI Secure Boot – PKI details (2)
● Using PKpriv/KEKpriv , Signature_DB
is updated from trusted sources
with allowed/forbidden image
signatures, by means of UEFI
SetVariable() Runtime service
Enrollment
Process
UserMode
PKpriv
KEK2priv
SetVariable()
KEK1priv
Signature_DBs:
db {} / dbx {}
Signature_DBs:
db: {Sign1, Sign3}
dbx: {Sign2, Sign4}
PO
SV
SV
PKpub KEK1pub KEK2pub
PF NV variables
ENGINEERS AND DEVICES
WORKING TOGETHER
UEFI Firmware
Sign
check
Sign
check
UEFI Secure Boot – How it works
● UEFI executable images are verified
against Signature_DBs found in the
firmware
Enrollment
Process
DeployedMode
PKpriv
KEK2priv
KEK1priv
Signature_DBs:
db {} / dbx {}
Signature_DBs:
db: {Sign1, Sign3}
dbx: {Sign2, Sign4}
UEFI Executable Images
OS Loader+
OS Kernel
OS Loader+
OS Kernel 2
Sign1 Sign2
UEFI App1 UEFI App2
Sign3 Sign5
Exec
PO
SV
SV
PF NV variables
ENGINEERS AND DEVICES
WORKING TOGETHER
UEFI Secure Boot on Arm – EDK2 recap
● LCA14 (from Ard Biesheuvel)(2) ● LAS16 (Ard Biesheuvel)(3)
ENGINEERS AND DEVICES
WORKING TOGETHER
Arm Trusted Firmware – BL31
Complete CoT – Putting all together
UEFI FIRMWARE – BL33
Linux Kernel A Linux Kernel B
Secure
App1
Secure
App2
Guest App1 Guest App2
PKpub
KEKpub db / dbx
ROTPK
SHA-256
CC
KC
KC
CC
Normal World Secure World
Sign1 Sign2
EL0
EL1
EL2
S-EL0
EL3
TBB
BL1
S-EL1TBB
BL2
CC
S-EL1 payload (BL32)
ENGINEERS AND DEVICES
WORKING TOGETHER
Secure Variable access
Arm Trusted Firmware – BL31
Linux Kernel A Linux Kernel B
Secure Partition
Variable access
Guest App1 Guest App2
KEKpub
db / dbx
TBB
BL2
Normal World Secure World
TBB
BL1
EL0
EL1
EL2
EL3
PKpub
ROTPK
SHA-256
Secure Partition Manager
SVC Trampoline – BL31
SetVariable()
UEFI FIRMWARE – BL33
Arm MM Interface
S-EL0
S-EL1
Secure Storage
ENGINEERS AND DEVICES
WORKING TOGETHER
Other OSS Solutions
● Android Verified Boot(4) on AOSP:
○ De-facto industry standard for Mobile secure boot path since Android 4.4/5.0
○ CoT starting from OEM public key (tamper proof) to verify android boot image
○ Device State (LOCKED/UNLOCKED) must be protected not to break the CoT
○ On newer versions (8.0) also Rollback protection available(5)
● U-Boot Verified Boot(6)
○ CoT starting from trusted U-Boot image (BL33) carrying initial public key (tamper proof)
○ Usual image verification chain then follows
○ No specified platform ownership model for updating keys in field
● U-Boot Secure Boot?
○ Leveraging “UEFI on Top on U-Boot”(7) work, with SetVariable extension?
○ Plugging shim over UEFI-enabled U-Boot to handle key management?
 Convergence of Embedded and Enterprise secure boot flows!
ENGINEERS AND DEVICES
WORKING TOGETHER
Plans & Next Steps
● Software side:
○ Arm open-source reference platform software of TBB+UEFI Secure Boot with Secure
Variable storage access from Secure Partition
○ Investigate U-Boot based solution for Embedded/Mobile
○ Future: Secure Firmware Update (FWU vs UEFI Signed Capsule Update)
● Specification side:
○ TBBR/SBBR updates & possible Server side TBBR/TBSA
○ Interactions with TCG TPM & Measured Boot
○ What level of standardization required on the Firmware side for a TBB solution?
■ A guidance on which authentication steps to be executed at each ELx/BLx to
avoid arbitrary code execution at EL3(8)?
● Different HW solutions for the initial RoT ( SFO17-304)
ENGINEERS AND DEVICES
WORKING TOGETHER
References
1) ARM Trusted Firmware TBB Documentation, Design Guide, User Guide
○ https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/trusted-board-boot.rst
○ https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/auth-framework.rst
○ https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/user-guide.rst
2) LCA14-105: UEFI secure boot
○ http://connect.linaro.org/resource/lca14/lca14-105-uefi-secure-boot/
3) LAS16-200: UEFI Secure Boot
○ http://s3.amazonaws.com/connect.linaro.org/las16/Presentations/Tuesday/LAS16-200%20-
%20Firmware%20Summit%20-%20UEFI%20Secure%20Boot.pdf
4) Android Verified Boot: https://source.android.com/security/verifiedboot/
5) AVB Codebase and latest updates: https://android.googlesource.com/platform/external/avb/
6) U-Boot Verified Boot: https://lwn.net/Articles/571031/
7) UEFI on Top of U-Boot:
○ https://www.suse.com/docrep/documents/a1f0ledpbe/UEFI%20on%20Top%20of%20U-Boot.pdf
8) UCSB Mobile Boot Loaders Analysis and TEE implementation flaws
○ https://www.usenix.org/conference/usenixsecurity17/technical-sessions/presentation/redini
Thank You
(matteo.carlini@arm.com)
#SFO17
BUD17 keynotes and videos on: connect.linaro.org
For further information: www.linaro.org

More Related Content

What's hot

LCU14 302- How to port OP-TEE to another platform
LCU14 302- How to port OP-TEE to another platformLCU14 302- How to port OP-TEE to another platform
LCU14 302- How to port OP-TEE to another platform
Linaro
 
Demystifying Security Root of Trust Approaches for IoT/Embedded - SFO17-304
Demystifying Security Root of Trust Approaches for IoT/Embedded  - SFO17-304Demystifying Security Root of Trust Approaches for IoT/Embedded  - SFO17-304
Demystifying Security Root of Trust Approaches for IoT/Embedded - SFO17-304
Linaro
 
TEE - kernel support is now upstream. What this means for open source security
TEE - kernel support is now upstream. What this means for open source securityTEE - kernel support is now upstream. What this means for open source security
TEE - kernel support is now upstream. What this means for open source security
Linaro
 
LCU14-103: How to create and run Trusted Applications on OP-TEE
LCU14-103: How to create and run Trusted Applications on OP-TEELCU14-103: How to create and run Trusted Applications on OP-TEE
LCU14-103: How to create and run Trusted Applications on OP-TEE
Linaro
 
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted FirmwareHKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
Linaro
 

What's hot (20)

HKG15-311: OP-TEE for Beginners and Porting Review
HKG15-311: OP-TEE for Beginners and Porting ReviewHKG15-311: OP-TEE for Beginners and Porting Review
HKG15-311: OP-TEE for Beginners and Porting Review
 
BUD17-400: Secure Data Path with OPTEE
BUD17-400: Secure Data Path with OPTEE BUD17-400: Secure Data Path with OPTEE
BUD17-400: Secure Data Path with OPTEE
 
LCU14 302- How to port OP-TEE to another platform
LCU14 302- How to port OP-TEE to another platformLCU14 302- How to port OP-TEE to another platform
LCU14 302- How to port OP-TEE to another platform
 
SFO15-200: Linux kernel generic TEE driver
SFO15-200: Linux kernel generic TEE driverSFO15-200: Linux kernel generic TEE driver
SFO15-200: Linux kernel generic TEE driver
 
SFO15-503: Secure storage in OP-TEE
SFO15-503: Secure storage in OP-TEESFO15-503: Secure storage in OP-TEE
SFO15-503: Secure storage in OP-TEE
 
Embedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernelEmbedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernel
 
Secure storage updates - SFO17-309
Secure storage updates - SFO17-309Secure storage updates - SFO17-309
Secure storage updates - SFO17-309
 
Demystifying Security Root of Trust Approaches for IoT/Embedded - SFO17-304
Demystifying Security Root of Trust Approaches for IoT/Embedded  - SFO17-304Demystifying Security Root of Trust Approaches for IoT/Embedded  - SFO17-304
Demystifying Security Root of Trust Approaches for IoT/Embedded - SFO17-304
 
TEE - kernel support is now upstream. What this means for open source security
TEE - kernel support is now upstream. What this means for open source securityTEE - kernel support is now upstream. What this means for open source security
TEE - kernel support is now upstream. What this means for open source security
 
Lcu14 306 - OP-TEE Future Enhancements
Lcu14 306 - OP-TEE Future EnhancementsLcu14 306 - OP-TEE Future Enhancements
Lcu14 306 - OP-TEE Future Enhancements
 
LCU14-103: How to create and run Trusted Applications on OP-TEE
LCU14-103: How to create and run Trusted Applications on OP-TEELCU14-103: How to create and run Trusted Applications on OP-TEE
LCU14-103: How to create and run Trusted Applications on OP-TEE
 
LCA14: LCA14-502: The way to a generic TrustZone® solution
LCA14: LCA14-502: The way to a generic TrustZone® solutionLCA14: LCA14-502: The way to a generic TrustZone® solution
LCA14: LCA14-502: The way to a generic TrustZone® solution
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
 
U-Boot - An universal bootloader
U-Boot - An universal bootloader U-Boot - An universal bootloader
U-Boot - An universal bootloader
 
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted FirmwareHKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
 
U-boot and Android Verified Boot 2.0
U-boot and Android Verified Boot 2.0U-boot and Android Verified Boot 2.0
U-boot and Android Verified Boot 2.0
 
LAS16 111 - Raspberry pi3, op-tee and jtag debugging
LAS16 111 - Raspberry pi3, op-tee and jtag debuggingLAS16 111 - Raspberry pi3, op-tee and jtag debugging
LAS16 111 - Raspberry pi3, op-tee and jtag debugging
 
Linux Internals - Part II
Linux Internals - Part IILinux Internals - Part II
Linux Internals - Part II
 
Android open source project build system phi innovations - android summit 2015
Android open source project build system   phi innovations - android summit 2015Android open source project build system   phi innovations - android summit 2015
Android open source project build system phi innovations - android summit 2015
 
Linux-Internals-and-Networking
Linux-Internals-and-NetworkingLinux-Internals-and-Networking
Linux-Internals-and-Networking
 

Viewers also liked

Using SoC Vendor HALs in the Zephyr Project - SFO17-112
Using SoC Vendor HALs in the Zephyr Project - SFO17-112Using SoC Vendor HALs in the Zephyr Project - SFO17-112
Using SoC Vendor HALs in the Zephyr Project - SFO17-112
Linaro
 
Preventing Linux in your car from killing you: The L4Re Open Source Microviso...
Preventing Linux in your car from killing you: The L4Re Open Source Microviso...Preventing Linux in your car from killing you: The L4Re Open Source Microviso...
Preventing Linux in your car from killing you: The L4Re Open Source Microviso...
Linaro
 

Viewers also liked (6)

Internet of Tiny Linux (IoTL): Episode IV - SFO17-100
Internet of Tiny Linux (IoTL): Episode IV  - SFO17-100Internet of Tiny Linux (IoTL): Episode IV  - SFO17-100
Internet of Tiny Linux (IoTL): Episode IV - SFO17-100
 
Using SoC Vendor HALs in the Zephyr Project - SFO17-112
Using SoC Vendor HALs in the Zephyr Project - SFO17-112Using SoC Vendor HALs in the Zephyr Project - SFO17-112
Using SoC Vendor HALs in the Zephyr Project - SFO17-112
 
Deploy STM32 family on Zephyr - SFO17-102
Deploy STM32 family on Zephyr - SFO17-102Deploy STM32 family on Zephyr - SFO17-102
Deploy STM32 family on Zephyr - SFO17-102
 
Preventing Linux in your car from killing you: The L4Re Open Source Microviso...
Preventing Linux in your car from killing you: The L4Re Open Source Microviso...Preventing Linux in your car from killing you: The L4Re Open Source Microviso...
Preventing Linux in your car from killing you: The L4Re Open Source Microviso...
 
New Zephyr features: LWM2M / FOTA Framework - SFO17-113
New Zephyr features: LWM2M / FOTA Framework - SFO17-113New Zephyr features: LWM2M / FOTA Framework - SFO17-113
New Zephyr features: LWM2M / FOTA Framework - SFO17-113
 
BSD Sockets API in Zephyr RTOS - SFO17-108
BSD Sockets API in Zephyr RTOS - SFO17-108BSD Sockets API in Zephyr RTOS - SFO17-108
BSD Sockets API in Zephyr RTOS - SFO17-108
 

Similar to Secure Boot on ARM systems – Building a complete Chain of Trust upon existing industry standards using open-source firmware - SFO17-201

Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013
Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013
Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013
Fatma Ceylan
 
ELC_NA-2015-AFT_for_CI-Igor.Stoppa
ELC_NA-2015-AFT_for_CI-Igor.StoppaELC_NA-2015-AFT_for_CI-Igor.Stoppa
ELC_NA-2015-AFT_for_CI-Igor.Stoppa
Igor Stoppa
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
Houcheng Lin
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
NETWAYS
 
Distro Recipes 2013: Secure Boot and Linux: several issues, one solution
Distro Recipes 2013: Secure Boot and Linux: several issues, one solutionDistro Recipes 2013: Secure Boot and Linux: several issues, one solution
Distro Recipes 2013: Secure Boot and Linux: several issues, one solution
Anne Nicolas
 

Similar to Secure Boot on ARM systems – Building a complete Chain of Trust upon existing industry standards using open-source firmware - SFO17-201 (20)

Secure boot general
Secure boot generalSecure boot general
Secure boot general
 
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
 
XPDDS17: EFI Secure Boot, Shim and Xen: Current Status and Developments - Da...
XPDDS17:  EFI Secure Boot, Shim and Xen: Current Status and Developments - Da...XPDDS17:  EFI Secure Boot, Shim and Xen: Current Status and Developments - Da...
XPDDS17: EFI Secure Boot, Shim and Xen: Current Status and Developments - Da...
 
FIPS 140-2 Validations in a Secure Enclave
FIPS 140-2 Validations in a Secure EnclaveFIPS 140-2 Validations in a Secure Enclave
FIPS 140-2 Validations in a Secure Enclave
 
Sw update elce2017
Sw update elce2017Sw update elce2017
Sw update elce2017
 
Configure ssh cell
Configure ssh cellConfigure ssh cell
Configure ssh cell
 
TC and TPM.ppt
TC and TPM.pptTC and TPM.ppt
TC and TPM.ppt
 
Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013
Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013
Dw1601 dw1702 dw1703_dw1705_and_dw1901_release_notes_rc_win7_combo_07_15_2013
 
We will charge you. How to [b]reach vendor’s network using EV charging station.
We will charge you. How to [b]reach vendor’s network using EV charging station.We will charge you. How to [b]reach vendor’s network using EV charging station.
We will charge you. How to [b]reach vendor’s network using EV charging station.
 
Slimline Open Firmware
Slimline Open FirmwareSlimline Open Firmware
Slimline Open Firmware
 
Linux firmware for iRMC controller on Fujitsu Primergy servers
Linux firmware for iRMC controller on Fujitsu Primergy serversLinux firmware for iRMC controller on Fujitsu Primergy servers
Linux firmware for iRMC controller on Fujitsu Primergy servers
 
ELC_NA-2015-AFT_for_CI-Igor.Stoppa
ELC_NA-2015-AFT_for_CI-Igor.StoppaELC_NA-2015-AFT_for_CI-Igor.Stoppa
ELC_NA-2015-AFT_for_CI-Igor.Stoppa
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
 
BKK16-309A Open Platform support in UEFI
BKK16-309A Open Platform support in UEFIBKK16-309A Open Platform support in UEFI
BKK16-309A Open Platform support in UEFI
 
Bkk16 309B Enterprise Firmware - The gold standard and how to get there
Bkk16 309B Enterprise Firmware - The gold standard and how to get thereBkk16 309B Enterprise Firmware - The gold standard and how to get there
Bkk16 309B Enterprise Firmware - The gold standard and how to get there
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
Tkos secure boot_lecture_20190605
Tkos secure boot_lecture_20190605Tkos secure boot_lecture_20190605
Tkos secure boot_lecture_20190605
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
 
Distro Recipes 2013: Secure Boot and Linux: several issues, one solution
Distro Recipes 2013: Secure Boot and Linux: several issues, one solutionDistro Recipes 2013: Secure Boot and Linux: several issues, one solution
Distro Recipes 2013: Secure Boot and Linux: several issues, one solution
 

More from Linaro

Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea GalloDeep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Linaro
 
HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018
Linaro
 
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Linaro
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Linaro
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
Linaro
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
Linaro
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorHKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
Linaro
 
HKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMUHKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMU
Linaro
 
HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation
Linaro
 
HKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootHKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted boot
Linaro
 

More from Linaro (20)

Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea GalloDeep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
 
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta VekariaArm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
 
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua MoraHuawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
 
Bud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qaBud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qa
 
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
 
HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018
 
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
 
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
 
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
HKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteHKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening Keynote
 
HKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP WorkshopHKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP Workshop
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and allHKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorHKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
 
HKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMUHKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMU
 
HKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8MHKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8M
 
HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation
 
HKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootHKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted boot
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Secure Boot on ARM systems – Building a complete Chain of Trust upon existing industry standards using open-source firmware - SFO17-201

  • 1. Secure Boot on Arm systems Matteo Carlini (Arm)
  • 2. ENGINEERS AND DEVICES WORKING TOGETHER Agenda ● Introduction & Scope of work ● Arm Trusted Board Boot (PKI, CoT, Authentication Flow) ● Arm Trusted Firmware implementation ● UEFI Secure Boot (PKI, CoT, Authentication Flow) ● UEFI Secure Boot on Arm – EDK2 recap ● Complete CoT ● Secure Variable Storage ● Other OSS Solutions (Android, U-Boot) ● Next steps
  • 3. ENGINEERS AND DEVICES WORKING TOGETHER Introduction ● Secure Boot  a mechanism to build (and maintain!) a complete Chain of Trust on all the software layers executed in a system, preventing malicious code to be stored and loaded in place of the authenticated one ● Security through existing specifications, industry standards & OSS ○ Interoperability (same OS/Software on different Platforms/Firmware) ○ Common Secure Boot and Secure Firmware Update Interfaces  Reduced integration effort ○ Stability, frequent updates, wide usage  Reduced maintenance cost Enterprise/Networking Embedded Mobile/Client UEFI Secure Boot Secure/Verified Boot (UEFI?) Verified Boot
  • 4. ENGINEERS AND DEVICES WORKING TOGETHER Scope of Work Apps OS/RTOS Trusted Software TrustZone Extended Root of Trust iROT TrustZone CryptoCell Keys Hardware Arm Trusted Firmware Trusted OS UEFI Firmware OS Apps Trusted Apps TBSA & RoT TBBR UEFI TrustZone- basedTEE ARMv8-A Architecture
  • 5. ENGINEERS AND DEVICES WORKING TOGETHER Scope of Work Apps OS/RTOS Trusted Software TrustZone Extended Root of Trust iROT TrustZone CryptoCell Keys Hardware Arm Trusted Firmware Trusted OS OS Apps Trusted Apps TBSA & RoT TBBR TrustZone- basedTEE ARMv8-A Architecture UEFI Firmware UEFI
  • 6. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Board Boot vs UEFI Secure Boot ● TWO DISTINCT MECHANISMS : different Key/Certificates & PKI ● SAME GOAL : verifying the authenticity and integrity of a software/firmware image before allowing its runtime execution ● DIFFERENT TARGET IMAGES ● Combined together they enable a full Secure Boot establishing a complete Chain Of Trust (despite different PKI) from the very first firmware executed up to the OS HARDWARE UEFI Firmware (BL33) OS Arm TF (BLx stages) BL1 UEFI Driver UEFI App OS Loader UEFI Secure Boot Arm TBB App1 App2 App3 RoT
  • 7. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Board Boot ● Based on Arm TBSA/TBRR documents (available under NDA) ○ TBBR-Client specification (DEN0006C) reference for Arm Trusted Firmware implementation ● Arm TBB: a reference example on how to build a CoT from the very first ROM firmware executed (BL1) up to the first normal world firmware (BL33) ● SBBR recent implications (ARMServerAC): ○ v1.1 will generically mandate the use of a “complete cascading Chain of Trust from the initial firmware up to the first normal world firmware” ○ Arm TBB and Arm Trusted Firmware provide a reference implementation ○ Other 3rd party solutions (BL1/BL2) will also be accepted as long as they start from an HW RoT and allow a complete verification up to the UEFI compliant firmware (BL33)
  • 8. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Firmware TBB – PKI Details ● 2 implicitly trusted components (tamper proof) 1. Root Of Trust Public Key (ROTPK) with SHA-256 hash stored on trusted registers 2. Boot Loader Stage 1 (BL1) stored on trusted ROM ● 2 Certificates pairs for each BL3x image 1. Key Certificate ■ Holds the BL3xpub key needed to validate the corresponding Content Certificate 2. Content Certificate ■ Holds the BL3x image hash to be verified against the hash of the loaded image ● 2 Key pairs used to sign/validate Key Certificates 1. Trusted World Key pair (TWpub/priv) used for BL31 & BL32 Key Certificates 2. Normal World Key pair (NWpub/priv) used for BL33 Key Certificate ● Public Keys and hashes are included as extensions to X.509 certificates ● Certificates are self-signed: no need for a valid CA
  • 9. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Firmware TBB – Authentication Flow ● BL1 responsible for authenticating BL2 stage 1. BL1 verifies ROTPK in BL2 Content Certificate against ROTPK stored hash 2. BL1 verifies BL2 Content Certificate using enclosed ROTPK 3. BL1 loads BL2 and performs its hash verification 4. Execution is transferred to BL2 ● BL2 responsible for authenticating BL3x stages (BL31, BL32, BL33) 1. BL2 verifies ROTPK in Trusted Key Certificate against ROTPK stored hash 2. BL2 verifies Trusted Key Certificate using enclosed ROTPK and saves TWpub /NTWpub 3. BL2 verifies BL3x (BL31/BL32) Key Certificate using TWpub 4. BL2 verifies BL3x (BL31/BL32) Content certificate using enclosed BL3xpub key 5. BL2 extracts and saves BL3x hash used for BL3x (BL31/BL32) image verification 6. BL2 verifies BL33 Key Certificate using NTWpub 7. BL2 verifies BL33 Content certificate using enclosed BL33pub key 8. BL2 extracts and saves BL33 hash used for BL33 image verification ○ Execution is transferred to verified BL3x  BL33 images
  • 10. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Firmware TBB – How it works (BL1) Secure ROM ROTPKSHA-256 BL1 Implicitly Trusted components BL3xpriv Secure world Images BLKeyPub BLxHASH Key Certs Content Certs Reset BL3x ROTpriv ROTPK BL2HASH ROTpriv TWpriv BL3xpub NWpriv BL33pub BL3xHASH BL2 Normal world BL33priv BL33HASH 2 3 4 Exec Legenda Hash check EL3 Execution S-EL1 Execution BL images EL2 Execution BL33 1 Trusted Key Cert ROTPK TWpub NWpub
  • 11. ENGINEERS AND DEVICES WORKING TOGETHER TWpriv BL3xpub Arm Trusted Firmware TBB – How it works (BL2) Secure ROM ROTPKSHA-256 BL1 Implicitly Trusted components Trusted Key Cert BL3xpriv Secure world Images BLKeyPub BLxHASH Key Certs Content Certs Reset ROTPK TWpub NWpub BL3x ROTpriv ROTpriv BL3xHASH BL2 For each BL3x stage Normal world Exec2 4 3 5 Legenda Hash check EL3 Execution S-EL1 Execution BL images EL2 Execution BL33 BL33priv BL33HASH NWpriv BL33pub ROTPK BL2HASH 1
  • 12. ENGINEERS AND DEVICES WORKING TOGETHER Trusted Key Cert ROTPK TWpub NWpub NWpriv BL33pub BL33priv BL33HASH Arm Trusted Firmware TBB – How it works (BL2) Secure ROM ROTPKSHA-256 BL1 Implicitly Trusted components BL3xpriv Secure world Images EL3 Execution BLKeyPub BLxHASH Legenda S-EL1 Execution BL images Key Certs Content Certs BL33 Normal world Reset EL2 Execution BL3x ROTpriv ROTpriv BL3xHASH BL2 Exec 6 8 Hash check TWpriv BL3xpub 7 ROTPK BL2HASH
  • 13. ENGINEERS AND DEVICES WORKING TOGETHER Trusted Key Cert ROTPK TWpub NWpub Arm Trusted Firmware TBB – How it works (BL3x) Secure ROM ROTPKSHA-256 BL1 Implicitly Trusted components BL3xpriv Secure world Images BLKeyPub BLxHASH Key Certs Content Certs Normal world Reset BL3x ROTpriv ROTpriv BL3xHASH BL2 Exec Legenda Hash check EL3 Execution S-EL1 Execution BL images EL2 Execution BL33 BL33priv BL33HASH NWpriv BL33pub TWpriv BL3xpub ROTPK BL2HASH
  • 14. ENGINEERS AND DEVICES WORKING TOGETHER Trusted Key Cert ROTPK TWpub NWpub Arm Trusted Firmware TBB – How it works (BL33) Secure ROM ROTPKSHA-256 BL1 Implicitly Trusted components BL3xpriv Secure world Images BLKeyPub BLxHASH Key Certs Content Certs Normal world Reset BL3x ROTpriv ROTpriv BL3xHASH BL2 Exec Legenda Hash check EL3 Execution S-EL1 Execution BL images EL2 Execution BL33 BL33priv BL33HASH NWpriv BL33pub TWpriv BL3xpub ROTPK BL2HASH
  • 15. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Firmware Implementation Overview ● TBB working properly on BL1/BL2 on both AArch64 & AArch32! ○ JUNO and FVP Platforms TBB example running in AArch32 state on GitHub! ● Build flags (summary) ○ TRUSTED_BOARD_BOOT=1 to enable BL1+BL2 TBB support ○ GENERATE_COT=1 build and execute cert_create tool (see below) ○ XXX_KEYS=[path] used to specify location of keys in PEM format ○ Have a look at the user guide(1)! ● Tools: ○ cert_Create too: BL images and Keys as input  Certificates as output ○ Fiptool: Certificates as input  FIP (Firmware Image Package) ● Pre-integration of TBB with the Arm TrustZone CryptoCell product (CC-712) to take advantage of its HW RoT and crypto acceleration services
  • 16. ENGINEERS AND DEVICES WORKING TOGETHER UEFI Secure Boot 1. A platform ownership model for establishing a trust relationship among: ■ Platform Owner (ODM/OEM/EndUser) – PO ■ Platform Firmware (EDK2 / U-Boot / 3rd party BIOS) – PF ■ OS / 3rd party software vendors – OSV/ISV  SV ○ Uses standard PKI, X.509 certificates and PE images digital signature, based on PE digest/hash calculation described in Microsoft Authenticode PE Signature Format ○ Signature database (white/black list) update mechanism from trusted sources 2. A generic framework, based on the above model, to allow: 1. The firmware to authenticate UEFI executable images before allowing their execution, preventing pre-boot malwares to be run 2. The Platform Owner and/or SV to securely update the signature databases into PF with new/known allowed/forbidden image signatures
  • 17. ENGINEERS AND DEVICES WORKING TOGETHER UEFI Firmware UEFI Secure Boot – PKI details ● 2 asymmetric key pairs: 1. Platform Key (PK): Trust relationship between PO & PF ■ PKpriv owned by the PO ■ PKpub enrolled into PF 2. Key Exchange Key (KEK): Trust relationship between SV & PF ■ Different KEKpriv for each SV ■ Each SV enrolls KEKpub into PF ● Platform firmware NV variables (on tamper proof storage) to hold: ○ PKpub / KEKpub list ○ Signatures DBs: signatures white/black lists (db/dbx) Enrollment Process SetupMode PF NV variables PO SV PKpriv PKpub KEK1pub SV KEK1priv KEK2priv Signature_DBs: db {} / dbx {} KEK2pub ROT
  • 18. ENGINEERS AND DEVICES WORKING TOGETHER UEFI Firmware UEFI Secure Boot – PKI details (2) ● Using PKpriv/KEKpriv , Signature_DB is updated from trusted sources with allowed/forbidden image signatures, by means of UEFI SetVariable() Runtime service Enrollment Process UserMode PKpriv KEK2priv SetVariable() KEK1priv Signature_DBs: db {} / dbx {} Signature_DBs: db: {Sign1, Sign3} dbx: {Sign2, Sign4} PO SV SV PKpub KEK1pub KEK2pub PF NV variables
  • 19. ENGINEERS AND DEVICES WORKING TOGETHER UEFI Firmware Sign check Sign check UEFI Secure Boot – How it works ● UEFI executable images are verified against Signature_DBs found in the firmware Enrollment Process DeployedMode PKpriv KEK2priv KEK1priv Signature_DBs: db {} / dbx {} Signature_DBs: db: {Sign1, Sign3} dbx: {Sign2, Sign4} UEFI Executable Images OS Loader+ OS Kernel OS Loader+ OS Kernel 2 Sign1 Sign2 UEFI App1 UEFI App2 Sign3 Sign5 Exec PO SV SV PF NV variables
  • 20. ENGINEERS AND DEVICES WORKING TOGETHER UEFI Secure Boot on Arm – EDK2 recap ● LCA14 (from Ard Biesheuvel)(2) ● LAS16 (Ard Biesheuvel)(3)
  • 21. ENGINEERS AND DEVICES WORKING TOGETHER Arm Trusted Firmware – BL31 Complete CoT – Putting all together UEFI FIRMWARE – BL33 Linux Kernel A Linux Kernel B Secure App1 Secure App2 Guest App1 Guest App2 PKpub KEKpub db / dbx ROTPK SHA-256 CC KC KC CC Normal World Secure World Sign1 Sign2 EL0 EL1 EL2 S-EL0 EL3 TBB BL1 S-EL1TBB BL2 CC S-EL1 payload (BL32)
  • 22. ENGINEERS AND DEVICES WORKING TOGETHER Secure Variable access Arm Trusted Firmware – BL31 Linux Kernel A Linux Kernel B Secure Partition Variable access Guest App1 Guest App2 KEKpub db / dbx TBB BL2 Normal World Secure World TBB BL1 EL0 EL1 EL2 EL3 PKpub ROTPK SHA-256 Secure Partition Manager SVC Trampoline – BL31 SetVariable() UEFI FIRMWARE – BL33 Arm MM Interface S-EL0 S-EL1 Secure Storage
  • 23. ENGINEERS AND DEVICES WORKING TOGETHER Other OSS Solutions ● Android Verified Boot(4) on AOSP: ○ De-facto industry standard for Mobile secure boot path since Android 4.4/5.0 ○ CoT starting from OEM public key (tamper proof) to verify android boot image ○ Device State (LOCKED/UNLOCKED) must be protected not to break the CoT ○ On newer versions (8.0) also Rollback protection available(5) ● U-Boot Verified Boot(6) ○ CoT starting from trusted U-Boot image (BL33) carrying initial public key (tamper proof) ○ Usual image verification chain then follows ○ No specified platform ownership model for updating keys in field ● U-Boot Secure Boot? ○ Leveraging “UEFI on Top on U-Boot”(7) work, with SetVariable extension? ○ Plugging shim over UEFI-enabled U-Boot to handle key management?  Convergence of Embedded and Enterprise secure boot flows!
  • 24. ENGINEERS AND DEVICES WORKING TOGETHER Plans & Next Steps ● Software side: ○ Arm open-source reference platform software of TBB+UEFI Secure Boot with Secure Variable storage access from Secure Partition ○ Investigate U-Boot based solution for Embedded/Mobile ○ Future: Secure Firmware Update (FWU vs UEFI Signed Capsule Update) ● Specification side: ○ TBBR/SBBR updates & possible Server side TBBR/TBSA ○ Interactions with TCG TPM & Measured Boot ○ What level of standardization required on the Firmware side for a TBB solution? ■ A guidance on which authentication steps to be executed at each ELx/BLx to avoid arbitrary code execution at EL3(8)? ● Different HW solutions for the initial RoT ( SFO17-304)
  • 25. ENGINEERS AND DEVICES WORKING TOGETHER References 1) ARM Trusted Firmware TBB Documentation, Design Guide, User Guide ○ https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/trusted-board-boot.rst ○ https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/auth-framework.rst ○ https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/user-guide.rst 2) LCA14-105: UEFI secure boot ○ http://connect.linaro.org/resource/lca14/lca14-105-uefi-secure-boot/ 3) LAS16-200: UEFI Secure Boot ○ http://s3.amazonaws.com/connect.linaro.org/las16/Presentations/Tuesday/LAS16-200%20- %20Firmware%20Summit%20-%20UEFI%20Secure%20Boot.pdf 4) Android Verified Boot: https://source.android.com/security/verifiedboot/ 5) AVB Codebase and latest updates: https://android.googlesource.com/platform/external/avb/ 6) U-Boot Verified Boot: https://lwn.net/Articles/571031/ 7) UEFI on Top of U-Boot: ○ https://www.suse.com/docrep/documents/a1f0ledpbe/UEFI%20on%20Top%20of%20U-Boot.pdf 8) UCSB Mobile Boot Loaders Analysis and TEE implementation flaws ○ https://www.usenix.org/conference/usenixsecurity17/technical-sessions/presentation/redini
  • 26. Thank You (matteo.carlini@arm.com) #SFO17 BUD17 keynotes and videos on: connect.linaro.org For further information: www.linaro.org