Secure boot not so secure....

lodogg
Posts: 7
Joined: Wed Sep 11, 2019 11:06 am

Secure boot not so secure....

Postby lodogg » Wed Sep 11, 2019 12:28 pm

Hi,
I'm starting to use secure bootloader with the purpose that firmware will run only on my hardware.

The first test I have done, is to dump the memory from address 0 of a module with secure boot and signed app and flash it to a brand new module.

I was expecting that the firmware won't boot. I was wrong! The board boot without problem and activate secure boot on the new module.
So If someone will clone my hardware, he can just dump the memory and use it on a cloned hardware.

My question is: how can I achieve the goal of a firmware that will boot only on my hardware?

Thank you

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Secure boot not so secure....

Postby ESP_Angus » Thu Sep 12, 2019 1:58 am

Hi lodogg,
lodogg wrote:
Wed Sep 11, 2019 12:28 pm
My question is: how can I achieve the goal of a firmware that will boot only on my hardware?
The intention of Secure Boot is to ensure that only trusted firmware is run on the hardware (ie it's not possible to change the firmware of a device once secure boot is enabled).

To prevent recovering the firmware from a device (which would allow it to be cloned onto another device), enable Flash Encryption.

For production configurations we recommend using Flash Encryption and Secure Boot together.

Please consult the ESP-IDF documentation for more details:
https://docs.espressif.com/projects/esp ... -boot.html
https://docs.espressif.com/projects/esp ... ption.html

Who is online

Users browsing this forum: No registered users and 128 guests