iqlusioninc / usbarmory.rs

Bare metal Rust support for USB armory MkII devices
Apache License 2.0
58 stars 4 forks source link

Secure Boot notes #42

Open jonas-schievink opened 4 years ago

jonas-schievink commented 4 years ago

I've looked into Secure Boot while working on the custom U-Boot build and persistent installation, so I'll post some notes from that here. Note that I haven't yet tried to perform a Secure Boot using either approach.

There are 2 ways to implement Secure Boot for the Armory:

tarcieri commented 4 years ago

U-Boot seems to have enough high severity security vulnerabilities owing to memory (un)safety I think it's definitely worth investigating whether or not we can eliminate it:

https://www.cvedetails.com/vulnerability-list/vendor_id-18843/product_id-48033/Denx-U-boot.html

abarisani commented 4 years ago

In case it helps TamaGo now doesn't rely on U-Boot any longer:

https://github.com/f-secure-foundry/tamago-example/blob/master/Makefile#L90

We had to take care of initializing a few things that U-Boot did for us, but overall it was rather painless.