Skip to content

Commit e155268

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 5690b93 commit e155268

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

1289-
* **4.5.2.6**. If the current delegation is a multi-role delegation,
1289+
* **4.5.2.6**. **Check for a freeze attack.** The latest known time
1290+
should be lower than the expiration timestamp in the new DELEGATE
1291+
metadata file. If so, the new DELEGATE file becomes the trusted DELEGATE
1292+
file. If the new DELEGATE metadata file is expired, discard it, end the
1293+
search, and report the target cannot be found.
1294+
1295+
* **4.5.2.7**. If the current delegation is a multi-role delegation,
12901296
recursively visit each role, and check that each has signed exactly the
12911297
same non-custom metadata (i.e., length and hashes) about the target (or
12921298
the lack of any such metadata). Otherwise, discard it, end the search,
12931299
and report the target cannot be found.
12941300

1295-
* **4.5.2.7**. If the current delegation is a terminating delegation,
1301+
* **4.5.2.8**. If the current delegation is a terminating delegation,
12961302
then jump to step 5.
12971303

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

0 commit comments

Comments
 (0)