diff --git a/AGENTS.md b/AGENTS.md index 5059bf8..1deab7d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,7 +37,8 @@ the first build, SDK or sealed file that reaches somebody else. `CHANGELOG.md` i Decryption never establishes a proof verdict. - `reviews/` — historical review notes (cryptographic, implementability). Findings are graded BLOCKING / SHOULD / NOTE; the spec absorbed them and is - authoritative. Do not update a review to match the spec. + authoritative. Do not update a review to match the spec. A `design-*.md` + note there is a proposal the spec has not adopted (§11 points at it). - `schema/` — JSON Schema plus a validator runnable from CI, including the shape of a published conformance report. - `vectors/` — one directory per case, each with the input, the proof and the @@ -48,7 +49,7 @@ the first build, SDK or sealed file that reaches somebody else. `CHANGELOG.md` i review decides which one is wrong — the generator refuses to write a vector the verifier fails. The C2PA carrier reader (`jumbf.ts`, `cbor.ts`, `carrier.ts`) reads structure only and has no dependency; the vectors with - real Content Credentials (123–147) are minted on demand by + real Content Credentials (123–147, 169–171) are minted on demand by `make-c2pa-vectors.ts` through `@contentauth/c2pa-node`, a devDependency nothing on the verification path imports, and committed because c2pa-rs salts every assertion at random. diff --git a/CHANGELOG.md b/CHANGELOG.md index f8dcf1d..5a98b3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,46 @@ else. ## Unreleased +### 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 +committed vector moved bytes or verdict, so the bump is minor (`vectors/README.md`, +*Bump policy*). Corpus 6.1.0 (171 vectors). + +§3.1 step 4. Before: with no footer, the active manifest's proof always +outranked the sidecar. A Content Credentials manifest is not authenticated to +a vcap reader and, on a JPEG, sits outside the canonical bytes, so anyone +could add one carrying another capture's proof beside a trailer-stripped +genuine file and its genuine sidecar, and the verdict was **tampered**, red — +a false accusation from bytes nobody vouched for. Now, when a sidecar differs +from the depth-0 proof, a verifier computes both verdicts and ranks their +outcomes (*authentic* > *verified clip* > *frames not compared* > everything +else). The sidecar decides only when it ranks **strictly above**; its verdict +then carries *manifest copy differs* and `proof_source` `sidecar`. On a tie +the depth-0 proof stands with *sidecar differs*, as before. Outcomes, never +ceilings, are ranked: a sidecar stripped of a `revoked` attachment must not +beat the manifest's complete copy. Nothing is gained that deleting the +manifest would not give. The same applies to a store the caller hands over. + +- **New**: 169 (JPEG: foreign proof in the manifest, genuine sidecar → + *authentic*, *manifest copy differs*), 170 (JPEG: vector 128's file, a + sidecar that also reads *tampered* → the depth-0 proof stands, *tampered*), + 171 (vector 89's clip: a foreign video proof in the manifest reads *frames + not compared*, the sidecar *verified clip* 1–2 of 3 → the sidecar's, with + *manifest copy differs*). Minted by `make-c2pa-vectors.ts --only + 169,170,171`; notes record c2patool 0.27.16. Vector 127 (the manifest's + proof is the better one) is unchanged. + +**What a verifier that predates 6.1.0 does**: reads 169 *tampered* and 171 +*frames not compared*, from the manifest's proof; 170 passes. + +**Open, not changed**: a valid-CRC trailer appended to a trailer-stripped +genuine file is the same shape — it outranks the sidecar (step 1) — and is +left for review. **A clip's timing is not bound** (`stts`, `ctts`, `mdhd` +timescales, the media edit's duration, the audio sample entry): recorded in +§11 and `threat-model.md` §5.1; no verifier-only rule closes it, and +`reviews/design-clip-timing.md` proposes what the sealers would sign. + ### Audit of 3 October 2026: text fixes Text only, no corpus change, no verdict moves: every sentence below either diff --git a/README.md b/README.md index a6d5793..2ddc5df 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ spec/ the specification document (normative), the watermark payload measured), the C2PA interoperability and sidecar companion (informative, with the writer rules it pins) and the public threat model reviews/ review notes on the draft (crypto, implementability); the spec absorbs them and cites - their measurements, they stay as the record of why + their measurements, they stay as the record of why; design-*.md are proposals not yet adopted schema/ JSON Schema of the proof + validator vectors/ conformance vectors: sealed files, broken signatures, edge cases (see vectors/README.md), the versioned corpus manifest and how to claim conformance against it (vectors/CONFORMANCE.md) diff --git a/reviews/design-clip-timing.md b/reviews/design-clip-timing.md new file mode 100644 index 0000000..ea7a45c --- /dev/null +++ b/reviews/design-clip-timing.md @@ -0,0 +1,156 @@ +# Design note — binding a clip's timing + +Status: **proposal**, 3 October 2026. Nothing here is normative; the format +does not change until this is accepted, specified in `vcap-proof-1.0.md` §5 +and §6.1, and given its vectors. Written because an audit found that a clip +can be re-timed and still read *verified clip*, and asked whether a +verifier-only rule could close it. It cannot; this note says why and what the +sealers would have to sign. + +## The gap + +For an original, `media.hash` covers every byte, timing tables included. For a +clip nothing does. A segment's `content_hash` covers NAL units and audio frame +bytes; `media.presentation` covers the decoder configuration, the `tkhd` +matrix and display size, and the track layout. Not covered: + +| Container data | What a re-mux can do with it while every GOP still hashes | +|---|---| +| `stts` sample durations | freeze a frame (one long duration), slow or speed a passage, drop the gaps that showed time passing | +| `ctts` composition offsets | reorder the presented frames inside a GOP | +| `mdhd` timescale | scale a whole track; scaled on both tracks, the whole clip plays slower or faster in sync | +| the single media edit's `segment_duration`, `media_time` | trim inside a located segment (shows a subset of it) or hold the last frame | +| the audio sample entry (`esds` / AudioSpecificConfig) | declare another sample rate: the same coded frames play pitched and re-timed | + +What binds timing today, by accident: audio frames are assigned to segments by +DTS (§5), so moving an IDR's DTS relative to the audio moves frames between +segments and the hashes break. That covers only re-timing that crosses a +segment boundary on a file with audio; a uniform rescale of both tracks, any +change inside a GOP, and every silent file pass. + +## Why a verifier-only rule cannot close it + +What the sealers sign holds no timing. The segment message is 96 fixed bytes +with no time in it; the core's only time values are `media.duration_ms` +(the original's) and `time.device_clock`. Checked against the two sealers +that write video (the web SDK refuses video): + +- **SPS VUI `timing_info`** is inside `presentation.config`, but neither + sealer's encoder sets it, and it would not describe a variable frame rate + if it did. +- **Picture order count** in the slice headers is signed (it is inside the + NAL units) and would let a verifier check `ctts` reordering against the + coded order. It closes reordering only, needs an H.264 and an H.265 + slice-header parser in every verifier, and both sealers disable B-frames + (iOS always; Android from API 29), so on their files there is no reordering + to check. +- **Audio duration against video duration** needs the audio sample rate, + which is in the unsigned audio sample entry, and passes a uniform rescale. + +Durations — the freeze and the slow-down — are in no signed byte at all. A +binding needs the sealer to sign new data. + +## Proposal + +Sign each segment's timing, without touching the segment message. + +**`timing(n)`**, the timing record of segment `n`, read from the finished +container on the presentation timeline §5 already defines (leading empty +edits, one media edit at rate 1), every value an integer in the **media +timescale of its own track as the sealer wrote it**: + +``` +timing(n) = uint32 BE v || ( int64 BE dts_i − dts_0 || int64 BE cts_i ) × v + || uint64 BE end_n − dts_0 + || uint32 BE a || ( int64 BE adts_j − adts_0 || uint32 BE adur_j ) × a + + v, i video samples of segment n in decode order; dts_0 is the IDR's DTS + cts_i the sample's composition offset (ctts; 0 when there is none) + end_n DTS of IDR n+1, or, for the last segment, the last sample's DTS + plus its duration — so the last frame's duration is bound + a, j audio frames §5 assigns to segment n, in decode order + adur_j the frame's duration (stts) +``` + +**Where it goes.** Two places, neither of them the 96-byte message: + +- each `segments[]` entry gains `timing`: base64url `SHA-256(timing(n))`; +- the core gains `media.timing`: `{ "video_timescale", "audio_timescale", + "root" }`, `root` being base64url `SHA-256(timing hash 0 ‖ … ‖ timing hash + segment_count − 1)`, the timescales the `mdhd` values the sealer wrote. + Required wherever `segments` is, like `media.presentation`. + +A clip's proof carries every `segments[]` entry, so a verifier recomputes +`root` from the entries and compares it with the signed one — a mismatch is a +binding the proof makes that does not hold, **tampered** — then, for each +located segment, reads `timing(n)` back from the received file and compares +its hash with the entry's. + +**Timescale changes.** A verifier converts the received ticks into the signed +timescale: `t_signed = t_received × ts_signed / ts_received`, which must be an +integer for every value, else the timing differs. A re-mux that keeps the +timescale, or multiplies it, verifies exactly; one that moves to a timescale +that cannot represent the original instants has moved them, by at most a +tick, and reads *timing differs* — amber, never red. Hashing makes a +tolerance impossible, and a tolerance would be the thing to argue about. + +**Audio configuration.** `presentation.config`'s `X` gains the audio sample +entry's `esds` box (whole, as stored), so the sample rate is bound with the +rest of what a player is told. + +**Verdict.** A located segment whose timing reads back different is +presented under a timing nobody signed: **frames not compared**, no segment +credited, label *timing differs* — the reasoning of *presentation differs* +(§5): re-timing is not an accusation, and it is not a verified clip either. +On an original, `timing` that does not describe it is the writer's false +claim: *timing differs*, amber at best. A single media edit that trims inside +a located segment is a timing that differs. + +## Impact on the sealers + +Both video sealers already read the finished MP4 back after `stop()` — +`stts`, `ctts` and `elst` included — to reconcile segment hashes and compute +`media.presentation`, and both sign the core after that read-back. + +- **Android** (`MediaMuxer`): compute `timing(n)` in the read-back, write the + entry's `timing` and the core's `media.timing`, add `esds` to `config`. The + segment messages do not change, so **no segment is re-signed** and the + live signing budget is untouched. `MediaMuxer` chooses the timescales and + edit list, which is why the record is read back and never predicted; on + API 28, where B-frames cannot be disabled, `ctts` is covered by the same + record. +- **iOS** (`AVAssetWriter`, video timescale fixed at 90 000, no frame + reordering): the same three changes in its read-back. Its AAC priming trim + produces an audio edit, which the presentation timeline already models. +- **Web**: seals photos only; nothing. + +The rejected alternative put a timing hash inside the segment message (128 +bytes, new separator). It needs the muxer's final values at signing time, +which neither sealer has live — muxer rounding, AAC priming and edit offsets +land only in the finished file — so every recording would re-sign its whole +chain at stop: 15–21 ms per segment in the Android TEE. Signing live with +pre-mux microseconds and a tolerance was rejected for the reason above. + +## Vectors needed + +1. An original with `media.timing` → *authentic* (from vector 166's container, + re-signed). +2. Its proof without `media.timing` → *no proof found*. +3. A `segments[].timing` that does not hash to `root` → *tampered*. +4. Vector 89's clip, timing kept → *verified clip* 1–2 of 3. +5. The clip with one `stts` duration lengthened (a freeze) → *frames not + compared*, *timing differs*. +6. The clip with two `ctts` offsets swapped → the same. +7. The clip with both tracks' `mdhd` timescales doubled and every duration + kept → the same. +8. The clip with every timing value and both timescales multiplied by the + same integer → *verified clip* (an exact re-mux). +9. The clip with the audio `esds` sample rate changed → *presentation + differs*. +10. The clip with its media edit's `segment_duration` cut inside segment 2 → + *timing differs*. +11. An original whose `media.timing` does not describe it → *authentic*, + amber, *timing differs*. + +Corpus impact: a major bump (vector 166's family re-signed, every video proof +gains a required field), recorded as breaking in `CHANGELOG.md`. diff --git a/spec/c2pa-interop-1.0.md b/spec/c2pa-interop-1.0.md index fbc2740..fd359d6 100644 --- a/spec/c2pa-interop-1.0.md +++ b/spec/c2pa-interop-1.0.md @@ -35,7 +35,7 @@ entity exists, so no manifest signed by us exists either. Everything in §3 is therefore about a manifest **somebody else** writes on a sealed file — an editor, a platform, a camera pipeline that runs both — and about the day we write one. The corpus does carry real C2PA -manifests (vectors 123–147): they are signed by a public test credential, +manifests (vectors 123–147, 169–171): they are signed by a public test credential, *vcap-spec test CA* (`vectors/_trust/c2pa-test/`), which no trust list carries and which signs nothing but vectors. @@ -353,7 +353,11 @@ vcap verifier never looks for a `.c2pa` file, never fetches one, and reads it only when the file embeds no store (`vcap-proof-1.0.md` §3.2). C2PA's rule that an embedded store outranks a remote one (15.5.2.1) has the same shape as §3.1's precedence — the copy inside the bytes wins — and the same reason: it -travelled with what it binds. +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 +manifest, and the sidecar is what deleting it would leave. ### 3.4 When we sign C2PA @@ -440,7 +444,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 | 124, 127 | +| 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 | | 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 | diff --git a/spec/threat-model.md b/spec/threat-model.md index a6de0c1..ec74be7 100644 --- a/spec/threat-model.md +++ b/spec/threat-model.md @@ -127,6 +127,7 @@ Boundaries, each enforced by code and tested: | Signature swap | re-signs the file with own key and attaches a genuine attestation chain | attestation leaf SPKI must equal `sig.pub` (§6.2) | none: red | | Presentation edit | re-muxes a genuine clip keeping every sample, and rotates the track matrix, edits the out-of-band SPS (crop, colour) or adds an enabled track | `media.presentation` in the core binds the configuration record, `clap`/`pasp`/`colr`, the `tkhd` matrix and display size; the track layout rule (§5 *Presentation*, vectors 160–162) | none: *frames not compared*, never *verified clip*; a video proof without the field is not well formed, *no proof found* over the original and every clip (vector 165) | | 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* | | 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 | @@ -135,7 +136,7 @@ Boundaries, each enforced by code and tested: | Nested trailer | wraps a hardware-sealed original in a weaker proof | nested trailer detected and reported; writers refuse | none: *nested proof* | | Metadata stripping by a platform | social network removes the trailer | *no proof found*, distinct from *corrupted*; watermark → *origin traced*, never authentic; sidecar | accepted: provenance lost, origin traceable, never mistaken for tampering | | Format confusion | crafts a footer to make an unsealed file look edited | structural footer checks before the CRC (§3) | none | -| Proof carried by a forged manifest | writes Content Credentials that carry a genuine proof over another file, or declare a file a derivation of a genuine capture | a proof in the active manifest is verified exactly as a sidecar; one found up the `parentOf` chain reaches only what it proves of this file — its bytes or located segments — and is otherwise *no proof found* (§3.2); nothing the manifest says is trusted | none: red at depth 0; a declared derivation is never green unless the proof covers its bytes | +| Proof carried by a forged manifest | writes Content Credentials that carry a genuine proof over another file, or declare a file a derivation of a genuine capture; or adds such a manifest beside a genuine file and its sidecar, to have it accused | a proof in the active manifest is verified exactly as a sidecar; beside a differing sidecar whose outcome is better over the same bytes, the sidecar decides (§3.1 step 4, vectors 169–171); one found up the `parentOf` chain reaches only what it proves of this file — its bytes or located segments — and is otherwise *no proof found* (§3.2); nothing the manifest says is trusted | none: red at depth 0 when nothing better is beside it; a declared derivation is never green unless the proof covers its bytes. A manifest's copy with less evidence than the sidecar can lower a ceiling on a tied outcome, as deleting the evidence would | | Hostile Content Credentials | builds a store to crash, loop or mislead the reader: cycles, deep nesting, oversized lengths, two stores, a proof off the chain, a redacted proof left in place | structure-only reader bounded by its input; a chain walked without revisits to depth 16; no search off the chain; more than one store is none; a redaction listed anywhere is absence (§3.2) | low; hostile-input tests next to vectors 133–142 | | Canonicalization divergence | exploits differences between implementations | integers only, no free text, JCS, conformance vectors every implementation runs | low; vectors grow with every finding | @@ -297,6 +298,9 @@ like, and it is the true one. ## 7. Change log +- 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. - 2026-10-03 — Audit fixes, text only. §1: amber may hide red. §3: the verifier boundary states the offline floor and names the services above it. §5.2: an integrity verdict is bound to the capture and not to the key diff --git a/spec/vcap-proof-1.0.md b/spec/vcap-proof-1.0.md index 83b2ed2..7a82435 100644 --- a/spec/vcap-proof-1.0.md +++ b/spec/vcap-proof-1.0.md @@ -202,7 +202,26 @@ 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). The canonical bytes are the **whole** received file (§4.1 + (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. + 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 proof, and a verifier MUST NOT weaken it or add a label because the proof @@ -224,7 +243,7 @@ A C2PA Manifest Store (C2PA 2.4, 11.1.4.2 *Manifest Store*) can carry the proof as the assertion `io.github.vcap-org.vcap.proof` (`c2pa-interop-1.0.md` §2.1): a platform or an editor that keeps Content Credentials and drops trailing bytes still delivers the proof, and a derivation's store keeps its source's -manifest, proof included. Normative for readers since 1.1 (vectors 123–147). +manifest, proof included. Normative for readers since 1.1 (vectors 123–147, 169–171). A reader authenticates nothing about the store — no COSE signature, no certificate, no hashed URI: the proof authenticates itself (§4.2), and whether the manifest is valid is a C2PA validator's question, answered apart and never @@ -299,7 +318,8 @@ merged into the verdict (`c2pa-interop-1.0.md` §1). - **The verdict.** §4–§8 are unchanged, over the canonical bytes of the received file. - **Depth 0** reads exactly as a sidecar: the manifest presents the proof as - this file's. *Authentic* when the bytes are the sealed ones (vector 124); + this file's. Beside a sidecar that differs, the better outcome of the + two decides (§3.1, step 4). *Authentic* when the bytes are the sealed ones (vector 124); *verified clip*, *frames not compared* or *tampered* under §5 for a video (vector 146); *tampered* for a photo that is not the one sealed (vector 128). @@ -1885,7 +1905,9 @@ 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. `proof_source` and `frames_name_capture` (§3.2) are +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 diagnostics and never labels. **The rule that outranks the table.** A watermark match with no valid signature is @@ -1981,7 +2003,7 @@ says. video — confirmed against C2PA 2.4 (`c2pa-interop-1.0.md` §3, vectors 68 and 73): `c2pa.hash.data` covers to end of file, `c2pa.hash.bmff.v3` needs `/free` excluded; executed with a real claim generator (c2pa-rs - 0.91) and a test signing credential in vectors 123–147, whose C2PA + 0.91) and a test signing credential in vectors 123–147 and 169–171, whose C2PA results `expected.json` records. The on-device check waits for a signing certificate of our own - [ ] `REVIEW (BE)` a C2PA update manifest appended to a sealed ISO-BMFF file @@ -1993,6 +2015,14 @@ says. the original store's `box_purpose` from `manifest` into `original` in place (C2PA A.5.3), inside `media.hash` (`c2pa-interop-1.0.md` §6) - [ ] `REVIEW (mobile)` per-segment signing cost in StrongBox on a long clip +- [ ] `REVIEW (BE)` a clip's timing is not bound: `stts`, `ctts`, the `mdhd` + timescales, the media edit's duration and the audio sample entry are + outside every segment hash and outside `media.presentation`, so a + re-mux can freeze, re-time or reorder the frames of a clip that still + reads *verified clip* (an original is covered by `media.hash`). No + verifier-only rule closes it; a proposal that signs per-segment timing + without changing the segment message is in + `reviews/design-clip-timing.md` - [~] `REVIEW (mobile)` NAL byte definition and audio DTS rule reproducible on both encoders — the DTS clock is now named (M8) and the timeline with it (edit lists, §5); H.264 and HEVC on Android are reproduced byte for byte by a second implementation written from this text (`tools/src/container.ts`, the containers of vectors 36 and 37, verified under a presentation-bound core in 166 and 158), which is what "reproducible" was asking; on iOS the NAL bytes are reproduced for HEVC in MOV (vector 48's container, 167) and H.264 in MP4 (vector 85's, 168), and the audio DTS rule is not yet exercised: neither clip has an audio track - [x] `REVIEW (mobile)` hashing two interleaved tracks during encoding — resolved: 8 KB and 0.5 ms per segment on a TEE device (M8) - [ ] `REVIEW (mobile)` metadata stripping before sealing for pseudonymous captures @@ -2028,7 +2058,9 @@ says. and Content Credentials as a carrier of the proof (123–147), and **168** by corpus 5.0.0 with device integrity (148–150), the fused position source (151), the verdict hardening and presentation binding - (152–164) and `media.presentation` required (165–168), + (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), 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 diff --git a/tools/src/carrier.ts b/tools/src/carrier.ts index 2487cc0..2967b16 100644 --- a/tools/src/carrier.ts +++ b/tools/src/carrier.ts @@ -213,6 +213,12 @@ export type Extraction = source: ProofSource /** *sidecar differs*, *manifest copy differs*. */ labels: string[] + /** + * §3.1 step 4: a sidecar that differs from a depth-0 proof. Judged too, + * and its verdict stands, with *manifest copy differs*, when its + * outcome ranks above the manifest proof's. + */ + alternate?: { payload: Buffer, source: ProofSource, labels: string[] } } /** @@ -223,7 +229,9 @@ export type Extraction = * 2. a valid footer whose CRC fails: *corrupted proof*, whatever else exists; * 3. `VCAP` with a major ≠ 1: *unsupported format version*; * 4. no footer: the active manifest's proof, then the sidecar, then the first - * proof up the `parentOf` chain. + * proof up the `parentOf` chain. A sidecar that differs from the manifest's + * proof is handed back as the alternate: the manifest is unauthenticated, + * so its proof never outranks a sidecar that does better over these bytes. */ export const extractProof = (file: Buffer, sidecar?: Buffer, externalStore?: Buffer): Extraction => { const trailer = parseTrailer(file) @@ -241,8 +249,12 @@ export const extractProof = (file: Buffer, sidecar?: Buffer, externalStore?: Buf const carrier = carrierOf(file, externalStore) const kind = 'c2pa' as const if (carrier.active) { - const labels = sidecar && !sameProof(sidecar, carrier.active.bytes) ? ['sidecar differs'] : [] - return { kind: 'proof', payload: carrier.active.bytes, media: file, flags: null, source: { kind, manifest: carrier.active.manifest, depth: 0 }, labels } + const differs = sidecar !== undefined && !sameProof(sidecar, carrier.active.bytes) + return { + kind: 'proof', payload: carrier.active.bytes, media: file, flags: null, source: { kind, manifest: carrier.active.manifest, depth: 0 }, + labels: differs ? ['sidecar differs'] : [], + ...(differs ? { alternate: { payload: sidecar, source: { kind: 'sidecar' as const }, labels: ['manifest copy differs'] } } : {}) + } } if (sidecar) return { kind: 'proof', payload: sidecar, media: file, flags: null, source: { kind: 'sidecar' }, labels: [] } if (carrier.ancestor) return { kind: 'proof', payload: carrier.ancestor.bytes, media: file, flags: null, source: { kind, manifest: carrier.ancestor.manifest, depth: carrier.ancestor.depth }, labels: [] } diff --git a/tools/src/make-c2pa-vectors.ts b/tools/src/make-c2pa-vectors.ts index 43c0c40..5eb68ce 100644 --- a/tools/src/make-c2pa-vectors.ts +++ b/tools/src/make-c2pa-vectors.ts @@ -14,6 +14,7 @@ import { type Box, boxes, children, codecOf, find, readContainer, samplesOf } fr import { REDACTION_UUID, TYPE, jumbfGroups } from './jumbf.js' import { PROOF_LABEL, jpegCarriesStore } from './carrier.js' import { signEs256 } from './sign.js' +import { ZERO_LINK, linkOf, segmentMessage } from './segments.js' import { TEST_KEY_PKCS8_BASE64 } from './testkey.js' import { C2PA_TEST_ROOT_PKCS8_BASE64, C2PA_TEST_SIGNER_PKCS8_BASE64 } from './testc2pakey.js' import { loadTrust } from './trust.js' @@ -39,7 +40,7 @@ import { validateProof } from './schema.js' * store. The committed files are the vectors; this script is how they were * made, and it refuses to write one the reference verifier disagrees with. * - * npm run generate:c2pa # rewrite 123–147 + * npm run generate:c2pa # rewrite 123–147 and 169–171 * npm run generate:c2pa -- --mint-ca # re-mint the test CA first * npm run generate:c2pa -- --only 143,144 # rewrite only these; every vector is still checked * @@ -357,6 +358,21 @@ add({ name: '128-jpeg-c2pa-foreign-proof', ext: 'jpg', kind: 'file', file: (awai expected: { outcome: 'tampered', labels: [], not_evaluated: [], core_hash: hashOf(photo), proof_source: src(0, label(128, 1)) }, notes: 'A photo that is not vector 01\'s — one byte of entropy-coded data changed — with a manifest that carries vector 01\'s proof in its **active** manifest. Depth 0 reads like a sidecar (§3.2): the manifest presents the proof as this file\'s, the canonical bytes are not the ones the key sealed, and on a photo that is **tampered** (§8), the verdict of vector 71. The C2PA side is valid — its signer vouches for these bytes, not for the proof inside.' }) +// §3.1 step 4: the manifest is unauthenticated and outside the canonical +// bytes, so anyone can add one carrying somebody else's proof. A sidecar that +// does better over the same bytes is not overruled by it. +{ + // Another capture's proof: a new capture id and the hash of different + // pixels, signed by the test key — genuine, and about another file. + const foreign = resign({ ...photo, capture_id: Buffer.alloc(16, 0x69).toString('base64url'), media: { ...(photo.media as Proof), hash: mediaHash(editPixels(baseJpeg)) } }) + add({ name: '169-jpeg-c2pa-foreign-proof-sidecar', ext: 'jpg', kind: 'file', file: (await c2paSign({ asset: baseJpeg, mime: 'image/jpeg', label: label(169, 1), proof: foreign })).file, sidecar: jcs(photo as Json), proof: photo, + expected: { outcome: 'authentic', labels: [...PHOTO_LABELS, 'manifest copy differs'], not_evaluated: [], core_hash: hashOf(photo), proof_source: { kind: 'sidecar' } }, + notes: 'Vector 01\'s photo with no trailer — the canonical bytes of vector 01 — next to a sidecar holding vector 01\'s proof, and with Content Credentials added by somebody else whose active manifest carries **another capture\'s** proof: a new capture id and the hash of different pixels, validly signed. Anyone can write such a manifest; it sits outside the canonical bytes (§4.1) and nothing authenticates it to a vcap reader.\n\nThe depth-0 proof alone reads *tampered* — its `media.hash` is not these bytes — and before corpus 6.1.0 that was the verdict: the manifest outranked the sidecar and a genuine file next to its genuine proof was accused. §3.1 step 4 now judges both when they differ, and the sidecar\'s verdict stands when its outcome ranks above the manifest proof\'s: **authentic**, vector 01\'s verdict, with *manifest copy differs* and `proof_source` the sidecar. Nothing is gained by it that deleting the manifest would not give. Vector 127 is the other direction: the manifest\'s proof is the good one and the sidecar\'s is ignored; vector 170 is a sidecar that does no better.' }) + add({ name: '170-jpeg-c2pa-foreign-proof-sidecar-no-better', ext: 'jpg', kind: 'file', file: (await c2paSign({ asset: editPixels(baseJpeg), mime: 'image/jpeg', label: label(170, 1), proof: photo })).file, sidecar: jcs(timestamped as Json), proof: photo, + expected: { outcome: 'tampered', labels: [], not_evaluated: [], core_hash: hashOf(photo), proof_source: src(0, label(170, 1)) }, + notes: 'Vector 128 — a photo that is not vector 01\'s, with vector 01\'s proof in its active manifest — next to a sidecar that holds vector 59\'s proof: the same core with a time-stamp token, so it differs from the manifest\'s copy as JCS and binds the same pixels. Both proofs read *tampered* over these bytes. §3.1 step 4 lets a sidecar decide only when its outcome ranks **above** the manifest proof\'s; this one ties, so the depth-0 proof stands, with `proof_source` naming the manifest: **tampered**, vector 128\'s verdict. A red outcome carries no labels, *sidecar differs* included (§8).' }) +} + // A source photo with its proof carried at depth 1, edited by a C2PA-aware // editor that declared the edit. { @@ -551,6 +567,25 @@ const withStore = await c2paSign({ asset: baseJpeg, mime: 'image/jpeg', label: l notes: `Vector 145's clip with one byte of the last GOP's IDR slice data changed (clip byte ${at}), signed by a cutter that opens vector 166 as \`parentOf\` and carries its proof in **its own** manifest, as the clip's: a GOP whose vcap SEI still names the capture and segment 2, and whose bytes are not the ones segment 2 signs. The cutter's manifest is valid — it vouches for the bytes it saw — and declares a trim, not this.\n\nDepth 0 reads like a sidecar (§3.2): §5 applies, a located segment that does not recompute is **tampered**, with segment 1 verified. The corpus's only video case of a tampered proof inside an active C2PA manifest; vector 128 is the JPEG one. Vector 147 is the other side of the rule: at depth ≥ 1 a failure reads *no proof found*, because a proof found up the chain is the source's and is never held against a derivation. ${provenance}` }) } + { + // §3.1 step 4 on a clip: another capture's video proof in the clip's own + // manifest, the genuine proof beside it. The foreign proof is vector + // 166's under a new capture id, its segment chain re-signed for that id, + // so every signature in it holds and no GOP of the clip names it. + const capture = Buffer.alloc(16, 0x71) + let previous: Buffer | null = null + const segments = (deviceProof.segments as Array<{ gop: number, hash: string, sig: string }>).map((seg) => { + const prev = previous ? linkOf(previous) : ZERO_LINK + const message = segmentMessage(capture, seg.gop, Buffer.from(seg.hash, 'base64url'), prev) + previous = message + return { gop: seg.gop, hash: seg.hash, prev: prev.toString('base64url'), sig: signEs256(message, testKey).toString('base64url') } + }) + const foreign = resign({ ...deviceProof, capture_id: capture.toString('base64url'), segments: segments as unknown as Json }) + add({ name: '171-mp4-c2pa-foreign-proof-sidecar', ext: 'mp4', kind: 'container', file: (await c2paSign({ asset: cutClip, mime: 'video/mp4', label: label(171, 1), proof: foreign })).file, sidecar: jcs(deviceProof as Json), proof: deviceProof, + expected: { outcome: 'verified_clip', labels: [...DEVICE_LABELS, 'manifest copy differs'], not_evaluated: [], core_hash: hashOf(deviceProof), segments: { verified: [1, 2] }, proof_source: { kind: 'sidecar' }, frames_name_capture: true }, + notes: `Vector 89's clip of vector 166 — GOP 0 removed, no trailer — next to a sidecar holding vector 166's proof, with a manifest somebody else added whose active manifest carries **another capture's** video proof: vector 166's core and segment hashes under a new capture id, the core and every segment message re-signed for it. Every signature in that proof holds, and no GOP of the clip names its capture, so on its own it reads *frames not compared* (§5, *Locating segments*) — amber, not an accusation, but a genuine clip reduced to "nothing ties these signatures to these frames" by a manifest anyone can write.\n\n§3.1 step 4 judges both: the sidecar's proof locates GOPs 1 and 2 and recomputes them, **verified clip**, 1 and 2 of 3 — vector 89's verdict — which ranks above *frames not compared*, so it stands, with *manifest copy differs* and \`proof_source\` the sidecar. ${provenance}` }) + } + add({ name: '147-mp4-c2pa-clip-reencoded', ext: 'mp4', kind: 'container', file: await clipOf(147, baseMp4, ['c2pa.transcoded']), proof: deviceProof, expected: { ...NOT_FOUND, core_hash: hashOf(deviceProof), proof_source: src(1, label(145, 0)), frames_name_capture: false }, notes: `What a re-encoding editor leaves: new frames with no vcap SEI (the two-frame MP4 of \`_media/\` stands in for them), signed with a manifest that opens vector 166's capture as \`parentOf\` and records \`c2pa.transcoded\`. The proof is found at depth 1 and is well formed; no GOP names the capture (\`frames_name_capture\` false) and \`media.hash\` does not match. §5 alone would say *frames not compared*; at depth ≥ 1 that becomes **no proof found**, reason *Content Credentials carry the proof of a source capture* (§3.2) — never *tampered*. A detector may still add *origin traced* from the watermark. ${provenance}` }) diff --git a/tools/src/verify.ts b/tools/src/verify.ts index 96615e8..ad1c20b 100644 --- a/tools/src/verify.ts +++ b/tools/src/verify.ts @@ -204,6 +204,17 @@ export const verifyFile = (input: FileInput): Verdict => { const located: { frames?: boolean } = {} const verdict = { ...judge(extracted.payload, extracted.media, extracted.flags, [...extracted.labels], input, located), proof_source: extracted.source } if (located.frames !== undefined) verdict.frames_name_capture = located.frames + // §3.1 step 4: a manifest is unauthenticated — anyone can add one outside + // the canonical bytes — so a depth-0 proof that does worse over these bytes + // than a differing sidecar never decides the verdict. Whatever the sidecar + // wins here, deleting the manifest would win too; ties keep the manifest's. + if (extracted.alternate) { + const alt = extracted.alternate + const altLocated: { frames?: boolean } = {} + const other = { ...judge(alt.payload, extracted.media, null, [...alt.labels], input, altLocated), proof_source: alt.source } + if (altLocated.frames !== undefined) other.frames_name_capture = altLocated.frames + if (OUTCOME_RANK[other.outcome] > OUTCOME_RANK[verdict.outcome]) return other + } // §3.2: a proof found up the `parentOf` chain is the proof of a source // capture, and the file in hand is a derivation its Content Credentials // declare. It can reach what the source's proof proves of it — the same @@ -220,6 +231,16 @@ export const verifyFile = (input: FileInput): Verdict => { return verdict } +/** + * §3.1 step 4: how much an outcome says about the received bytes, for + * choosing between a depth-0 proof and a differing sidecar. Every other + * outcome — red, no proof, unsupported — ranks 0. + */ +const OUTCOME_RANK: Record = { + authentic: 3, verified_clip: 2, frames_not_compared: 1, + tampered: 0, corrupted_proof: 0, nested_proof: 0, no_proof_found: 0, unsupported_format_version: 0 +} + /** §3.2: what a reader is told when a carried proof is about a source capture. */ export const SOURCE_CAPTURE = 'Content Credentials carry the proof of a source capture' diff --git a/vectors/169-jpeg-c2pa-foreign-proof-sidecar/NOTES.md b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/NOTES.md new file mode 100644 index 0000000..fbd8339 --- /dev/null +++ b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/NOTES.md @@ -0,0 +1,12 @@ +# 169-jpeg-c2pa-foreign-proof-sidecar + +Vector 01's photo with no trailer — the canonical bytes of vector 01 — next to a sidecar holding vector 01's proof, and with Content Credentials added by somebody else whose active manifest carries **another capture's** proof: a new capture id and the hash of different pixels, validly signed. Anyone can write such a manifest; it sits outside the canonical bytes (§4.1) and nothing authenticates it to a vcap reader. + +The depth-0 proof alone reads *tampered* — its `media.hash` is not these bytes — and before corpus 6.1.0 that was the verdict: the manifest outranked the sidecar and a genuine file next to its genuine proof was accused. §3.1 step 4 now judges both when they differ, and the sidecar's verdict stands when its outcome ranks above the manifest proof's: **authentic**, vector 01's verdict, with *manifest copy differs* and `proof_source` the sidecar. Nothing is gained by it that deleting the manifest would not give. Vector 127 is the other direction: the manifest's proof is the good one and the sidecar's is ignored; vector 170 is a sidecar that does no better. + +## C2PA + +- `expected.json` `c2pa`: what c2pa-rs 0.91.0 (c2pa-node 0.9.8), trust anchor _trust/c2pa-test/root.pem reports. Informative: no vcap verdict reads it. +- c2patool 0.27.16 (trust anchor `_trust/c2pa-test/root.pem`): **Trusted**; success: `assertion.dataHash.match`, `assertion.hashedURI.match`, `claimSignature.insideValidity`, `claimSignature.validated`, `signingCredential.trusted`; informational: none; failure: none. + +Minted by `tools/src/make-c2pa-vectors.ts` with the test key in `tools/src/testkey.ts` and the C2PA test signer in `vectors/_trust/c2pa-test/`. Committed, not regenerated: c2pa-rs salts every assertion at random (`vectors/README.md`). diff --git a/vectors/169-jpeg-c2pa-foreign-proof-sidecar/expected.json b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/expected.json new file mode 100644 index 0000000..ef4d718 --- /dev/null +++ b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/expected.json @@ -0,0 +1,39 @@ +{ + "kind": "file", + "outcome": "authentic", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "location declared only", + "manifest copy differs", + "no trusted time", + "not anchored", + "origin not hardware-attested", + "watermark not evaluated" + ], + "not_evaluated": [], + "core_hash": "dc59127e528a04d6e285de3abe748559e49c7f1ef66b238092a6b13afeeb5119", + "proof_source": { + "kind": "sidecar" + }, + "schema_valid": true, + "writer": { + "expect": "not_covered", + "reason": "the proof travels in a C2PA manifest, which no vcap writer produces" + }, + "c2pa": { + "validator": "c2pa-rs 0.91.0 (c2pa-node 0.9.8), trust anchor _trust/c2pa-test/root.pem", + "validation_state": "Trusted", + "success": [ + "assertion.dataHash.match", + "assertion.hashedURI.match", + "claimSignature.insideValidity", + "claimSignature.validated", + "signingCredential.trusted" + ], + "informational": [ + "signingCredential.ocsp.skipped" + ], + "failure": [] + } +} diff --git a/vectors/169-jpeg-c2pa-foreign-proof-sidecar/input.jpg b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/input.jpg new file mode 100644 index 0000000..21cac5d Binary files /dev/null and b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/input.jpg differ diff --git a/vectors/169-jpeg-c2pa-foreign-proof-sidecar/input.jpg.vcap b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/input.jpg.vcap new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/input.jpg.vcap @@ -0,0 +1 @@ +{"capture_id":"ABEiM0RVZneImaq7zN3u_w","device":{"key_id":"4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM","platform":"android","secure_hw":"tee"},"location":{"acc_cm":1250,"evidence":[],"lat_udeg":45464664,"level":"declared","lon_udeg":9188540},"media":{"h":16,"hash":"OAbzVz4A9m1LqjF---miCdM2Bap6wRuTWbiuW41LzRA","mime":"image/jpeg","w":16},"policy":{"pseudonymous":false},"sig":{"alg":"ES256","pub":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA","value":"qpjuFIpPNSSzyGyo1b0EFM9MdTrtruCI4myP_1RfueUcAGuOsfS78kzwJf1tUoYAz-6JzZwRuDlAYLLWrR6v9g"},"time":{"device_clock":1757332800000},"v":"vcap/1.0","watermark":{"algo":"videoseal","ecc":"bch-255-131","layout":"photo-bch-v3","payload_bits":128,"strength":8}} \ No newline at end of file diff --git a/vectors/169-jpeg-c2pa-foreign-proof-sidecar/proof.json b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/169-jpeg-c2pa-foreign-proof-sidecar/proof.json @@ -0,0 +1,40 @@ +{ + "v": "vcap/1.0", + "capture_id": "ABEiM0RVZneImaq7zN3u_w", + "media": { + "mime": "image/jpeg", + "w": 16, + "h": 16, + "hash": "OAbzVz4A9m1LqjF---miCdM2Bap6wRuTWbiuW41LzRA" + }, + "device": { + "platform": "android", + "secure_hw": "tee", + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM" + }, + "watermark": { + "algo": "videoseal", + "layout": "photo-bch-v3", + "payload_bits": 128, + "ecc": "bch-255-131", + "strength": 8 + }, + "time": { + "device_clock": 1757332800000 + }, + "location": { + "level": "declared", + "lat_udeg": 45464664, + "lon_udeg": 9188540, + "acc_cm": 1250, + "evidence": [] + }, + "policy": { + "pseudonymous": false + }, + "sig": { + "alg": "ES256", + "value": "qpjuFIpPNSSzyGyo1b0EFM9MdTrtruCI4myP_1RfueUcAGuOsfS78kzwJf1tUoYAz-6JzZwRuDlAYLLWrR6v9g", + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA" + } +} diff --git a/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/NOTES.md b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/NOTES.md new file mode 100644 index 0000000..004c818 --- /dev/null +++ b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/NOTES.md @@ -0,0 +1,10 @@ +# 170-jpeg-c2pa-foreign-proof-sidecar-no-better + +Vector 128 — a photo that is not vector 01's, with vector 01's proof in its active manifest — next to a sidecar that holds vector 59's proof: the same core with a time-stamp token, so it differs from the manifest's copy as JCS and binds the same pixels. Both proofs read *tampered* over these bytes. §3.1 step 4 lets a sidecar decide only when its outcome ranks **above** the manifest proof's; this one ties, so the depth-0 proof stands, with `proof_source` naming the manifest: **tampered**, vector 128's verdict. A red outcome carries no labels, *sidecar differs* included (§8). + +## C2PA + +- `expected.json` `c2pa`: what c2pa-rs 0.91.0 (c2pa-node 0.9.8), trust anchor _trust/c2pa-test/root.pem reports. Informative: no vcap verdict reads it. +- c2patool 0.27.16 (trust anchor `_trust/c2pa-test/root.pem`): **Trusted**; success: `assertion.dataHash.match`, `assertion.hashedURI.match`, `claimSignature.insideValidity`, `claimSignature.validated`, `signingCredential.trusted`; informational: none; failure: none. + +Minted by `tools/src/make-c2pa-vectors.ts` with the test key in `tools/src/testkey.ts` and the C2PA test signer in `vectors/_trust/c2pa-test/`. Committed, not regenerated: c2pa-rs salts every assertion at random (`vectors/README.md`). diff --git a/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/expected.json b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/expected.json new file mode 100644 index 0000000..cc4ea68 --- /dev/null +++ b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/expected.json @@ -0,0 +1,32 @@ +{ + "kind": "file", + "outcome": "tampered", + "labels": [], + "not_evaluated": [], + "core_hash": "dc59127e528a04d6e285de3abe748559e49c7f1ef66b238092a6b13afeeb5119", + "proof_source": { + "kind": "c2pa", + "manifest": "urn:c2pa:76636170-0000-4000-8000-000001700001", + "depth": 0 + }, + "schema_valid": true, + "writer": { + "expect": "not_covered", + "reason": "the proof travels in a C2PA manifest, which no vcap writer produces" + }, + "c2pa": { + "validator": "c2pa-rs 0.91.0 (c2pa-node 0.9.8), trust anchor _trust/c2pa-test/root.pem", + "validation_state": "Trusted", + "success": [ + "assertion.dataHash.match", + "assertion.hashedURI.match", + "claimSignature.insideValidity", + "claimSignature.validated", + "signingCredential.trusted" + ], + "informational": [ + "signingCredential.ocsp.skipped" + ], + "failure": [] + } +} diff --git a/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/input.jpg b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/input.jpg new file mode 100644 index 0000000..f3023f9 Binary files /dev/null and b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/input.jpg differ diff --git a/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/input.jpg.vcap b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/input.jpg.vcap new file mode 100644 index 0000000..1b0f761 --- /dev/null +++ b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/input.jpg.vcap @@ -0,0 +1 @@ +{"capture_id":"ABEiM0RVZneImaq7zN3u_w","device":{"key_id":"4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM","platform":"android","secure_hw":"tee"},"location":{"acc_cm":1250,"evidence":[],"lat_udeg":45464664,"level":"declared","lon_udeg":9188540},"media":{"h":16,"hash":"OAbzVz4A9m1LqjF---miCdM2Bap6wRuTWbiuW41LzRA","mime":"image/jpeg","w":16},"policy":{"pseudonymous":false},"sig":{"alg":"ES256","pub":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA","value":"qpjuFIpPNSSzyGyo1b0EFM9MdTrtruCI4myP_1RfueUcAGuOsfS78kzwJf1tUoYAz-6JzZwRuDlAYLLWrR6v9g"},"time":{"device_clock":1757332800000},"timestamp":{"tsr":"MIIDMQYJKoZIhvcNAQcCoIIDIjCCAx4CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYKKwYBBAGGjR8BATAxMA0GCWCGSAFlAwQCAQUABCDcWRJ-UooE1uKF3jq-dIVZ5Jx_HvZrI4CSprE6_utRGQIJAHlUBYdp1gAyGA8yMDI1MDkwODEyMDEwMFqgggGdMIIBmTCCAR-gAwIBAgIJAPTE3pkCe2mRMAoGCCqGSM49BAMDMCwxFjAUBgNVBAMTDVRlc3QgVFNBIFJvb3QxEjAQBgNVBAoTCXZjYXAgdGVzdDAeFw0yNTA5MDcxMjAwMDBaFw0yNjA5MDgxMjAwMDBaMC4xGDAWBgNVBAMTD1Rlc3QgVFNBIFNpZ25lcjESMBAGA1UEChMJdmNhcCB0ZXN0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEhwal1Q339fP8A2yCtEsm_5_3PGmySe_qOQvXJ7qt4onG0sPo2jPOgVn4rz3AkJQsjiHR7kOKpDvq2-YMpW1YlaMoMCYwDAYDVR0TAQH_BAIwADAWBgNVHSUBAf8EDDAKBggrBgEFBQcDCDAKBggqhkjOPQQDAwNoADBlAjBr9-n3JZly3aETOTXOEyKJOnJZMyUviEfWq-vXL3xYz_4RTDslyjsS4S5dM7TxfAMCMQCxdgdH-IMXky7aeIh0T3FFsxtLk1Ayyom2GVXO7ycG1oLGGcsczo7hNl26Zge8bEUxgfMwgfACAQEwOTAsMRYwFAYDVQQDEw1UZXN0IFRTQSBSb290MRIwEAYDVQQKEwl2Y2FwIHRlc3QCCQD0xN6ZAntpkTANBglghkgBZQMEAgEFAKBNMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAvBgkqhkiG9w0BCQQxIgQgvSz4ZawMLJhVQHrR4xAAKs3pCci2atPsj5rtl5pMHBgwCgYIKoZIzj0EAwIERjBEAiBn7gphQuHqN6PFWF5nfSe8C15DuRJ1H9GjZRf7VNs-VAIgHVTKjRoqlUHY9lRBvAOSu_yo3LrYs15qvLzTRiu80dE"},"v":"vcap/1.0","watermark":{"algo":"videoseal","ecc":"bch-255-131","layout":"photo-bch-v3","payload_bits":128,"strength":8}} \ No newline at end of file diff --git a/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/proof.json b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/170-jpeg-c2pa-foreign-proof-sidecar-no-better/proof.json @@ -0,0 +1,40 @@ +{ + "v": "vcap/1.0", + "capture_id": "ABEiM0RVZneImaq7zN3u_w", + "media": { + "mime": "image/jpeg", + "w": 16, + "h": 16, + "hash": "OAbzVz4A9m1LqjF---miCdM2Bap6wRuTWbiuW41LzRA" + }, + "device": { + "platform": "android", + "secure_hw": "tee", + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM" + }, + "watermark": { + "algo": "videoseal", + "layout": "photo-bch-v3", + "payload_bits": 128, + "ecc": "bch-255-131", + "strength": 8 + }, + "time": { + "device_clock": 1757332800000 + }, + "location": { + "level": "declared", + "lat_udeg": 45464664, + "lon_udeg": 9188540, + "acc_cm": 1250, + "evidence": [] + }, + "policy": { + "pseudonymous": false + }, + "sig": { + "alg": "ES256", + "value": "qpjuFIpPNSSzyGyo1b0EFM9MdTrtruCI4myP_1RfueUcAGuOsfS78kzwJf1tUoYAz-6JzZwRuDlAYLLWrR6v9g", + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA" + } +} diff --git a/vectors/171-mp4-c2pa-foreign-proof-sidecar/NOTES.md b/vectors/171-mp4-c2pa-foreign-proof-sidecar/NOTES.md new file mode 100644 index 0000000..e333f53 --- /dev/null +++ b/vectors/171-mp4-c2pa-foreign-proof-sidecar/NOTES.md @@ -0,0 +1,12 @@ +# 171-mp4-c2pa-foreign-proof-sidecar + +Vector 89's clip of vector 166 — GOP 0 removed, no trailer — next to a sidecar holding vector 166's proof, with a manifest somebody else added whose active manifest carries **another capture's** video proof: vector 166's core and segment hashes under a new capture id, the core and every segment message re-signed for it. Every signature in that proof holds, and no GOP of the clip names its capture, so on its own it reads *frames not compared* (§5, *Locating segments*) — amber, not an accusation, but a genuine clip reduced to "nothing ties these signatures to these frames" by a manifest anyone can write. + +§3.1 step 4 judges both: the sidecar's proof locates GOPs 1 and 2 and recomputes them, **verified clip**, 1 and 2 of 3 — vector 89's verdict — which ranks above *frames not compared*, so it stands, with *manifest copy differs* and `proof_source` the sidecar. The source is vector 166: the container of vector 36's Android capture (Samsung SM-S908B), its NAL units and vcap SEIs the device's, under a core and segment chain re-signed with the test key so that it carries `media.presentation` (corpus 5.0.0); the clip bytes are vector 89's cut of it, under the same core. Rebuilt in corpus 6.0.0: the 5.0.0 files carried vector 36's device proof, which predates the field and read *no proof found*. + +## C2PA + +- `expected.json` `c2pa`: what c2pa-rs 0.91.0 (c2pa-node 0.9.8), trust anchor _trust/c2pa-test/root.pem reports. Informative: no vcap verdict reads it. +- c2patool 0.27.16 (trust anchor `_trust/c2pa-test/root.pem`): **Trusted**; success: `assertion.bmffHash.match`, `assertion.hashedURI.match`, `claimSignature.insideValidity`, `claimSignature.validated`, `signingCredential.trusted`; informational: none; failure: none. + +Minted by `tools/src/make-c2pa-vectors.ts` with the test key in `tools/src/testkey.ts` and the C2PA test signer in `vectors/_trust/c2pa-test/`. Committed, not regenerated: c2pa-rs salts every assertion at random (`vectors/README.md`). diff --git a/vectors/171-mp4-c2pa-foreign-proof-sidecar/expected.json b/vectors/171-mp4-c2pa-foreign-proof-sidecar/expected.json new file mode 100644 index 0000000..12c8935 --- /dev/null +++ b/vectors/171-mp4-c2pa-foreign-proof-sidecar/expected.json @@ -0,0 +1,46 @@ +{ + "kind": "container", + "outcome": "verified_clip", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "manifest copy differs", + "no trusted time", + "no watermark", + "not anchored", + "origin not hardware-attested" + ], + "not_evaluated": [], + "core_hash": "99051d03e77c36e61cf13cd04ca64254667c0d77d45e791c6245446e1c2b928f", + "segments": { + "verified": [ + 1, + 2 + ] + }, + "proof_source": { + "kind": "sidecar" + }, + "frames_name_capture": true, + "schema_valid": true, + "writer": { + "expect": "not_covered", + "reason": "the proof travels in a C2PA manifest, which no vcap writer produces" + }, + "c2pa": { + "validator": "c2pa-rs 0.91.0 (c2pa-node 0.9.8), trust anchor _trust/c2pa-test/root.pem", + "validation_state": "Trusted", + "success": [ + "assertion.bmffHash.match", + "assertion.hashedURI.match", + "claimSignature.insideValidity", + "claimSignature.validated", + "signingCredential.trusted" + ], + "informational": [ + "assertion.bmffHash.additionalExclusionsPresent", + "signingCredential.ocsp.skipped" + ], + "failure": [] + } +} diff --git a/vectors/171-mp4-c2pa-foreign-proof-sidecar/input.mp4 b/vectors/171-mp4-c2pa-foreign-proof-sidecar/input.mp4 new file mode 100644 index 0000000..82d4bea Binary files /dev/null and b/vectors/171-mp4-c2pa-foreign-proof-sidecar/input.mp4 differ diff --git a/vectors/171-mp4-c2pa-foreign-proof-sidecar/input.mp4.vcap b/vectors/171-mp4-c2pa-foreign-proof-sidecar/input.mp4.vcap new file mode 100644 index 0000000..d52b966 --- /dev/null +++ b/vectors/171-mp4-c2pa-foreign-proof-sidecar/input.mp4.vcap @@ -0,0 +1 @@ +{"capture_id":"QVfcJ4u5pNCzyZIz5CuQBA","device":{"key_id":"4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM","platform":"android","secure_hw":"strongbox"},"media":{"duration_ms":3008,"h":360,"hash":"kYOCHtA4GpciHDrL1dmzMttqIVHDT5Ud2bt8Bla05mM","mime":"video/mp4","presentation":{"config":"X-2WMeO0pbphk8OmwNNviddrDdBAoS1ajaPZHJ67Img","display":[41943040,23592960],"matrix":[65536,0,0,0,65536,0,0,0,1073741824]},"segment_count":3,"w":640},"segments":[{"gop":0,"hash":"nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY","prev":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","sig":"sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA"},{"gop":1,"hash":"24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8","prev":"xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc","sig":"0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg"},{"gop":2,"hash":"q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng","prev":"szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20","sig":"cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow"}],"sig":{"alg":"ES256","pub":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA","value":"bLIVLmHfclMqK4Ve6v4Vywu4BO8ulcvl8sPuoYnsOvotexp3HB8YJ9I4od3YRCBRWFQLZCo60McWzLqdHD1_4g"},"time":{"device_clock":1788955035726},"v":"vcap/1.0"} \ No newline at end of file diff --git a/vectors/171-mp4-c2pa-foreign-proof-sidecar/proof.json b/vectors/171-mp4-c2pa-foreign-proof-sidecar/proof.json new file mode 100644 index 0000000..cbe0841 --- /dev/null +++ b/vectors/171-mp4-c2pa-foreign-proof-sidecar/proof.json @@ -0,0 +1,63 @@ +{ + "capture_id": "QVfcJ4u5pNCzyZIz5CuQBA", + "device": { + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM", + "platform": "android", + "secure_hw": "strongbox" + }, + "media": { + "duration_ms": 3008, + "h": 360, + "hash": "kYOCHtA4GpciHDrL1dmzMttqIVHDT5Ud2bt8Bla05mM", + "mime": "video/mp4", + "presentation": { + "config": "X-2WMeO0pbphk8OmwNNviddrDdBAoS1ajaPZHJ67Img", + "display": [ + 41943040, + 23592960 + ], + "matrix": [ + 65536, + 0, + 0, + 0, + 65536, + 0, + 0, + 0, + 1073741824 + ] + }, + "segment_count": 3, + "w": 640 + }, + "segments": [ + { + "gop": 0, + "hash": "nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY", + "prev": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "sig": "sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA" + }, + { + "gop": 1, + "hash": "24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8", + "prev": "xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc", + "sig": "0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg" + }, + { + "gop": 2, + "hash": "q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng", + "prev": "szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20", + "sig": "cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow" + } + ], + "sig": { + "alg": "ES256", + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA", + "value": "bLIVLmHfclMqK4Ve6v4Vywu4BO8ulcvl8sPuoYnsOvotexp3HB8YJ9I4od3YRCBRWFQLZCo60McWzLqdHD1_4g" + }, + "time": { + "device_clock": 1788955035726 + }, + "v": "vcap/1.0" +} diff --git a/vectors/CONFORMANCE.md b/vectors/CONFORMANCE.md index d5ef558..d007684 100644 --- a/vectors/CONFORMANCE.md +++ b/vectors/CONFORMANCE.md @@ -1,6 +1,6 @@ # Claiming conformance with a vcap-spec corpus -This file says what the sentence *"conformant with vcap-spec corpus 6.0.0"* +This file says what the sentence *"conformant with vcap-spec corpus 6.1.0"* has to mean for a consumer to be able to check it, and how to produce the report that backs it. `README.md` next to it describes the vectors themselves; this one is about the claim. @@ -30,7 +30,7 @@ Two corollaries, and they are what a reviewer should check in someone else's runner: - **Pin the count, do not floor it.** `expect(count).toBeGreaterThanOrEqual(30)` - over a corpus of 168 hides the loss of 138 vectors. Compare against + over a corpus of 171 hides the loss of 141 vectors. Compare against `vector_count` in `MANIFEST.json` and fail on inequality — that also catches the corpus that is newer than the runner, which is the useful half. - **A vector you cannot run is declared, not dropped.** A runner that has no @@ -47,11 +47,11 @@ reference verifier, measured against the corpus in the same commit. ```json { "implementation": "acme-verify 3.2 (https://example.invalid/acme-verify)", - "corpus_version": "6.0.0", + "corpus_version": "6.1.0", "manifest_sha256": "…64 hex…", - "vectors_declared": 168, - "vectors_run": 168, - "passed": 168, + "vectors_declared": 171, + "vectors_run": 171, + "passed": 171, "failed": [], "not_run": [] } @@ -64,7 +64,7 @@ them, `level`, `validated_at`, `location`, `proof_source` and `jcs` vectors. `writer` and `c2pa` are not a reader's verdict and are never compared. A runner hands the verifier every input a directory holds — the `.vcap` sidecar, and a `*.c2pa` file as the C2PA store its caller supplies. -A verifier without a C2PA carrier reader declares vectors 123–147 in +A verifier without a C2PA carrier reader declares vectors 123–147 and 169–171 in `not_run`, with that reason. Extra diagnostics a verdict carries are not failures; the vector pins what it pins. @@ -106,5 +106,5 @@ be read and re-implemented rather than imported. arithmetic and `vectors/_watermark/agreement-floor.json` for the 0.85 floor a `video-rep-v1` decoder must not report an id below. - **Not a claim about a newer corpus.** A minor bump adds vectors and a - major one moves some (`README.md`, *Bump policy*), so passing corpus 6.0.0 - says nothing about a later corpus, and everything about 6.0.0's. State the version you ran. + major one moves some (`README.md`, *Bump policy*), so passing corpus 6.1.0 + says nothing about a later corpus, and everything about 6.1.0's. State the version you ran. diff --git a/vectors/MANIFEST.json b/vectors/MANIFEST.json index 03ba3b2..792b4ab 100644 --- a/vectors/MANIFEST.json +++ b/vectors/MANIFEST.json @@ -1,6 +1,6 @@ { - "corpus_version": "6.0.0", - "vector_count": 168, + "corpus_version": "6.1.0", + "vector_count": 171, "vectors": [ { "name": "01-jpeg-sealed", @@ -1175,6 +1175,27 @@ "outcome": "authentic", "sha256": "dfc8861276889a5900e66d552772ecaec96bf641dc798bee82d186c934fac411", "files": 4 + }, + { + "name": "169-jpeg-c2pa-foreign-proof-sidecar", + "kind": "file", + "outcome": "authentic", + "sha256": "350fd2af16681f2c0dd20a444f8e6528809ae0ebb23cd17164a595e6f4b4a8e4", + "files": 5 + }, + { + "name": "170-jpeg-c2pa-foreign-proof-sidecar-no-better", + "kind": "file", + "outcome": "tampered", + "sha256": "60bf22e86d4da6e09d5a0b7fb5cc291ceda2af6611b0fb2af2d9df7b5a5003b4", + "files": 5 + }, + { + "name": "171-mp4-c2pa-foreign-proof-sidecar", + "kind": "container", + "outcome": "verified_clip", + "sha256": "b83b96d7c648f4a668166a10fa210e46517d3fd87f0057e9841c16adc81d2daf", + "files": 5 } ], "fixtures": { diff --git a/vectors/README.md b/vectors/README.md index f22ff76..4398269 100644 --- a/vectors/README.md +++ b/vectors/README.md @@ -40,7 +40,7 @@ and pin `none`. `proof_source` (where the proof was read: `trailer`, `sidecar`, or `c2pa` with the carrying manifest's label and its depth on the `parentOf` chain) and `frames_name_capture` (whether a GOP of the file names the proof's capture) -appear on the carrier vectors (123–147), and are compared where present. +appear on the carrier vectors (123–147, 169–171), and are compared where present. `debug`, where present, is for humans: intermediate bytes to compare before touching signatures. @@ -146,7 +146,7 @@ The numbered corpus (`vectors/NN-*`) has its own version, in `vectors/VERSION` — separate from `vcap/1.0`, the proof format version. The format version says what a proof looks like; the corpus version says which exact vectors an implementation checked itself against, so a third party can claim "conformant -with vcap-spec corpus 6.0.0" and mean something a consumer can check. +with vcap-spec corpus 6.1.0" and mean something a consumer can check. `vectors/MANIFEST.json` is that check: for every `vectors/NN-*` directory, its `kind`, its `outcome`, and a SHA-256 over its files (name and length included, @@ -162,7 +162,7 @@ npm run manifest:check # exits 1 if the committed file is stale — CI runs th ``` `vectors/CONFORMANCE.md` says what the sentence "conformant with corpus -6.0.0" has to contain to be checkable — corpus version, manifest hash, and +6.1.0" has to contain to be checkable — corpus version, manifest hash, and how many vectors actually ran — and why a suite that ran zero vectors must be red. `vectors/conformance-report.json` is this repository's own claim in that format, regenerated and checked by CI (`npm run conformance:report` / @@ -209,7 +209,9 @@ that carries the field — so their bytes moved and their verdicts are the ones their notes describe: 145 *verified clip* (1–2 of 3, depth 1), 146 *tampered* (segment 1 verified, depth 0, the only video case of a tampered proof inside an active C2PA manifest), 147 *no proof found* through *Content Credentials -carry the proof of a source capture*. Nothing else moved. +carry the proof of a source capture*. Nothing else moved. 6.1.0 is a minor +again: 169–171 added (a sidecar is no longer overruled by a depth-0 manifest +proof that does worse over the same bytes, §3.1 step 4), none changed. `vectors/edge-cases/` (below) is not in the manifest and not part of the versioned corpus: it is regenerated on demand by its own tool, not hand-curated @@ -256,7 +258,7 @@ container, and the update-manifest case that fits neither (`spec/c2pa-interop-1.0.md` §3). Vector 122 is §4.1's narrowing in 1.1: a JUMBF box that is not a C2PA store is content. -**The C2PA carrier vectors** (123–147) carry real Content Credentials: +**The C2PA carrier vectors** (123–147, 169–171) carry real Content Credentials: manifests written by c2pa-rs 0.91.0 through `@contentauth/c2pa-node` 0.9.8 and signed by *vcap-spec test CA* (`_trust/c2pa-test/`), a public test credential no trust list carries. They pin `vcap-proof-1.0.md` §3.1–§3.2: where the store diff --git a/vectors/VERSION b/vectors/VERSION index 09b254e..dfda3e0 100644 --- a/vectors/VERSION +++ b/vectors/VERSION @@ -1 +1 @@ -6.0.0 +6.1.0 diff --git a/vectors/conformance-report.json b/vectors/conformance-report.json index bea103a..24a0287 100644 --- a/vectors/conformance-report.json +++ b/vectors/conformance-report.json @@ -1,26 +1,26 @@ { "implementation": "vcap-spec reference verifier (tools/src/verify.ts)", - "corpus_version": "6.0.0", - "manifest_sha256": "6e5946291702a5558da0a6c73a3ecaefdd92201be7e08273c5e7d5cef34436d7", - "vectors_declared": 168, - "vectors_run": 168, - "passed": 168, + "corpus_version": "6.1.0", + "manifest_sha256": "7ff31e1aa784cdd6855ad5b6ed5df075c853784d7f1dc22c5f2636a18ce1605d", + "vectors_declared": 171, + "vectors_run": 171, + "passed": 171, "failed": [], "by_kind": { - "container": 28, - "file": 131, + "container": 29, + "file": 133, "jcs": 2, "segments": 7 }, "by_expected_outcome": { - "authentic": 94, + "authentic": 95, "corrupted_proof": 3, "frames_not_compared": 6, "n/a": 2, "nested_proof": 1, "no_proof_found": 31, - "tampered": 23, + "tampered": 24, "unsupported_format_version": 2, - "verified_clip": 6 + "verified_clip": 7 } }