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
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,79 @@ else.

## Unreleased

### An unreadable footer no longer accuses a file with a genuine sidecar; `attestation_status` is domain-separated — corpus 7.0.0 → **8.0.0**

**Breaking**, twice: a reading rule changed and vector 72 moved its verdict,
and a signed message changed and 25 vectors were re-signed. Decided
5 October 2026. Corpus 8.0.0 (193 vectors).

**§3.1, *A sidecar that does better than an unreadable footer*.** Before: a
footer whose last 16 bytes carry the `VCAP` magic and that a reader cannot
use decided the verdict whatever sat beside it — *corrupted proof* when the
CRC failed (step 2), *unsupported format version* when the major was not 1
(step 3), and step 4 over the whole file, footer included, when its size
described no trailer. Anyone could append such a footer to a
trailer-stripped genuine file and have it read broken beside its genuine
sidecar: the open item 6.2.0 left. Now, when a sidecar is present, a
verifier also judges it over `F'`, the file without the **unreadable
trailer**:

- `T = 8 + payload_len + 16`, `payload_len` read at its v1 position whatever
the major, summed without overflow;
- if `T ≤ len(F)` and the 8 bytes at `len(F) − T` are `box_size == T` and
`"free"`, the unreadable trailer is the last `T` bytes; otherwise it is the
last 16 bytes only;
- `F'` is judged whole, as step 4 judges a sidecar, and nothing further is
read: one trailer is removed, never two (vector 193).

The outcomes rank as in 6.2.0 (*authentic* > *verified clip* > *frames not
compared* > the rest). The sidecar's verdict decides only when it ranks
strictly above the footer's — and carries the new label **trailer
unreadable** and `proof_source` `sidecar`; without a sidecar, or on a tie,
the footer's verdict stands. *Authentic* still needs `media.hash` to match
what remains, so a declared span cannot upgrade forged bytes; the box header
is required so that nothing a player presents is removed. Existing labels
are unchanged. A C2PA store beside a broken footer is not a sidecar and
gains nothing (vector 126). `threat-model.md` §5.1 *Accusing broken footer*
closes the open item; `c2pa-interop-1.0.md` §5 gains the row.

**§6.2, `attestation_status`.** The registry signs
`"vcap/1.0/attestation-status" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE
fetched_at`: 27 ASCII bytes, no terminator and no length prefix, as
`"vcap/1.0/sth"`, `"vcap/1.0/status"`, `"vcap/1.0/integrity"` and
`"vcap/1.0/location"` are. The known inconsistency recorded in the
3 October audit is closed; `threat-model.md` §5.3 gains *Cross-message
signature*. Reference: `attestationStatusMessage` in `tools/src/registry.ts`.

- **Moved bytes, re-signed, verdicts unchanged**: 44, 45, 49–54, 96–102,
106, 107, 109, 148, 149, 152, 154, 155, 157 and 164 — every vector carrying
`attestation_status`, its snapshot re-signed with the test log key over the
new message (`npm run generate`). Cores, timestamp tokens and media are
unchanged.
- **Moved verdict**: 72 (vector 06's CRC-broken trailer, intact sidecar),
*corrupted proof* → *authentic* with *trailer unreadable*, source sidecar.
- **New**: 188 (vector 05's photo, another capture's trailer with its CRC
broken, vector 01's proof as sidecar → *authentic*, *trailer
unreadable*), 189 (vector 173 with that footer's CRC broken → *verified
clip* 1–2 of 3, *trailer unreadable*), 190 (a major-2 trailer with another
capture's proof → *authentic*, *trailer unreadable*), 191 (vector 07's
sixteen bytes, whose declared span holds no box header: only the footer
is removed → *authentic*, *trailer unreadable*), 192 (vector 11's edited
pixels, CRC broken, vector 01's sidecar: a tie → *corrupted proof*), 193
(vector 01 sealed, a CRC-broken trailer appended after its own, vector
01's sidecar: one trailer removed, *tampered*, a tie → *corrupted
proof*). Without a sidecar nothing moved: 06, 07, 08, 115, 118 and 126
keep their verdicts.

**What a verifier that predates 8.0.0 does** (measured with the 7.0.0
reference verifier): it rebuilds the status message without the separator,
so no snapshot verifies and every re-signed vector reads *chain revocation
not checked* in place of its snapshot's answer: 44, 96, 97 and 164 go from
red (*attestation key revoked*) to amber, 100 from green to amber, 45 loses
*attestation key revoked after the capture*, and the rest keep their ceiling
with the extra label. It reads 72, 188 and 189 *corrupted proof*, 190
*unsupported format version* and 191 *tampered*; 192 and 193 pass.

### A clip's timing is bound — corpus 6.2.0 → **7.0.0**

**Breaking.** §5 *Timing* (new), §5 *Presentation*, §6.1, §7, §8: a video
Expand Down
3 changes: 2 additions & 1 deletion schema/vcap-proof-1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@
}
},
"sig": {
"$ref": "#/$defs/p1363"
"$ref": "#/$defs/p1363",
"description": "registry key ES256 over \"vcap/1.0/attestation-status\" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE fetched_at"
}
}
},
Expand Down
10 changes: 6 additions & 4 deletions spec/c2pa-interop-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ canonical bytes.
| 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 |
| Trailer stripped, a footer that cannot be read appended (CRC failing, another major, a size that describes no trailer) | replaced | kept | kept | kept | *corrupted proof*, *unsupported format version* or *no proof found* | **restored** from the sidecar, judged over the file without the unreadable trailer, when its outcome is better, with *trailer unreadable*; on a tie the footer's verdict stands | 72, 188–193 |
| 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 All @@ -466,9 +467,10 @@ canonical bytes.
Reading the table:

