This is Part 2 of a three-part series on embedded security for our BCU. Part 1 covers the threat model, the root of trust and the boot concept; this part covers updates, the bus and diagnostics; Part 3 covers the code, the debug port, the immobilizer, detection and privacy. The example is the BCU from the foundation series.

New to some of the words in this series (MAC, HSM, freshness, certificates, root of trust)? The two-part vocabulary explains them: Part 1 is the crypto toolbox with pictures, Part 2 is the lookup table for keys, hardware, boot, bus and attacks.

TL;DR

  • Three doors are open by design while the ECU runs: updates, the bus and diagnostics.
  • Updates: check before you erase, and prevent rollback.
  • The bus: SecOC on CAN FD, plus LIN, Ethernet and the gateway.
  • Diagnostics: give the tester control without leaving the key under the mat.

In Part 1, we built the base: a TARA for the BCU, an HSM that keeps every key behind its firewall, a key inventory, and a boot concept that fits into the 150 ms startup budget because the keys, not the start, depend on the verification. If you skipped it, at least look at the attack surface map there. This part uses its door numbers.

This part covers the three doors that are open while the ECU is running, by design: the update path, which is supposed to put new code into the ECU; the bus, where every ECU is supposed to talk; and diagnostics, which is supposed to give a tester control over the ECU. The question isn’t how to close them. It’s how to make sure only the right people get through.

What’s inside

  • Door 3, updates: check before you erase, anti-rollback, and the problem with “immutable”
  • Door 4, the bus: SecOC on CAN FD, the brake light with security, LIN, Ethernet and the gateway
  • Door 5, diagnostics: the door with a key under the mat

Read the full article

The rest of this article is free, but not anonymous: tell me who you are and you get access to all members-only articles on this blog. No newsletter, no spam, no selling your data.