theupdateframework / theupdateframework/rust-tuf

Decide how to handle corrupt local metadata

Open
#270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
198
Forks
39
Avg merge
9h 19m
Merged PRs (30d)
2

Description

tuf::Client will currently error out on create if a fetch of root metadata from the local repository fails with any error other than Error::NotFound. The implementation could attempt to fetch the metadata from the remote repository in these error cases and re-store the metadata to the local repository, allowing the tuf::Client to recover from on-disk metadata corruption. However, such an implementation may allow an attacker to intentionally force a tuf::Client to sync an older root.json (or even a forked root.json if keys were compromised).

Is it better to stop taking updates if local root metadata is corrupt or potentially allow a man-in-the-middle if root keys between the static trusted version and head were compromised and an attacker has the ability to both corrupt local root metadata and serve their own root metadata?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the tuf::Client creation path and how it fetches root metadata from local and remote repositories. Compare recovery from corrupt local metadata with the risk of accepting an older or forked root.json. Done means reaching and documenting a clear policy for whether corruption stops updates or permits verified recovery.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cryptography, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.