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 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:
- On
micros0ft-365.com, the browser won't even offer your Microsoft passkey; it belongs to a different site. - Even if a proxy relays the challenge, the signed data records the fake origin, and Microsoft rejects it.
- There's no code for a scammer to ask you to read out.
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.
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
| Password | Password + TOTP | Passkey | |
|---|---|---|---|
| Can be guessed or cracked | yes | password can | no |
| Reused across sites | often | password often | impossible |
| Leaks in a server breach | hash leaks | hash + TOTP secret | public key only |
| Can be phished | yes | yes (relayed) | no |
| Effort to sign in | Type it | Type it + find code | Glance or touch |