pftf / RPi4

Raspberry Pi 4 UEFI Firmware Images
https://rpi4-uefi.dev
Other
1.2k stars 141 forks source link

Secure Boot Setup #241

Closed nandlab closed 9 months ago

nandlab commented 1 year ago

How would you configure the RPi 4 so that only a trusted OS can be booted (full chain of trust from the hardware to the OS kernel)?

As I understand, the UEFI firmware supports secure boot.

Should the UEFI firmware itself also be signed and verified by the SoC firmware to prevent an attacker from using a different booting mechanism (using something like this)?

jlinton commented 9 months ago

It does, but it is not secure since anything that gains root privileges in the OS, can simply replace the secure boot keys enrolled on the machine. Making it largely worthless without a HW enforced root of trust and chain.

nandlab commented 9 months ago

I managed to set up secure boot using the Raspberry Pi's own method. So having secure boot on the Raspberry Pi does not require UEFI. But having UEFI with hardware enforced secure boot would likely be possible if you create a boot.img FAT image with the UEFI firmware files and a boot.sig file with your digital signature.