rust-lang / rust-lang/rust

Vetting 3rd party crates for supply-chain-security issues

Open
#128,047 0 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-security C-enhancement T-bootstrap T-infra
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

The Cargo.lock file is updated by many contributors, sometimes a bot?, and there's no record of the 3rd party dependencies having their code reviewed.

This seems risky to me, given how big impact the 3rd party code could have on the compiler and all downstream Rust users. The crates in the lockfile have many owners, some which are not members of rust-lang org. If any of the crates had malware, it could attack rust-lang org infrastructure, computers of core developers, etc. This doesn't require malice from any of the people involved — it could also happen due other security issues like leak of an auth token, or one of crate owners having their machine infected with malware.

Contributor guide

Open the contributing guide

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 Cargo.lock and its linked commit history to understand how third-party dependencies are currently updated. The issue does not identify an implementation entry point, test, or concrete acceptance criteria, so the desired vetting process and definition of done would need to be established first.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.