AdvancedTopic 92 of 104Electronics & Embedded
Embedded security
Secure boot, encryption and firmware signing protect devices.
In depth
Threats: firmware extraction, tampering, side-channel attacks, weak credentials and insecure updates. Defences: secure boot with signed images, hardware crypto, TrustZone, encrypted storage, unique keys, locked debug ports, minimal attack surface and patching.
Key points
- Root of trust
- TLS for communication
- Secure element chips
ExampleSecure boot refuses to run firmware not signed by the vendor.
What is Embedded security?
Secure boot, encryption and firmware signing protect devices.
Why is it important to understand embedded security?
Security in embedded devices protects data, prevents tampering and keeps products safe from attack throughout their life.
What is secure boot?
A process where each stage of boot checks the signature of the next stage, so only trusted code runs.
Why are hardcoded keys a risk?
If firmware is extracted, keys stored in plain form can be read and used to forge or decrypt data, so keys should be protected in hardware.
How is Embedded security used in practice?
Typical applications include ensuring a firmware image is signed before a device will run it, encrypting sensor data before it is sent to a server and locking debug ports on a product shipped to customers.
What should I learn before Embedded security?
Study "Fixed-point arithmetic" first (topic 91 of 104 in Electronics & Embedded). It covers the groundwork this topic builds on.
What are the key points of Embedded security?
Root of trust. TLS for communication. Secure element chips.
Can you give an example of Embedded security?
Secure boot refuses to run firmware not signed by the vendor.
What comes after Embedded security?
The next topic is "Firmware over-the-air updates", which builds directly on this one.
How difficult is Embedded security?
It is classed as Advanced in Electronics & Embedded (topic 92 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Electronics & Embedded.