FIDO U2F explained: migrating existing security keys to WebAuthn
Learn what U2F adds to password sign-in, how CTAP1 and WebAuthn AppID compatibility works, and what to check in a legacy-key migration.
FIDO Universal 2nd Factor (U2F) is a public-key protocol that adds a security key as a second factor to an existing username-and-password sign-in. The key creates an origin-specific key pair and Key Handle, then signs a fresh challenge at sign-in. Touching the key confirms user presence; it does not always mean user verification with a PIN or biometric. U2F is therefore different from passwordless sign-in. Services still need recovery, backup-key enrollment, and protection for password-only bypasses or account re-enrollment.
FIDO Alliance calls U2F CTAP1 and says existing keys can provide a second-factor experience in FIDO2-enabled browsers and operating systems. Actual use depends on service, browser, and platform support. Key Handles and keys are designed to be origin-bound, but users should check the real site address and services must protect password fallback and re-enrollment.
To keep legacy U2F credentials during a WebAuthn sign-in migration, an RP can support WebAuthn’s AppID extension. It lists the U2F Key Handle in allowCredentials and accounts for rpIdHash possibly being the AppID hash rather than the RP ID hash. Newly created WebAuthn credentials are not backwards compatible with legacy FIDO JavaScript APIs. Before migration, check stored Key Handle/public-key formats, appid support in target combinations, and user re-enrollment, lost-key, and revocation paths. A counter rollback is a signal to investigate, not proof of cloning; assess it with other risk signals.
References
[FIDO Alliance user authentication specifications](https://fidoalliance.org/specifications/)
[FIDO U2F overview: origin-specific keys and Key Handles](https://fidoalliance.org/specs/u2f-specs-master/fido-u2f-overview.html)
[W3C WebAuthn Level 3: FIDO AppID extension](https://www.w3.org/TR/webauthn-3/#sctn-appid-extension)