Repository navigation
docs(fuzz): reproducible harness guide for auditors - #225
Conversation
|
A note on the failing check: Happy to help investigate the advisory separately if useful; otherwise I'll wait for main to go green and rebase. |
|
Thanks, Mark — this is a thorough guide and it stays within the agreed scope for #93. I reviewed the documentation and compared the commands and campaign descriptions against the current fuzz workflows. Before we consider it ready, could you please make two small follow-ups?
Please push the updates to this PR when ready and let us know. No need to expand the scope into discussions #175 or #181. Thanks again for taking this on. |
v1rtu3x
left a comment
There was a problem hiding this comment.
Thanks — both follow-ups are in 751bc04:
fuzz/Cargo.lockis now committed instead of ignored, and the README explains why: a committed lockfile gives auditors reproducible dependency resolution from a clean checkout. Verified end-to-end: fresh clone → documented build →git diff --exit-codeconfirms the lockfile unmodified, including under a newer nightly (739adecd4) than the one that generated it (20fe935d5).- The ML-DSA corpus note is now a bounded, dated observation ("in the sampled campaigns observed so far — local 30-second runs and CI run 45159196337 — …"), explicitly framed as an observation rather than a property of the harness.
The PR body's scope note is updated to reflect the two remaining .gitignore rules (fuzz/corpus/, fuzz/artifacts/).
v1rtu3x
left a comment
There was a problem hiding this comment.
An update on the two failing checks — both are the same pre-existing advisory, not this change:
- Both
cargo-audit (all lockfiles)andEnforce dependency policyfail on RUSTSEC-2026-0592 (urlcrate) in the root workspace lockfile. cargo-audit has failed onmainthe same way since the advisory was published (scheduled run 45213177110, on this branch's base commit). Enforce dependency policytriggered on this PR because addingfuzz/Cargo.lockmatches its**/Cargo.lockpath filter, but its checks cover the root and native lockfiles only —fuzz/Cargo.lockitself is scanned by neither workflow.- Fast CI is green.
Happy to help with the advisory in a separate PR if useful (e.g. a url bump or a time-limited exception, whichever you prefer) — I'll leave the triage call to you.
|
Thanks, Mark — this is a good PR and the updates look good. We’ll take ownership of the remaining CI issues and handle the dependency/policy fixes on our side, so you don’t need to expand the scope of this PR. Appreciate the work! |
|
CI verificado en GitHub Actions sobre el HEAD |
Hi,
This overhauls
fuzz/README.mdso an auditor can go from a clean checkout to building all nine fuzz harnesses, running bounded campaigns with the exact CI flags, and reproducing crashes from retained CI artifacts. Related tracking issue: #93 (left open; separate ownership).Summary
The README now documents: the nine targets grouped by surface (parsers / vault & storage decoders / crypto / policies) with per-target campaign coverage; toolchain requirements with verified versions; build and run commands using the exact CI flags; seed corpus location and limits; the weekly-matrix vs. four-hour-soak campaign structure including the merged #222 artifact layout (
fuzz-results/<target>/run-<id>-attempt-<n>/and thereport.jsoncontract); and step-by-step crash reproduction and minimization from downloaded artifacts, with explicit guidance that crash inputs and corpus data must never expose secrets or be committed.Per review feedback,
fuzz/Cargo.lockis committed rather than ignored, giving auditors reproducible dependency resolution from a clean checkout.Related issue or discussion
Related tracking issue: #93 (left open; separate ownership). Scope coordinated with the maintainers on the issue; related work tracked separately in discussions #175 and #181 (linked in the README, not implemented here).
Change type
Security and correctness impact
No code, workflow, or harness is modified. The security impact is positive and indirect: auditors can independently reproduce fuzz evidence, and the documentation reinforces CONTRIBUTING §3 (crash artifacts and secrets are never committed). Two scope-adjacent guardrails are included:
.gitignorerules forfuzz/corpus/andfuzz/artifacts/, so following the documented commands no longer leaves generated corpus files and crash artifacts onegit add .away from being committed. Happy to split these into a separate PR if you prefer.Compatibility and migration
None — documentation, two
.gitignoreentries, and a committedfuzz/Cargo.lock. No API, format, dependency-version, MSRV, or platform impact (the lockfile pins the fuzz workspace's existing resolution; it does not change it). Rollback is a revert of these two commits.Validation evidence
Every command in the README was executed verbatim from a fresh
git clone --recurse-submodules:rustup toolchain install nightly --component rust-src→ OK;cargo install cargo-fuzz --locked→ 0.13.2.cargo +nightly fuzz build→ exit 0, all nine binaries present;cargo +nightly fuzz listmatches the documented inventory exactly.fuzz/Cargo.lockcommitted, a fresh clone followed by the documented build leaves it unmodified (git diff --exit-codeclean) — verified under a newer nightly (739adecd4, 2026-11-24) than the one that generated it (20fe935d5, 2026-11-23).vault_parserun with the CI flags → exit 0, 334,838 runs, 689 corpus files, 0 artifacts;mldsa_key_decodewith empty corpus → exit 0 (see note below).fuzz-campaign-vault_parse(run 45159196337) → both exit 0;tminbehavior on a non-crashing input documented as observed;-artifact_prefixdirectory requirement verified against real error output.gh run download.Two behaviors could not be exercised (a real harness crash — none exists to trigger; soak artifact download — no soak run has been dispatched since #222 merged) and are documented from the merged workflow/finalizer source, phrased conditionally. Note on the
cargo-auditcheck: it fails onmainas well (scheduled run 45213177110, on this branch's base commit) due to a newly published advisory; this PR touches no root dependencies.Limitations and follow-up
mldsa_key_decodegenerated inputs took the same early rejection path and no corpus units were added. Documented in the README as a dated, bounded note; happy to file a tracking issue if you'd like it tracked.fuzz-nightly.ymlruns weekly (Mondays 02:17 UTC); the README documents the actual schedule.Contributor checklist
Happy to adjust the structure, level of detail, or scope if that makes review easier — just let me know.