Skip to content

Commit c36e0c0

Browse files
committed
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 329361a commit c36e0c0

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
@@ -1306,16 +1306,22 @@ non-volatile storage as FILENAME.EXT.
13061306
metadata file is older than the trusted DELEGATE metadata file, discard
13071307
it, end the search, and report the target cannot be found.
13081308

1309-
* **4.5.2.6**. If the current delegation is a multi-role delegation,
1309+
* **4.5.2.6**. **Check for a freeze attack.** The latest known time
1310+
should be lower than the expiration timestamp in the new DELEGATE
1311+
metadata file. If so, the new DELEGATE file becomes the trusted DELEGATE
1312+
file. If the new DELEGATE metadata file is expired, discard it, end the
1313+
search, and report the target cannot be found.
1314+
1315+
* **4.5.2.7**. If the current delegation is a multi-role delegation,
13101316
recursively visit each role, and check that each has signed exactly the
13111317
same non-custom metadata (i.e., length and hashes) about the target (or
13121318
the lack of any such metadata). Otherwise, discard it, end the search,
13131319
and report the target cannot be found.
13141320

1315-
* **4.5.2.7**. If the current delegation is a terminating delegation,
1321+
* **4.5.2.8**. If the current delegation is a terminating delegation,
13161322
then jump to step 5.
13171323

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

0 commit comments

Comments
 (0)