Virvi Proof Threat Model & Security Boundaries
Virvi Proof — Threat Model & Security Boundaries
Your identity. Your keys. Your proof.
Virvi Proof separates persistent digital identity (urn:virvi:identity:<uuid>) from replaceable signing credentials, external account bindings, and ordinary login sessions. This document states honestly what is mathematically verifiable without trusting Virvi, what currently depends on Virvi’s infrastructure, what is out of scope / cannot be prevented, and what requires external security review before public launch.
1. Guarantee Boundary: Independently Verifiable vs. Virvi-Trusted
Independently Verifiable Guarantees (Zero Trust in Virvi API at Verification Time)
Using @virvixr/proof-verify (Web Crypto, zero runtime dependencies) plus a downloaded manifest.json or pinned Genesis Fingerprint, any verifier can prove 100% offline:
- Cryptographic Possession of a Signing Key: The WebAuthn assertion (
authenticatorData,clientDataJSON,signature) was produced by the private key matchingcredential.publicKeyJwk/publicKeyCoseover the exact RFC 8785 canonical JSON + SHA-384 domain-separated proof envelope. - All Bound Claims Untampered:
version,mode,issuer,rpId,identity,purpose,proofId,challenge,issuedAt,notBefore,expiresAt,context(platform,recipient,description),credentialId, andkeyFingerprintcannot be modified without invalidating the signature. - Origin, Relying-Party ID, UP & UV Flags: The authenticator attested
originmatchinghttps://virvi.io,SHA-256(rpId)matchingvirvi.io, User Presence (UP=1), and User Verification (UV=1). - Continuity Log Hash-Chain Integrity: Every event in
continuityLogforms an unbroken SHA-384 hash chain fromseq=1(identity_created). - Out-of-Band Genesis Anchor (Optional): When a user publishes their SHA-384
genesisFingerprintin DNS TXT (_virvi-proof.<domain>) orhttps://<domain>/.well-known/virvi-proof.json, verifiers can detect if Virvi’s database ever substituted the identity’s root record. - Domain-Independent Offline Recovery Root Key: Generated locally in-browser (
ECDSA P-384/Ed25519), with private key never transmitted to Virvi; enables cryptographic continuity even offvirvi.io.
Virvi-Trusted Operational Guarantees (MVP)
In the current MVP, the following guarantees rely on Virvi’s server integrity (mitigated by reproducible builds at /api/transparency and public downloadable manifests):
- Key Directory & Revocation Freshness: Virvi serves the live credential authorization state, revocation timestamps, compromised binding reports, and active recovery holds. Offline verification uses the manifest snapshot at download time and explicitly marks freshness as
offline_manifest. - Single-Use Challenge Atomic Consumption: Virvi enforces atomic
WHERE consumed_at IS NULLconsumption for live challenges (identity_challenges) and WebAuthn ceremonies. - Time-Delayed Recovery Hold Enforcement: Virvi enforces the 24–168h (default 48h) security hold window and dispatches immediate in-app/email alerts before allowing recovery completion.
- No External Transparency Log Witnessing Yet (Phase 2): SHA-384 continuity chains are append-only in Postgres and exportable, but external Sigstore/Rekor/Merkle checkpointing is planned for Phase 2 (
LIV-273).
2. Residual Threats & Honest Limitations
Virvi Proof explicitly communicates what cryptography alone cannot solve:
- Real-Time Relay Attacks & Coercion: Live challenge-response prevents replay of past proofs, but cannot stop a real-time relay if a signer approves a deceptive prompt without checking recipient/platform/context. Virvi mitigates this with an explicit Anti-Relay confirmation step requiring the signer to verify recipient, platform, and conversation context before invoking WebAuthn.
- Quick Proof Replay Within Validity Window: Quick Proofs (default 5 min) are intentionally portable and replayable during their validity window; Live Challenge Proofs are recommended for active conversations.
- Compromised Endpoint / Malware on Signer’s Device: Malware running inside a browser or compromised OS can attempt to trick a user into approving prompts. Hardware-backed device-bound keys (
BE=0) and multi-factor policies reduce blast radius. - Synced Passkey Cloud Vault Compromise: Two devices sharing the same cloud passkey vault (matching AAGUID) share one failure domain. Virvi collapses them into 1 factor and refuses to treat them as independent factors.
- Permanent Continuity Loss: If a user loses all authorized WebAuthn credentials and their Offline Recovery Kit, identity continuity permanently ends. Ordinary email password resets, Ethereum wallet signatures, and Virvi support tickets can never transfer control of an established identity.
- Authentication ≠ Trustworthiness or Legal Identity: A valid Virvi Proof proves continuity with an established digital identity — never legal identity (unless separately proofed) and never moral trustworthiness.
3. Post-Quantum / CNSA 2.0 Crypto-Agility
Virvi Proof is engineered for seamless post-quantum migration:
- SHA-384 Throughout: All challenge bindings, key fingerprints, genesis fingerprints, continuity event chains, and export bundle checksums use SHA-384 (CNSA 2.0 192-bit quantum security floor).
- Unbounded Envelopes & Columns: Proof artifacts permit ≥64 KB payloads (
MAX_PROOF_BYTES = 65536), database key/assertion columns are unboundedtext/jsonb, andVirviProofV1.signatures[]reserves an extensible hybrid co-signature array. - Offline Recovery Root Keys: Browser-generated ECDSA P-384 keys (CNSA 2.0 classical transition floor) with reserved
pqAlgorithm(ML-DSA-87/ML-DSA-65) andpqPublicKeycolumns onidentity_recovery_methods. - Browser WebAuthn Limitation: Current FIDO2/WebAuthn authenticators sign classically (
ES256/ES384/EdDSA/RS256). Native ML-DSA WebAuthn algorithms will be added to the explicit allowlist once standardized by FIDO Alliance / W3C WebAuthn Level 3+.
4. Implemented MVP vs. Deferred Phase 2 Scope
| Capability | Status | Tracking |
|---|---|---|
Immutable urn:virvi:identity:<uuid>, strict ASCII handles, SHA-384 Genesis Fingerprint | Implemented (Live) | LIV-268 |
WebAuthn/FIDO2 (UV=required), honest BE/BS storage class, COSE allowlist, step-up | Implemented (Live) | LIV-268 |
Proof Format v1, Quick Proof, #proof= fragments, zero-dep @virvixr/proof-verify | Implemented (Live) | LIV-269 |
| Live Challenge-Response (no account required), anti-relay UX, Browser Trust Book | Implemented (Live) | LIV-270 |
External Bindings (SIWE, DNS TXT, .well-known, GitHub, Discord, X), Compromised Wallet Reports, Disputed Conflicts, BEAT Reissue Link | Implemented | LIV-271 |
Multi-Factor Independence Policy, Domain-Independent Offline Recovery Kit, 48h Recovery Hold & Instant Freeze, Portability .zip Export | Implemented | LIV-272 |
| External Merkle / Transparency Log Checkpointing & Witness Cosigning | Planned (Phase 2) | LIV-273 |
| Scoped Delegation for Teams, Apps & AI Agents | Planned (Phase 2) | LIV-274 |
| Hardware Attestation FIDO MDS 3.0 Root Certificate Validation | Planned (Phase 2) | LIV-273 |
Hybrid Ed25519 + ML-DSA-87 Signing Runtime | Planned (Phase 2) | LIV-273 |
5. External Security Review Pre-Launch Checklist
Before promoting Virvi Proof as high-stakes public identity infrastructure, schedule an independent security review focusing on:
- WebAuthn Ceremony & Step-Up Binding (
apps/server/src/proof/service.ts): Verify no step-up token can be replayed across actions, targets, or identities, and confirm atomicUPDATE ... WHERE step_up_consumed_at IS NULL. - Offline Verifier (
packages/proof-verify): Audit ASN.1 DER ↔ P1363 ECDSA conversion, RFC 8785 JCS edge cases (Unicode surrogates,-0, nested keys), algorithm allowlist enforcement, and extra-claim rejection. - Recovery Hold Race Conditions: Audit concurrent
objectToRecoveryRequestvsfinishRecoveryCompletionunderSELECT ... FOR UPDATErow locking. - SSRF & DNS Rebinding on External Bindings (
apps/server/src/proof/bindings.ts): VerifyguardedAgent()prevents private IP / cloud metadata fetches and redirect bypasses on/.well-known/virvi-proof.json, GitHub Gist, and X oEmbed. - Client-Side Recovery Kit Handling: Verify
privateKeyJwknever appears in network requests, logs,localStorage, or crash reports. - Operational Key & DB Hardening: Confirm Postgres backups are encrypted,
PROOF_RP_ID=virvi.iois locked in production env, and URL redaction strips/challenges/:codeand/artifacts/:codefrom all proxy/app logs.