- **A sidecar restores exactly one thing**: the proof, when the container
lost it and nothing else changed. Row 2 is the only one where the two
verdict columns differ in the sidecar's favour, and it is the case §3.1
exists for. In every other row the canonical bytes changed, and a sidecar
lost it and nothing else changed. Row 2 is that case, and §3.1 exists for
it; the appended-trailer and unreadable-footer rows are the same case with
something added after the canonical bytes, which the sidecar is judged
without. In every row where the canonical bytes changed, a sidecar
turns *no proof found* into *tampered* — a stronger statement, and an
honest one: the signature is valid and these are not the bytes it vouches
for. A verifier MUST NOT soften that into "probably the same picture"; the
Expand All @@ -492,7 +494,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*, *trailer copy differs*, *manifest copy differs* and
out of `segment_count`; *sidecar differs*, *trailer copy differs*, *trailer unreadable*, *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
4 changes: 3 additions & 1 deletion spec/threat-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ 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, the media edit's extent or the audio sample rate: a frame frozen, a passage slowed, the whole clip sped up in sync, frames reordered within a GOP, part of a segment hidden | each `segments[]` entry carries the hash of its segment's timing record, bound by `media.timing.root` in the signed core; a verifier reads each located segment's record back, converts it to the signed timescales exactly, and refuses a media edit that trims inside a located segment; the audio `esds` is part of `media.presentation` (`vcap-proof-1.0.md` §5 *Timing*, vectors 179–186) | none: *frames not compared* with *timing differs* (*presentation differs* for the sample rate), never *verified clip*; a forged entry hash is *tampered* (vector 177). Accepted: the audio–video offset is bound only to within one audio frame (the assignment rule's slack), and a media edit that runs past the end of the media — what a player shows there is not defined — is not bound. An original is covered by `media.hash` |
| 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) |
| 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 |
| Accusing broken footer | strips a genuine file's trailer and appends a footer a reader cannot use — a trailer whose CRC fails, a footer of another major, sixteen bytes whose size describes no trailer — beside the genuine sidecar, to have the file read *corrupted proof*, *unsupported format version* or *tampered* | beside a sidecar, the sidecar is judged over the file without the unreadable trailer — the `free` box the footer declares when it fits, otherwise the footer alone — and decides when its outcome is better, with *trailer unreadable* (`vcap-proof-1.0.md` §3.1, *A sidecar that does better than an unreadable footer*, vectors 72, 188–191); ties keep the footer's verdict (vectors 192, 193) | none with the sidecar present. A wrong span cannot raise a verdict: what remains must still hash to the signed `media.hash` or recompute a signed segment. Not covered: a broken footer appended after an intact trailer, which is not peeled back (vector 193) |
| 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 @@ -166,6 +167,7 @@ Boundaries, each enforced by code and tested:
| Hidden revocation | the log says "valid" for a revoked key | status is signed by the log key over key, time, tree size, status; revocation leaves have inclusion proofs; anyone can check the revocation leaves for a key | low; a lying log signs the lie, which is evidence |
| Retroactive revocation abuse | an insider revokes a key retroactively to invalidate inconvenient captures | retroactive only for `compromise`, refused otherwise by the log itself; the leaf is public with its reason | low: visible, attributable |
| Log key compromise | attacker signs heads and statuses | key in KMS; rotation with the old key's heads kept; verifiers pin by `log_id` | medium: recovery is a new log id, published |
| Cross-message signature | presents the log key's signature over one message — a tree head, a key status, an `integrity` or `location_corroboration` statement, a revocation snapshot — as a signature over another | every message the log key signs begins with its own ASCII separator: `"vcap/1.0/sth"`, `"vcap/1.0/status"`, `"vcap/1.0/integrity"`, `"vcap/1.0/location"`, `"vcap/1.0/attestation-status"` (`vcap-proof-1.0.md` §6.2) | none. Before corpus 8.0.0 the `attestation_status` message alone had none; it began with a `core_hash` nobody chooses, so it was not exploitable, only the exception the rule should not have |
| Registered after capture | a key logged after the fact | `tree_head.timestamp` vs declared time and vs the RFC 3161 token: *registered after the declared capture*, amber | none on the ordering claim |

### 5.4 Against the platforms we rely on
Expand Down
Loading
Loading