Skip to content

Commit d1f1607

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 4565f96 commit d1f1607

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

1282-
* **4.5.2.6**. If the current delegation is a multi-role delegation,
1282+
* **4.5.2.6**. **Check for a freeze attack.** The latest known time
1283+
should be lower than the expiration timestamp in the new DELEGATE
1284+
metadata file. If so, the new DELEGATE file becomes the trusted DELEGATE
1285+
file. If the new DELEGATE metadata file is expired, discard it, end the
1286+
search, and report the target cannot be found.
1287+
1288+
* **4.5.2.7**. If the current delegation is a multi-role delegation,
12831289
recursively visit each role, and check that each has signed exactly the
12841290
same non-custom metadata (i.e., length and hashes) about the target (or
12851291
the lack of any such metadata). Otherwise, discard it, end the search,
12861292
and report the target cannot be found.
12871293

1288-
* **4.5.2.7**. If the current delegation is a terminating delegation,
1294+
* **4.5.2.8**. If the current delegation is a terminating delegation,
12891295
then jump to step 5.
12901296

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

0 commit comments

Comments
 (0)