WebAuthn/Passkeys Rollout Plan
Executive Summary
This document outlines a secure, user-friendly rollout of WebAuthn/passkeys for phishing-resistant authentication. Passkeys leverage FIDO2/WebAuthn for passwordless, syncable credentials stored on devices or cloud services (e.g., iCloud Keychain, Google Password Manager).
Key Goals :
Replace passwords with phishing-resistant passkeys.
Default to strongest security (user verification required, discoverable credentials).
Seamless recovery without weak fallbacks.
Phased rollout to minimize disruption.
Assumptions :
Supported browsers: Chrome 89+, Safari 16+, Firefox 122+.
Platforms: Desktop/mobile with passkey sync enabled.
Backend: Supports WebAuthn APIs (e.g., via webauthn Ruby gem, @simplewebauthn/server Node.js).
Timeline : 3 phases over 12 weeks (detailed below).
1. Ceremony Flows
Flows prioritize UX with progressive enhancement. Use navigator.credentials.create() and get() APIs.
1.1 Registration Ceremony
Goal : Create a discoverable (resident key) passkey with user verification.
code Copy code
User Action | Client (JS) | Server
--------------------|--------------------------------------|--------------------------------
"Sign up/Login" | Check platform support |
| Call createCredential() |
| Options: { | Send PublicKeyCredentialCreationOptions:
| rp: {name: "App", id: "example.com"}, | - challenge: random bytes
| user: {id, name, displayName}, | - rp.id: exact domain (phishing resist)
| pubKeyCredParams: [ES256], | - userVerification: 'required'
| authenticatorSelection: { | - attestation: 'direct' (optional)
| residentKey: 'required', | - pubKeyCredParams: ['es256']
| userVerification: 'required' | - authenticatorSelection as above
| } |
| } |
| Prompt: "Create passkey? (FaceID/etc)"|
| User confirms (biometrics/PIN) |
| Credential created → POST to /reg | Validate signature, store publicKey,
credID, userHandle, signCount.
UX Defaults : Auto-suggest passkey if supported; fallback to email magic link for unsupported browsers.
Multi-Device : Encourage platform sync ("Sync to iCloud/Google?").
1.2 Authentication Ceremony
Goal : Silent auth where possible, with UV fallback.
code Copy code
User Action | Client (JS) | Server
--------------------|--------------------------------------|--------------------------------
"Login" | Call getCredential() |
| Options: { | Send PublicKeyCredentialRequestOptions:
| rpId: "example.com", | - challenge: random bytes
| allowCredentials: [credIDs], | - userVerification: 'discouraged' (hybrid UX)
| mediation: 'conditional' | - rpId: exact domain
| } |
| Autofill/passkey prompt |
| User confirms if needed |
| Assertion → POST to /auth | Verify signature, UV if required,
increment signCount, issue session.
2. Recovery Mechanisms
Prioritize self-recovery without passwords/SMS. No weak fallbacks in defaults.
2.1 Primary Recovery: Passkey Sync + Multi-Authenticator
Sync : Rely on platform sync (iCloud/Google). UX: "Add passkey to another device?"
Multi-Device : During reg, prompt for 2+ authenticators (phone + laptop).
Account Linking : Pre-register secondary email/device during onboarding.
2.2 Backup Recovery Flow
code Copy code
Lost Access? → "Recovery Options"
├── View/Add Passkeys (if any synced)
├── Backup Code (one-time, printed during reg)
│ - Generate 10x 8-char codes on reg.
│ - Rate-limit: 3/hr, expire after use.
│ - UX: QR/Print → "Use code to add new passkey"
└── Escalation: Support Ticket (human review + email proof)
- No SMS/email OTP.
Recovery Ceremony :
Enter backup code → Server validates.
Temporary session → Force new passkey registration.
Revoke old credentials post-recovery.
2.3 Admin Flows
Bulk revoke (e.g., compromised device).
Audit logs: All creations/assertions.
3. Phishing-Resistant Defaults
Enforce via server-side options. No client overrides.
Parameter Default Value Rationale rp.idExact domain (e.g., "example.com") Prevents subdomain phishing (e.g., evil.com). userVerification'required' (reg), 'discouraged' (auth)Ensures biometrics/PIN; hybrid UX. residentKey'required'Discoverable credentials (no username entry). challenge32+ cryptographically random bytes Anti-replay. pubKeyCredParamses256 onlyEfficient, secure curve. timeout60s Balance UX/security. Fallbacks None (progressive) No passwords/SMS in core flow.
Additional Hardening :
HTTPS-only.
HSTS + CAA for cert pinning.
Monitor signCount for cloning attacks.
AAGUID filtering (prefer security keys over software).
4. Rollout Strategy
Phased Approach (12 weeks):
Phase Weeks Actions % Users Prep 1-2 Backend integration, reg/auth APIs. Beta test w/ 100 users. User education banners. 0% Opt-In 3-6 Enable passkeys as "Try Passkeys" button. Migrate willing users. Monitor metrics (adoption, drop-off). 10-20% Default 7-10 New users: Passkeys only. Existing: Prompt on login ("Upgrade?"). Backup codes mandatory. 50-80% Full 11-12 Passwords deprecated. Auto-migrate via magic links → passkey prompt. 100%
Metrics :
Adoption: % passkey logins.
Recovery rate: <1%.
UX: Completion time <5s, CSAT >4.5/5.
Risks & Mitigations :
Browser Support : Detect + educate ("Enable passkeys in settings").
Sync Issues : UX: "Passkey not synced? Add on phone."
Legacy Users : Graceful migration + sunset passwords.
Implementation Resources :
Client: @github/webauthn-json polyfill.
Server: SimpleWebAuthn libs.
Testing: webauthn.io playground.
This plan delivers phishing-resistant auth with 99% UX parity to passwords. Feedback welcome for iteration.
Draft v1.0 – Sherlock, Trailblazer Labs