diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ed7ba0..8b1e095 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,30 @@ else. ## Unreleased +### C2PA video vectors rebuilt over a presentation-bound core — corpus 5.0.0 → **6.0.0** + +**Breaking** for the corpus, not the format: no spec text changes. A major +bump because published vector bytes moved (`vectors/README.md`, *Bump +policy*). Corpus 6.0.0 (168 vectors). + +- **Moved bytes, verdicts restored**: 145, 146 and 147, minted again by + `make-c2pa-vectors.ts --only 145,146,147` from vector 166 — vector 36's + container under the re-signed core that carries `media.presentation` — + instead of 36's device proof, which lacks it. 145 *no proof found* → + **verified clip** (1–2 of 3, proof at depth 1); 146 *no proof found* → + **tampered** (segment 1 verified, proof at depth 0: again the only video + case of a tampered proof inside an active C2PA manifest); 147 stays **no + proof found**, now for its original reason, *Content Credentials carry the + proof of a source capture* (§3.2), with `core_hash` and + `frames_name_capture` back. All three are `schema_valid` true. New salts + (c2pa-rs draws them at random), new notes; the 5.0.0 errata for 145–147 are + replaced by one entry. c2pa-rs's `c2pa` block is unchanged; the notes + record c2patool 0.27.16. + +**What a verifier that predates 6.0.0 does**: a 5.0.0 verifier reads the three +files correctly — the rules did not change — and fails only the pinned +manifest digest; one that predates 5.0.0 fails their `core_hash`. + ### `media.presentation` required — corpus 4.0.0 → **5.0.0** **Breaking.** §5 *Presentation*, §6.1, §8: `media.presentation` is a diff --git a/tools/src/make-c2pa-vectors.ts b/tools/src/make-c2pa-vectors.ts index 50faf2c..43c0c40 100644 --- a/tools/src/make-c2pa-vectors.ts +++ b/tools/src/make-c2pa-vectors.ts @@ -284,7 +284,11 @@ const baseMp4 = readFileSync(join(VECTORS, '_media', 'base.mp4')) const photo = proofOf('01-jpeg-sealed') const sealedJpeg = readVector('01-jpeg-sealed', 'input.jpg') const timestamped = proofOf('59-jpeg-timestamped') -const device = readVector('36-mp4-container-verified', 'input.mp4') +// Vector 166: vector 36's device container under the re-signed core that +// carries media.presentation (corpus 5.0.0). The device proof of 36 predates +// that required field, so a clip of it would read no proof found and test +// nothing else. 89 is the cut of the same container under the same core. +const device = readVector('166-mp4-container-h264-presentation', 'input.mp4') const deviceProof = JSON.parse((parseTrailer(device) as { payload: Buffer }).payload.toString('utf8')) as Proof const cutClip = unsealed(readVector('89-mp4-container-cut-clip', 'input.mp4')) @@ -515,20 +519,19 @@ const withStore = await c2paSign({ asset: baseJpeg, mime: 'image/jpeg', label: l // ---- ISO-BMFF: a clip, and the `parentOf` chain (§3.2) ------------------------- { - // Generation 0: the Android capture of vector 36, sealed, after a C2PA claim - // generator wrote a manifest carrying its proof. On ISO-BMFF that manifest - // sits inside media.hash, so this file itself reads tampered (vector 73) — - // it is an ingredient here, not a vector. + // Generation 0: vector 166 — the Android capture of vector 36 under a core + // that carries media.presentation — after a C2PA claim generator wrote a + // manifest carrying its proof. On ISO-BMFF that manifest sits inside + // media.hash, so this file itself reads tampered (vector 73) — it is an + // ingredient here, not a vector. const g0 = await c2paSign({ asset: device, mime: 'video/mp4', label: label(145, 0), proof: deviceProof }) const clipOf = async (n: number, asset: Buffer, actions: string[], o: { parent?: Buffer, proof?: Proof } = {}): Promise => (await c2paSign({ asset, mime: 'video/mp4', label: label(n, 1), parent: { asset: o.parent ?? g0.file, mime: 'video/mp4' }, actions, proof: o.proof })).file - const provenance = 'The source is the Android capture of vector 36 (Samsung SM-S908B, StrongBox, device signatures untouched); the clip bytes are vector 89\'s cut.' + const provenance = '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*.' add({ name: '145-mp4-c2pa-clip-parent-of', ext: 'mp4', kind: 'container', file: await clipOf(145, cutClip, ['c2pa.trimmed']), proof: deviceProof, - // Corpus 5.0.0: vector 36's proof has no `media.presentation`, a required - // core field (§6.1), so the proof is not well formed wherever it is found. - expected: { ...NOT_FOUND, proof_source: src(1, label(145, 0)) }, schemaValid: false, - notes: `A clip made by a C2PA-aware cutter: vector 89's cut of vector 36 — GOP 0 removed, no re-encoding, the vcap SEIs intact — with no trailer, signed with a manifest that opens the source as \`parentOf\` and records \`c2pa.trimmed\`. The source's manifest (generation 0, ${label(145, 0)}) carries vector 36's proof and travels in the clip's store as its ingredient.\n\nNo footer, no proof at depth 0, no sidecar: the proof is found at depth 1 (§3.2), the nearest ancestor that carries one. Since corpus 5.0.0 that proof is **no proof found** before any GOP is read: vector 36's core predates \`media.presentation\`, which every proof carrying \`segments\` requires (§6.1). ${provenance}` }) + expected: { outcome: 'verified_clip', labels: DEVICE_LABELS, not_evaluated: [], core_hash: hashOf(deviceProof), segments: { verified: [1, 2] }, proof_source: src(1, label(145, 0)), frames_name_capture: true }, + notes: `A clip made by a C2PA-aware cutter: vector 89's cut of vector 166 — GOP 0 removed, no re-encoding, the vcap SEIs intact — with no trailer, signed with a manifest that opens the source as \`parentOf\` and records \`c2pa.trimmed\`. The source's manifest (generation 0, ${label(145, 0)}) carries vector 166's proof and travels in the clip's store as its ingredient.\n\nNo footer, no proof at depth 0, no sidecar: the proof is found at depth 1 (§3.2), the nearest ancestor that carries one. The frames name the capture (\`frames_name_capture\`, a locating hint), GOPs 1 and 2 are located and recompute under §5, the core binds the presentation the clip still has (§5 *Presentation*), and the outcome is **verified clip**, 1 and 2 of 3 — vector 89's verdict, reached without a trailer. ${provenance}` }) { // One byte of the last GOP's IDR slice data changed, then signed by a @@ -544,13 +547,13 @@ const withStore = await c2paSign({ asset: baseJpeg, mime: 'image/jpeg', label: l const at = idr.offset + idr.size - 16 edited[at] = (edited[at] as number) ^ 0x55 add({ name: '146-mp4-c2pa-clip-gop-replaced', ext: 'mp4', kind: 'container', file: await clipOf(146, edited, ['c2pa.trimmed'], { parent: device, proof: deviceProof }), proof: deviceProof, - expected: { ...NOT_FOUND, proof_source: src(0, label(146, 1)) }, schemaValid: false, - 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 36 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\nSince corpus 5.0.0 the outcome is **no proof found**, at depth 0 as anywhere: vector 36's core predates \`media.presentation\`, which every proof carrying \`segments\` requires (§6.1), so the proof is not well formed and no GOP is read. Before, depth 0 read like a sidecar (§5) and the located segment that does not recompute made the file *tampered*, with segment 1 verified. ${provenance}` }) + expected: { outcome: 'tampered', labels: [], not_evaluated: [], core_hash: hashOf(deviceProof), segments: { verified: [1] }, proof_source: src(0, label(146, 1)), frames_name_capture: true }, + 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}` }) } add({ name: '147-mp4-c2pa-clip-reencoded', ext: 'mp4', kind: 'container', file: await clipOf(147, baseMp4, ['c2pa.transcoded']), proof: deviceProof, - expected: { ...NOT_FOUND, proof_source: src(1, label(145, 0)) }, schemaValid: 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 the capture of vector 36 as \`parentOf\` and records \`c2pa.transcoded\`. The proof is found at depth 1, and since corpus 5.0.0 it is **no proof found** before any GOP is read: vector 36's core predates \`media.presentation\`, which every proof carrying \`segments\` requires (§6.1). Before, no GOP named the capture and \`media.hash\` did not match, and at depth ≥ 1 that read *no proof found* too, 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}` }) + 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}` }) } // ---- helpers used above -------------------------------------------------------- diff --git a/vectors/145-mp4-c2pa-clip-parent-of/NOTES.md b/vectors/145-mp4-c2pa-clip-parent-of/NOTES.md index d43688b..2061b6d 100644 --- a/vectors/145-mp4-c2pa-clip-parent-of/NOTES.md +++ b/vectors/145-mp4-c2pa-clip-parent-of/NOTES.md @@ -1,12 +1,12 @@ # 145-mp4-c2pa-clip-parent-of -A clip made by a C2PA-aware cutter: vector 89's cut of vector 36 — GOP 0 removed, no re-encoding, the vcap SEIs intact — with no trailer, signed with a manifest that opens the source as `parentOf` and records `c2pa.trimmed`. The source's manifest (generation 0, urn:c2pa:76636170-0000-4000-8000-000001450000) carries vector 36's proof and travels in the clip's store as its ingredient. +A clip made by a C2PA-aware cutter: vector 89's cut of vector 166 — GOP 0 removed, no re-encoding, the vcap SEIs intact — with no trailer, signed with a manifest that opens the source as `parentOf` and records `c2pa.trimmed`. The source's manifest (generation 0, urn:c2pa:76636170-0000-4000-8000-000001450000) carries vector 166's proof and travels in the clip's store as its ingredient. -No footer, no proof at depth 0, no sidecar: the proof is found at depth 1 (§3.2), the nearest ancestor that carries one. The frames name the capture (`frames_name_capture`, a locating hint), GOPs 1 and 2 are located and recompute under §5, and the outcome is **verified clip**, 1 and 2 of 3 — vector 89's verdict, reached without a trailer. The source is the Android capture of vector 36 (Samsung SM-S908B, StrongBox, device signatures untouched); the clip bytes are vector 89's cut. +No footer, no proof at depth 0, no sidecar: the proof is found at depth 1 (§3.2), the nearest ancestor that carries one. The frames name the capture (`frames_name_capture`, a locating hint), GOPs 1 and 2 are located and recompute under §5, the core binds the presentation the clip still has (§5 *Presentation*), and the outcome is **verified clip**, 1 and 2 of 3 — vector 89's verdict, reached without a trailer. 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.28.0 (trust anchor `_trust/c2pa-test/root.pem`): **Trusted**; success: `assertion.bmffHash.match`, `assertion.hashedURI.match`, `claimSignature.insideValidity`, `claimSignature.validated`, `signingCredential.trusted`; informational: `assertion.bmffHash.additionalExclusionsPresent`, `signingCredential.ocsp.skipped`; failure: none. +- 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/145-mp4-c2pa-clip-parent-of/expected.json b/vectors/145-mp4-c2pa-clip-parent-of/expected.json index 0439a17..afbbc3f 100644 --- a/vectors/145-mp4-c2pa-clip-parent-of/expected.json +++ b/vectors/145-mp4-c2pa-clip-parent-of/expected.json @@ -1,14 +1,29 @@ { "kind": "container", - "outcome": "no_proof_found", - "labels": [], + "outcome": "verified_clip", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "no trusted time", + "no watermark", + "not anchored", + "origin not hardware-attested" + ], "not_evaluated": [], + "core_hash": "99051d03e77c36e61cf13cd04ca64254667c0d77d45e791c6245446e1c2b928f", + "segments": { + "verified": [ + 1, + 2 + ] + }, "proof_source": { "kind": "c2pa", "manifest": "urn:c2pa:76636170-0000-4000-8000-000001450000", "depth": 1 }, - "schema_valid": false, + "frames_name_capture": true, + "schema_valid": true, "writer": { "expect": "not_covered", "reason": "the proof travels in a C2PA manifest, which no vcap writer produces" diff --git a/vectors/145-mp4-c2pa-clip-parent-of/input.mp4 b/vectors/145-mp4-c2pa-clip-parent-of/input.mp4 index 3993d20..ec12780 100644 Binary files a/vectors/145-mp4-c2pa-clip-parent-of/input.mp4 and b/vectors/145-mp4-c2pa-clip-parent-of/input.mp4 differ diff --git a/vectors/145-mp4-c2pa-clip-parent-of/proof.json b/vectors/145-mp4-c2pa-clip-parent-of/proof.json index adaf5ff..cbe0841 100644 --- a/vectors/145-mp4-c2pa-clip-parent-of/proof.json +++ b/vectors/145-mp4-c2pa-clip-parent-of/proof.json @@ -1,7 +1,7 @@ { "capture_id": "QVfcJ4u5pNCzyZIz5CuQBA", "device": { - "key_id": "d5nLJJ7vt3hd8HnX2YsQllHxSfiIEDqJtmaUk3kXs5M", + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM", "platform": "android", "secure_hw": "strongbox" }, @@ -10,6 +10,24 @@ "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 }, @@ -18,25 +36,25 @@ "gop": 0, "hash": "nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY", "prev": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "sig": "33RRgCivH4ZAQ7MrOkqo3GcryWuleCmQFsAMIndrso5Amof5YP0GOm0e6IZTg_o3b1So8ePP_1fewa6s6N9fGg" + "sig": "sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA" }, { "gop": 1, "hash": "24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8", "prev": "xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc", - "sig": "MaHy3Ycs0hhRumb1XzqIsdMbGMFr8OzG-dOZv-5JivhmVGCmIYtT4Nw4p-iaOhJk2bAV9gW47cHny_y4ZtWplQ" + "sig": "0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg" }, { "gop": 2, "hash": "q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng", "prev": "szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20", - "sig": "Rp7Tj4V7RB5pDJOA47Z7Thu10PREQLkkW5OOWG7hUEp6odObwxZxFF28rP3EMRgPgIAaKBELzAUeidTPUQjysA" + "sig": "cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow" } ], "sig": { "alg": "ES256", - "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE0oUSBOZO1OejPJyo9HhhOAfeIf4MMUtuiWBg5vwXKKPtpFBiSnYdLACBVbI51s7IKYnLwPEVlT5NGJASGsyvZA", - "value": "whm4MNiwLyXNAgyZ6Ubj9zEMsly80nwIoyQJlt-VgzcgEWL_MdwwMo58jnvy5fi-ZFroveqx0ZgQvYsxpm4rEA" + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA", + "value": "bLIVLmHfclMqK4Ve6v4Vywu4BO8ulcvl8sPuoYnsOvotexp3HB8YJ9I4od3YRCBRWFQLZCo60McWzLqdHD1_4g" }, "time": { "device_clock": 1788955035726 diff --git a/vectors/146-mp4-c2pa-clip-gop-replaced/NOTES.md b/vectors/146-mp4-c2pa-clip-gop-replaced/NOTES.md index b27eedb..a76a26f 100644 --- a/vectors/146-mp4-c2pa-clip-gop-replaced/NOTES.md +++ b/vectors/146-mp4-c2pa-clip-gop-replaced/NOTES.md @@ -1,12 +1,12 @@ # 146-mp4-c2pa-clip-gop-replaced -Vector 145's clip with one byte of the last GOP's IDR slice data changed (clip byte 148196), signed by a cutter that opens vector 36 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. +Vector 145's clip with one byte of the last GOP's IDR slice data changed (clip byte 148196), 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. -Depth 0 reads like a sidecar (§3.2): §5 applies, a located segment that does not recompute is **tampered**, with segment 1 verified. Vector 147 is the other side of the rule: at depth ≥ 1 the same failure would read *no proof found*, because a proof found up the chain is the source's and is never held against a derivation. The source is the Android capture of vector 36 (Samsung SM-S908B, StrongBox, device signatures untouched); the clip bytes are vector 89's cut. +Depth 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. 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.28.0 (trust anchor `_trust/c2pa-test/root.pem`): **Trusted**; success: `assertion.bmffHash.match`, `assertion.hashedURI.match`, `claimSignature.insideValidity`, `claimSignature.validated`, `signingCredential.trusted`; informational: `assertion.bmffHash.additionalExclusionsPresent`, `signingCredential.ocsp.skipped`; failure: none. +- 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/146-mp4-c2pa-clip-gop-replaced/expected.json b/vectors/146-mp4-c2pa-clip-gop-replaced/expected.json index ceb831f..1041fd3 100644 --- a/vectors/146-mp4-c2pa-clip-gop-replaced/expected.json +++ b/vectors/146-mp4-c2pa-clip-gop-replaced/expected.json @@ -1,14 +1,21 @@ { "kind": "container", - "outcome": "no_proof_found", + "outcome": "tampered", "labels": [], "not_evaluated": [], + "core_hash": "99051d03e77c36e61cf13cd04ca64254667c0d77d45e791c6245446e1c2b928f", + "segments": { + "verified": [ + 1 + ] + }, "proof_source": { "kind": "c2pa", "manifest": "urn:c2pa:76636170-0000-4000-8000-000001460001", "depth": 0 }, - "schema_valid": false, + "frames_name_capture": true, + "schema_valid": true, "writer": { "expect": "not_covered", "reason": "the proof travels in a C2PA manifest, which no vcap writer produces" diff --git a/vectors/146-mp4-c2pa-clip-gop-replaced/input.mp4 b/vectors/146-mp4-c2pa-clip-gop-replaced/input.mp4 index f27a515..154958d 100644 Binary files a/vectors/146-mp4-c2pa-clip-gop-replaced/input.mp4 and b/vectors/146-mp4-c2pa-clip-gop-replaced/input.mp4 differ diff --git a/vectors/146-mp4-c2pa-clip-gop-replaced/proof.json b/vectors/146-mp4-c2pa-clip-gop-replaced/proof.json index adaf5ff..cbe0841 100644 --- a/vectors/146-mp4-c2pa-clip-gop-replaced/proof.json +++ b/vectors/146-mp4-c2pa-clip-gop-replaced/proof.json @@ -1,7 +1,7 @@ { "capture_id": "QVfcJ4u5pNCzyZIz5CuQBA", "device": { - "key_id": "d5nLJJ7vt3hd8HnX2YsQllHxSfiIEDqJtmaUk3kXs5M", + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM", "platform": "android", "secure_hw": "strongbox" }, @@ -10,6 +10,24 @@ "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 }, @@ -18,25 +36,25 @@ "gop": 0, "hash": "nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY", "prev": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "sig": "33RRgCivH4ZAQ7MrOkqo3GcryWuleCmQFsAMIndrso5Amof5YP0GOm0e6IZTg_o3b1So8ePP_1fewa6s6N9fGg" + "sig": "sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA" }, { "gop": 1, "hash": "24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8", "prev": "xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc", - "sig": "MaHy3Ycs0hhRumb1XzqIsdMbGMFr8OzG-dOZv-5JivhmVGCmIYtT4Nw4p-iaOhJk2bAV9gW47cHny_y4ZtWplQ" + "sig": "0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg" }, { "gop": 2, "hash": "q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng", "prev": "szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20", - "sig": "Rp7Tj4V7RB5pDJOA47Z7Thu10PREQLkkW5OOWG7hUEp6odObwxZxFF28rP3EMRgPgIAaKBELzAUeidTPUQjysA" + "sig": "cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow" } ], "sig": { "alg": "ES256", - "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE0oUSBOZO1OejPJyo9HhhOAfeIf4MMUtuiWBg5vwXKKPtpFBiSnYdLACBVbI51s7IKYnLwPEVlT5NGJASGsyvZA", - "value": "whm4MNiwLyXNAgyZ6Ubj9zEMsly80nwIoyQJlt-VgzcgEWL_MdwwMo58jnvy5fi-ZFroveqx0ZgQvYsxpm4rEA" + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA", + "value": "bLIVLmHfclMqK4Ve6v4Vywu4BO8ulcvl8sPuoYnsOvotexp3HB8YJ9I4od3YRCBRWFQLZCo60McWzLqdHD1_4g" }, "time": { "device_clock": 1788955035726 diff --git a/vectors/147-mp4-c2pa-clip-reencoded/NOTES.md b/vectors/147-mp4-c2pa-clip-reencoded/NOTES.md index f2b18ed..daa5d9b 100644 --- a/vectors/147-mp4-c2pa-clip-reencoded/NOTES.md +++ b/vectors/147-mp4-c2pa-clip-reencoded/NOTES.md @@ -1,10 +1,10 @@ # 147-mp4-c2pa-clip-reencoded -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 the capture of vector 36 as `parentOf` and records `c2pa.transcoded`. The proof is found at depth 1; 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. The source is the Android capture of vector 36 (Samsung SM-S908B, StrongBox, device signatures untouched); the clip bytes are vector 89's cut. +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. 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.28.0 (trust anchor `_trust/c2pa-test/root.pem`): **Trusted**; success: `assertion.bmffHash.match`, `assertion.hashedURI.match`, `claimSignature.insideValidity`, `claimSignature.validated`, `signingCredential.trusted`; informational: `assertion.bmffHash.additionalExclusionsPresent`, `signingCredential.ocsp.skipped`; failure: none. +- 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/147-mp4-c2pa-clip-reencoded/expected.json b/vectors/147-mp4-c2pa-clip-reencoded/expected.json index 0439a17..968a09c 100644 --- a/vectors/147-mp4-c2pa-clip-reencoded/expected.json +++ b/vectors/147-mp4-c2pa-clip-reencoded/expected.json @@ -3,12 +3,14 @@ "outcome": "no_proof_found", "labels": [], "not_evaluated": [], + "core_hash": "99051d03e77c36e61cf13cd04ca64254667c0d77d45e791c6245446e1c2b928f", "proof_source": { "kind": "c2pa", "manifest": "urn:c2pa:76636170-0000-4000-8000-000001450000", "depth": 1 }, - "schema_valid": false, + "frames_name_capture": false, + "schema_valid": true, "writer": { "expect": "not_covered", "reason": "the proof travels in a C2PA manifest, which no vcap writer produces" diff --git a/vectors/147-mp4-c2pa-clip-reencoded/input.mp4 b/vectors/147-mp4-c2pa-clip-reencoded/input.mp4 index 475b741..f8d0aef 100644 Binary files a/vectors/147-mp4-c2pa-clip-reencoded/input.mp4 and b/vectors/147-mp4-c2pa-clip-reencoded/input.mp4 differ diff --git a/vectors/147-mp4-c2pa-clip-reencoded/proof.json b/vectors/147-mp4-c2pa-clip-reencoded/proof.json index adaf5ff..cbe0841 100644 --- a/vectors/147-mp4-c2pa-clip-reencoded/proof.json +++ b/vectors/147-mp4-c2pa-clip-reencoded/proof.json @@ -1,7 +1,7 @@ { "capture_id": "QVfcJ4u5pNCzyZIz5CuQBA", "device": { - "key_id": "d5nLJJ7vt3hd8HnX2YsQllHxSfiIEDqJtmaUk3kXs5M", + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM", "platform": "android", "secure_hw": "strongbox" }, @@ -10,6 +10,24 @@ "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 }, @@ -18,25 +36,25 @@ "gop": 0, "hash": "nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY", "prev": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "sig": "33RRgCivH4ZAQ7MrOkqo3GcryWuleCmQFsAMIndrso5Amof5YP0GOm0e6IZTg_o3b1So8ePP_1fewa6s6N9fGg" + "sig": "sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA" }, { "gop": 1, "hash": "24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8", "prev": "xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc", - "sig": "MaHy3Ycs0hhRumb1XzqIsdMbGMFr8OzG-dOZv-5JivhmVGCmIYtT4Nw4p-iaOhJk2bAV9gW47cHny_y4ZtWplQ" + "sig": "0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg" }, { "gop": 2, "hash": "q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng", "prev": "szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20", - "sig": "Rp7Tj4V7RB5pDJOA47Z7Thu10PREQLkkW5OOWG7hUEp6odObwxZxFF28rP3EMRgPgIAaKBELzAUeidTPUQjysA" + "sig": "cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow" } ], "sig": { "alg": "ES256", - "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE0oUSBOZO1OejPJyo9HhhOAfeIf4MMUtuiWBg5vwXKKPtpFBiSnYdLACBVbI51s7IKYnLwPEVlT5NGJASGsyvZA", - "value": "whm4MNiwLyXNAgyZ6Ubj9zEMsly80nwIoyQJlt-VgzcgEWL_MdwwMo58jnvy5fi-ZFroveqx0ZgQvYsxpm4rEA" + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA", + "value": "bLIVLmHfclMqK4Ve6v4Vywu4BO8ulcvl8sPuoYnsOvotexp3HB8YJ9I4od3YRCBRWFQLZCo60McWzLqdHD1_4g" }, "time": { "device_clock": 1788955035726 diff --git a/vectors/CONFORMANCE.md b/vectors/CONFORMANCE.md index 51a432a..badf184 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 5.0.0"* +This file says what the sentence *"conformant with vcap-spec corpus 6.0.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. @@ -47,7 +47,7 @@ reference verifier, measured against the corpus in the same commit. ```json { "implementation": "acme-verify 3.2 (https://example.invalid/acme-verify)", - "corpus_version": "5.0.0", + "corpus_version": "6.0.0", "manifest_sha256": "…64 hex…", "vectors_declared": 168, "vectors_run": 168, @@ -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.** The corpus grows by addition, so - passing corpus 5.0.0 says nothing about the vectors a later corpus adds, and - everything about 5.0.0's. State the version you ran. + passing corpus 6.0.0 says nothing about the vectors a later corpus adds, and + everything about 6.0.0's. State the version you ran. diff --git a/vectors/MANIFEST.json b/vectors/MANIFEST.json index 8d43e28..03ba3b2 100644 --- a/vectors/MANIFEST.json +++ b/vectors/MANIFEST.json @@ -1,5 +1,5 @@ { - "corpus_version": "5.0.0", + "corpus_version": "6.0.0", "vector_count": 168, "vectors": [ { @@ -1011,22 +1011,22 @@ { "name": "145-mp4-c2pa-clip-parent-of", "kind": "container", - "outcome": "no_proof_found", - "sha256": "509e2038c333ecd9bd4f1567783d4b2de2044780bda7ebb9260c6987a3499f60", + "outcome": "verified_clip", + "sha256": "13c443b68eb5a034a4e6ab23867b36bb2224643b7e637efb3344778ee0b89f37", "files": 4 }, { "name": "146-mp4-c2pa-clip-gop-replaced", "kind": "container", - "outcome": "no_proof_found", - "sha256": "b2b48ba4dda3d5226928a900fe6a4a8dca19f8f45dfcdb7ee0a50bceebd5f861", + "outcome": "tampered", + "sha256": "af440e10d4739698fef110c918c132898acac13799eaf8107a9897cd91f247fa", "files": 4 }, { "name": "147-mp4-c2pa-clip-reencoded", "kind": "container", "outcome": "no_proof_found", - "sha256": "29066cc99d06207fab49ede9639cb64325635caf3cc4257bf39d31a57d12d58b", + "sha256": "53c49233901c155e81264d8def9325148c996bd9c11ce5d028787a2e695d9093", "files": 4 }, { diff --git a/vectors/README.md b/vectors/README.md index e015c58..196d1e2 100644 --- a/vectors/README.md +++ b/vectors/README.md @@ -115,7 +115,7 @@ those captures — 38 and 39, 86-94, a stolen proof, a cut clip, reordered and duplicated GOPs, a relabelled SEI — need no device: `npm run generate` derives them from the committed 36 and 37 through `tools/src/remux.ts`, which rewrites sample tables only, and that is what keeps them auditable rather than -asserted. Since corpus 5.0.0 it also re-signs their core and segment chain +asserted. Since the 5.0.0 corpus it also re-signs their core and segment chain with the test key, over the device's capture id and content hashes: the device proofs predate `media.presentation`, a required core field, and read *no proof found*, so an edit under them would test nothing else. 166–168 are @@ -145,7 +145,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 5.0.0" and mean something a consumer can check. +with vcap-spec corpus 6.0.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, @@ -161,7 +161,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 -5.0.0" has to contain to be checkable — corpus version, manifest hash, and +6.0.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` / @@ -201,7 +201,13 @@ derives from 36 and 37 (38, 39, 86–94, 156) moved bytes under a re-signed core, and 89 and 94 went back to *verified clip*; 33 and 34 gained the field, and 143 and 144 were re-sealed over their committed Content Credentials with 33's new proof (their manifests are the same bytes, so their `c2pa` blocks -and notes stand); 165–168 were added. +and notes stand); 165–168 were added. **6.0.0 is major**: 145, 146 and 147 +were minted again from vector 166 — 36's container under the re-signed core +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. `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 @@ -290,8 +296,9 @@ the sidecar, and a `*.c2pa` file as the caller-supplied C2PA store. A vector's bytes never change once it is published, `NOTES.md` included — its digest is in `MANIFEST.json`, and five runners pin that manifest. A major corpus bump is the one exception, and even then only for the vectors a -generator rebuilds; the device captures and the C2PA vectors keep their bytes, -since no run can reproduce them. So a note that turns out to be wrong, or that +generator rebuilds; the device captures keep their bytes, since no run can +reproduce them, and a C2PA vector moves only when a bump needs it to (its salts +are random, so a run never reproduces it either). So a note that turns out to be wrong, or that a major bump overtook, is corrected here, not in place, and `expected.json` carries the verdict in force. @@ -319,31 +326,16 @@ carries the verdict in force. and a reader has to handle it — but the cause belongs to that writer's configuration, not to Apple's encoder. -- **145 · `145-mp4-c2pa-clip-parent-of`** — its note says the outcome is - *verified clip*, 1 and 2 of 3. In the 4.0.0 corpus it was **no proof found** - (`SOURCE_CAPTURE`, `frames_name_capture` true): vector 36's proof bound no - `media.presentation`, so the cut was *frames not compared* (§5 - *Presentation*), and a proof found at depth 1 is never held against the - derivation (§3.2). From 5.0.0 it is still **no proof found**, for an earlier - reason: that proof lacks a required core field (§6.1), so it is not well - formed and no GOP is read — `expected.json` keeps `proof_source` and drops - `core_hash` and `frames_name_capture`, which a proof that is not well formed - does not reach. The C2PA vectors are not regenerated for a note (their salts - are random), so the note stays. - -- **146 · `146-mp4-c2pa-clip-gop-replaced`** — its note says **tampered**, - segment 1 verified. From the 5.0.0 corpus it is **no proof found** at depth - 0, for 145's reason: the proof its manifest carries is vector 36's, which - lacks `media.presentation`. The depth-0 rule the note describes (a proof in - the active manifest reads like a sidecar, §3.2) is unchanged and still - pinned by vector 128, a JPEG; the video case under it waits for a C2PA - run that can re-mint this file over a re-signed core. - -- **147 · `147-mp4-c2pa-clip-reencoded`** — its note reaches **no proof found** - through *Content Credentials carry the proof of a source capture* (§3.2). - The outcome stands; from the 5.0.0 corpus the reason is that vector 36's - proof lacks `media.presentation`, and `expected.json` drops `core_hash` and - `frames_name_capture` for that reason. +- **145, 146, 147 · the C2PA video clips** — in the 5.0.0 corpus they carried + vector 36's device proof, which lacks `media.presentation`, and all three + read **no proof found**, `schema_valid` false; their notes, older than the + field, described the verdicts below. From the 6.0.0 corpus they are minted + again from vector 166 under a core that carries the field, their notes are + new and right as written, and the verdicts are back: 145 **verified clip** + (1–2 of 3, proof at depth 1), 146 **tampered** (segment 1 verified, proof at + depth 0), 147 **no proof found** (*Content Credentials carry the proof of a + source capture*). Their notes record c2patool 0.27.16, which reports no + informational codes on these files; the other C2PA vectors record 0.28.0. - **158 · `158-mp4-presentation-original`** — its note says the sample entry has no `clap`, `pasp` or `colr` box. It has a `colr` (`nclx`), the one diff --git a/vectors/VERSION b/vectors/VERSION index 0062ac9..09b254e 100644 --- a/vectors/VERSION +++ b/vectors/VERSION @@ -1 +1 @@ -5.0.0 +6.0.0 diff --git a/vectors/conformance-report.json b/vectors/conformance-report.json index e5b7819..bea103a 100644 --- a/vectors/conformance-report.json +++ b/vectors/conformance-report.json @@ -1,7 +1,7 @@ { "implementation": "vcap-spec reference verifier (tools/src/verify.ts)", - "corpus_version": "5.0.0", - "manifest_sha256": "288eb0e3516bb31d6ecfef546e360bbaefbdbee67a98fefc607844900bac73ae", + "corpus_version": "6.0.0", + "manifest_sha256": "6e5946291702a5558da0a6c73a3ecaefdd92201be7e08273c5e7d5cef34436d7", "vectors_declared": 168, "vectors_run": 168, "passed": 168, @@ -18,9 +18,9 @@ "frames_not_compared": 6, "n/a": 2, "nested_proof": 1, - "no_proof_found": 33, - "tampered": 22, + "no_proof_found": 31, + "tampered": 23, "unsupported_format_version": 2, - "verified_clip": 5 + "verified_clip": 6 } }