Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,49 @@ else.

## Unreleased

### An appended trailer no longer accuses a file with a genuine sidecar — corpus 6.1.0 → **6.2.0**

**Breaking** for verifiers (a reading rule changed), not for the corpus: no
committed vector moved bytes or verdict, so the bump is minor (`vectors/README.md`,
*Bump policy*). Corpus 6.2.0 (174 vectors).

§3.1. Before: a valid footer whose CRC matched made the trailer the proof
(step 1), and a differing sidecar was only *sidecar differs*. A valid-CRC
trailer proves nothing about which file it was sealed with, so anyone could
append one carrying another capture's proof to a trailer-stripped genuine
file next to its genuine sidecar, and the verdict was **tampered** (or
*frames not compared* on a clip) — the shape 6.1.0 closed for a forged
manifest and left open here. Now one rule, *A sidecar that does better*,
covers both: when a sidecar differs from the proof the file carries (the
trailer at step 1, the depth-0 proof at step 4), a verifier computes both
verdicts over the same canonical bytes (the file without the trailer at
step 1) and ranks outcomes (*authentic* > *verified clip* > *frames not
compared* > everything else). The sidecar decides only when it ranks
**strictly above**; its verdict then carries *trailer copy differs* (new
label) or *manifest copy differs*, `proof_source` `sidecar`, and the active
manifest's copy, if any, is compared with the sidecar instead. On a tie the
file's proof stands with *sidecar differs*, as before. Outcomes, never
ceilings, are ranked. Nothing is gained that deleting the trailer would not
give. A sidecar identical to the trailer changes nothing.

Unchanged and outside the rule: a nested trailer stays *nested proof*
(structural; deleting the outer trailer leaves the inner one to step 1); a
footer whose CRC fails or whose major is not 1 stays *corrupted proof* or
*unsupported format version* whatever the sidecar says (steps 2–3: no proof
is judged, nothing to rank). **Open**: such a footer appended to a stripped
genuine file still accuses it; recorded in `threat-model.md` §5.1.

