Skip to content

Commit 95b49b1

Browse files
lukpuehmnm678
authored andcommitted
Add freeze attack check for delegated targets
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.
1 parent 20ac8dc commit 95b49b1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tuf-spec.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,16 +1504,22 @@ it in the next step.
15041504
metadata file is older than the trusted DELEGATE metadata file, discard
15051505
it, end the search, and report the target cannot be found.
15061506

1507-
6. If the current delegation is a multi-role delegation,
1507+
6. **Check for a freeze attack.** The latest known time
1508+
should be lower than the expiration timestamp in the new DELEGATE
1509+
metadata file. If so, the new DELEGATE file becomes the trusted DELEGATE
1510+
file. If the new DELEGATE metadata file is expired, discard it, end the
1511+
search, and report the target cannot be found.
1512+
1513+
7. If the current delegation is a multi-role delegation,
15081514
recursively visit each role, and check that each has signed exactly the
15091515
same non-custom metadata (i.e., length and hashes) about the target (or
15101516
the lack of any such metadata). Otherwise, discard it, end the search,
15111517
and report the target cannot be found.
15121518

15131519
7. If the current delegation is a terminating delegation,
1514-
then jump to step [[#fetch-target]]..
1520+
then jump to step [[#fetch-target]].
15151521

1516-
8. Otherwise, if the current delegation is a non-terminating
1522+
9. Otherwise, if the current delegation is a non-terminating
15171523
delegation, continue processing the next delegation, if any, by repeating
15181524
the preorder depth-first search with DELEGATE as the current TARGET role.
15191525
Stop the search, and jump to step [[#fetch-target]]. as soon as a

0 commit comments

Comments
 (0)