Skip to content

Commit a9e2a4f

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 b4a51fb commit a9e2a4f

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

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

1292-
* **4.5.2.7**. If the current delegation is a terminating delegation,
1298+
* **4.5.2.8**. If the current delegation is a terminating delegation,
12931299
then jump to step 5.
12941300

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

0 commit comments

Comments
 (0)