- **New**: 172 (JPEG: vector 05's photo with another capture's valid trailer
appended, vector 01's proof as sidecar → *authentic*, *trailer copy
differs*), 173 (vector 89's clip, trailer replaced by a foreign video proof
that reads *frames not compared*, vector 166's proof as sidecar → *verified
clip* 1–2 of 3, *trailer copy differs*), 174 (vector 11's tampered file,
vector 18's sidecar, both *tampered* → the trailer stands, *tampered*).
Generated by `generate.ts`. Vector 18 (a tie on *authentic*) is unchanged.

**What a verifier that predates 6.2.0 does**: reads 172 *tampered* and 173
*frames not compared*, from the trailer; 174 passes.

### A forged manifest no longer accuses a file with a genuine sidecar — corpus 6.0.0 → **6.1.0**

**Breaking** for verifiers (a reading rule changed), not for the corpus: no
Expand Down
11 changes: 8 additions & 3 deletions spec/c2pa-interop-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ precedence — the copy inside the bytes wins — and the same reason: it
travelled with what it binds. Where the shapes part: a manifest is
authenticated to a C2PA validator and not to a vcap reader, so a copy in the
bytes that does worse over them than a differing sidecar does not win
(`vcap-proof-1.0.md` §3.1, step 4; vectors 169–171) — anyone can write a
(`vcap-proof-1.0.md` §3.1, *A sidecar that does better*; vectors 169–171) — anyone can write a
manifest, and the sidecar is what deleting it would leave.

### 3.4 When we sign C2PA
Expand Down Expand Up @@ -404,7 +404,11 @@ the proof in its own manifest, or find it in its source's (`vcap-proof-1.0.md`
file. Neither can forge a core — the signature is over it — but the
attachments are where a downgrade would go (a dropped `registry`, a
dropped `timestamp`), and the copy inside the file is the harder one to
edit quietly. A broken trailer is not replaced by a sidecar for the same
edit quietly. It wins **ties**, not outcomes: a valid-CRC trailer can be
appended to any trailer-stripped file, so one that does worse over the
bytes than a differing sidecar does not decide (`vcap-proof-1.0.md` §3.1,
*A sidecar that does better*; vectors 172–174) — the downgrade it guards
against is a ceiling, and ceilings are never ranked. A broken trailer is not replaced by a sidecar for the same
reason (vector 72): the CRC failing says the file was edited, and a
fallback that hid it would answer the question the CRC exists to raise.
- **No label for "from sidecar"**, nor for "from a manifest". The location of
Expand Down Expand Up @@ -445,6 +449,7 @@ canonical bytes.
| Copy, transfer, rename | kept | kept | kept | kept | as sealed (level per §7) | same; the sidecar is renamed with the file or is not found | 01, 17 |
| Trailer stripped, bytes otherwise intact (a tool that truncates at EOI or drops trailing boxes) | lost | kept | kept, no proof in it | kept | *no proof found* | **full verdict restored**, identical to the embedded one | 05, 17 |
| The same, with Content Credentials that carry the proof | lost | kept | kept | kept | **full verdict restored** from the active manifest (`vcap-proof-1.0.md` §3.2, depth 0) | the same: the manifest's copy outranks the sidecar, which *differs* if it is not the same proof — unless the sidecar's outcome is better over these bytes, when the sidecar decides and the manifest's copy *differs* | 124, 127, 169–171 |
| Trailer stripped, another capture's valid trailer appended | replaced | kept | kept | kept | the appended proof's verdict: *tampered* on a photo, *frames not compared* on a video | **restored** from the sidecar when its outcome is better, with *trailer copy differs*; on a tie the appended trailer stands | 172–174 |
| C2PA manifest added, replaced or removed on a JPEG | kept | kept | changed | kept | unchanged | unchanged | 02, 68 |
| C2PA manifest inserted into a sealed BMFF file | kept | kept | added | kept | *tampered* (§4.1: inside the canonical bytes) | *tampered* | 73 |
| C2PA update manifest appended to a sealed BMFF file | unreachable | kept | changed | kept | *no proof found* | *tampered* (whole file hashed) | 69, 70 |
Expand Down Expand Up @@ -486,7 +491,7 @@ Reading the table:
- **What the verifier must say**, in §8's words, per outcome: *no proof
found* is not an error and is never *corrupted*; *tampered* carries its
reason and no absence labels; *verified clip* names the segments verified
out of `segment_count`; *sidecar differs*, *manifest copy differs* and
out of `segment_count`; *sidecar differs*, *trailer copy differs*, *manifest copy differs* and
*flags disagree* are warnings on an otherwise valid verdict; a detector result is *watermark matched*,
*watermark not recovered* or *watermark not evaluated*, and a match without
a valid signature is *origin traced*.
Expand Down
6 changes: 6 additions & 0 deletions spec/threat-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Boundaries, each enforced by code and tested:
| Timeline edit | re-muxes a genuine video with an edit list that trims, repeats or reorders what a player shows, every sample untouched | an edit list with more than one edit after the leading delay, or a rate change, is a timeline §5 does not model: no segment is located (§5, vector 156) | none: *frames not compared*, never *verified clip*; an original is covered whole by `media.hash` |
| Clip re-timed | re-muxes a genuine clip keeping every sample and the single-edit timeline, and changes sample durations (`stts`), composition offsets (`ctts`), the `mdhd` timescales or the audio sample rate: a frame frozen, a passage slowed, frames reordered within a GOP | none for a clip: no signed byte carries timing; audio assignment by DTS breaks the hashes only when a change moves an IDR relative to the audio | **open**: such a clip reads *verified clip*. An original is covered by `media.hash`. A proposal is in `reviews/design-clip-timing.md` |
| Proof transplant | moves a genuine trailer or sidecar onto another file | `media.hash` mismatch; on video, a signed segment counts only where a GOP of the received file names it and recomputes (§5, *Locating segments*) | none: red on a photo; *frames not compared* on a video whose GOPs name no segment of the proof, never *verified clip* |
| Accusing trailer | strips a genuine file's trailer and appends another capture's valid trailer (CRC correct) beside the genuine sidecar, to have the file accused | beside a differing sidecar whose outcome is better over the same bytes, the sidecar decides, with *trailer copy differs* (`vcap-proof-1.0.md` §3.1, *A sidecar that does better*, vectors 172–173); ties keep the trailer (vector 174) | none with the sidecar present: the file reads as the sidecar says. Without it the appended proof decides, as it would on any file. **Open**: a footer whose CRC fails, or whose major is not 1, appended the same way still reads *corrupted proof* or *unsupported format version* whatever the sidecar says (§3.1 steps 2–3) |
| Clip from a genuine video | cuts segments, keeps the trailer | per-segment chain over messages; `segment_count`; `media.hash` mismatch → *verified clip*, amber, ranges shown | accepted and **labelled**: a clip is a clip, never an original |
| Reassembled video | reorders, repeats or relabels genuine GOPs, or inserts a foreign one next to them | every GOP of the file is accounted for in decode order: one vcap SEI naming this capture and a signed segment, indices strictly increasing, each at most once (§5) | none: red |
| Audio replacement on a clip | keeps verified frames, swaps sound | audio frames inside the segment hash (§5) | none on originals and clips |
Expand Down Expand Up @@ -298,6 +299,11 @@ like, and it is the true one.

## 7. Change log

- 2026-10-03 — §5.1: a valid-CRC trailer appended to a trailer-stripped
genuine file beside its sidecar no longer accuses the file
(`vcap-proof-1.0.md` §3.1, *A sidecar that does better*); an appended
broken or unsupported footer still does, and is recorded as open.

- 2026-10-03 — §5.1: a forged manifest added beside a genuine file and its
sidecar no longer accuses the file (`vcap-proof-1.0.md` §3.1 step 4); a
re-timed clip is an open residual, with a proposal.
Expand Down
78 changes: 49 additions & 29 deletions spec/vcap-proof-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,18 @@ restore are in `c2pa-interop-1.0.md` §4 and §5.
- **Precedence.** Read the last 16 bytes first (§3), then:
1. **Valid footer, CRC matches** → the trailer is the proof. A sidecar, if
present, is compared **byte for byte** with the payload; not equal is
*sidecar differs*, a label, and the sidecar is not used for anything
(vector 18). Byte comparison, not semantic: a writer emits canonical bytes
*sidecar differs*, a label, and the sidecar is not used (vector 18) —
**unless it does better over the same bytes** (*A sidecar that does
better*, below; vectors 172–174). Byte comparison, not semantic: a writer emits canonical bytes
in both places and the label is a writer bug or a swapped file, either of
which the reader should say rather than resolve. The copy the file's
active C2PA manifest carries, if any (§3.2), is compared too, as
`JCS(parse(copy)) == JCS(parse(payload))` — a claim generator
re-serializes the JSON it is given, so bytes are not comparable across a
manifest (vector 123) — and not equal is *manifest copy differs*, a label;
the copy is not used for anything (vector 125). A copy that is not a
well-formed proof (§6.1) differs from any other.
the copy is not used for anything (vector 125). It is compared with the
proof that decides, the sidecar's when the sidecar does. A copy that is
not a well-formed proof (§6.1) differs from any other.
2. **Valid footer, CRC fails** → *corrupted proof*, whatever the sidecar or
a C2PA store says (vectors 72, 126). The sidecar is a fallback for a
trailer that is absent, not a substitute for one that was found and is
Expand All @@ -202,25 +204,9 @@ restore are in `c2pa-interop-1.0.md` §4 and §5.
sidecar, which is presented as this file's proof, outranks a source's
(vector 130). A sidecar next to a depth-0 proof is compared with it as
JCS; not equal is *sidecar differs*, and the sidecar is not used
(vector 127) — **unless it does better over the same bytes**. A
manifest is not authenticated to a reader and, on a JPEG, sits outside
the canonical bytes (§4.1): anyone can add one carrying another capture's
proof beside a genuine file and its genuine sidecar, and a depth-0 proof
that always won would turn that into an accusation (vector 169). So when
the two differ, a verifier computes the verdict of each, as this step
says for either, and ranks their outcomes: *authentic* above *verified
clip* above *frames not compared* above every other outcome, which rank
equal. When the sidecar's outcome ranks **strictly above** the depth-0
proof's, the sidecar's verdict is the verdict, `proof_source` is
`sidecar`, and it carries *manifest copy differs* instead of *sidecar
differs* (vectors 169, 171). Otherwise the depth-0 proof's verdict stands
with *sidecar differs* (vectors 127, 170). Only outcomes are ranked,
never ceilings: a sidecar stripped of a `revoked` `attestation_status`
reads amber where the manifest's complete copy reads red, and must not
win. Nothing is gained this way that
deleting the manifest would not give — the sidecar is the next proof in
this order — and the manifest's copy can still lower a ceiling on a tie,
never raise one. The same holds for a store the caller hands over.
(vector 127) — **unless it does better over the same bytes** (*A
sidecar that does better*, below; vectors 169–171). The same holds for
a store the caller hands over.
The canonical bytes are the **whole** received file (§4.1
step 1, `F' = F`), including whatever a stale or displaced trailer left
behind (vector 70). The verdict is computed exactly as for an embedded
Expand All @@ -231,6 +217,38 @@ restore are in `c2pa-interop-1.0.md` §4 and §5.
is a proof found at depth ≥ 1, which is not presented as this file's
(§3.2, *The verdict*).
5. **None of these** → *no proof found*.
- **A sidecar that does better.** Neither the proof a file carries nor its
place is authenticated as this file's: a C2PA manifest is not authenticated
to a reader and, on a JPEG, sits outside the canonical bytes (§4.1), and a
trailer with a valid CRC can be appended to any trailer-stripped file. So
anyone can put another capture's proof in either beside a genuine file and
its genuine sidecar, and a file's proof that always won would turn that into
an accusation (vectors 169, 172). When a sidecar differs from the proof the
file carries — the trailer at step 1, the depth-0 proof at step 4 — a
verifier computes the verdict of each over the same canonical bytes (the
file without the trailer at step 1, the whole file at step 4), and ranks
their **outcomes**: *authentic* above *verified clip* above *frames not
compared* above every other outcome, which rank equal.
- The sidecar's outcome ranks **strictly above** the file's proof's → the
sidecar's verdict is the verdict, `proof_source` is `sidecar`, and it
carries *trailer copy differs* (step 1, vectors 172, 173) or *manifest
copy differs* (step 4, vectors 169, 171) instead of *sidecar differs*.
- Otherwise → the file's proof stands with *sidecar differs*, as without
this rule (vectors 18, 127, 170, 174).

Only outcomes are ranked, never ceilings: a sidecar stripped of a `revoked`
`attestation_status` reads amber where the file's complete copy reads red,
and must not win. Nothing is gained this way that deleting the trailer or
the manifest would not give — the sidecar, over those bytes, is what a
reader finds then — and the file's copy can still lower a ceiling on a tie,
never raise one. A sidecar identical to the trailer, byte for byte, or to
the depth-0 proof, as JCS, is no second verdict and changes nothing.
Outside the rule, unchanged: a nested trailer (§3) is *nested proof*, a
structural verdict no proof of the file is judged for, and deleting the
outer trailer leaves the inner one to step 1; a footer whose CRC fails
(step 2) or whose major is not 1 (step 3) stays *corrupted proof* or
*unsupported format version* whatever the sidecar says — no proof of the
file is judged there, so there is no outcome to rank.
- **Video.** Recomputing §5 content hashes stays optional and, when skipped,
declared (*segment content not recomputed*); a sidecar next to a demuxable
container is the case §5 has in mind.
Expand Down Expand Up @@ -1903,11 +1921,12 @@ capture's, and where §4–§8 would give *tampered* or *frames not compared* th
outcome is *no proof found*: the derivation is declared, and the proof is not
presented as this file's.

**Where the proof came from.** *Sidecar differs* and *manifest copy differs*
(§3.1) are warnings on an otherwise valid verdict: a second copy of the proof
that is not the one used. A depth-0 proof from Content Credentials never makes
a verdict red over a differing sidecar that does better over the same bytes
(§3.1, step 4). `proof_source` and `frames_name_capture` (§3.2) are
**Where the proof came from.** *Sidecar differs*, *trailer copy differs* and
*manifest copy differs* (§3.1) are warnings on an otherwise valid verdict: a
second copy of the proof that is not the one used. Neither a trailer nor a
depth-0 proof from Content Credentials makes a verdict red over a differing
sidecar that does better over the same bytes (§3.1, *A sidecar that does
better*). `proof_source` and `frames_name_capture` (§3.2) are
diagnostics and never labels.

**The rule that outranks the table.** A watermark match with no valid signature is
Expand Down Expand Up @@ -2060,7 +2079,8 @@ says.
position source (151), the verdict hardening and presentation binding
(152–164) and `media.presentation` required (165–168), and **171**
in corpus 6.1.0 with a sidecar no longer overruled by a worse
depth-0 manifest proof (169–171),
depth-0 manifest proof (169–171), and **174** in corpus 6.2.0 with
the same rule for a trailer (172–174),
checked by the reference verifier in `tools/`. The §7 vectors
trust the anchors in `vectors/_trust/`, whose attestation root is a test
root: they prove the level logic, not that an implementation can walk a
Expand Down
Loading
Loading