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
- 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>.jsonfor offline storage. - No Weak Fallbacks: Password resets, email verification links, Ethereum wallet signatures, and Virvi support tickets can never initiate or complete identity recovery.
- 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_initiatedevent 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) untilexecutableAtelapses.
- 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 tofrozen_objectedand appendingrecovery_objected+incident_noticeto the public continuity log. - 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— standardPublicKeyManifestV1with complete SHA-384 continuity logprofile.json— identity profile, policy, factor independence breakdown, and credentialssecurity-events.json— complete signed SHA-384 continuity event log with preserved assertionsbindings.json— complete external account & domain binding history (active, revoked, compromised, disputed)recovery-methods.json— public Offline Recovery Root Keys onlyrecovery-requests.json— recovery hold/objection/completion historyproofs/*.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/:
| Authenticator | Registration (UV=required) | Expected storageClass | Counter Behavior | Quick Proof + Live Challenge | Offline Verify (@virvixr/proof-verify) |
|---|---|---|---|---|---|
| Apple Touch ID / Face ID (iCloud Keychain) | [ ] Biometric prompt shown | synced (BE=1, BS=1) | signCount = 0 accepted cleanly | [ ] Both succeed | [ ] Valid offline |
| Windows Hello (TPM) | [ ] PIN / Hello prompt shown | device_bound (BE=0) | Monotonic or 0 | [ ] Both succeed | [ ] Valid offline |
| Android Passkey (Google Password Manager) | [ ] Biometric / screen lock | synced (BE=1, BS=1) | signCount = 0 accepted cleanly | [ ] Both succeed | [ ] Valid offline |
| YubiKey 5 Series (USB-C / NFC FIDO2) | [ ] PIN + physical touch | device_bound (BE=0, BS=0) | Monotonic increment; regression triggers 409 | [ ] Both succeed | [ ] Valid offline |
| Second Device Same iCloud Vault | [ ] Enroll on iPhone after Mac | synced (same AAGUID) | Collapsed to 1 factor in Security Policy | [ ] MFA toggle stays blocked | [ ] Valid offline |
| Offline Recovery Kit (ECDSA P-384) | [ ] Download JSON locally | offline_root_key | N/A | [ ] Initiate 48h hold → Freeze with YubiKey | [ ] Export .zip verifies offline |