VVeritia documentation

Architecture & security

Threat model

What the system protects against, what it does not — each protection bounded to a precise threat class. Never "infallible".

Built from 6 source documents

Protected

ThreatHow
Stolen mandate replayed from another machinePoP: no agent private key → no valid proof (pop_key_mismatch)
Spoofing by IP / network locationIdentity bound to a key, not a network (IP whitelisting rejected)
Sharing one mandate across agent instancesEach agent has its own key; any instance without the key fails PoP — self-defeating by construction
Replay of a captured valid requestProof covers method + URL + body + time + unique id; short window + seen-id cache (dpop_replay)
Active MITM modifying the requestProof covers the body (bsha) and URL (htu) → body_hash_mismatch / dpop_htu_htm_mismatch; plus TLS
Passive eavesdroppingTLS between local tool and provider (to require contractually). The mandate is signed, not encrypted — its privacy depends on TLS and on log redaction
Token meant for provider A presented to Baud check (aud_mismatch) — RFC 8725
A human creating a mandate for someone else's accountAccount linking: the ref is vouched by the provider from an authenticated session
Assertion from provider A replayed as Biss against registered providers + per-provider JWKS + aud = Veritia
Tampered account-link assertion inside a mandate (POC)Provider re-verifies its own signature (account_ref_assertion_invalid / _value_mismatch / _jkt_mismatch / _stale)
Cross-provider correlation via a leaked provider_account_ref✅ only if pairwise — forbid global ids in the integration guide

Partially protected

ThreatLimit
Revoked mandate still honouredExposure window until the provider re-checks (every call in V1)
Revocation endpoint unavailableFail-open vs fail-closed undecided for the product (POC: fail-closed)
Dispute about what really happenedNeeds both audit trails, never one — revocation & audit
Replay / fixation of a V2 account-link assertionShort TTL + single-use; browser binding undecided — V1 (silent OIDC) closes it
Leak of the itsme identity ↔ account link Veritia holdsNew surface: encryption at rest, minimisation, retention, DPIA
Cross-provider correlation via a shared agent keyWith one key per machine, cnf.jwk is identical in every provider's mandate — open

Not protected — state these openly

ThreatWhy
Prompt injection — legitimate agent, legitimate key, action within the mandate, manipulated by malicious content it readThe request is cryptographically perfect; PoP and disclosed_scope detect nothing here. The most important limit to state publicly. The natural mitigation (runtime behavioural detection) moves toward Daon's patent claim.
Exceeding declared limits (amount, tools, accounts)By design: the provider enforces (binding: false)
Compromise of the user's machine after setupKey and mandate are co-located; the attacker inherits everything until manual revocation
The AI reading the key fileNot comparable to a secure enclave: a file with Unix permissions. Safe only when no file/shell tool is wired to the agent (e.g. Claude Desktop with only the local tool). Claude Code-type agents need care. No HSM/TPM/keychain in the design.
Supply-chain compromise of the local tool / SDK packageNot addressed — package signing, reproducible builds, open source recommended (undecided)
Compromise of itsme or of the human's itsme account/device (phishing, SIM swap)Veritia inherits itsme's identity as ground truth
Consent obtained by social engineeringitsme proves who logged in, not that consent was informed — itsme Sign (QES) is the V1.1 lever
A malicious provider vouching for the wrong customerOut of scope — the provider is trusted for its own customer base
Rate limiting / DDoS on the provider endpointThe provider's existing stack; Veritia's check is added, never substituted
Multi-hop delegation (agent A → agent B)act models one agent; no attenuation chain in V1

Hardening still to do before a real pilot

  • Formal review of the provider filter against RFC 9700 (OAuth Security BCP), RFC 8725 (JWT BCP), RFC 9449 (DPoP) — designed aligned, not audited line by line.
  • Decide DPoP-Nonce (server challenge) for production.
  • HTTPS everywhere outside localhost + redact Authorization/DPoP headers in logs/APM.
  • Setup-code redemption: rate limiting + logging before internet exposure.
  • Pseudonymous sub; treat agent_label (free text) as potentially identifying.
  • Server-side enforcement of "one live mandate per label".
Generated 2026-11-30 by documentation/build.mjs · edit the Markdown, never this HTML.