Section 21.11

Uptane: distributing update verification across vehicle roles

Full name: Uptane is a name, not an abbreviation; the Uptane Standard does not spell it out.

What it is

Uptane is a framework for securing over-the-air (OTA) software updates of ground vehicles, meaning updates delivered by radio. It adapts TUF §21.10 (The Update Framework), a design that limits the damage of stolen signing keys, to a vehicle’s electronic control units (ECUs), its many embedded computers. Trishank Karthik Kuppusamy and colleagues presented it at the escar Europe conference in 2016 [448], and the Uptane project maintains it as a standard. Two repositories sign each update; an ECU too weak for the full check performs a reduced one, partial verification.

Basis of this account

This account rests on the Uptane Standard for Design and Implementation, version 1.2.0, published by the Uptane project under the Joint Development Foundation, read in its web edition (https://uptane.org/papers/uptane-standard.1.2.0.html). Section 4 (the threat model §1.2) was read, Sections 5.2 and 5.3 in part, and Section 5.4, the procedures inside the vehicle, in full. The original research paper, Kuppusamy and others, “Uptane: Securing Software Updates for Automobiles”, escar Europe 2016, was not read; its title, first author and venue were checked in public listings. Escar is a conference series on embedded security in cars. The Deployment Best Practices document, to which the Standard refers for several choices, and the later Standard versions 2.0.0 and 2.1.0 were not read. Nothing was run for this account.

What the paper claims

The Standard’s authors state the following.

How it works

Parts.

Full verification (Section 5.4.4.2): check the current time; download and check the Director’s Root, Timestamp, Snapshot and Targets metadata; then the Image repository’s Root, Timestamp, Snapshot and top-level Targets metadata. Then, for each image the Director lists (a Secondary may limit this to its own image), find the Image repository’s Targets entry with exactly the same file name, following delegations, and check that the lengths, the hashes and the fields marked as “must match”, such as the hardware identifier and the release counter, agree.

Partial verification (Section 5.4.4.1) has two steps: load and verify the current time, or the most recent securely signed time; then download and check the Director’s Targets metadata. Checking Targets metadata (Section 5.4.4.6) means:

  1. download no more than a byte limit that the implementer chooses;

  2. compare its version number with the one listed in Snapshot metadata, a step that a partial-verification ECU may skip because it may hold no Snapshot metadata;

  3. check that it carries signatures from the threshold number of distinct keys that the Director’s Root metadata names;

  4. check that its version number is not lower than that of the Targets metadata accepted before, against rollback;

  5. check that the current time is before its expiry time, against freeze;

  6. check that it contains no delegations and names no ECU identifier twice.

Such an ECU must hold the Director’s Root and Targets metadata. It may also fetch and check new Director Root metadata, which is how it would learn that the Director’s Targets key was replaced.

Before installing, every ECU verifies the image itself (Section 5.4.3.4). It finds the Director’s entry for its own ECU identifier and checks that the hardware identifier there equals its own, that the file name is valid for it, and that the release counter is not lower than in the previous metadata. It decrypts the image if the image is encrypted, checks the image’s hashes against the metadata, and should also check the image’s length.

Worked example

All names, dates and values in this example are invented. A Secondary ECU, the brake controller brake-1, has hardware identifier hw-brk-a. It last accepted Director Targets metadata of version 11, which assigned it the image brake-3.0.bin with release counter 30. Today is 19 November 2026. The Primary passes on new Director Targets metadata: version 12, expiring on 1 December 2026, signed by the Director’s single Targets key (threshold 1). For brake-1 it lists the image brake-3.1.bin, 262,144 bytes long, with its cryptographic hash §5.1, hardware identifier hw-brk-a and release counter 31.

Partial verification. One valid signature meets the threshold of 1; 12≥1112 \ge 11; 19 November is before 1 December; there are no delegations, and brake-1 appears once. Image check. hw-brk-a matches; 31≥3031 \ge 30; the delivered image is 262,144 bytes long, which is 256×1024256 \times 1024 bytes, as listed, and its hash matches. The ECU installs it.

Attack 1: a compromised Primary replays version 11, which is genuinely signed and not yet expired, to push brake-3.0.bin back. The Secondary rejects it, since 11<1211 < 12. The Primary can, however, withhold version 13 when the Director issues it, and the Secondary has no way to notice this before version 12 expires on 1 December.

Attack 2: an attacker steals the Director’s online Targets key. The attacker signs version 13, expiring in a week. For brake-1 it lists brake-2.7.bin, an old genuine image with a known flaw, relabeled with release counter 32 and the correct hardware identifier. Every check of partial verification passes: one valid signature, 13≥1213 \ge 12, not expired, 32≥3132 \ge 31, matching hardware identifier, and a hash that matches the file actually sent. A full-verification ECU rejects the same metadata, because the Image repository’s entry for brake-2.7.bin carries its original release counter, say 27, and 27≠3227 \ne 32 for a field that must match. An image that the attacker built fails full verification too, since the Image repository lists no such file.

What this account does not establish

This account follows version 1.2.0 of the Standard. The later versions 2.0.0 and 2.1.0 were not compared, and the security argument of the original 2016 paper was not read.

The Standard is a set of requirements, not a measurement or a proof; its statements about resilience are its authors’ design claims.

That partial verification gives no protection against a stolen Director Targets key, as Attack 2 shows, follows from the steps listed above. The Standard sends the reader to its Deployment Best Practices document for how to choose between partial and full verification, and that document was not read.

Freshness rests on the clock. The Standard requires every ECU to have a secure source of time, yet makes the time-verification step optional for an ECU that cannot verify a time message (Section 5.4.3.1). The expiry check is only as good as the time the ECU believes.

A Secondary depends on the Primary for delivery. A compromised Primary cannot forge the Director’s signatures, but it can drop, delay or withhold updates. The assumption that an attacker does not control both the Primary and a Secondary of one vehicle is part of the threat model, not a property that Uptane enforces.

A partial-verification ECU may skip the comparison with Snapshot metadata, so it does not check that its Targets metadata belongs to the same state of the repository as other files.

Against endless data, the byte limit for metadata is left to the implementer, and version 1.2.0 only recommends checking an image’s length; the Standard notes that this check will become a requirement.

Questions answered

What changes when a device performs only partial verification?

When a device performs only partial verification, it accepts an update on the authority of a single party, the holder of the Director repository’s Targets key, instead of requiring two independently controlled repositories to agree. In Uptane, the framework for securing over-the-air updates of vehicles, full verification checks that the Director’s instruction to install an image matches the Image repository’s signed record of that image. Partial verification checks only the Director’s signed Targets metadata.

The device keeps these protections: the signature threshold of the Director’s Targets key; rejection of Targets metadata with a lower version number than metadata it accepted before; rejection of expired metadata, if its clock is trustworthy; rejection of metadata with delegations or duplicate ECU identifiers; and, for the image, a matching hardware identifier, a release counter no lower than before, and matching hashes.

These things change:

To judge any design with partial verification, list exactly which checks the device performs, which other party supplies the remaining assurance, how the device knows that this assurance is authentic, and what an attacker who compromises that party, or the relay in between, can then do.

Related entries: Authentication coverage (§5.41), Reference monitor (§1.17), TUF: surviving limited signing-key compromise (§21.10), Rollback versus anti-rollback (§8.26), Replay attack (§1.26), Root of trust (§1.33). Further reading: [214, 448].