Skip to main content
Home › Categories › Software Engineering, Cloud & Cybersecurity › Passkeys (FIDO2 / WebAuthn) vs Passwords and TOTP 2FA: How Phishing-Resistant Authentication Works

Passkeys (FIDO2 / WebAuthn) vs Passwords and TOTP 2FA: How Phishing-Resistant Authentication Works

Author: ZUVDEX Team 4 min read
passkeys vs passwords and 2fa how passkeys work fido2 webauthn phishing resistant mfa aitm reverse proxy phishing bypass 2fa synced passkeys vs hardware security keys biometric local unlock private key

Passkeys—built on the open W3C WebAuthn and FIDO2 Client-to-Authenticator Protocol (CTAP2) standards—replace shared secret passwords with asymmetric public-key cryptography bound directly to a website’s verified TLS domain. During registration, your device generates a unique ECDSA P-256 or Ed25519 key pair: the server stores only the harmless public key, while the private key stays inside your device’s Secure Enclave, TPM, or encrypted keychain—never traversing the network and never leaving anything on the server to steal in a database breach.

Key Highlights

  • Your Face ID or fingerprint image is NEVER sent to the website! Biometrics merely unlock the local hardware vault on your phone or laptop so it signs a one-time cryptographic challenge.
  • 6-digit TOTP authenticator apps and SMS codes are human-typed shared secrets; modern Adversary-in-the-Middle (AitM) phishing kits relay your password AND 6-digit code in real time to steal session cookies.
  • Passkeys are mathematically phishing-resistant because the browser cryptographically embeds the exact Relying Party domain (`rpId`, e.g., `zuvdex.com`) into the signed assertion.
  • Consumer apps thrive on multi-device synced passkeys (Apple iCloud Keychain, Google Password Manager, 1Password), while highest-assurance admin roles enforce non-exportable hardware FIDO2 keys (YubiKey).

1. Why 6-Digit Authenticator Codes Are No Longer Phishing-Proof

Adding a 6-digit Time-Based One-Time Password (TOTP) app on top of a password blocks automated credential stuffing from leaked password dumps—a huge improvement over passwords alone. Yet when a targeted attacker sends a convincing link to `sso-login-portal.net`, open-source reverse-proxy kits (such as Evilginx) sit transparently between the victim and the real site.

As the victim types their username, password, and live 30-second authenticator code into the fake domain, the proxy forwards all three in milliseconds to the real server and captures the resulting authenticated session cookie. Because humans are fallible judges of URL bars, any authentication secret a human can type or approve via push fatigue (‘MFA bombing’) can be socially engineered.

Authentication Methods Ranked by Security, Breach Safety & UX
Auth Method Credential Stuffing SIM Swap Safe AitM Phishing Proof Server DB Breach Risk Typical Login Time
Password Only Vulnerable Yes No High (offline hash cracking) 8–15s (+ resets)
Password + SMS OTP Protected Vulnerable (SS7 / SIM swap) No Moderate 18–30s
Password + Push / TOTP App Protected Yes No (vulnerable to AitM / push fatigue) Moderate 12–22s
Synced Passkey (FIDO2) Immune Yes Yes (Origin-bound signature) Near Zero (public keys only) 2–4s (Biometric)
Hardware Security Key (AAL3) Immune Yes Yes (Hardware non-exportable) Near Zero (public keys only) 3–5s (USB/NFC tap)

2. Step-by-Step: What Happens During a WebAuthn Passkey Sign-In

When you click ‘Sign in with Passkey’ on `https://zuvdex.com`, four clean steps execute in under two seconds:

1) Your server generates a cryptographically random 32-byte nonce (`challenge`) stored briefly in session state and calls `navigator.credentials.get({ publicKey })` in the browser. 2) The browser verifies the active TLS origin (`zuvdex.com`) and constructs `clientDataJSON` containing that exact origin plus the challenge. 3) Your OS prompts Touch ID, Windows Hello, or device PIN; upon local verification, the authenticator signs `authenticatorData || SHA256(clientDataJSON)` with the credential’s private key. 4) Your server verifies the digital signature against the stored public key, checks that `origin === ‘https://zuvdex.com’`, checks the `userVerified` flag, and invalidates the single-use challenge.

FAQs

How can I sign into a Windows desktop browser using a passkey stored on my iPhone or Android phone?

Cross-device Hybrid Transport (formerly caBLE) displays a dynamic QR code containing a one-time public key. Scanning it with your phone verifies physical Bluetooth proximity—so a remote phisher across the internet cannot trick you into scanning their QR code—and completes the signature over an end-to-end encrypted tunnel.

What happens to my passkeys if my phone is lost or stolen?

First, nobody can use a passkey on a stolen phone without passing your biometric or strong device passcode. Second, synced passkeys back up inside end-to-end encrypted cloud vaults (iCloud Keychain, Google Password Manager, or 1Password) so signing into your replacement device restores them immediately.

Should websites delete password login immediately when launching passkeys?

Roll out passkey enrollment alongside existing login first using Conditional UI (autofill passkey prompts right inside the username field), prompt users after login to upgrade in one tap, and let high-security users disable legacy password fallback once two passkeys are registered.

References & Sources

  • W3C Recommendation — Web Authentication: An API for Accessing Public Key Credentials (WebAuthn Level 2 & Level 3).
  • FIDO Alliance — Client to Authenticator Protocol (CTAP 2.1) & Multi-Device Passkey Architecture.
  • NIST Special Publication 800-63B-4 — Digital Identity Guidelines: Authentication and Lifecycle Management.