Sub topic 9
Why Passkeys Resist Phishing: Origin Binding
Prerequisites and the central idea
This chapter assumes you understand passwords, two-factor authentication, centralized exchanges, and basic public-key cryptography. You should also know that a website has an origin, which is the combination of its scheme, host, and port. For example, https://exchange.example and https://exchange.example:8443 have different origins.
A passkey is a credential based on public-key cryptography. During registration, your authenticator creates a key pair:
- The private key stays inside the authenticator or its approved sync system.
- The public key is sent to the exchange.
- The credential is associated with the exchange’s relying party identifier, usually its domain.
During sign-in, the exchange sends a random challenge. The authenticator signs that challenge with the private key. The exchange verifies the signature with the stored public key.
The important protection is origin binding. The browser tells the authenticator which website requested the operation. The authenticator will use the passkey only for the matching website.
How origin binding blocks a fake site
Suppose the real exchange is:
https://exchange.example
An attacker may create:
https://exchange-example-login.com
The fake site can copy the real exchange’s colors and login form, but it has a different origin. When it asks the browser for a passkey, the browser reports the fake site’s origin. The authenticator cannot use the credential created for exchange.example.
The attacker therefore cannot obtain a valid signature for the fake site by simply forwarding the request to your authenticator. A password or one-time code can be typed into a phishing site. A passkey is normally used through a browser ceremony that checks the site identity.
The signed data includes the challenge and origin information. The server must verify all of the relevant fields, not only the signature. It checks that:
- The challenge is fresh and belongs to this login attempt.
- The reported origin is an allowed HTTPS origin.
- The relying party identifier hash matches the exchange.
- The signature matches the stored public key.
- User verification, such as a PIN or biometric check, occurred when required.
Limits and operational gotchas
Origin binding prevents ordinary credential phishing. It does not automatically stop malware controlling your device, a compromised browser, a fake recovery process, or an attacker who already has an authenticated session.
Check the address bar before starting sign-in. Use bookmarks or a password manager’s saved domain rather than links in messages. Treat requests to remove passkeys, disable verification, or move funds as separate high-risk events.
A synced passkey may be available on several devices. That improves recovery, but the security of the sync account and its recovery methods becomes important. A device-bound hardware security key offers a different trade-off: stronger control over where the key exists, but more responsibility for keeping a spare.
| Credential | Resists ordinary phishing | Main remaining concern |
|---|---|---|
| Password | No | Reuse, phishing, and breaches |
| TOTP code | No | Real-time relay and stolen secret |
| Passkey | Usually yes | Device compromise and recovery abuse |
| Hardware security key | Usually yes | Loss without a backup key |
Exercise
A phishing page at https://exchange-example.com asks your browser for a passkey created for https://exchange.example. Why should the authenticator refuse it?
Show answer
The phishing page has a different origin and relying party identity. The authenticator will not use the passkey for that site, so the phishing page cannot obtain a valid signature for the real exchange.