Skip to content

chore(ci): fuzz campaign reads clean when a known artifact recurs (name-only artifact diff) #3232

Closed

Description

@Xuepoo

Context

Landed as a follow-up of #3228 (b31ec303, closes #3227). Round-2 review of that PR
recorded this as O1 (MEDIUM), reproduced on the merged tree with a stub cargo:

# fuzz/artifacts/vt_parser/ already holds leak-deadbeef from an earlier run
driver -> {"target":"vt_parser","crashes":0,"exit_code":0,"result":"clean"}

Defect

scripts/fuzz-campaign.sh classifies artefacts by name diff only. libFuzzer names
memory-safety artefacts deterministically (leak-<sha1>, timeout-<sha1>,
crash-<sha1> are all input-derived), so a target that rediscovers an fuzz/artifacts/
entry left by an earlier run (a previous campaign, a local just fuzz, a shared cache)
produces no new name and the campaign records clean with rc 0.

P0-AC-002 is "zero crashes, hangs, or memory-safety findings", so an artefact that is
re-discovered rather than newly created still invalidates the evidence. CI is unaffected
today because each job starts from a fresh checkout, which is exactly why the hole would
survive until a stateful runner or a local evidence run hits it.

Acceptance

  • The campaign refuses to call a run clean when any artefact exists for the target
    after the run, regardless of whether its name is new — diff on (name, mtime) or
    clean the target's artifacts/ dir into the run's own workspace before fuzzing.
  • scripts/tests/fuzz-campaign.test.sh carries the pre-seeded-leak-deadbeef case and
    fails on the pre-fix driver (mutation-proven, as F1/F2 were in chore(ci): wire a nightly cargo-fuzz campaign as the R-001 / P0-AC-002 evidence vehicle #3228).
  • The runbook (specifications/fuzz-campaign-ctx-1877-evidence.md) states which
    artefact state is assumed at campaign start.

Related: #3228, #3227, #975 (R-001 / P0-AC-002 closure).

Activity

  1. added
    chore
    P2
    area:security
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:securitychore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions