Security model #
Each protection below was tested against a real attack, in a real browser where a browser is involved, before it was claimed. The contract and every pass rule are in docs/PROVENANCE-V1.md and docs/PRODUCT-PLAN-2026-11-24.md in the TensorChain repository; failures on the way are recorded there too.
Records #
| Protection | Tested attack | Result |
|---|---|---|
| Every object named by its sha256 | one byte changed in stored evidence | the attestation verifies invalid, naming what changed |
| Ed25519 signatures (RFC 8032), keys in mode-600 files, an audited library in production | a forged signature; a key marked compromised | invalid; every signature by a compromised key is invalid |
| Checkers bound to their own source code | a checker changed after attesting | earlier attestations no longer verify as valid |
| Revocation by the target's own authority | someone else revoking your source | refused: only the owner, issuer or key holder may revoke |
Sessions and requests (the web app and any app built on it) #
| Protection | Tested attack | Result |
|---|---|---|
The session cookie is __Host-, Secure, HttpOnly, SameSite=Strict, and only names the session | a stolen cookie sent alone | **401 signature_missing** |
| Every request is signed (RFC 9421) by a non-extractable device key, over method, URL and a body digest (RFC 9530), with a nonce | a captured request replayed | **401 replay** |
| Every response is signed by the host | one byte of a response changed in transit | the page refuses it: response_invalid |
| A request is bound to what the user saw (the screen's text, the action, the fields it may carry) | a page made to send a field to another endpoint | refused before it leaves, and refused by the server |
| Every script and stylesheet is pinned by SRI hash; Trusted Types with no policy; no inline code | one changed byte in a script; an injected innerHTML | the browser refuses the script, 0 requests are sent; the injection throws |
| Secret fields sealed in the browser to the host's key (X25519 + AES-256-GCM), bound to the field | a TLS-terminating proxy recording traffic; a ciphertext moved to another field | 0 card digits in the recording; the moved ciphertext is refused seal_invalid |
| Browser sessions rate-limited on their own bucket; an unknown cookie gets the anonymous limit | a made-up session id to escape rate limits | still limited as anonymous |
The edge #
| Protection | What it watches |
|---|---|
| Certificate Transparency watch, every 6 h | any certificate for our domains from an issuer other than Let's Encrypt, or for a name we do not use |
| A host-signed manifest of the published verify site | every published file re-hashed against the signed manifest, live, every 6 h |
| Strict CSP on every page; the landing page and these docs run no script at all | injected markup on public pages |
What is not claimed #
- Malware inside the page can read a field before it is sealed and use the device key while the session lasts;
it cannot take the key away. Short sessions and revocation limit that.
- A forged certificate is detected after issuance, not prevented; CAA and the certificate authority are the
prevention.
- The pure-Python crypto (kept as the reference and for local development) is not constant-time; deployments
refuse to start without the audited library.
- RFC 9180 (HPKE) conformance and real C2PA (which needs X.509 certificates) are not claimed.