Hello everyone,
In light of the recent supply chain attacks and the appearance of malicious crates, I was wondering if it would be possible to add a reliability rating system to crates.io — something like [safe / not safe] or [reviewed by x1, x2, …].
This could provide an extra layer of security, and if a crate has a low rating, it would encourage developers to be more cautious before using it.
Mockup of a Reliability Rating System on crates.io
1. Simple Visual Indicator
- Each crate would display a small badge next to its name/version:
Safe (validated / well-reviewed)
Needs Review (few or no reviews)
Not Safe (reports or known issues)
Example on a crate’s page:
my_crate v1.2.3
[Badge: ✅ Safe | Reviewed by 3 trusted users]
2. Community Rating System
- Logged-in users (via crates.io: Rust Package Registry) can give a rating:
- Safe / Not Safe
- Optional: comment explaining why
- Votes are aggregated into a global score.
Example:
Reliability: 85% (42 votes)
Reviewed by: alice, bob, charlie
3. Trust Level
Beyond raw votes, there could be trusted reviewers:
- Experienced maintainers or ecosystem contributors (e.g., RustSec, Rust teams).
- Their reviews would carry more weight.
Trusted Reviewers:
- alice (RustSec team)
- bob (crate maintainer)
4. Automatic Flagging
- Integration with the RustSec Advisory DB:
- If a vulnerability is published, the badge automatically becomes
or
.
- If a vulnerability is published, the badge automatically becomes
- Automatic detection of suspicious behavior (e.g., obscure dependencies, obfuscated code, mass publishing).
5. Dedicated Review Page
Each crate would have an extra tab: Reliability
- History of votes & reviews
- Reasons for reports
- Comparison between versions
Goal of the system:
- Complement technical security (audit, RustSec) with a social validation layer.
- Encourage transparency and accountability in the community.
- Stay lightweight (not an “app store style” rating) but clear enough to raise awareness.
Mockup :
What do you think?
