diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c57646..8d6a327 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,79 @@ else. ## Unreleased +### An unreadable footer no longer accuses a file with a genuine sidecar; `attestation_status` is domain-separated — corpus 7.0.0 → **8.0.0** + +**Breaking**, twice: a reading rule changed and vector 72 moved its verdict, +and a signed message changed and 25 vectors were re-signed. Decided +5 October 2026. Corpus 8.0.0 (193 vectors). + +**§3.1, *A sidecar that does better than an unreadable footer*.** Before: a +footer whose last 16 bytes carry the `VCAP` magic and that a reader cannot +use decided the verdict whatever sat beside it — *corrupted proof* when the +CRC failed (step 2), *unsupported format version* when the major was not 1 +(step 3), and step 4 over the whole file, footer included, when its size +described no trailer. Anyone could append such a footer to a +trailer-stripped genuine file and have it read broken beside its genuine +sidecar: the open item 6.2.0 left. Now, when a sidecar is present, a +verifier also judges it over `F'`, the file without the **unreadable +trailer**: + +- `T = 8 + payload_len + 16`, `payload_len` read at its v1 position whatever + the major, summed without overflow; +- if `T ≤ len(F)` and the 8 bytes at `len(F) − T` are `box_size == T` and + `"free"`, the unreadable trailer is the last `T` bytes; otherwise it is the + last 16 bytes only; +- `F'` is judged whole, as step 4 judges a sidecar, and nothing further is + read: one trailer is removed, never two (vector 193). + +The outcomes rank as in 6.2.0 (*authentic* > *verified clip* > *frames not +compared* > the rest). The sidecar's verdict decides only when it ranks +strictly above the footer's — and carries the new label **trailer +unreadable** and `proof_source` `sidecar`; without a sidecar, or on a tie, +the footer's verdict stands. *Authentic* still needs `media.hash` to match +what remains, so a declared span cannot upgrade forged bytes; the box header +is required so that nothing a player presents is removed. Existing labels +are unchanged. A C2PA store beside a broken footer is not a sidecar and +gains nothing (vector 126). `threat-model.md` §5.1 *Accusing broken footer* +closes the open item; `c2pa-interop-1.0.md` §5 gains the row. + +**§6.2, `attestation_status`.** The registry signs +`"vcap/1.0/attestation-status" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE +fetched_at`: 27 ASCII bytes, no terminator and no length prefix, as +`"vcap/1.0/sth"`, `"vcap/1.0/status"`, `"vcap/1.0/integrity"` and +`"vcap/1.0/location"` are. The known inconsistency recorded in the +3 October audit is closed; `threat-model.md` §5.3 gains *Cross-message +signature*. Reference: `attestationStatusMessage` in `tools/src/registry.ts`. + +- **Moved bytes, re-signed, verdicts unchanged**: 44, 45, 49–54, 96–102, + 106, 107, 109, 148, 149, 152, 154, 155, 157 and 164 — every vector carrying + `attestation_status`, its snapshot re-signed with the test log key over the + new message (`npm run generate`). Cores, timestamp tokens and media are + unchanged. +- **Moved verdict**: 72 (vector 06's CRC-broken trailer, intact sidecar), + *corrupted proof* → *authentic* with *trailer unreadable*, source sidecar. +- **New**: 188 (vector 05's photo, another capture's trailer with its CRC + broken, vector 01's proof as sidecar → *authentic*, *trailer + unreadable*), 189 (vector 173 with that footer's CRC broken → *verified + clip* 1–2 of 3, *trailer unreadable*), 190 (a major-2 trailer with another + capture's proof → *authentic*, *trailer unreadable*), 191 (vector 07's + sixteen bytes, whose declared span holds no box header: only the footer + is removed → *authentic*, *trailer unreadable*), 192 (vector 11's edited + pixels, CRC broken, vector 01's sidecar: a tie → *corrupted proof*), 193 + (vector 01 sealed, a CRC-broken trailer appended after its own, vector + 01's sidecar: one trailer removed, *tampered*, a tie → *corrupted + proof*). Without a sidecar nothing moved: 06, 07, 08, 115, 118 and 126 + keep their verdicts. + +**What a verifier that predates 8.0.0 does** (measured with the 7.0.0 +reference verifier): it rebuilds the status message without the separator, +so no snapshot verifies and every re-signed vector reads *chain revocation +not checked* in place of its snapshot's answer: 44, 96, 97 and 164 go from +red (*attestation key revoked*) to amber, 100 from green to amber, 45 loses +*attestation key revoked after the capture*, and the rest keep their ceiling +with the extra label. It reads 72, 188 and 189 *corrupted proof*, 190 +*unsupported format version* and 191 *tampered*; 192 and 193 pass. + ### A clip's timing is bound — corpus 6.2.0 → **7.0.0** **Breaking.** §5 *Timing* (new), §5 *Presentation*, §6.1, §7, §8: a video diff --git a/schema/vcap-proof-1.0.schema.json b/schema/vcap-proof-1.0.schema.json index a8114a1..21a79c9 100644 --- a/schema/vcap-proof-1.0.schema.json +++ b/schema/vcap-proof-1.0.schema.json @@ -573,7 +573,8 @@ } }, "sig": { - "$ref": "#/$defs/p1363" + "$ref": "#/$defs/p1363", + "description": "registry key ES256 over \"vcap/1.0/attestation-status\" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE fetched_at" } } }, diff --git a/spec/c2pa-interop-1.0.md b/spec/c2pa-interop-1.0.md index d646921..454ef92 100644 --- a/spec/c2pa-interop-1.0.md +++ b/spec/c2pa-interop-1.0.md @@ -451,6 +451,7 @@ canonical bytes. | Trailer stripped, bytes otherwise intact (a tool that truncates at EOI or drops trailing boxes) | lost | kept | kept, no proof in it | kept | *no proof found* | **full verdict restored**, identical to the embedded one | 05, 17 | | The same, with Content Credentials that carry the proof | lost | kept | kept | kept | **full verdict restored** from the active manifest (`vcap-proof-1.0.md` §3.2, depth 0) | the same: the manifest's copy outranks the sidecar, which *differs* if it is not the same proof — unless the sidecar's outcome is better over these bytes, when the sidecar decides and the manifest's copy *differs* | 124, 127, 169–171 | | Trailer stripped, another capture's valid trailer appended | replaced | kept | kept | kept | the appended proof's verdict: *tampered* on a photo, *frames not compared* on a video | **restored** from the sidecar when its outcome is better, with *trailer copy differs*; on a tie the appended trailer stands | 172–174 | +| Trailer stripped, a footer that cannot be read appended (CRC failing, another major, a size that describes no trailer) | replaced | kept | kept | kept | *corrupted proof*, *unsupported format version* or *no proof found* | **restored** from the sidecar, judged over the file without the unreadable trailer, when its outcome is better, with *trailer unreadable*; on a tie the footer's verdict stands | 72, 188–193 | | C2PA manifest added, replaced or removed on a JPEG | kept | kept | changed | kept | unchanged | unchanged | 02, 68 | | C2PA manifest inserted into a sealed BMFF file | kept | kept | added | kept | *tampered* (§4.1: inside the canonical bytes) | *tampered* | 73 | | C2PA update manifest appended to a sealed BMFF file | unreachable | kept | changed | kept | *no proof found* | *tampered* (whole file hashed) | 69, 70 | @@ -466,9 +467,10 @@ canonical bytes. Reading the table: - **A sidecar restores exactly one thing**: the proof, when the container - lost it and nothing else changed. Row 2 is the only one where the two - verdict columns differ in the sidecar's favour, and it is the case §3.1 - exists for. In every other row the canonical bytes changed, and a sidecar + lost it and nothing else changed. Row 2 is that case, and §3.1 exists for + it; the appended-trailer and unreadable-footer rows are the same case with + something added after the canonical bytes, which the sidecar is judged + without. In every row where the canonical bytes changed, a sidecar turns *no proof found* into *tampered* — a stronger statement, and an honest one: the signature is valid and these are not the bytes it vouches for. A verifier MUST NOT soften that into "probably the same picture"; the @@ -492,7 +494,7 @@ Reading the table: - **What the verifier must say**, in §8's words, per outcome: *no proof found* is not an error and is never *corrupted*; *tampered* carries its reason and no absence labels; *verified clip* names the segments verified - out of `segment_count`; *sidecar differs*, *trailer copy differs*, *manifest copy differs* and + out of `segment_count`; *sidecar differs*, *trailer copy differs*, *trailer unreadable*, *manifest copy differs* and *flags disagree* are warnings on an otherwise valid verdict; a detector result is *watermark matched*, *watermark not recovered* or *watermark not evaluated*, and a match without a valid signature is *origin traced*. diff --git a/spec/threat-model.md b/spec/threat-model.md index 16cb607..2d38caf 100644 --- a/spec/threat-model.md +++ b/spec/threat-model.md @@ -129,7 +129,8 @@ Boundaries, each enforced by code and tested: | Timeline edit | re-muxes a genuine video with an edit list that trims, repeats or reorders what a player shows, every sample untouched | an edit list with more than one edit after the leading delay, or a rate change, is a timeline §5 does not model: no segment is located (§5, vector 156) | none: *frames not compared*, never *verified clip*; an original is covered whole by `media.hash` | | Clip re-timed | re-muxes a genuine clip keeping every sample and the single-edit timeline, and changes sample durations (`stts`), composition offsets (`ctts`), the `mdhd` timescales, the media edit's extent or the audio sample rate: a frame frozen, a passage slowed, the whole clip sped up in sync, frames reordered within a GOP, part of a segment hidden | each `segments[]` entry carries the hash of its segment's timing record, bound by `media.timing.root` in the signed core; a verifier reads each located segment's record back, converts it to the signed timescales exactly, and refuses a media edit that trims inside a located segment; the audio `esds` is part of `media.presentation` (`vcap-proof-1.0.md` §5 *Timing*, vectors 179–186) | none: *frames not compared* with *timing differs* (*presentation differs* for the sample rate), never *verified clip*; a forged entry hash is *tampered* (vector 177). Accepted: the audio–video offset is bound only to within one audio frame (the assignment rule's slack), and a media edit that runs past the end of the media — what a player shows there is not defined — is not bound. An original is covered by `media.hash` | | Proof transplant | moves a genuine trailer or sidecar onto another file | `media.hash` mismatch; on video, a signed segment counts only where a GOP of the received file names it and recomputes (§5, *Locating segments*) | none: red on a photo; *frames not compared* on a video whose GOPs name no segment of the proof, never *verified clip* | -| Accusing trailer | strips a genuine file's trailer and appends another capture's valid trailer (CRC correct) beside the genuine sidecar, to have the file accused | beside a differing sidecar whose outcome is better over the same bytes, the sidecar decides, with *trailer copy differs* (`vcap-proof-1.0.md` §3.1, *A sidecar that does better*, vectors 172–173); ties keep the trailer (vector 174) | none with the sidecar present: the file reads as the sidecar says. Without it the appended proof decides, as it would on any file. **Open**: a footer whose CRC fails, or whose major is not 1, appended the same way still reads *corrupted proof* or *unsupported format version* whatever the sidecar says (§3.1 steps 2–3) | +| Accusing trailer | strips a genuine file's trailer and appends another capture's valid trailer (CRC correct) beside the genuine sidecar, to have the file accused | beside a differing sidecar whose outcome is better over the same bytes, the sidecar decides, with *trailer copy differs* (`vcap-proof-1.0.md` §3.1, *A sidecar that does better*, vectors 172–173); ties keep the trailer (vector 174) | none with the sidecar present: the file reads as the sidecar says. Without it the appended proof decides, as it would on any file | +| Accusing broken footer | strips a genuine file's trailer and appends a footer a reader cannot use — a trailer whose CRC fails, a footer of another major, sixteen bytes whose size describes no trailer — beside the genuine sidecar, to have the file read *corrupted proof*, *unsupported format version* or *tampered* | beside a sidecar, the sidecar is judged over the file without the unreadable trailer — the `free` box the footer declares when it fits, otherwise the footer alone — and decides when its outcome is better, with *trailer unreadable* (`vcap-proof-1.0.md` §3.1, *A sidecar that does better than an unreadable footer*, vectors 72, 188–191); ties keep the footer's verdict (vectors 192, 193) | none with the sidecar present. A wrong span cannot raise a verdict: what remains must still hash to the signed `media.hash` or recompute a signed segment. Not covered: a broken footer appended after an intact trailer, which is not peeled back (vector 193) | | Clip from a genuine video | cuts segments, keeps the trailer | per-segment chain over messages; `segment_count`; `media.hash` mismatch → *verified clip*, amber, ranges shown | accepted and **labelled**: a clip is a clip, never an original | | Reassembled video | reorders, repeats or relabels genuine GOPs, or inserts a foreign one next to them | every GOP of the file is accounted for in decode order: one vcap SEI naming this capture and a signed segment, indices strictly increasing, each at most once (§5) | none: red | | Audio replacement on a clip | keeps verified frames, swaps sound | audio frames inside the segment hash (§5) | none on originals and clips | @@ -166,6 +167,7 @@ Boundaries, each enforced by code and tested: | Hidden revocation | the log says "valid" for a revoked key | status is signed by the log key over key, time, tree size, status; revocation leaves have inclusion proofs; anyone can check the revocation leaves for a key | low; a lying log signs the lie, which is evidence | | Retroactive revocation abuse | an insider revokes a key retroactively to invalidate inconvenient captures | retroactive only for `compromise`, refused otherwise by the log itself; the leaf is public with its reason | low: visible, attributable | | Log key compromise | attacker signs heads and statuses | key in KMS; rotation with the old key's heads kept; verifiers pin by `log_id` | medium: recovery is a new log id, published | +| Cross-message signature | presents the log key's signature over one message — a tree head, a key status, an `integrity` or `location_corroboration` statement, a revocation snapshot — as a signature over another | every message the log key signs begins with its own ASCII separator: `"vcap/1.0/sth"`, `"vcap/1.0/status"`, `"vcap/1.0/integrity"`, `"vcap/1.0/location"`, `"vcap/1.0/attestation-status"` (`vcap-proof-1.0.md` §6.2) | none. Before corpus 8.0.0 the `attestation_status` message alone had none; it began with a `core_hash` nobody chooses, so it was not exploitable, only the exception the rule should not have | | Registered after capture | a key logged after the fact | `tree_head.timestamp` vs declared time and vs the RFC 3161 token: *registered after the declared capture*, amber | none on the ordering claim | ### 5.4 Against the platforms we rely on diff --git a/spec/vcap-proof-1.0.md b/spec/vcap-proof-1.0.md index 4953583..8d58f93 100644 --- a/spec/vcap-proof-1.0.md +++ b/spec/vcap-proof-1.0.md @@ -189,13 +189,14 @@ restore are in `c2pa-interop-1.0.md` §4 and §5. the copy is not used for anything (vector 125). It is compared with the proof that decides, the sidecar's when the sidecar does. A copy that is not a well-formed proof (§6.1) differs from any other. - 2. **Valid footer, CRC fails** → *corrupted proof*, whatever the sidecar or - a C2PA store says (vectors 72, 126). The sidecar is a fallback for a - trailer that is absent, not a substitute for one that was found and is - broken: somebody edited the file, and showing another copy of the proof - as the file's would hide it. + 2. **Valid footer, CRC fails** → *corrupted proof*, whatever a C2PA store + says (vectors 06, 126) — **unless a sidecar does better without that + trailer** (*A sidecar that does better*, below; vectors 72, 188, 189, + 192, 193). No copy found in the file substitutes for a trailer that was + found and is broken; a sidecar is judged only over the bytes deleting + that trailer would leave, which is what a reader would find without it. 3. **`VCAP` magic, major ≠ 1** → *unsupported format version* (§3, vector - 115), whatever else the file carries. + 115), with the same exception for a sidecar (vector 190). 4. **No valid footer** → the proof is the first of, in this order: the proof in the active manifest of the file's Content Credentials (§3.2, depth 0); the sidecar; the proof of the nearest `parentOf` ancestor that carries @@ -233,6 +234,7 @@ restore are in `c2pa-interop-1.0.md` §4 and §5. sidecar's verdict is the verdict, `proof_source` is `sidecar`, and it carries *trailer copy differs* (step 1, vectors 172, 173) or *manifest copy differs* (step 4, vectors 169, 171) instead of *sidecar differs*. + The same ranking decides against an unreadable footer (next item). - Otherwise → the file's proof stands with *sidecar differs*, as without this rule (vectors 18, 127, 170, 174). @@ -245,10 +247,53 @@ restore are in `c2pa-interop-1.0.md` §4 and §5. the depth-0 proof, as JCS, is no second verdict and changes nothing. Outside the rule, unchanged: a nested trailer (§3) is *nested proof*, a structural verdict no proof of the file is judged for, and deleting the - outer trailer leaves the inner one to step 1; a footer whose CRC fails - (step 2) or whose major is not 1 (step 3) stays *corrupted proof* or - *unsupported format version* whatever the sidecar says — no proof of the - file is judged there, so there is no outcome to rank. + outer trailer leaves the inner one to step 1. +- **A sidecar that does better than an unreadable footer.** The same holds + for a footer a reader cannot use: the last 16 bytes begin with `"VCAP"` + and are not a valid footer whose CRC matches — the CRC fails (step 2), the + major is not 1 (step 3), or the size describes no trailer (§3's structure + fails, which without this rule is step 4 over the whole file). Such a + footer is no more authenticated as the file's than a valid one, and + sixteen bytes appended to a stripped genuine file would otherwise accuse + it beside its genuine sidecar. When a sidecar is present, a verifier also + judges the sidecar over `F'` = `F` without the **unreadable trailer**, + defined exactly: + - let `n` be the footer's `payload_len` (bytes 8–11 of the last 16, read + at its v1 position whatever the major) and `T = 8 + n + 16`, summed + without overflow; + - if `T ≤ len(F)` and the 8 bytes at `len(F) − T` read `box_size == T` + followed by `"free"`, the unreadable trailer is the last `T` bytes; + - otherwise it is the last 16 bytes only. + + `F'` is judged as step 4 judges a sidecar: its canonical bytes are the + whole of `F'` (§4.1 from step 2), whatever `F'` itself ends in — one + trailer is removed and nothing further is read, so a footer appended + after an intact trailer is not peeled back to it (vector 193). The + outcomes rank as above; the sidecar's verdict decides only when it ranks + **strictly above** the verdict that footer earns without this rule + (*corrupted proof*, *unsupported format version*, or step 4's verdict over + the whole file), and then carries *trailer unreadable* (new label) and + `proof_source` `sidecar` (vectors 72, 188–191). The active manifest's copy + in `F'`, if any, is compared with the sidecar as at step 1. Without a + sidecar, or on a tie, the footer's verdict stands unchanged (vectors 06, + 07, 08, 115, 118, 126, 192, 193). + + Why this span and no other. *Authentic* and *verified clip* still need + `media.hash` or a located segment's `content_hash` to match bytes the + sealer signed, so trusting the span a broken footer declares cannot make + forged bytes read genuine: a wrong span removes too much or too little, + what remains is not what the sealer signed, and the sidecar reads no + better than those bytes allow — on a photo *tampered*, a tie, and the + footer's verdict stands. The box + header is required so that what is removed is a `free` box every ISO-BMFF + reader skips, or 16 bytes that are no box at all — never a box a player + presents, which a declared span without that check could reach (vector + 191 is the footer of vector 07, whose declared span holds no box header: + only the footer is removed). The major is set aside because a reader that + does not know it reads nothing as a proof there; it takes the length and + the box header at their v1 positions only to know what to remove. And the + definition gives one candidate, so two implementations compute the same + `F'`. - **Video.** Recomputing §5 content hashes stays optional and, when skipped, declared (*segment content not recomputed*); a sidecar next to a demuxable container is the case §5 has in mind. @@ -380,6 +425,9 @@ Given the received file `F`: 1. **Strip the trailer.** If the last 16 bytes are a valid footer (§3), let `T = 8 + payload_len + 16` and `F' = F[0 : len(F) - T]`. Otherwise `F' = F`. If `F'` itself ends in a valid footer: *nested proof*, stop (§3). + A sidecar beside a footer that cannot be read is judged once more over + `F` without that footer's trailer, defined in §3.1 (*A sidecar that does + better than an unreadable footer*). 2. **Container normalization.** The container is decided by the **first bytes of `F'`**, never by `media.mime`: `FF D8` is JPEG, `ftyp` at offset 4 is ISO-BMFF, and anything else is hashed as it is, `C = F'`. The MIME type @@ -1137,7 +1185,7 @@ containing a schema-valid value remain readable under the same rules. | `sig` | core, at capture | — it *is* the authentication | covers `JCS(core)` | | `segments` | core, at capture | each `sig(n)` under `sig.pub`; each entry's `timing` by `media.timing.root` | `capture_id` in every message; `media.timing.root` | | `attestation` | core, at key creation | chain to a pinned Google root / App Attest | leaf SPKI MUST equal `sig.pub` | -| `attestation_status` | sync, while the chain is current | registry key signature over the entries it saw | signature covers `core_hash` | +| `attestation_status` | sync, while the chain is current | registry key signature over `"vcap/1.0/attestation-status" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE fetched_at` | signature covers `core_hash` | | `registry` | sync | inclusion proof against a Signed Tree Head, carried inline | leaf carries `device.key_id` and `sig.pub` | | `timestamp.tsr` | sync | RFC 3161 token, TSA chain, validated offline | `messageImprint = core_hash` | | `anchor` | sync | RFC 6962 path from `SHA-256(0x00 ‖ core_hash)` to the root the chain recorded | leaf = `core_hash` | @@ -1172,14 +1220,17 @@ containing a schema-valid value remain readable under the same rules. revocation date **as the source itself gives it**, and is absent when the source gives none. - `sig`: the registry signing key's ES256 signature, P1363, over - `core_hash ‖ JCS(entries) ‖ uint64 BE fetched_at`. **Known - inconsistency**: this is the one message the registry key signs without - a domain separator — tree heads, key statuses, `integrity` and - `location_corroboration` all begin with a `"vcap/1.0/…"` string. It is not - exploitable as it stands, because every other message begins with ASCII - bytes where this one begins with a SHA-256 output nobody chooses, but it - is the exception the rule should not have. The next breaking change to - the attachments adds a separator here (`CHANGELOG.md`). + `"vcap/1.0/attestation-status" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE + fetched_at`: the 27 ASCII bytes of the separator, no terminator, no + length prefix, as every separator in this document; the 32 raw bytes of + `core_hash`; the JCS bytes of the `entries` array; 8 bytes big-endian. + Every message the registry key signs — tree heads, key statuses, + `integrity`, `location_corroboration` and this one — begins with its own + `"vcap/1.0/…"` string, so no signature over one can be read as another. + Until corpus 8.0.0 this message had no separator; that was not + exploitable, because it began with a SHA-256 output nobody chooses where + every other began with ASCII, but it was the one exception the rule + should not have had (`CHANGELOG.md`). **Which key.** The signing key is the one that signs that log's tree heads, so a verifier needs no key it does not already hold for `registry`. The @@ -2084,10 +2135,13 @@ presented as this file's. **Where the proof came from.** *Sidecar differs*, *trailer copy differs* and *manifest copy differs* (§3.1) are warnings on an otherwise valid verdict: a -second copy of the proof that is not the one used. Neither a trailer nor a -depth-0 proof from Content Credentials makes a verdict red over a differing -sidecar that does better over the same bytes (§3.1, *A sidecar that does -better*). `proof_source` and `frames_name_capture` (§3.2) are +second copy of the proof that is not the one used. *Trailer unreadable* is a +warning too: the file ends in a vcap footer that could not be read — CRC +failing, an unknown major, or a size that describes no trailer — and the +verdict is the sidecar's over the file without it. Neither a trailer, nor an +unreadable footer, nor a depth-0 proof from Content Credentials makes a +verdict red or broken over a sidecar that does better (§3.1, *A sidecar that +does better*). `proof_source` and `frames_name_capture` (§3.2) are diagnostics and never labels. **The rule that outranks the table.** A watermark match with no valid signature is @@ -2246,7 +2300,8 @@ says. in corpus 6.1.0 with a sidecar no longer overruled by a worse depth-0 manifest proof (169–171), and **174** in corpus 6.2.0 with the same rule for a trailer (172–174), and **187** in corpus 7.0.0 - with clip timing bound (175–187), + with clip timing bound (175–187), and **193** in corpus 8.0.0 with + the same rule for an unreadable footer (188–193), 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 45052a1..d044a4f 100644 --- a/tools/src/carrier.ts +++ b/tools/src/carrier.ts @@ -2,7 +2,7 @@ import { type CborValue, CborError, decodeCbor } from './cbor.js' import { type JumbfSuperbox, JumbfError, TYPE, embeddedStores, storeSuperbox, superChildren } from './jumbf.js' import { jcs } from './jcs.js' import { ProofSyntaxError, parseProofJson } from './json.js' -import { parseTrailer } from './trailer.js' +import { parseTrailer, unreadableTrailerStart } from './trailer.js' /** * Content Credentials as a carrier of the proof (`vcap-proof-1.0.md` §3.2, @@ -229,8 +229,10 @@ export type Extraction = * compared byte for byte, the active manifest's copy as JCS. A sidecar * that differs is handed back as the alternate, as in step 4: a trailer * appended to a stripped file is no more authenticated than a manifest; - * 2. a valid footer whose CRC fails: *corrupted proof*, whatever else exists; - * 3. `VCAP` with a major ≠ 1: *unsupported format version*; + * 2. a valid footer whose CRC fails: *corrupted proof* — unless a sidecar + * does better without that trailer (`unreadableAlternate`); + * 3. `VCAP` with a major ≠ 1: *unsupported format version*, with the same + * exception; * 4. no footer: the active manifest's proof, then the sidecar, then the first * proof up the `parentOf` chain. A sidecar that differs from the manifest's * proof is handed back as the alternate: the manifest is unauthenticated, @@ -271,6 +273,30 @@ export const extractProof = (file: Buffer, sidecar?: Buffer, externalStore?: Buf return { kind: 'none', reason: carrier.reason ?? 'no proof in the Content Credentials' } } +/** + * §3.1 *A sidecar that does better*, unreadable footer: the sidecar, to be + * judged over the file without the trailer whose footer this reader cannot + * use (`unreadableTrailerStart`). Its verdict replaces the one the footer + * earns — *corrupted proof*, *unsupported format version*, or step 4 over the + * whole file — only when its outcome ranks strictly above. + * + * One trailer is removed and nothing further is read: the remaining bytes are + * judged whole, as step 4 judges a sidecar, so a footer appended after an + * intact trailer is not peeled back to it. The active manifest's copy, if the + * remaining bytes carry one, is compared with the sidecar as at step 1. + */ +export const unreadableAlternate = ( + file: Buffer, sidecar?: Buffer, externalStore?: Buffer +): { payload: Buffer, media: Buffer, source: ProofSource, labels: string[] } | undefined => { + if (sidecar === undefined) return undefined + const start = unreadableTrailerStart(file) + if (start === null) return undefined + const media = file.subarray(0, start) + const copy = carrierOf(media, externalStore).active + const manifest = copy && !sameProof(copy.bytes, sidecar) ? ['manifest copy differs'] : [] + return { payload: sidecar, media, source: { kind: 'sidecar' }, labels: ['trailer unreadable', ...manifest] } +} + /** * The writer's guard (`c2pa-interop-1.0.md` §2.1): a JPEG that already embeds * a C2PA Manifest Store is not sealed, because the store's `c2pa.hash.data` diff --git a/tools/src/generate.ts b/tools/src/generate.ts index 513515f..6affb72 100644 --- a/tools/src/generate.ts +++ b/tools/src/generate.ts @@ -14,7 +14,7 @@ import { type SegmentEntry, SEPARATOR, ZERO_LINK, linkOf, segmentMessage } from import { signChain, signEs256 } from './sign.js' import { TEST_KEY_PKCS8_BASE64, TEST_OTHER_KEY_PKCS8_BASE64 } from './testkey.js' import { TEST_LOG_KEY_PKCS8_BASE64, TEST_SECOND_LOG_KEY_PKCS8_BASE64 } from './testlogkey.js' -import { type KeyStatusStatement, integrityMessage, keyStatusMessage, leafHash, leafKeyId, nodeHash, treeHeadMessage } from './registry.js' +import { type KeyStatusStatement, attestationStatusMessage, integrityMessage, keyStatusMessage, leafHash, leafKeyId, nodeHash, treeHeadMessage } from './registry.js' import { type ChainRead } from './anchor.js' import { corroborationMessage } from './location.js' import { loadTrust } from './trust.js' @@ -277,6 +277,36 @@ file({ name: '17-jpeg-sidecar-only', ext: 'jpg', file: baseJpeg, sidecar: jcs(jp file({ name: '174-jpeg-trailer-sidecar-no-better', ext: 'jpg', file: seal(editPixels(baseJpeg), jpegProof), sidecar: jcs(other as Json), proof: jpegProof, expected: { outcome: 'tampered', labels: [], not_evaluated: [], core_hash: hashOf(jpegProof), proof_source: { kind: 'trailer' } }, notes: 'Vector 11 — vector 01\'s proof sealed onto a photo whose pixels changed — next to vector 18\'s sidecar: a proof over the same pixels as vector 01 with `device_clock` one millisecond later, so it differs from the trailer byte for byte. Both proofs read *tampered* over these bytes. §3.1 lets a sidecar decide only when its outcome ranks **strictly above** the trailer\'s; this one ties, so the trailer\'s proof stands, with `proof_source` the trailer: **tampered**, vector 11\'s verdict. A red outcome carries no labels, *sidecar differs* included (§8). Vector 170 is the same tie against a manifest\'s proof.' }) + + // §3.1, unreadable footer: a footer this reader cannot use — CRC fails, + // major ≠ 1, a size that describes no trailer — appended to a stripped + // genuine file is no more the file's than a valid one. Beside a sidecar, + // the sidecar is judged over the file without that trailer. + const BROKEN_CRC = { crcOverride: 0xdeadbeef } + const UNREADABLE = 'Before corpus 8.0.0 the footer decided whatever sat next to it, so a genuine file beside its genuine sidecar could be made to read broken by appending sixteen bytes. §3.1 (*A sidecar that does better*, unreadable footer) now judges the sidecar over the file without that trailer — the `free` box the footer declares when it fits in the file, otherwise the footer alone — and lets it decide only when its outcome ranks strictly above the footer\'s verdict. *Authentic* still needs `media.hash` to match the bytes that remain, so trusting the span the footer declares cannot make forged bytes read genuine: a wrong span costs the sidecar its outcome, never the reader the truth.' + file({ name: '188-jpeg-crc-broken-trailer-sidecar', ext: 'jpg', file: seal(baseJpeg, foreign, BROKEN_CRC), sidecar: jcs(jpegProof as Json), proof: jpegProof, + expected: { outcome: 'authentic', labels: [...PHOTO_LABELS, 'trailer unreadable'], not_evaluated: [], core_hash: hashOf(jpegProof), proof_source: { kind: 'sidecar' } }, + notes: 'Vector 172 with the appended trailer\'s CRC broken: vector 05\'s unsealed photo — vector 01 once its trailer is stripped — then another capture\'s proof in a structurally valid `free` box whose footer CRC does not match, next to a sidecar holding vector 01\'s proof. On its own the footer reads *corrupted proof* (vector 06).\n\n' + UNREADABLE + ' Here the declared box is removed, the remaining bytes are vector 05\'s, and the sidecar reads **authentic** — vector 17\'s verdict — with *trailer unreadable* and `proof_source` the sidecar.' }) + + file({ name: '190-jpeg-footer-major-2-sidecar', ext: 'jpg', file: Buffer.concat([baseJpeg, buildTrailer(jcs(foreign as Json), { major: 2 })]), sidecar: jcs(jpegProof as Json), proof: jpegProof, + expected: { outcome: 'authentic', labels: [...PHOTO_LABELS, 'trailer unreadable'], not_evaluated: [], core_hash: hashOf(jpegProof), proof_source: { kind: 'sidecar' } }, + notes: 'Vector 115\'s shape — a trailer whose footer says major 2 — carrying another capture\'s proof, appended to vector 05\'s photo next to a sidecar holding vector 01\'s proof. On its own the footer reads *unsupported format version* (vector 115).\n\n' + UNREADABLE + ' The reader takes `payload_len` and the box header at their v1 positions only to find what to remove; it never reads the payload of a major it does not know as a proof. The `free` box is removed and the sidecar reads **authentic**, with *trailer unreadable*.' }) + + { + const fake = Buffer.alloc(16) + Buffer.from('VCAP').copy(fake, 0); fake[4] = 1; fake.writeUInt32BE(40, 8); fake.writeUInt32BE(0x12345678, 12) + file({ name: '191-jpeg-fake-magic-sidecar', ext: 'jpg', file: Buffer.concat([baseJpeg, fake]), sidecar: jcs(jpegProof as Json), proof: jpegProof, + expected: { outcome: 'authentic', labels: [...PHOTO_LABELS, 'trailer unreadable'], not_evaluated: [], core_hash: hashOf(jpegProof), proof_source: { kind: 'sidecar' } }, + notes: 'Vector 07\'s file — vector 05\'s photo and sixteen bytes that start with `VCAP`, major 1, a `payload_len` of 40 and no box header where it points — next to a sidecar holding vector 01\'s proof. The footer describes no trailer, so §3 finds none and step 4 judges the sidecar over the whole file: *tampered* before corpus 8.0.0, because those sixteen bytes are inside the canonical bytes.\n\n' + UNREADABLE + ' The 64 bytes the footer declares fit in the file but do not begin with a `free` box header of that size, so only the footer is removed — an implementation that removed the declared span anyway would cut into the photo and read *tampered*. The rest is vector 05\'s bytes: **authentic**, with *trailer unreadable*.' }) + } + + file({ name: '192-jpeg-crc-broken-trailer-sidecar-no-better', ext: 'jpg', file: seal(editPixels(baseJpeg), jpegProof, BROKEN_CRC), sidecar: jcs(jpegProof as Json), proof: jpegProof, + expected: { outcome: 'corrupted_proof', labels: [], not_evaluated: [] }, + notes: 'Vector 11\'s edited pixels sealed with vector 01\'s proof, the footer CRC broken, and vector 01\'s proof as sidecar. Without the trailer the sidecar reads *tampered* — its `media.hash` is not these pixels — which ranks no higher than *corrupted proof*: a tie, so the footer\'s verdict stands, **corrupted proof**. The sidecar decides only when it does strictly better (§3.1).' }) + + file({ name: '193-jpeg-sealed-then-crc-broken-trailer-sidecar', ext: 'jpg', file: Buffer.concat([jpegSealed, buildTrailer(jcs(foreign as Json), BROKEN_CRC)]), sidecar: jcs(jpegProof as Json), proof: jpegProof, + expected: { outcome: 'corrupted_proof', labels: [], not_evaluated: [] }, + notes: 'Vector 01 — sealed, its trailer intact — with a second trailer appended after it whose CRC fails, and vector 01\'s proof as sidecar. The rule removes **one** trailer and reads nothing further: the remaining bytes, vector 01 with its trailer, are judged whole, as step 4 judges a sidecar, and the sidecar\'s `media.hash` does not cover a trailer, so it reads *tampered*. A tie with *corrupted proof*, which stands. A sealed file is never legitimately followed by another footer — a writer refuses to seal over a trailer and replaces one by dropping it (§3) — and peeling trailers back one after another is what *nested proof* exists to refuse.' }) } file({ name: '19-jpeg-flags-disagree', ext: 'jpg', file: seal(baseJpeg, jpegProof, { flags: Flag.PSEUDONYMOUS }), proof: jpegProof, @@ -637,6 +667,12 @@ const SYNTHETIC_TIMING: Json = { video_timescale: 15360, root: timingRoot(synthe expected: { outcome: 'verified_clip', labels: [...DEVICE_LABELS, 'trailer copy differs'], not_evaluated: [], core_hash: hashOf(h264.proof), segments: { verified: [1, 2] }, location: { claimed: 'none', level: 'none' }, proof_source: { kind: 'sidecar' }, frames_name_capture: true }, notes: 'Vector 89\'s clip of vector 166 — GOP 0 removed — with its trailer stripped and **another capture\'s** video proof appended as a valid trailer in its place: vector 166\'s core and segment hashes under a new capture id, the core and every segment message re-signed for it. Next to it, a sidecar holding vector 166\'s proof. Every signature in the trailer\'s proof holds, and no GOP of the clip names its capture, so on its own it reads *frames not compared* (§5, *Locating segments*) — a genuine clip reduced to "nothing ties these signatures to these frames" by a trailer anyone can append.\n\n§3.1 judges both over the same bytes, the file without the trailer: 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 *trailer copy differs* and `proof_source` the sidecar. Vector 171 is the same case with the foreign proof in a C2PA manifest.' }) + // §3.1, unreadable footer, on a clip: the same foreign proof, its footer + // CRC broken. The sidecar is judged over the clip without that trailer. + device({ name: '189-mp4-container-crc-broken-trailer-sidecar', file: seal(cut, foreign, { crcOverride: 0xdeadbeef }), sidecar: h264.payload, proof: h264.proof, + expected: { outcome: 'verified_clip', labels: [...DEVICE_LABELS, 'trailer unreadable'], not_evaluated: [], core_hash: hashOf(h264.proof), segments: { verified: [1, 2] }, location: { claimed: 'none', level: 'none' }, proof_source: { kind: 'sidecar' }, frames_name_capture: true }, + notes: 'Vector 173 with the appended trailer\'s footer CRC broken: vector 89\'s clip of vector 166, its own trailer stripped, another capture\'s video proof appended in a structurally valid `free` box whose CRC fails, and vector 166\'s proof as sidecar. On its own the footer reads *corrupted proof*.\n\n§3.1 (*A sidecar that does better*, unreadable footer): the sidecar is judged over the file without the `free` box the footer declares, which is vector 89\'s clip without its trailer; it locates GOPs 1 and 2 and recomputes them, **verified clip**, 1 and 2 of 3, which ranks above *corrupted proof*, so it stands, with *trailer unreadable* and `proof_source` the sidecar. A verifier that predates corpus 8.0.0 reads it *corrupted proof*.' }) + // ---- §5 *Timing*: when the signed frames are shown --------------------- // // Vector 166's original and vector 89's cut of it, under the re-signed @@ -1059,12 +1095,11 @@ const pick = (v: Verdict, expected: object): object => Object.fromEntries(Object const ATTESTED_LABELS = [...PHOTO_LABELS.filter((l) => l !== 'origin not hardware-attested'), 'integrity not proven'].sort() const logKey = createPrivateKey({ key: Buffer.from(TEST_LOG_KEY_PKCS8_BASE64, 'base64'), format: 'der', type: 'pkcs8' }) - // §6.2: `core_hash ‖ JCS(entries) ‖ uint64 BE fetched_at`, signed by the key + // §6.2: `"vcap/1.0/attestation-status" ‖ core_hash ‖ JCS(entries) ‖ uint64 + // BE fetched_at`, signed by the key // that signs the log's tree heads. const statusAttachment = (proof: Proof, fetchedAt: number, entries: Json): Proof => { - const at = Buffer.alloc(8) - at.writeBigUInt64BE(BigInt(fetchedAt)) - const message = Buffer.concat([coreHash(proof), jcs(entries), at]) + const message = attestationStatusMessage(coreHash(proof), entries, fetchedAt) return { source: 'googleStatusList', fetched_at: fetchedAt, entries, sig: signEs256(message, logKey).toString('base64url') } } @@ -1330,9 +1365,7 @@ const pick = (v: Verdict, expected: object): object => Object.fromEntries(Object const LOG_ID = digest(spkiOf(logKey)).toString('base64url') const statusAttachment = (proof: Proof, fetchedAt: number, entries: Json): Proof => { - const at = Buffer.alloc(8) - at.writeBigUInt64BE(BigInt(fetchedAt)) - const message = Buffer.concat([coreHash(proof), jcs(entries), at]) + const message = attestationStatusMessage(coreHash(proof), entries, fetchedAt) return { source: 'googleStatusList', fetched_at: fetchedAt, entries, sig: signEs256(message, logKey).toString('base64url') } } @@ -2285,12 +2318,11 @@ const pick = (v: Verdict, expected: object): object => Object.fromEntries(Object notes: 'Vector 01 with a JUMBF APP11 segment inserted after sealing whose box is **not** a C2PA Manifest Store: a superbox whose description box names the JSON content type (6A736F6E-0011-0010-8000-00AA00389B71), labelled `org.example.metadata` — the shape JPEG 360 or JPEG Privacy and Security metadata takes. C2PA hashes such a segment (15.12.1.2: only the store\'s APP11 segments are excluded), and since 1.1 so does §4.1: a JUMBF segment is removed from the canonical bytes only when its box is the C2PA store or its type cannot be read. The segment is content, the canonical bytes changed, and the photo is **tampered**. Before 1.1 every "JP" segment was removed and this file read *authentic*; vectors 02 and 68, whose JUMBF-shaped segment has no readable type, keep their verdict.' }) } -// §3.1: a sidecar never rescues a trailer that was found and is broken. The -// trailer is structurally valid and its CRC fails: somebody edited the file, -// and that is the verdict whatever sits next to it. +// §3.1: a trailer whose CRC fails is no more the file's than one whose CRC +// matches; beside a sidecar that does better without it, the sidecar decides. file({ name: '72-jpeg-footer-crc-mismatch-sidecar', ext: 'jpg', file: seal(baseJpeg, jpegProof, { crcOverride: 0xdeadbeef }), sidecar: jcs(jpegProof as Json), proof: jpegProof, - expected: { outcome: 'corrupted_proof', labels: [], not_evaluated: [] }, - notes: 'Vector 06 — a structurally valid footer whose CRC does not match the payload — with an intact copy of the proof in a sidecar. The verdict stays *corrupted proof* (§3.1): the sidecar is a fallback for a trailer that is **absent**, not a substitute for one that is present and broken. The CRC exists to tell corruption from stripping, and a file whose trailer was found and fails its CRC was edited after sealing; showing the sidecar\'s proof as the file\'s would hide exactly that.' }) + expected: { outcome: 'authentic', labels: [...PHOTO_LABELS, 'trailer unreadable'], not_evaluated: [], core_hash: hashOf(jpegProof), proof_source: { kind: 'sidecar' } }, + notes: 'Vector 06 — a structurally valid footer whose CRC does not match the payload — with an intact copy of the proof in a sidecar. Until corpus 8.0.0 the verdict was *corrupted proof*: the sidecar was a fallback for a trailer that is absent, never a substitute for one that is present and broken.\n\nThat made a broken footer an accusation anyone could append to a stripped genuine file (vector 188). §3.1 (*A sidecar that does better*, unreadable footer) now judges the sidecar over the file without the `free` box the footer declares, and the sidecar decides when its outcome ranks strictly above *corrupted proof*: **authentic**, with *trailer unreadable* and `proof_source` the sidecar. The edit is not hidden — the label names it — and nothing is gained that deleting the broken trailer would not give (vector 17). Without a sidecar the verdict is still *corrupted proof* (vector 06), and so it is with a Content Credentials copy instead of a sidecar (vector 126).' }) { // Removes the JFIF APP0 segment (the first marker segment of base.jpg): diff --git a/tools/src/registry.ts b/tools/src/registry.ts index dded50d..e407b9a 100644 --- a/tools/src/registry.ts +++ b/tools/src/registry.ts @@ -254,6 +254,17 @@ export const verifyKeyStatus = ( return { ok: true, status: statement.status } } +const ATTESTATION_STATUS_SEPARATOR = Buffer.from('vcap/1.0/attestation-status', 'ascii') + +/** + * §6.2 `attestation_status`: the message the registry signs, + * `"vcap/1.0/attestation-status" ‖ core_hash ‖ JCS(entries) ‖ uint64 BE + * fetched_at`. The separator is the one every other message the registry key + * signs begins with; before corpus 8.0.0 this one had none. + */ +export const attestationStatusMessage = (coreHash: Buffer, entries: Json, fetchedAt: number): Buffer => + Buffer.concat([ATTESTATION_STATUS_SEPARATOR, coreHash, jcs(entries), u64be(fetchedAt)]) + /** * §6.2 `integrity`: the registry's relay of a Play Integrity or App Attest * verdict about the device, signed over diff --git a/tools/src/trailer.ts b/tools/src/trailer.ts index e508516..37f14c2 100644 --- a/tools/src/trailer.ts +++ b/tools/src/trailer.ts @@ -71,3 +71,30 @@ export const parseTrailer = (file: Buffer): ParsedTrailer => { return { kind: 'ok', payload, flags: footer.readUInt16BE(6), minor: footer.readUInt8(5), mediaEnd: boxStart } } + +/** + * §3.1 *A sidecar that does better*, unreadable footer: where the trailer + * starts when the last 16 bytes carry the `VCAP` magic but are not a footer + * this reader can use — CRC fails, major ≠ 1, or a size that describes no + * trailer. `null` when the file does not end in the magic or ends in a usable + * trailer. + * + * The span is the box §3's structure checks would accept, with the major and + * the CRC set aside: `8 + payload_len + 16` bytes, summed without overflow, + * when they fit in the file and begin with a `free` box header of that size. + * Otherwise only the 16-byte footer. What is removed is therefore a `free` box + * every BMFF reader skips, or 16 bytes that are no box at all — never bytes a + * player presents — and an implementation computes exactly one candidate. + */ +export const unreadableTrailerStart = (file: Buffer): number | null => { + if (file.length < FOOTER_LEN) return null + const footerStart = file.length - FOOTER_LEN + if (!file.subarray(footerStart, footerStart + 4).equals(MAGIC)) return null + if (parseTrailer(file).kind === 'ok') return null + const total = BOX_HEADER_LEN + file.readUInt32BE(footerStart + 8) + FOOTER_LEN + const boxStart = file.length - total + const declared = total <= file.length && + file.readUInt32BE(boxStart) === total && + file.toString('ascii', boxStart + 4, boxStart + 8) === 'free' + return declared ? boxStart : footerStart +} diff --git a/tools/src/verify.ts b/tools/src/verify.ts index 4c8f3fe..3804816 100644 --- a/tools/src/verify.ts +++ b/tools/src/verify.ts @@ -3,17 +3,16 @@ import { type Json } from './jcs.js' import { type Proof, coreBytes, coreHash, keyId, publicKeyFromSpki, verifyEs256 } from './core.js' import { canonicalBytes, mediaHash } from './canonical.js' import { Flag } from './trailer.js' -import { type ProofSource, extractProof } from './carrier.js' +import { type ProofSource, extractProof, unreadableAlternate } from './carrier.js' import { type SegmentEntry, verifyChain } from './segments.js' import { type ContainerReading, ContainerMalformed, readContainer } from './container.js' import { type Timescales, editTrims, receivedTimingHash, timingRoot } from './timing.js' import { RANK, leafSpki, normalSerial, validateChain } from './attestation.js' import { type TrustBundle, type TrustedLog } from './trust.js' -import { type IntegrityAttachment, type KeyStatusStatement, type RegistryAttachment, verifyIntegrity, verifyKeyStatus, verifyRegistry } from './registry.js' +import { type IntegrityAttachment, type KeyStatusStatement, type RegistryAttachment, attestationStatusMessage, verifyIntegrity, verifyKeyStatus, verifyRegistry } from './registry.js' import { type AnchorAttachment, type ChainRead, verifyAnchor } from './anchor.js' import { verifyTimestampToken } from './rfc3161.js' import { LOCATION_LEVELS, LOCATION_RANK, verifyLocationCorroboration } from './location.js' -import { jcs } from './jcs.js' import { ProofSyntaxError, parseProofJson } from './json.js' /** @@ -214,6 +213,21 @@ export interface FileInput { } export const verifyFile = (input: FileInput): Verdict => { + const verdict = verdictOfFile(input) + // §3.1: a footer this reader cannot use — CRC fails, major ≠ 1, a size that + // describes no trailer — is no more authenticated as the file's than a valid + // one, and anyone can append it to a stripped file. Beside a sidecar, the + // sidecar is judged over the file without that trailer, and decides only + // when its outcome ranks strictly above: deleting the trailer gives as much. + const alt = unreadableAlternate(input.file, input.sidecar, input.externalStore) + if (!alt) return verdict + const located: { frames?: boolean } = {} + const other = { ...judge(alt.payload, alt.media, null, [...alt.labels], input, located), proof_source: alt.source } + if (located.frames !== undefined) other.frames_name_capture = located.frames + return OUTCOME_RANK[other.outcome] > OUTCOME_RANK[verdict.outcome] ? other : verdict +} + +const verdictOfFile = (input: FileInput): Verdict => { // 1. Trailer, carrier, sidecar, nesting (§3, §3.1, §3.2). const extracted = extractProof(input.file, input.sidecar, input.externalStore) if (extracted.kind === 'corrupted') return fail('corrupted_proof', 'footer valid, CRC mismatch') @@ -893,9 +907,7 @@ const frozenRevocation = ( const entries = attachment.entries const fetchedAt = attachment.fetched_at if (attachment.source !== 'googleStatusList' || !Array.isArray(entries) || typeof fetchedAt !== 'number' || !Number.isSafeInteger(fetchedAt) || fetchedAt < 0) return { checked: false } - const at = Buffer.alloc(8) - at.writeBigUInt64BE(BigInt(fetchedAt)) - const message = Buffer.concat([coreHash, jcs(entries), at]) + const message = attestationStatusMessage(coreHash, entries, fetchedAt) let signature: Buffer try { signature = Buffer.from(attachment.sig as string, 'base64url') } catch { return { checked: false } } // §6.2: the key is the one that signs that log's tree heads — the log the diff --git a/vectors/100-jpeg-registry-green-timestamped/input.jpg b/vectors/100-jpeg-registry-green-timestamped/input.jpg index f3f235c..8c81825 100644 Binary files a/vectors/100-jpeg-registry-green-timestamped/input.jpg and b/vectors/100-jpeg-registry-green-timestamped/input.jpg differ diff --git a/vectors/100-jpeg-registry-green-timestamped/proof.json b/vectors/100-jpeg-registry-green-timestamped/proof.json index ae2898c..62b76b8 100644 --- a/vectors/100-jpeg-registry-green-timestamped/proof.json +++ b/vectors/100-jpeg-registry-green-timestamped/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/101-jpeg-registry-no-device-clock/input.jpg b/vectors/101-jpeg-registry-no-device-clock/input.jpg index 023c98e..8e2cf86 100644 Binary files a/vectors/101-jpeg-registry-no-device-clock/input.jpg and b/vectors/101-jpeg-registry-no-device-clock/input.jpg differ diff --git a/vectors/101-jpeg-registry-no-device-clock/proof.json b/vectors/101-jpeg-registry-no-device-clock/proof.json index 673ad89..77c0521 100644 --- a/vectors/101-jpeg-registry-no-device-clock/proof.json +++ b/vectors/101-jpeg-registry-no-device-clock/proof.json @@ -52,7 +52,7 @@ "status": "valid" } ], - "sig": "xqXw5n9uCJ_vKb7F9DqDVngCFb57xk38B9XhbZG27J5AK2gRaLgp1U3rU-3ZkLSXGPnDaSFOmC6W6BgoyyTBlw" + "sig": "cv-IDLZ5oi2rYtdzqvFWgXpX5-RzgUoa4P0xFUtVZyp9x9DA9ruj_3P0oYs0jCzM1el4LJ0u-4M0SFL11gP8cQ" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/102-jpeg-registry-after-trusted-time/input.jpg b/vectors/102-jpeg-registry-after-trusted-time/input.jpg index 98f1fea..48918c7 100644 Binary files a/vectors/102-jpeg-registry-after-trusted-time/input.jpg and b/vectors/102-jpeg-registry-after-trusted-time/input.jpg differ diff --git a/vectors/102-jpeg-registry-after-trusted-time/proof.json b/vectors/102-jpeg-registry-after-trusted-time/proof.json index dc9005e..43cc610 100644 --- a/vectors/102-jpeg-registry-after-trusted-time/proof.json +++ b/vectors/102-jpeg-registry-after-trusted-time/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/106-jpeg-attestation-app-not-admitted/input.jpg b/vectors/106-jpeg-attestation-app-not-admitted/input.jpg index 53daff4..3e41a01 100644 Binary files a/vectors/106-jpeg-attestation-app-not-admitted/input.jpg and b/vectors/106-jpeg-attestation-app-not-admitted/input.jpg differ diff --git a/vectors/106-jpeg-attestation-app-not-admitted/proof.json b/vectors/106-jpeg-attestation-app-not-admitted/proof.json index 436c165..5670317 100644 --- a/vectors/106-jpeg-attestation-app-not-admitted/proof.json +++ b/vectors/106-jpeg-attestation-app-not-admitted/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/107-jpeg-attestation-app-not-checked/input.jpg b/vectors/107-jpeg-attestation-app-not-checked/input.jpg index 6d5cab7..b72f447 100644 Binary files a/vectors/107-jpeg-attestation-app-not-checked/input.jpg and b/vectors/107-jpeg-attestation-app-not-checked/input.jpg differ diff --git a/vectors/107-jpeg-attestation-app-not-checked/proof.json b/vectors/107-jpeg-attestation-app-not-checked/proof.json index d49a47a..74cd34a 100644 --- a/vectors/107-jpeg-attestation-app-not-checked/proof.json +++ b/vectors/107-jpeg-attestation-app-not-checked/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/109-jpeg-integrity-failed-caps-green/input.jpg b/vectors/109-jpeg-integrity-failed-caps-green/input.jpg index 42debe1..daee637 100644 Binary files a/vectors/109-jpeg-integrity-failed-caps-green/input.jpg and b/vectors/109-jpeg-integrity-failed-caps-green/input.jpg differ diff --git a/vectors/109-jpeg-integrity-failed-caps-green/proof.json b/vectors/109-jpeg-integrity-failed-caps-green/proof.json index b7a9788..b601c92 100644 --- a/vectors/109-jpeg-integrity-failed-caps-green/proof.json +++ b/vectors/109-jpeg-integrity-failed-caps-green/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/148-jpeg-registry-timestamped-integrity-absent/input.jpg b/vectors/148-jpeg-registry-timestamped-integrity-absent/input.jpg index af6f99d..807c08e 100644 Binary files a/vectors/148-jpeg-registry-timestamped-integrity-absent/input.jpg and b/vectors/148-jpeg-registry-timestamped-integrity-absent/input.jpg differ diff --git a/vectors/148-jpeg-registry-timestamped-integrity-absent/proof.json b/vectors/148-jpeg-registry-timestamped-integrity-absent/proof.json index 480e5ed..385b1ae 100644 --- a/vectors/148-jpeg-registry-timestamped-integrity-absent/proof.json +++ b/vectors/148-jpeg-registry-timestamped-integrity-absent/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/149-jpeg-integrity-basic-not-green/input.jpg b/vectors/149-jpeg-integrity-basic-not-green/input.jpg index dc0e449..5861b63 100644 Binary files a/vectors/149-jpeg-integrity-basic-not-green/input.jpg and b/vectors/149-jpeg-integrity-basic-not-green/input.jpg differ diff --git a/vectors/149-jpeg-integrity-basic-not-green/proof.json b/vectors/149-jpeg-integrity-basic-not-green/proof.json index 2e04417..b3282bf 100644 --- a/vectors/149-jpeg-integrity-basic-not-green/proof.json +++ b/vectors/149-jpeg-integrity-basic-not-green/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/152-jpeg-attestation-key-imported/input.jpg b/vectors/152-jpeg-attestation-key-imported/input.jpg index f691da3..1c757d0 100644 Binary files a/vectors/152-jpeg-attestation-key-imported/input.jpg and b/vectors/152-jpeg-attestation-key-imported/input.jpg differ diff --git a/vectors/152-jpeg-attestation-key-imported/proof.json b/vectors/152-jpeg-attestation-key-imported/proof.json index 41cfd67..73f283a 100644 --- a/vectors/152-jpeg-attestation-key-imported/proof.json +++ b/vectors/152-jpeg-attestation-key-imported/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/154-jpeg-integrity-other-trusted-log/input.jpg b/vectors/154-jpeg-integrity-other-trusted-log/input.jpg index 4d86002..b42f708 100644 Binary files a/vectors/154-jpeg-integrity-other-trusted-log/input.jpg and b/vectors/154-jpeg-integrity-other-trusted-log/input.jpg differ diff --git a/vectors/154-jpeg-integrity-other-trusted-log/proof.json b/vectors/154-jpeg-integrity-other-trusted-log/proof.json index da09bef..fdeb4a5 100644 --- a/vectors/154-jpeg-integrity-other-trusted-log/proof.json +++ b/vectors/154-jpeg-integrity-other-trusted-log/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/155-jpeg-key-revoked-device-clock/input.jpg b/vectors/155-jpeg-key-revoked-device-clock/input.jpg index d11a669..7bdd225 100644 Binary files a/vectors/155-jpeg-key-revoked-device-clock/input.jpg and b/vectors/155-jpeg-key-revoked-device-clock/input.jpg differ diff --git a/vectors/155-jpeg-key-revoked-device-clock/proof.json b/vectors/155-jpeg-key-revoked-device-clock/proof.json index 9584322..c2a78e6 100644 --- a/vectors/155-jpeg-key-revoked-device-clock/proof.json +++ b/vectors/155-jpeg-key-revoked-device-clock/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/157-jpeg-attestation-holds-proves-none/input.jpg b/vectors/157-jpeg-attestation-holds-proves-none/input.jpg index 64db57f..9d101e9 100644 Binary files a/vectors/157-jpeg-attestation-holds-proves-none/input.jpg and b/vectors/157-jpeg-attestation-holds-proves-none/input.jpg differ diff --git a/vectors/157-jpeg-attestation-holds-proves-none/proof.json b/vectors/157-jpeg-attestation-holds-proves-none/proof.json index 227527d..3abf367 100644 --- a/vectors/157-jpeg-attestation-holds-proves-none/proof.json +++ b/vectors/157-jpeg-attestation-holds-proves-none/proof.json @@ -55,6 +55,6 @@ "status": "valid" } ], - "sig": "GZzATrQgW94ej0zsYbHqYKCo8XdhGzaZZOVOWEmuqic4maGuTHDukFUyHWBX0N_2JWhF8Qt_WhTVR98y1rcPRQ" + "sig": "0UITJU06fHtrzPKAdkGOmmauBBkyLfydjLyHm6cKFss_RTJxHTvpJY4EykVXKy0r53yjDvc8GIc9j_b8stfbQw" } } diff --git a/vectors/164-jpeg-attestation-revoked-proves-none/input.jpg b/vectors/164-jpeg-attestation-revoked-proves-none/input.jpg index 8428bf7..6746478 100644 Binary files a/vectors/164-jpeg-attestation-revoked-proves-none/input.jpg and b/vectors/164-jpeg-attestation-revoked-proves-none/input.jpg differ diff --git a/vectors/164-jpeg-attestation-revoked-proves-none/proof.json b/vectors/164-jpeg-attestation-revoked-proves-none/proof.json index d4dab92..8d5515f 100644 --- a/vectors/164-jpeg-attestation-revoked-proves-none/proof.json +++ b/vectors/164-jpeg-attestation-revoked-proves-none/proof.json @@ -57,6 +57,6 @@ "revoked_at": 1757325600000 } ], - "sig": "Mz4TAF0van79oaV0Pcwhh0YDd6PvmXP-3QFP6Y3AMXlsA1wxuyddkj1yRulYCZtfbNt9rG7bc9VPpru-Tb2ffg" + "sig": "O45yUu5mIGAr4KmDphUYsCYjuD6yndrRa7uPVy99q7FntrWZMKsGKzNWE8ddX2BkemNFfc5xuy0sI1hqB3Wi_g" } } diff --git a/vectors/188-jpeg-crc-broken-trailer-sidecar/NOTES.md b/vectors/188-jpeg-crc-broken-trailer-sidecar/NOTES.md new file mode 100644 index 0000000..5745762 --- /dev/null +++ b/vectors/188-jpeg-crc-broken-trailer-sidecar/NOTES.md @@ -0,0 +1,7 @@ +# 188-jpeg-crc-broken-trailer-sidecar + +Vector 172 with the appended trailer's CRC broken: vector 05's unsealed photo — vector 01 once its trailer is stripped — then another capture's proof in a structurally valid `free` box whose footer CRC does not match, next to a sidecar holding vector 01's proof. On its own the footer reads *corrupted proof* (vector 06). + +Before corpus 8.0.0 the footer decided whatever sat next to it, so a genuine file beside its genuine sidecar could be made to read broken by appending sixteen bytes. §3.1 (*A sidecar that does better*, unreadable footer) now judges the sidecar over the file without that trailer — the `free` box the footer declares when it fits in the file, otherwise the footer alone — and lets it decide only when its outcome ranks strictly above the footer's verdict. *Authentic* still needs `media.hash` to match the bytes that remain, so trusting the span the footer declares cannot make forged bytes read genuine: a wrong span costs the sidecar its outcome, never the reader the truth. Here the declared box is removed, the remaining bytes are vector 05's, and the sidecar reads **authentic** — vector 17's verdict — with *trailer unreadable* and `proof_source` the sidecar. + +Generated by `tools/src/generate.ts` with the test key in `tools/src/testkey.ts`. diff --git a/vectors/188-jpeg-crc-broken-trailer-sidecar/expected.json b/vectors/188-jpeg-crc-broken-trailer-sidecar/expected.json new file mode 100644 index 0000000..7683acd --- /dev/null +++ b/vectors/188-jpeg-crc-broken-trailer-sidecar/expected.json @@ -0,0 +1,20 @@ +{ + "kind": "file", + "outcome": "authentic", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "location declared only", + "no trusted time", + "not anchored", + "origin not hardware-attested", + "trailer unreadable", + "watermark not evaluated" + ], + "not_evaluated": [], + "core_hash": "dc59127e528a04d6e285de3abe748559e49c7f1ef66b238092a6b13afeeb5119", + "proof_source": { + "kind": "sidecar" + }, + "schema_valid": true +} diff --git a/vectors/188-jpeg-crc-broken-trailer-sidecar/input.jpg b/vectors/188-jpeg-crc-broken-trailer-sidecar/input.jpg new file mode 100644 index 0000000..ec68263 Binary files /dev/null and b/vectors/188-jpeg-crc-broken-trailer-sidecar/input.jpg differ diff --git a/vectors/188-jpeg-crc-broken-trailer-sidecar/input.jpg.vcap b/vectors/188-jpeg-crc-broken-trailer-sidecar/input.jpg.vcap new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/vectors/188-jpeg-crc-broken-trailer-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/188-jpeg-crc-broken-trailer-sidecar/proof.json b/vectors/188-jpeg-crc-broken-trailer-sidecar/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/188-jpeg-crc-broken-trailer-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/189-mp4-container-crc-broken-trailer-sidecar/NOTES.md b/vectors/189-mp4-container-crc-broken-trailer-sidecar/NOTES.md new file mode 100644 index 0000000..f086347 --- /dev/null +++ b/vectors/189-mp4-container-crc-broken-trailer-sidecar/NOTES.md @@ -0,0 +1,7 @@ +# 189-mp4-container-crc-broken-trailer-sidecar + +Vector 173 with the appended trailer's footer CRC broken: vector 89's clip of vector 166, its own trailer stripped, another capture's video proof appended in a structurally valid `free` box whose CRC fails, and vector 166's proof as sidecar. On its own the footer reads *corrupted proof*. + +§3.1 (*A sidecar that does better*, unreadable footer): the sidecar is judged over the file without the `free` box the footer declares, which is vector 89's clip without its trailer; it locates GOPs 1 and 2 and recomputes them, **verified clip**, 1 and 2 of 3, which ranks above *corrupted proof*, so it stands, with *trailer unreadable* and `proof_source` the sidecar. A verifier that predates corpus 8.0.0 reads it *corrupted proof*. + +Derived by `tools/src/generate.ts` from the device capture in vector 36 or 37 (a Samsung SM-S908B, Android 16, StrongBox, sealed by the reference Android SDK). The container, its NAL units and its vcap SEIs are the device's; the core and the segment chain are re-signed with the test key in `tools/src/testkey.ts`, over the same capture id and the same content hashes, so that the core carries `media.presentation` and `media.timing` (both read back from the device's container), which the device proof predates (corpora 5.0.0 and 7.0.0). diff --git a/vectors/189-mp4-container-crc-broken-trailer-sidecar/expected.json b/vectors/189-mp4-container-crc-broken-trailer-sidecar/expected.json new file mode 100644 index 0000000..a31f7c1 --- /dev/null +++ b/vectors/189-mp4-container-crc-broken-trailer-sidecar/expected.json @@ -0,0 +1,30 @@ +{ + "kind": "container", + "outcome": "verified_clip", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "no trusted time", + "no watermark", + "not anchored", + "origin not hardware-attested", + "trailer unreadable" + ], + "not_evaluated": [], + "core_hash": "e51545cc157b4125752b406d9caea656d0da9b729532b2592442fb58024b1a24", + "segments": { + "verified": [ + 1, + 2 + ] + }, + "location": { + "claimed": "none", + "level": "none" + }, + "proof_source": { + "kind": "sidecar" + }, + "frames_name_capture": true, + "schema_valid": true +} diff --git a/vectors/189-mp4-container-crc-broken-trailer-sidecar/input.mp4 b/vectors/189-mp4-container-crc-broken-trailer-sidecar/input.mp4 new file mode 100644 index 0000000..272fcd8 Binary files /dev/null and b/vectors/189-mp4-container-crc-broken-trailer-sidecar/input.mp4 differ diff --git a/vectors/189-mp4-container-crc-broken-trailer-sidecar/input.mp4.vcap b/vectors/189-mp4-container-crc-broken-trailer-sidecar/input.mp4.vcap new file mode 100644 index 0000000..de23d0b --- /dev/null +++ b/vectors/189-mp4-container-crc-broken-trailer-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":"5pxMIBuI6pcGBXn4m6o_wvJkiq6CObsazbsrEHp2ANc","display":[41943040,23592960],"matrix":[65536,0,0,0,65536,0,0,0,1073741824]},"segment_count":3,"timing":{"audio_timescale":48000,"root":"XWqeawEcczkdsdPbq4BcR8Bq5-o0aFsnOUxafyVi0Qg","video_timescale":90000},"w":640},"segments":[{"gop":0,"hash":"nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY","prev":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","sig":"sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA","timing":"4bZ5Cxgmqe_0I1Zsn0WwV6mytpe8uKfRS902P0NSDm4"},{"gop":1,"hash":"24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8","prev":"xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc","sig":"0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg","timing":"DpBsKng1y2F-vpEH-1vE5Frt9ycWvoOxg7HijtTI9wU"},{"gop":2,"hash":"q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng","prev":"szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20","sig":"cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow","timing":"l0ya7mwwMP07BZOGjFxwQIgZ1cIa2RE-5cY2aZ1p3Ec"}],"sig":{"alg":"ES256","pub":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA","value":"qznaar3z_UEu7WDUgT_FpLnWA2RPqwpuJd6vJHC_Qk5phjLLuT8_ElvjPEUoFVQkBikyrvjUM5PxVGb1m_wQRw"},"time":{"device_clock":1788955035726},"v":"vcap/1.0"} \ No newline at end of file diff --git a/vectors/189-mp4-container-crc-broken-trailer-sidecar/proof.json b/vectors/189-mp4-container-crc-broken-trailer-sidecar/proof.json new file mode 100644 index 0000000..eca07c3 --- /dev/null +++ b/vectors/189-mp4-container-crc-broken-trailer-sidecar/proof.json @@ -0,0 +1,71 @@ +{ + "v": "vcap/1.0", + "capture_id": "QVfcJ4u5pNCzyZIz5CuQBA", + "media": { + "duration_ms": 3008, + "h": 360, + "hash": "kYOCHtA4GpciHDrL1dmzMttqIVHDT5Ud2bt8Bla05mM", + "mime": "video/mp4", + "segment_count": 3, + "w": 640, + "presentation": { + "config": "5pxMIBuI6pcGBXn4m6o_wvJkiq6CObsazbsrEHp2ANc", + "matrix": [ + 65536, + 0, + 0, + 0, + 65536, + 0, + 0, + 0, + 1073741824 + ], + "display": [ + 41943040, + 23592960 + ] + }, + "timing": { + "video_timescale": 90000, + "audio_timescale": 48000, + "root": "XWqeawEcczkdsdPbq4BcR8Bq5-o0aFsnOUxafyVi0Qg" + } + }, + "device": { + "platform": "android", + "secure_hw": "strongbox", + "key_id": "4aF24UJH_AHu_CuygIW3PB-AMEWVoQy3iaeBh4yDSBM" + }, + "time": { + "device_clock": 1788955035726 + }, + "segments": [ + { + "gop": 0, + "hash": "nufBd3tPP5n8-78zzfBnBY_5F_uJusHynSuE-PQ7snY", + "prev": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "sig": "sFaGcMKsZ1ARAdKZ-DBW6aW-UO_uPKR65DH2Mns3jH1Sxa4FbB6GmC6DsT0qMgUONNZJEvNiB55Vk8iD8rzvMA", + "timing": "4bZ5Cxgmqe_0I1Zsn0WwV6mytpe8uKfRS902P0NSDm4" + }, + { + "gop": 1, + "hash": "24ZvcKhC3bGtKt1qMLFFVYnFG9NBVyyg9jlOmDkUbm8", + "prev": "xGL2wTPmcYVJyB7FqSLYgJam8pOmndKI01WNB0O1hWc", + "sig": "0FgvL3x2_T2F7p1aLRa8PhlbwQK-JFWQ8fM-SfYEXANMlwom3oZt4p8znWFT3NHGBlf_ZZFCfN7lLA4Rcc7zrg", + "timing": "DpBsKng1y2F-vpEH-1vE5Frt9ycWvoOxg7HijtTI9wU" + }, + { + "gop": 2, + "hash": "q7NvztavpAM84504dTtsKJG08OKNGz7Dq9-rHt6OYng", + "prev": "szKQckN8iL0fJFXROUJfIt1-4kVIz5Vo7K22PEX0u20", + "sig": "cSZQJsDlrvJfB3W6yavG0QVPDhpx-GAIXZiu9nhOaPE70uTRt60aYNm8Bk_t1VvvZyS47yO_UY2ItWE9Ca5Iow", + "timing": "l0ya7mwwMP07BZOGjFxwQIgZ1cIa2RE-5cY2aZ1p3Ec" + } + ], + "sig": { + "alg": "ES256", + "value": "qznaar3z_UEu7WDUgT_FpLnWA2RPqwpuJd6vJHC_Qk5phjLLuT8_ElvjPEUoFVQkBikyrvjUM5PxVGb1m_wQRw", + "pub": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEp2C_SxUua1GBx-6u3KBIJKPwOb6yEYmTqfdbgzJbVJCy1_wvmKAjjmvD-d5EdVWpGx0Jxcduppsd0SspNPHKyA" + } +} diff --git a/vectors/190-jpeg-footer-major-2-sidecar/NOTES.md b/vectors/190-jpeg-footer-major-2-sidecar/NOTES.md new file mode 100644 index 0000000..9a2c5da --- /dev/null +++ b/vectors/190-jpeg-footer-major-2-sidecar/NOTES.md @@ -0,0 +1,7 @@ +# 190-jpeg-footer-major-2-sidecar + +Vector 115's shape — a trailer whose footer says major 2 — carrying another capture's proof, appended to vector 05's photo next to a sidecar holding vector 01's proof. On its own the footer reads *unsupported format version* (vector 115). + +Before corpus 8.0.0 the footer decided whatever sat next to it, so a genuine file beside its genuine sidecar could be made to read broken by appending sixteen bytes. §3.1 (*A sidecar that does better*, unreadable footer) now judges the sidecar over the file without that trailer — the `free` box the footer declares when it fits in the file, otherwise the footer alone — and lets it decide only when its outcome ranks strictly above the footer's verdict. *Authentic* still needs `media.hash` to match the bytes that remain, so trusting the span the footer declares cannot make forged bytes read genuine: a wrong span costs the sidecar its outcome, never the reader the truth. The reader takes `payload_len` and the box header at their v1 positions only to find what to remove; it never reads the payload of a major it does not know as a proof. The `free` box is removed and the sidecar reads **authentic**, with *trailer unreadable*. + +Generated by `tools/src/generate.ts` with the test key in `tools/src/testkey.ts`. diff --git a/vectors/190-jpeg-footer-major-2-sidecar/expected.json b/vectors/190-jpeg-footer-major-2-sidecar/expected.json new file mode 100644 index 0000000..7683acd --- /dev/null +++ b/vectors/190-jpeg-footer-major-2-sidecar/expected.json @@ -0,0 +1,20 @@ +{ + "kind": "file", + "outcome": "authentic", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "location declared only", + "no trusted time", + "not anchored", + "origin not hardware-attested", + "trailer unreadable", + "watermark not evaluated" + ], + "not_evaluated": [], + "core_hash": "dc59127e528a04d6e285de3abe748559e49c7f1ef66b238092a6b13afeeb5119", + "proof_source": { + "kind": "sidecar" + }, + "schema_valid": true +} diff --git a/vectors/190-jpeg-footer-major-2-sidecar/input.jpg b/vectors/190-jpeg-footer-major-2-sidecar/input.jpg new file mode 100644 index 0000000..5cf36d7 Binary files /dev/null and b/vectors/190-jpeg-footer-major-2-sidecar/input.jpg differ diff --git a/vectors/190-jpeg-footer-major-2-sidecar/input.jpg.vcap b/vectors/190-jpeg-footer-major-2-sidecar/input.jpg.vcap new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/vectors/190-jpeg-footer-major-2-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/190-jpeg-footer-major-2-sidecar/proof.json b/vectors/190-jpeg-footer-major-2-sidecar/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/190-jpeg-footer-major-2-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/191-jpeg-fake-magic-sidecar/NOTES.md b/vectors/191-jpeg-fake-magic-sidecar/NOTES.md new file mode 100644 index 0000000..4ad4bbc --- /dev/null +++ b/vectors/191-jpeg-fake-magic-sidecar/NOTES.md @@ -0,0 +1,7 @@ +# 191-jpeg-fake-magic-sidecar + +Vector 07's file — vector 05's photo and sixteen bytes that start with `VCAP`, major 1, a `payload_len` of 40 and no box header where it points — next to a sidecar holding vector 01's proof. The footer describes no trailer, so §3 finds none and step 4 judges the sidecar over the whole file: *tampered* before corpus 8.0.0, because those sixteen bytes are inside the canonical bytes. + +Before corpus 8.0.0 the footer decided whatever sat next to it, so a genuine file beside its genuine sidecar could be made to read broken by appending sixteen bytes. §3.1 (*A sidecar that does better*, unreadable footer) now judges the sidecar over the file without that trailer — the `free` box the footer declares when it fits in the file, otherwise the footer alone — and lets it decide only when its outcome ranks strictly above the footer's verdict. *Authentic* still needs `media.hash` to match the bytes that remain, so trusting the span the footer declares cannot make forged bytes read genuine: a wrong span costs the sidecar its outcome, never the reader the truth. The 64 bytes the footer declares fit in the file but do not begin with a `free` box header of that size, so only the footer is removed — an implementation that removed the declared span anyway would cut into the photo and read *tampered*. The rest is vector 05's bytes: **authentic**, with *trailer unreadable*. + +Generated by `tools/src/generate.ts` with the test key in `tools/src/testkey.ts`. diff --git a/vectors/191-jpeg-fake-magic-sidecar/expected.json b/vectors/191-jpeg-fake-magic-sidecar/expected.json new file mode 100644 index 0000000..7683acd --- /dev/null +++ b/vectors/191-jpeg-fake-magic-sidecar/expected.json @@ -0,0 +1,20 @@ +{ + "kind": "file", + "outcome": "authentic", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "location declared only", + "no trusted time", + "not anchored", + "origin not hardware-attested", + "trailer unreadable", + "watermark not evaluated" + ], + "not_evaluated": [], + "core_hash": "dc59127e528a04d6e285de3abe748559e49c7f1ef66b238092a6b13afeeb5119", + "proof_source": { + "kind": "sidecar" + }, + "schema_valid": true +} diff --git a/vectors/191-jpeg-fake-magic-sidecar/input.jpg b/vectors/191-jpeg-fake-magic-sidecar/input.jpg new file mode 100644 index 0000000..0cc97fe Binary files /dev/null and b/vectors/191-jpeg-fake-magic-sidecar/input.jpg differ diff --git a/vectors/191-jpeg-fake-magic-sidecar/input.jpg.vcap b/vectors/191-jpeg-fake-magic-sidecar/input.jpg.vcap new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/vectors/191-jpeg-fake-magic-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/191-jpeg-fake-magic-sidecar/proof.json b/vectors/191-jpeg-fake-magic-sidecar/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/191-jpeg-fake-magic-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/192-jpeg-crc-broken-trailer-sidecar-no-better/NOTES.md b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/NOTES.md new file mode 100644 index 0000000..eb47f7c --- /dev/null +++ b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/NOTES.md @@ -0,0 +1,5 @@ +# 192-jpeg-crc-broken-trailer-sidecar-no-better + +Vector 11's edited pixels sealed with vector 01's proof, the footer CRC broken, and vector 01's proof as sidecar. Without the trailer the sidecar reads *tampered* — its `media.hash` is not these pixels — which ranks no higher than *corrupted proof*: a tie, so the footer's verdict stands, **corrupted proof**. The sidecar decides only when it does strictly better (§3.1). + +Generated by `tools/src/generate.ts` with the test key in `tools/src/testkey.ts`. diff --git a/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/expected.json b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/expected.json new file mode 100644 index 0000000..37aa531 --- /dev/null +++ b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/expected.json @@ -0,0 +1,7 @@ +{ + "kind": "file", + "outcome": "corrupted_proof", + "labels": [], + "not_evaluated": [], + "schema_valid": true +} diff --git a/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/input.jpg b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/input.jpg new file mode 100644 index 0000000..0146e61 Binary files /dev/null and b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/input.jpg differ diff --git a/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/input.jpg.vcap b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/input.jpg.vcap new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/vectors/192-jpeg-crc-broken-trailer-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},"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/192-jpeg-crc-broken-trailer-sidecar-no-better/proof.json b/vectors/192-jpeg-crc-broken-trailer-sidecar-no-better/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/192-jpeg-crc-broken-trailer-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/193-jpeg-sealed-then-crc-broken-trailer-sidecar/NOTES.md b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/NOTES.md new file mode 100644 index 0000000..126e00f --- /dev/null +++ b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/NOTES.md @@ -0,0 +1,5 @@ +# 193-jpeg-sealed-then-crc-broken-trailer-sidecar + +Vector 01 — sealed, its trailer intact — with a second trailer appended after it whose CRC fails, and vector 01's proof as sidecar. The rule removes **one** trailer and reads nothing further: the remaining bytes, vector 01 with its trailer, are judged whole, as step 4 judges a sidecar, and the sidecar's `media.hash` does not cover a trailer, so it reads *tampered*. A tie with *corrupted proof*, which stands. A sealed file is never legitimately followed by another footer — a writer refuses to seal over a trailer and replaces one by dropping it (§3) — and peeling trailers back one after another is what *nested proof* exists to refuse. + +Generated by `tools/src/generate.ts` with the test key in `tools/src/testkey.ts`. diff --git a/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/expected.json b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/expected.json new file mode 100644 index 0000000..37aa531 --- /dev/null +++ b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/expected.json @@ -0,0 +1,7 @@ +{ + "kind": "file", + "outcome": "corrupted_proof", + "labels": [], + "not_evaluated": [], + "schema_valid": true +} diff --git a/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/input.jpg b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/input.jpg new file mode 100644 index 0000000..a2a8328 Binary files /dev/null and b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/input.jpg differ diff --git a/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/input.jpg.vcap b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/input.jpg.vcap new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/vectors/193-jpeg-sealed-then-crc-broken-trailer-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/193-jpeg-sealed-then-crc-broken-trailer-sidecar/proof.json b/vectors/193-jpeg-sealed-then-crc-broken-trailer-sidecar/proof.json new file mode 100644 index 0000000..717b6e0 --- /dev/null +++ b/vectors/193-jpeg-sealed-then-crc-broken-trailer-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/44-jpeg-attestation-revoked-before-capture/input.jpg b/vectors/44-jpeg-attestation-revoked-before-capture/input.jpg index 8a4895a..f8afd1a 100644 Binary files a/vectors/44-jpeg-attestation-revoked-before-capture/input.jpg and b/vectors/44-jpeg-attestation-revoked-before-capture/input.jpg differ diff --git a/vectors/44-jpeg-attestation-revoked-before-capture/proof.json b/vectors/44-jpeg-attestation-revoked-before-capture/proof.json index b6cc83a..990fbe1 100644 --- a/vectors/44-jpeg-attestation-revoked-before-capture/proof.json +++ b/vectors/44-jpeg-attestation-revoked-before-capture/proof.json @@ -57,6 +57,6 @@ "revoked_at": 1757325600000 } ], - "sig": "Mz4TAF0van79oaV0Pcwhh0YDd6PvmXP-3QFP6Y3AMXlsA1wxuyddkj1yRulYCZtfbNt9rG7bc9VPpru-Tb2ffg" + "sig": "O45yUu5mIGAr4KmDphUYsCYjuD6yndrRa7uPVy99q7FntrWZMKsGKzNWE8ddX2BkemNFfc5xuy0sI1hqB3Wi_g" } } diff --git a/vectors/45-jpeg-attestation-revoked-after-capture/input.jpg b/vectors/45-jpeg-attestation-revoked-after-capture/input.jpg index 02d7cd8..89060ac 100644 Binary files a/vectors/45-jpeg-attestation-revoked-after-capture/input.jpg and b/vectors/45-jpeg-attestation-revoked-after-capture/input.jpg differ diff --git a/vectors/45-jpeg-attestation-revoked-after-capture/proof.json b/vectors/45-jpeg-attestation-revoked-after-capture/proof.json index 3266f9c..2a0d8af 100644 --- a/vectors/45-jpeg-attestation-revoked-after-capture/proof.json +++ b/vectors/45-jpeg-attestation-revoked-after-capture/proof.json @@ -57,7 +57,7 @@ "revoked_at": 1759924800000 } ], - "sig": "i_oXhyTYxutYyiFchPoaUbrDWDOn59VVKdbN__J03tcWVnt7DqIZb_cOjmvwbSZ8tkSF9eyMbA_iAteAeP_7WQ" + "sig": "WywBQX5OkreSsuZjnsC5J-Phg4QenfCgUKHnMBjXa10YQrm-dA7Yt6OR1yZD73ZZ2E6YJAg8Z8z3xwCrue1Fjg" }, "timestamp": { "tsr": "MIIDMQYJKoZIhvcNAQcCoIIDIjCCAx4CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYKKwYBBAGGjR8BATAxMA0GCWCGSAFlAwQCAQUABCDcWRJ-UooE1uKF3jq-dIVZ5Jx_HvZrI4CSprE6_utRGQIJAHlUBYdp1gAyGA8yMDI1MDkwODEyMDEwMFqgggGdMIIBmTCCAR-gAwIBAgIJAPTE3pkCe2mRMAoGCCqGSM49BAMDMCwxFjAUBgNVBAMTDVRlc3QgVFNBIFJvb3QxEjAQBgNVBAoTCXZjYXAgdGVzdDAeFw0yNTA5MDcxMjAwMDBaFw0yNjA5MDgxMjAwMDBaMC4xGDAWBgNVBAMTD1Rlc3QgVFNBIFNpZ25lcjESMBAGA1UEChMJdmNhcCB0ZXN0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEhwal1Q339fP8A2yCtEsm_5_3PGmySe_qOQvXJ7qt4onG0sPo2jPOgVn4rz3AkJQsjiHR7kOKpDvq2-YMpW1YlaMoMCYwDAYDVR0TAQH_BAIwADAWBgNVHSUBAf8EDDAKBggrBgEFBQcDCDAKBggqhkjOPQQDAwNoADBlAjBr9-n3JZly3aETOTXOEyKJOnJZMyUviEfWq-vXL3xYz_4RTDslyjsS4S5dM7TxfAMCMQCxdgdH-IMXky7aeIh0T3FFsxtLk1Ayyom2GVXO7ycG1oLGGcsczo7hNl26Zge8bEUxgfMwgfACAQEwOTAsMRYwFAYDVQQDEw1UZXN0IFRTQSBSb290MRIwEAYDVQQKEwl2Y2FwIHRlc3QCCQD0xN6ZAntpkTANBglghkgBZQMEAgEFAKBNMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAvBgkqhkiG9w0BCQQxIgQgvSz4ZawMLJhVQHrR4xAAKs3pCci2atPsj5rtl5pMHBgwCgYIKoZIzj0EAwIERjBEAiBn7gphQuHqN6PFWF5nfSe8C15DuRJ1H9GjZRf7VNs-VAIgHVTKjRoqlUHY9lRBvAOSu_yo3LrYs15qvLzTRiu80dE" diff --git a/vectors/49-jpeg-registry-verified/input.jpg b/vectors/49-jpeg-registry-verified/input.jpg index d11a669..7bdd225 100644 Binary files a/vectors/49-jpeg-registry-verified/input.jpg and b/vectors/49-jpeg-registry-verified/input.jpg differ diff --git a/vectors/49-jpeg-registry-verified/proof.json b/vectors/49-jpeg-registry-verified/proof.json index 9584322..c2a78e6 100644 --- a/vectors/49-jpeg-registry-verified/proof.json +++ b/vectors/49-jpeg-registry-verified/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/50-jpeg-registry-path-forged/input.jpg b/vectors/50-jpeg-registry-path-forged/input.jpg index 243ec9f..e00cad0 100644 Binary files a/vectors/50-jpeg-registry-path-forged/input.jpg and b/vectors/50-jpeg-registry-path-forged/input.jpg differ diff --git a/vectors/50-jpeg-registry-path-forged/proof.json b/vectors/50-jpeg-registry-path-forged/proof.json index 0ba63af..65c2a02 100644 --- a/vectors/50-jpeg-registry-path-forged/proof.json +++ b/vectors/50-jpeg-registry-path-forged/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/51-jpeg-registry-other-key/input.jpg b/vectors/51-jpeg-registry-other-key/input.jpg index 128edf7..90a2fb2 100644 Binary files a/vectors/51-jpeg-registry-other-key/input.jpg and b/vectors/51-jpeg-registry-other-key/input.jpg differ diff --git a/vectors/51-jpeg-registry-other-key/proof.json b/vectors/51-jpeg-registry-other-key/proof.json index 32b7e24..493d15f 100644 --- a/vectors/51-jpeg-registry-other-key/proof.json +++ b/vectors/51-jpeg-registry-other-key/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/52-jpeg-registry-log-not-trusted/input.jpg b/vectors/52-jpeg-registry-log-not-trusted/input.jpg index e36d7dc..e7d527e 100644 Binary files a/vectors/52-jpeg-registry-log-not-trusted/input.jpg and b/vectors/52-jpeg-registry-log-not-trusted/input.jpg differ diff --git a/vectors/52-jpeg-registry-log-not-trusted/proof.json b/vectors/52-jpeg-registry-log-not-trusted/proof.json index 0bc9df5..2d9173b 100644 --- a/vectors/52-jpeg-registry-log-not-trusted/proof.json +++ b/vectors/52-jpeg-registry-log-not-trusted/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "1yFCS9sKM20LnNjCKeAfHQrp5y8ubemIFTg93L6dN_k", diff --git a/vectors/53-jpeg-registry-after-capture/input.jpg b/vectors/53-jpeg-registry-after-capture/input.jpg index a18740c..f68a997 100644 Binary files a/vectors/53-jpeg-registry-after-capture/input.jpg and b/vectors/53-jpeg-registry-after-capture/input.jpg differ diff --git a/vectors/53-jpeg-registry-after-capture/proof.json b/vectors/53-jpeg-registry-after-capture/proof.json index 9977e4d..f0d20e6 100644 --- a/vectors/53-jpeg-registry-after-capture/proof.json +++ b/vectors/53-jpeg-registry-after-capture/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/54-jpeg-registry-green/input.jpg b/vectors/54-jpeg-registry-green/input.jpg index d11a669..7bdd225 100644 Binary files a/vectors/54-jpeg-registry-green/input.jpg and b/vectors/54-jpeg-registry-green/input.jpg differ diff --git a/vectors/54-jpeg-registry-green/proof.json b/vectors/54-jpeg-registry-green/proof.json index 9584322..c2a78e6 100644 --- a/vectors/54-jpeg-registry-green/proof.json +++ b/vectors/54-jpeg-registry-green/proof.json @@ -55,7 +55,7 @@ "status": "valid" } ], - "sig": "-KLwlDF04XAv6f3EB49uO8jZHHTtWTNGPv1BcOdESwQfVEV3UPn8Os86ARtoVrgnc0zPdFOwXjJnJ5Czs_Astw" + "sig": "z_Yy3aHx0EZsTssqgrkQWwpeQziPnZNae18KWaUabbYj4xEK9sd0AvOK6cLuQ1xM4o6uc_RSR4tYyWCI99FLrA" }, "registry": { "log_id": "n86HEwJWvHOhbryJkD8Q18_41VkQcVInSIqNa1EaBVs", diff --git a/vectors/72-jpeg-footer-crc-mismatch-sidecar/NOTES.md b/vectors/72-jpeg-footer-crc-mismatch-sidecar/NOTES.md index f1651cf..8c15f7e 100644 --- a/vectors/72-jpeg-footer-crc-mismatch-sidecar/NOTES.md +++ b/vectors/72-jpeg-footer-crc-mismatch-sidecar/NOTES.md @@ -1,5 +1,7 @@ # 72-jpeg-footer-crc-mismatch-sidecar -Vector 06 — a structurally valid footer whose CRC does not match the payload — with an intact copy of the proof in a sidecar. The verdict stays *corrupted proof* (§3.1): the sidecar is a fallback for a trailer that is **absent**, not a substitute for one that is present and broken. The CRC exists to tell corruption from stripping, and a file whose trailer was found and fails its CRC was edited after sealing; showing the sidecar's proof as the file's would hide exactly that. +Vector 06 — a structurally valid footer whose CRC does not match the payload — with an intact copy of the proof in a sidecar. Until corpus 8.0.0 the verdict was *corrupted proof*: the sidecar was a fallback for a trailer that is absent, never a substitute for one that is present and broken. + +That made a broken footer an accusation anyone could append to a stripped genuine file (vector 188). §3.1 (*A sidecar that does better*, unreadable footer) now judges the sidecar over the file without the `free` box the footer declares, and the sidecar decides when its outcome ranks strictly above *corrupted proof*: **authentic**, with *trailer unreadable* and `proof_source` the sidecar. The edit is not hidden — the label names it — and nothing is gained that deleting the broken trailer would not give (vector 17). Without a sidecar the verdict is still *corrupted proof* (vector 06), and so it is with a Content Credentials copy instead of a sidecar (vector 126). Generated by `tools/src/generate.ts` with the test key in `tools/src/testkey.ts`. diff --git a/vectors/72-jpeg-footer-crc-mismatch-sidecar/expected.json b/vectors/72-jpeg-footer-crc-mismatch-sidecar/expected.json index 37aa531..7683acd 100644 --- a/vectors/72-jpeg-footer-crc-mismatch-sidecar/expected.json +++ b/vectors/72-jpeg-footer-crc-mismatch-sidecar/expected.json @@ -1,7 +1,20 @@ { "kind": "file", - "outcome": "corrupted_proof", - "labels": [], + "outcome": "authentic", + "labels": [ + "integrity unevaluated", + "key not in transparency log", + "location declared only", + "no trusted time", + "not anchored", + "origin not hardware-attested", + "trailer unreadable", + "watermark not evaluated" + ], "not_evaluated": [], + "core_hash": "dc59127e528a04d6e285de3abe748559e49c7f1ef66b238092a6b13afeeb5119", + "proof_source": { + "kind": "sidecar" + }, "schema_valid": true } diff --git a/vectors/96-jpeg-attestation-revoked-after-device-clock/input.jpg b/vectors/96-jpeg-attestation-revoked-after-device-clock/input.jpg index 534213a..1f708fe 100644 Binary files a/vectors/96-jpeg-attestation-revoked-after-device-clock/input.jpg and b/vectors/96-jpeg-attestation-revoked-after-device-clock/input.jpg differ diff --git a/vectors/96-jpeg-attestation-revoked-after-device-clock/proof.json b/vectors/96-jpeg-attestation-revoked-after-device-clock/proof.json index 48a4b26..d55b631 100644 --- a/vectors/96-jpeg-attestation-revoked-after-device-clock/proof.json +++ b/vectors/96-jpeg-attestation-revoked-after-device-clock/proof.json @@ -57,6 +57,6 @@ "revoked_at": 1759924800000 } ], - "sig": "i_oXhyTYxutYyiFchPoaUbrDWDOn59VVKdbN__J03tcWVnt7DqIZb_cOjmvwbSZ8tkSF9eyMbA_iAteAeP_7WQ" + "sig": "WywBQX5OkreSsuZjnsC5J-Phg4QenfCgUKHnMBjXa10YQrm-dA7Yt6OR1yZD73ZZ2E6YJAg8Z8z3xwCrue1Fjg" } } diff --git a/vectors/97-jpeg-attestation-revoked-without-date/input.jpg b/vectors/97-jpeg-attestation-revoked-without-date/input.jpg index 1505a5e..e5e4640 100644 Binary files a/vectors/97-jpeg-attestation-revoked-without-date/input.jpg and b/vectors/97-jpeg-attestation-revoked-without-date/input.jpg differ diff --git a/vectors/97-jpeg-attestation-revoked-without-date/proof.json b/vectors/97-jpeg-attestation-revoked-without-date/proof.json index ca0afbb..56b8aa0 100644 --- a/vectors/97-jpeg-attestation-revoked-without-date/proof.json +++ b/vectors/97-jpeg-attestation-revoked-without-date/proof.json @@ -56,7 +56,7 @@ "reason": "SUPERSEDED" } ], - "sig": "Q8ZvKYfc4fIKU7QImkcU0mLOhXlblmwHzB2fN1Yl8uMf_8NtvkgvPpfpnFM8tv5u1SbltNyB8UK93dyL9PXQKg" + "sig": "_3lilVQRZhQz3Seo1_VDi6jmyhORyFr3uSOVIeEcQIIno3couTlnFDKy7wG3sZM2zzbe6OaTi_qq_VJe9ruVeA" }, "timestamp": { "tsr": "MIIDMQYJKoZIhvcNAQcCoIIDIjCCAx4CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYKKwYBBAGGjR8BATAxMA0GCWCGSAFlAwQCAQUABCDcWRJ-UooE1uKF3jq-dIVZ5Jx_HvZrI4CSprE6_utRGQIJAHlUBYdp1gAyGA8yMDI1MDkwODEyMDEwMFqgggGdMIIBmTCCAR-gAwIBAgIJAPTE3pkCe2mRMAoGCCqGSM49BAMDMCwxFjAUBgNVBAMTDVRlc3QgVFNBIFJvb3QxEjAQBgNVBAoTCXZjYXAgdGVzdDAeFw0yNTA5MDcxMjAwMDBaFw0yNjA5MDgxMjAwMDBaMC4xGDAWBgNVBAMTD1Rlc3QgVFNBIFNpZ25lcjESMBAGA1UEChMJdmNhcCB0ZXN0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEhwal1Q339fP8A2yCtEsm_5_3PGmySe_qOQvXJ7qt4onG0sPo2jPOgVn4rz3AkJQsjiHR7kOKpDvq2-YMpW1YlaMoMCYwDAYDVR0TAQH_BAIwADAWBgNVHSUBAf8EDDAKBggrBgEFBQcDCDAKBggqhkjOPQQDAwNoADBlAjBr9-n3JZly3aETOTXOEyKJOnJZMyUviEfWq-vXL3xYz_4RTDslyjsS4S5dM7TxfAMCMQCxdgdH-IMXky7aeIh0T3FFsxtLk1Ayyom2GVXO7ycG1oLGGcsczo7hNl26Zge8bEUxgfMwgfACAQEwOTAsMRYwFAYDVQQDEw1UZXN0IFRTQSBSb290MRIwEAYDVQQKEwl2Y2FwIHRlc3QCCQD0xN6ZAntpkTANBglghkgBZQMEAgEFAKBNMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAvBgkqhkiG9w0BCQQxIgQgvSz4ZawMLJhVQHrR4xAAKs3pCci2atPsj5rtl5pMHBgwCgYIKoZIzj0EAwIERjBEAiBn7gphQuHqN6PFWF5nfSe8C15DuRJ1H9GjZRf7VNs-VAIgHVTKjRoqlUHY9lRBvAOSu_yo3LrYs15qvLzTRiu80dE" diff --git a/vectors/98-jpeg-attestation-status-unknown/input.jpg b/vectors/98-jpeg-attestation-status-unknown/input.jpg index 970f4fc..19ac9e9 100644 Binary files a/vectors/98-jpeg-attestation-status-unknown/input.jpg and b/vectors/98-jpeg-attestation-status-unknown/input.jpg differ diff --git a/vectors/98-jpeg-attestation-status-unknown/proof.json b/vectors/98-jpeg-attestation-status-unknown/proof.json index bfa597a..09bbdc0 100644 --- a/vectors/98-jpeg-attestation-status-unknown/proof.json +++ b/vectors/98-jpeg-attestation-status-unknown/proof.json @@ -55,6 +55,6 @@ "status": "unknown" } ], - "sig": "C1FIR7AouPfToDexU6uzOQuYIlAYSFwRa-61ZM0wKW9tkTUlPMYChhuneUX9Z4X5X4zwp895CQ6UHmD6KqfoSg" + "sig": "DDJfCONXI23Kh5u3iz3ybxWQsGoGZPZIXKCjxKfPUD5FrcklSpnBhW1zhgJdmZW2IJFEYG2zJJo8xbKZ4iVO7w" } } diff --git a/vectors/99-jpeg-attestation-status-uncovered/input.jpg b/vectors/99-jpeg-attestation-status-uncovered/input.jpg index 3ef81fe..e3c853b 100644 Binary files a/vectors/99-jpeg-attestation-status-uncovered/input.jpg and b/vectors/99-jpeg-attestation-status-uncovered/input.jpg differ diff --git a/vectors/99-jpeg-attestation-status-uncovered/proof.json b/vectors/99-jpeg-attestation-status-uncovered/proof.json index 82eb2fb..7d3dcb6 100644 --- a/vectors/99-jpeg-attestation-status-uncovered/proof.json +++ b/vectors/99-jpeg-attestation-status-uncovered/proof.json @@ -51,6 +51,6 @@ "status": "valid" } ], - "sig": "cQyiJQwwBsoTL-JAi26CTLUO8Vv-21Uj_nsuI7_fEOoI6V5VnsssoOEF05_6G7B5oBQqGs04wdm8joNyroXJUg" + "sig": "7lPy2Al8yegISQSYjctFC9dkv9tleELtK_axJhZ_ylYAUaM2E4wjA6tbNEXQhCCGedsSBzveOCHsz-SNqJE-7g" } } diff --git a/vectors/CONFORMANCE.md b/vectors/CONFORMANCE.md index 1cf7b78..5737454 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 7.0.0"* +This file says what the sentence *"conformant with vcap-spec corpus 8.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. @@ -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 187 hides the loss of 157 vectors. Compare against + over a corpus of 193 hides the loss of 163 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": "7.0.0", + "corpus_version": "8.0.0", "manifest_sha256": "…64 hex…", - "vectors_declared": 187, - "vectors_run": 187, - "passed": 187, + "vectors_declared": 193, + "vectors_run": 193, + "passed": 193, "failed": [], "not_run": [] } @@ -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 7.0.0 - says nothing about a later corpus, and everything about 7.0.0's. State the version you ran. + major one moves some (`README.md`, *Bump policy*), so passing corpus 8.0.0 + says nothing about a later corpus, and everything about 8.0.0's. State the version you ran. diff --git a/vectors/MANIFEST.json b/vectors/MANIFEST.json index e4a12e9..6c7e718 100644 --- a/vectors/MANIFEST.json +++ b/vectors/MANIFEST.json @@ -1,6 +1,6 @@ { - "corpus_version": "7.0.0", - "vector_count": 187, + "corpus_version": "8.0.0", + "vector_count": 193, "vectors": [ { "name": "01-jpeg-sealed", @@ -306,14 +306,14 @@ "name": "44-jpeg-attestation-revoked-before-capture", "kind": "file", "outcome": "authentic", - "sha256": "15833ee3e3ffe04b54cf1a083249ba1740f153c10ec726bfc814b8146b382e38", + "sha256": "18dd2ee131629d0e17a31b7dca843c91f188c2061aa3e401dabdcae40505a515", "files": 4 }, { "name": "45-jpeg-attestation-revoked-after-capture", "kind": "file", "outcome": "authentic", - "sha256": "7bb6cb607593f94bd354babbf521e0576055de62efcf73b2064188be501731f1", + "sha256": "c4068e67e9c3c15d1ff4d5ca8e9f336d011953975d7e0b78f80e335d8e47a33a", "files": 4 }, { @@ -341,42 +341,42 @@ "name": "49-jpeg-registry-verified", "kind": "file", "outcome": "authentic", - "sha256": "14ce182ea3a490d475963b79b3fbbf16087609350841a06b05b0d3a16148a789", + "sha256": "3fe0bb8faa73a874671cd4cef440ca163bbb23bae205ab6705a0ac683255c3e5", "files": 4 }, { "name": "50-jpeg-registry-path-forged", "kind": "file", "outcome": "authentic", - "sha256": "709a408c59dc421e191d5f6985d5082f3cc66f27d8f6f8ee2d9a32f652ff5e03", + "sha256": "c6cd1412d2ab09c93c16014e216281027666aa500a764c797a5ae4ca1ce27e67", "files": 4 }, { "name": "51-jpeg-registry-other-key", "kind": "file", "outcome": "authentic", - "sha256": "41601d97b5787e9aff7e22e7cd852c3eeeb8814c5e72129d32efb63535f672f0", + "sha256": "1fae4d8a980f59bb39845b3b3306b3d5fcae897b0bbb84007c50e62bcaec9248", "files": 4 }, { "name": "52-jpeg-registry-log-not-trusted", "kind": "file", "outcome": "authentic", - "sha256": "fd720d35aadf447aff991b70655234496fcc974972ed0fda1a6fc274658216fb", + "sha256": "c918a59c019265bc8c06771418668c4d5caa62a3ccc3f71e6ec1ae84a12ec5db", "files": 4 }, { "name": "53-jpeg-registry-after-capture", "kind": "file", "outcome": "authentic", - "sha256": "ab26a3307a9c0c66069d6c325a2bc3e7dd6901d8a06787a901b6ec049d668de2", + "sha256": "efe919e6cd29585e9ff117b33cbc13a5fabde6ca52f7b1caf0e2f5c6597b1b64", "files": 4 }, { "name": "54-jpeg-registry-green", "kind": "file", "outcome": "authentic", - "sha256": "cf1ac384017c4fbf9cd5d10d33ba75105d635f3fa11721bdc3ef2bd593d837fd", + "sha256": "d196fddc1a0f323380a482dea3369e327f62eff80f90be4b2c5666ab084f0b41", "files": 4 }, { @@ -501,8 +501,8 @@ { "name": "72-jpeg-footer-crc-mismatch-sidecar", "kind": "file", - "outcome": "corrupted_proof", - "sha256": "91abe1c3b6c48f4bde52fe175112775bf7ca1650c0ada08c8cfafe4a667ec466", + "outcome": "authentic", + "sha256": "8a6dc12bdcb95efa07206129340b345100f23e1258e9a6cf191b7947c84be560", "files": 5 }, { @@ -670,49 +670,49 @@ "name": "96-jpeg-attestation-revoked-after-device-clock", "kind": "file", "outcome": "authentic", - "sha256": "40170b2fb6a24fcb9f48023ed59a7184adc20bf5445be8812036902e8ae7216c", + "sha256": "96aeafcd801a1ea49cf697d9125ab62a6472ebe24977a7b22ca8710eb48f93f6", "files": 4 }, { "name": "97-jpeg-attestation-revoked-without-date", "kind": "file", "outcome": "authentic", - "sha256": "46e7fcb255468d8b0157d74f3df52666f457ebe1429c8bc5737a4d9078acd84f", + "sha256": "6b91e7e47797a73acd75da94bad21df715c08560682ebcaba05fe681b59a2da5", "files": 4 }, { "name": "98-jpeg-attestation-status-unknown", "kind": "file", "outcome": "authentic", - "sha256": "3ab67db4aca7c1f693382a3207bd7153d081cb4f330c9dd262da077f0bbae2cd", + "sha256": "44b0328553b70ff6bbda306f28786b0b5bdea74dab48cc1a2fd758f09f831660", "files": 4 }, { "name": "99-jpeg-attestation-status-uncovered", "kind": "file", "outcome": "authentic", - "sha256": "009d51e48e5acab9a0a8f0903b52afe437bc2f096822f9a9f95e39d4ae532c10", + "sha256": "570d301988b9c884a81876f2da5a4170aa4559c353ff34b170e0b5d1042deb73", "files": 4 }, { "name": "100-jpeg-registry-green-timestamped", "kind": "file", "outcome": "authentic", - "sha256": "6e3180435a3009be9aec5eaa0cc98698fca925e74d578819b325be1efa7f95b9", + "sha256": "b04a01251f96270339e151bd565d00dce5912b6568324445b6dfc143880acada", "files": 4 }, { "name": "101-jpeg-registry-no-device-clock", "kind": "file", "outcome": "authentic", - "sha256": "2738fcc9c8bfe6fcf11cf02882669e24332e79c14b44ea697cc5a98eada2a4c7", + "sha256": "980053d8ca9b07712c3e807362e1b787262f1506a9064f344b1f36dad3fff12b", "files": 4 }, { "name": "102-jpeg-registry-after-trusted-time", "kind": "file", "outcome": "authentic", - "sha256": "af3cf6214515e3cd0b93ebb96d09cc4af14243f4c86eab1f9824fec7e47a28de", + "sha256": "33f84d9a6ce5629d6b8339c3f0e9e94ed394b0d5b0bde15f4c1222679f5ef5b2", "files": 4 }, { @@ -740,14 +740,14 @@ "name": "106-jpeg-attestation-app-not-admitted", "kind": "file", "outcome": "authentic", - "sha256": "5ecb96f02528c827bb8cb6cad1c2446a4c423553b64af3bbd34fc454c22a4536", + "sha256": "75a9ba45ccab1aba2e36a7d7517805e202b98640caeccd63a29d1b9440c8b317", "files": 4 }, { "name": "107-jpeg-attestation-app-not-checked", "kind": "file", "outcome": "authentic", - "sha256": "0150f79b097913f9aa134bd8c9ecc36e85ae60fe1e47358d27c206ba9ecdc012", + "sha256": "4999a6c8100c0c59f9a9481bb367393b3c0898ef83b9f90f1e59a3203f6c7562", "files": 4 }, { @@ -761,7 +761,7 @@ "name": "109-jpeg-integrity-failed-caps-green", "kind": "file", "outcome": "authentic", - "sha256": "365ca3267a1bbbbf8583704325a6fa61e7098d28e5ba48c5b448a194cf6907e1", + "sha256": "a4660db4462a7835fcf7fa8dcdb3bb718118f4fd88328f21bdd5e585c0b84262", "files": 4 }, { @@ -1033,14 +1033,14 @@ "name": "148-jpeg-registry-timestamped-integrity-absent", "kind": "file", "outcome": "authentic", - "sha256": "576031948a06fed1ecf83960555442114c261f6cfdb6ed223be53213b5b73685", + "sha256": "95ac4bf357726efbc460dabd6c4eb38d622379de357e1020d78b02ad2f3e095b", "files": 4 }, { "name": "149-jpeg-integrity-basic-not-green", "kind": "file", "outcome": "authentic", - "sha256": "c5ab328529614e8151f7fa777165db74213ddc2c0f387b1548ec8c8d275fb138", + "sha256": "6d50e60b0937d2fdc61a51bfa17997e91806be715f5a4f7ca4f1a8f3ef432d15", "files": 4 }, { @@ -1061,7 +1061,7 @@ "name": "152-jpeg-attestation-key-imported", "kind": "file", "outcome": "authentic", - "sha256": "33cca9f56063092c6016e0183e8041f723f65e61f494a1bc9c86caf01d8e613c", + "sha256": "f728c4f84b1e7f4925a7b1048f6aaaa65142ca0c3aedfab3748348541aea8f60", "files": 4 }, { @@ -1075,14 +1075,14 @@ "name": "154-jpeg-integrity-other-trusted-log", "kind": "file", "outcome": "authentic", - "sha256": "b3b4dea186df55b69ac978839d5a3cce265eff8acd0c97f520ce9e8e8128563b", + "sha256": "cf2f19a69ef6afdd23b4aec101693afb103bbaedd0b4045914f8ea48dabbe90d", "files": 4 }, { "name": "155-jpeg-key-revoked-device-clock", "kind": "file", "outcome": "authentic", - "sha256": "d605ab35f68783d3663798cd37aedc1c0ec7e59ec270f00f5f867c088fc75931", + "sha256": "e20dac731d12e8e68ed09684ea15ad37f266d92ce63e9e2bbd3f627131c70d2d", "files": 4 }, { @@ -1096,7 +1096,7 @@ "name": "157-jpeg-attestation-holds-proves-none", "kind": "file", "outcome": "authentic", - "sha256": "6e0a17672b0dd8a30e20a7a99f8e75a8650914478e68574d0409bb8bf0482234", + "sha256": "e425fe2149825004babb6850cf2da2d435625fb626a195d269e531516c63d862", "files": 4 }, { @@ -1145,7 +1145,7 @@ "name": "164-jpeg-attestation-revoked-proves-none", "kind": "file", "outcome": "authentic", - "sha256": "09b7ea6ed61a9202015e041a8b3d633cdfde8fc8bcf6b69dd7f9d98a6bf50153", + "sha256": "a181e3d15d02c893fd00864832907d31f0695dbc6e678b32a023905aaa058270", "files": 4 }, { @@ -1308,6 +1308,48 @@ "outcome": "no_proof_found", "sha256": "5a3338472007f3165cd632f7fe41677c528f1142189ec48ec2593a83be8361e1", "files": 4 + }, + { + "name": "188-jpeg-crc-broken-trailer-sidecar", + "kind": "file", + "outcome": "authentic", + "sha256": "0a79284e07ec69ecc53346e6e2b96bfc5f48ad08d09052a0f560d1b328c0dedf", + "files": 5 + }, + { + "name": "189-mp4-container-crc-broken-trailer-sidecar", + "kind": "container", + "outcome": "verified_clip", + "sha256": "e940af63135810122927756925c137a5ee6965cda262746ee534a432c59b11a0", + "files": 5 + }, + { + "name": "190-jpeg-footer-major-2-sidecar", + "kind": "file", + "outcome": "authentic", + "sha256": "963e6f69bce5b4bfdbfb12cdec3371a03df8cbcddbd54273707ba76e91fcbb9d", + "files": 5 + }, + { + "name": "191-jpeg-fake-magic-sidecar", + "kind": "file", + "outcome": "authentic", + "sha256": "a61e04176fa49ba2ab9789ec9dccf56c4e106a2ccf2adc118c33fea7cdee559b", + "files": 5 + }, + { + "name": "192-jpeg-crc-broken-trailer-sidecar-no-better", + "kind": "file", + "outcome": "corrupted_proof", + "sha256": "8d0e83a6a91c5c5a8e13f53692399d504c32e8c07b51b2a3c707eada98491998", + "files": 5 + }, + { + "name": "193-jpeg-sealed-then-crc-broken-trailer-sidecar", + "kind": "file", + "outcome": "corrupted_proof", + "sha256": "7fb7a2b6eef3a4640d19895038e214c070e0de18f21d576ae31b3d6dc388182d", + "files": 5 } ], "fixtures": { diff --git a/vectors/README.md b/vectors/README.md index 2a42953..d3a8cf2 100644 --- a/vectors/README.md +++ b/vectors/README.md @@ -40,7 +40,7 @@ no position 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, 169–171) and on 172–174, and are compared where present. +appear on the carrier vectors (123–147, 169–171), on 72, 172–174 and on 188–191, and are compared where present. `debug`, where present, is for humans: intermediate bytes to compare before touching signatures (the 96-byte segment messages of 25, the timing records of 175). @@ -150,7 +150,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 7.0.0" and mean something a consumer can check. +with vcap-spec corpus 8.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, @@ -166,7 +166,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 -7.0.0" has to contain to be checkable — corpus version, manifest hash, and +8.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` / @@ -225,7 +225,14 @@ with both — 33, 38, 39, 86–94, 156, 158–163, 165–168 and 173 by `npm run generate`, 143–147 and 171 minted again by `make-c2pa-vectors.ts` (new salts) — and **none changed its verdict**; 34 did not move (no `segments`). The device captures 36, 37, 48 and 85 keep their bytes and their *no proof -found*. 175–187 were added. +found*. 175–187 were added. **8.0.0 is major**, for two reasons. The +`attestation_status` message gained its separator (§6.2), so every vector +that carries one moved bytes under a re-signed snapshot — 44, 45, 49–54, +96–102, 106, 107, 109, 148, 149, 152, 154, 155, 157 and 164 — with **no +verdict changed**. And a sidecar now outranks a footer that cannot be read +when it does better without it (§3.1), so **72 changed its verdict**, from +*corrupted proof* to *authentic* with *trailer unreadable*. 188–193 were +added. `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 @@ -260,10 +267,12 @@ none, by design — see its file comment), so there is nothing here to hand a marred payload to. That boundary belongs to whichever component owns the decoder. -**The sidecar vectors** (17, 18, 70, 71, 72, 172–174) carry `input..vcap` next to +**The sidecar vectors** (17, 18, 70, 71, 72, 172–174, 188–193) carry `input..vcap` next to the input, and a verifier under test is handed both, as `tools/test/vectors.test.ts` -does. They pin §3.1: the trailer wins when it is found and intact and the sidecar does no better (18, 174), a sidecar that does better over the same bytes outranks an appended trailer (172, 173), a broken -trailer is *corrupted* whatever the sidecar says (72), and a sidecar alone +does. They pin §3.1: the trailer wins when it is found and intact and the sidecar does no better (18, 174), a sidecar that does better over the same bytes outranks an appended trailer (172, 173), and +one that does better without an unreadable trailer outranks the footer — +CRC failing (72, 188, 189), another major (190), a size that describes no +trailer (191) — while a tie keeps the footer's verdict (192, 193), and a sidecar alone restores the full verdict over unchanged bytes (17) and nothing over changed ones (70, 71). **The C2PA co-existence vectors** (02, 03, 04, 68, 69, 73) carry no C2PA signature — a JUMBF-shaped APP11 or a `uuid` box with the C2PA extended diff --git a/vectors/VERSION b/vectors/VERSION index 66ce77b..ae9a76b 100644 --- a/vectors/VERSION +++ b/vectors/VERSION @@ -1 +1 @@ -7.0.0 +8.0.0 diff --git a/vectors/conformance-report.json b/vectors/conformance-report.json index e277c1f..fb24760 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": "7.0.0", - "manifest_sha256": "ac9109e533ec981081c68e7859bb59552f129269cdaf4e38e2a6acb6edabc2ec", - "vectors_declared": 187, - "vectors_run": 187, - "passed": 187, + "corpus_version": "8.0.0", + "manifest_sha256": "3073891fab1d944b093f64ed1c6e5a6bf8af2f3a1fe49dd84110a4a4aa31cd68", + "vectors_declared": 193, + "vectors_run": 193, + "passed": 193, "failed": [], "by_kind": { - "container": 43, - "file": 135, + "container": 44, + "file": 140, "jcs": 2, "segments": 7 }, "by_expected_outcome": { - "authentic": 98, - "corrupted_proof": 3, + "authentic": 102, + "corrupted_proof": 4, "frames_not_compared": 12, "n/a": 2, "nested_proof": 1, "no_proof_found": 33, "tampered": 26, "unsupported_format_version": 2, - "verified_clip": 10 + "verified_clip": 11 } }