Cyber Trainer Passwords & Auth
Passwords & Auth · Chapter 06

Passkeys & FIDO2

Passkeys replace the password with a key pair, the same public-key cryptography that secures HTTPS. There's no shared secret to steal, guess, reuse or type into a fake site.

How a passkey works

A passkey is a FIDO2 credential. Websites talk to it through the browser's WebAuthn API. Instead of a password, there's a key pair:

Your deviceprivate keynever leaves the device or password manager
→
Unlockfingerprint, face or PINchecked locally, never sent
→
Signatureover challenge + site addressunique every time
→
Websiteverifies with your public keypublic key is useless to thieves
→
Signed in✓no password involved
🔑 The website only ever stores your public key. A database breach leaks nothing an attacker can sign in with.

Your fingerprint or face is used only to unlock the private key on your device. It's never sent to the website, so biometrics stay private.

Why phishing doesn't work

Every passkey is created for one specific website, identified by its domain (the relying party ID, e.g. microsoft.com). When you sign in, the browser, not the web page, adds the real address it's on to the data being signed. So:

Signing in with a passkey

Create and test a real passkey

This lab uses your browser's real WebAuthn API to create a passkey for this site, then signs in with it and verifies the signature here on the page, just as a website's server would.

Live WebAuthn demo
Press "Create a passkey". Your device will ask you to confirm with your fingerprint, face, PIN or security key.

This creates a real passkey called "Passkey demo" for this website in your device's password manager. It isn't linked to any account and nothing is sent to a server. You can delete it afterwards in your password manager's settings. Requires a recent browser on a device with a screen lock, or a security key.

Synced and device-bound passkeys

☁️ Synced passkeys

Stored in Apple Passwords (iCloud Keychain), Google Password Manager, Windows, or a password manager like Bitwarden or 1Password, and synced (end-to-end encrypted) across your devices. Convenient, and lose a phone without losing your accounts. Ideal for most people.

🔐 Device-bound passkeys

Created on a hardware security key (YubiKey, Google Titan) and can never be copied off it. The strongest option, required for NIST AAL3. Ideal for admins and high-risk users. Register two keys in case you lose one.

Signing in on a computer that doesn't have your passkey? Choose "use a phone or tablet" and scan the QR code. Your phone signs the challenge and Bluetooth confirms it's physically nearby, so a remote attacker can't use the QR code.

Passwords vs passkeys

PasswordPassword + TOTPPasskey
Can be guessed or crackedyespassword canno
Reused across sitesoftenpassword oftenimpossible
Leaks in a server breachhash leakshash + TOTP secretpublic key only
Can be phishedyesyes (relayed)no
Effort to sign inType itType it + find codeGlance or touch
Recovery is the new weak linkIf an account still lets you fall back to "email me a reset link" or SMS, attackers will target that instead. The strongest setups use multiple passkeys or security keys and treat recovery as carefully as sign-in.

Knowledge check