Four malicious crates in 135,548: the Rust Foundation's scanner math
A decision model scored every crate published to crates.io between Nov 11 and 21: 135,548 files, 4 malicious, and the threshold only moves the noise.
The Rust Foundation is running a decision model over the crates.io firehose, scoring every published crate for malice. The first real window is in, and the interesting math is all in the threshold.
The threshold is a noise dial
Flags per threshold against the confirmed-malicious count, Nov 11–21.
The dial moves the noise, not the catch.
What threshold catches malicious crates without drowning reviewers?
| Threshold | Flagged | True positives | False positives |
|---|---|---|---|
| ≥ 0.35 | 332 | 4 (1%) | 240 (99%) |
| ≥ 0.5 | 84 | 4 (5%) | 62 (95%) |
| ≥ 0.6 | 31 | 4 (13%) | 21 (87%) |
| ≥ 0.7 | 15 | 4 (27%) | 6 (73%) |
| ≥ 0.8 | 6 | 4 (67%) | 1 (33%) |
| ≥ 0.9 | 4 | 4 (100%) | 0 (0%) |
The first threshold sat at 0.35, set on the suspicion it would over-flag. It did. Calibration ran against roughly 1,000 crates: known-bad from past takedowns, known-good, and a random October sample.
At 0.9 the table reads perfect: four flagged, four real, zero noise. The team still landed on 0.7 — every confirmed crate cleared 0.9, but a future campaign scoring 0.85 walks past that gate. Six false positives a window is cheap insurance.
What the scanner won't do
The guardrails are written down, which is rarer than it should be for anything touching a registry firehose.
No automated takedowns, no retained contents
A flag is treated like any third-party report — the crates.io team or the Foundation's security initiative reviews the file, and the normal takedown process follows: crates.io handles the mechanics, the Rust security response working group consults, RustSec publishes the advisories.
After the scan, crate contents are dropped. Only the name, version, file list, and score survive, so any future comparative work runs only on crates still available at that time.
The score is a 0–1 rating for active malice specifically. Bugs and unintended security concerns don't count; the model isn't grading code quality.
The road to January
The scan runs through December 31. January brings the first real read on false negatives, matched against the reports crates.io receives — commonly-used crates get reported fast, obscure ones can sit for months.
- Nov 11–21First full firehose window, every publication scanned
- Nov 1 → Dec 31Backfill the early November gap, then keep scanning everything published
- JanuaryFalse-negative lookback against crates.io's report stream
- Early 2027If the data holds, partnerships or sponsorship to re-scan the historical corpus
The catch is proven; the miss rate is unmeasured until January. Your call:
Every number on this page comes from rustfoundation.org — Needles, Haystacks, and Numbers Between 0 and 1 (Adam Harvey, November 23, 2026). Also watching: tldr.tech and bytebrief.ai.
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00