Skip to content

Commit 09250f8

Browse files
lukpuehmnm678
authored andcommitted
Revise rollback attack prevention and ffwd recovery again (WIP)
1 parent 72a3137 commit 09250f8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tuf-spec.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,10 @@ it in the next step.
13331333
1. **Targets recovery** If a threshold of targets keys have been
13341334
removed in the new trusted root metadata compared to the previous trusted
13351335
root metadata, delete the old top-level targets and snapshot metadata
1336-
files.
1336+
files. Note that delegated targets are susceptible to fast forward attacks,
1337+
because snapshot must be checked before a key rotation in the delegating
1338+
target role is known to the client. To fix this, nuke delegation or make
1339+
repository rotate the the snapshot key.
13371340

13381341
2. **Snapshot recovery** If a threshold of snapshot keys have
13391342
been removed in the new trusted root metadata compared to the previous
@@ -1414,10 +1417,9 @@ it in the next step.
14141417
in the trusted timestamp metadata. If the versions do not match, discard the
14151418
new snapshot metadata, abort the update cycle, and report the failure.
14161419

1417-
5. **Check for a rollback attack**. The version number of the targets
1418-
metadata file, and all delegated targets metadata files, if any, in the
1419-
trusted snapshot metadata file, if any, MUST be less than or equal to its
1420-
version number in the new snapshot metadata file. Furthermore, any targets
1420+
5. **Check for a rollback attack**. The version number of all targets metadata files in the
1421+
trusted snapshot metadata file, if any, MUST be less than or equal to their
1422+
version numbers in the new snapshot metadata file. Furthermore, any targets
14211423
metadata filename that was listed in the trusted snapshot metadata file, if
14221424
any, MUST continue to be listed in the new snapshot metadata file. If any of
14231425
these conditions are not met, discard the new snapshot metadata file, abort

0 commit comments

Comments
 (0)