Skip to content

Commit

Permalink
Add freeze attack check for delegated targets
Browse files Browse the repository at this point in the history
A recent commit added a detailed verification workflow for
delegated targets, including check against snapshot, and signature
and version check.

This commit adds the missing freeze attack (i.e. timestamp) check.
  • Loading branch information
lukpueh committed Sep 1, 2020
1 parent 329361a commit c36e0c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tuf-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1306,16 +1306,22 @@ non-volatile storage as FILENAME.EXT.
metadata file is older than the trusted DELEGATE metadata file, discard
it, end the search, and report the target cannot be found.

* **4.5.2.6**. If the current delegation is a multi-role delegation,
* **4.5.2.6**. **Check for a freeze attack.** The latest known time
should be lower than the expiration timestamp in the new DELEGATE
metadata file. If so, the new DELEGATE file becomes the trusted DELEGATE
file. If the new DELEGATE metadata file is expired, discard it, end the
search, and report the target cannot be found.

* **4.5.2.7**. If the current delegation is a multi-role delegation,
recursively visit each role, and check that each has signed exactly the
same non-custom metadata (i.e., length and hashes) about the target (or
the lack of any such metadata). Otherwise, discard it, end the search,
and report the target cannot be found.

* **4.5.2.7**. If the current delegation is a terminating delegation,
* **4.5.2.8**. If the current delegation is a terminating delegation,
then jump to step 5.

* **4.5.2.8**. Otherwise, if the current delegation is a non-terminating
* **4.5.2.9**. Otherwise, if the current delegation is a non-terminating
delegation, continue processing the next delegation, if any, by repeating
step 4.5 with DELEGATE as the current TARGET role. Stop the search, and
jump to step 5 as soon as a delegation returns a result.
Expand Down

0 comments on commit c36e0c0

Please sign in to comment.