Skip to content

Credential Lifecycle, Recovery Policy & Physical Authenticator Checklist

Credential Lifecycle, Recovery Policy & Testing Checklist

1. Credential Storage & Factor Independence Rules

Virvi Proof derives credential storage properties strictly from WebAuthn authenticator flags (BE Backup Eligible, BS Backup State, and AAGUID) — never from user labels:

  • Device-Bound Key (BE=0, BS=0): Private key cannot leave the authenticator (e.g., YubiKey 5, hardware-bound Windows Hello TPM, non-synced platform authenticator). Each device-bound key counts as 1 independent factor.
  • Synced Passkey (BE=1): Private key syncs through a cloud provider vault (e.g., iCloud Keychain, Google Password Manager, 1Password). Multiple synced passkeys sharing the same provider AAGUID — or unattested zero-AAGUID synced passkeys — collapse into 1 single factor.
  • Offline Recovery Root Key (ECDSA P-384 / Ed25519): Generated locally in-browser and stored offline by the user. Counts as an independent offline recovery factor.

Multi-Factor Policy Enforcement

Enabling “Require 2 independent signing credentials for policy & recovery changes” requires at least 2 independent active WebAuthn signing buckets (for example, a synced passkey + a hardware YubiKey, or two device-bound keys). Attempting to enable MFA with two synced passkeys from the same provider AAGUID is rejected with 409 insufficient_independent_factors.


2. Domain-Independent Offline Recovery Kit & 48-Hour Security Hold

  1. Local Generation Only: The browser generates an ECDSA P-384 keypair using Web Crypto, signs a server proof-of-possession challenge locally, sends only the public JWK + signature to Virvi, and downloads virvi-recovery-kit-<handle>.json for offline storage.
  2. No Weak Fallbacks: Password resets, email verification links, Ethereum wallet signatures, and Virvi support tickets can never initiate or complete identity recovery.
  3. Time-Delayed Recovery Hold (Default 48h, configurable 24–168h):
    • Initiating recovery requires a fresh cryptographic signature from a registered Offline Recovery Kit over a single-use ≥256-bit server nonce.
    • Virvi immediately publishes a recovery_initiated event to the public SHA-384 continuity log, displays a prominent Active Recovery Hold banner on /proof/[handle]/, and dispatches urgent in-app + email security alerts.
    • Completion is strictly blocked (425 recovery_hold_active) until executableAt elapses.
  4. Instant Freeze / Objection: Any existing authorized WebAuthn credential (with fresh UV) can call Freeze & Abort Recovery Now at any point during the hold window, immediately transitioning the request to frozen_objected and appending recovery_objected + incident_notice to the public continuity log.
  5. Anti-Bulk-Replacement Guard: Recovery methods cannot be revoked while a recovery hold is active, and at most one recovery method may be revoked every 24 hours.

3. Portability & Offboarding Export (.zip)

Authenticated identity controllers can download /api/proof/identities/:id/export.zip at any time. The archive contains:

  • manifest.json — standard PublicKeyManifestV1 with complete SHA-384 continuity log
  • profile.json — identity profile, policy, factor independence breakdown, and credentials
  • security-events.json — complete signed SHA-384 continuity event log with preserved assertions
  • bindings.json — complete external account & domain binding history (active, revoked, compromised, disputed)
  • recovery-methods.json — public Offline Recovery Root Keys only
  • recovery-requests.json — recovery hold/objection/completion history
  • proofs/*.virviproof.json — retained signed proof artifacts (verifiable 100% offline with @virvixr/proof-verify)
  • bundle-checksums.sha384.json — SHA-384 integrity digests of every file in the export

4. Physical Authenticator Manual Verification Checklist

Before declaring a release ready for production passkey/hardware users, verify all rows on real devices against https://virvi.io/proof/manage/:

AuthenticatorRegistration (UV=required)Expected storageClassCounter BehaviorQuick Proof + Live ChallengeOffline Verify (@virvixr/proof-verify)
Apple Touch ID / Face ID (iCloud Keychain)[ ] Biometric prompt shownsynced (BE=1, BS=1)signCount = 0 accepted cleanly[ ] Both succeed[ ] Valid offline
Windows Hello (TPM)[ ] PIN / Hello prompt showndevice_bound (BE=0)Monotonic or 0[ ] Both succeed[ ] Valid offline
Android Passkey (Google Password Manager)[ ] Biometric / screen locksynced (BE=1, BS=1)signCount = 0 accepted cleanly[ ] Both succeed[ ] Valid offline
YubiKey 5 Series (USB-C / NFC FIDO2)[ ] PIN + physical touchdevice_bound (BE=0, BS=0)Monotonic increment; regression triggers 409[ ] Both succeed[ ] Valid offline
Second Device Same iCloud Vault[ ] Enroll on iPhone after Macsynced (same AAGUID)Collapsed to 1 factor in Security Policy[ ] MFA toggle stays blocked[ ] Valid offline
Offline Recovery Kit (ECDSA P-384)[ ] Download JSON locallyoffline_root_keyN/A[ ] Initiate 48h hold → Freeze with YubiKey[ ] Export .zip verifies offline