In the last few weeks we've had two big cryptographic announcements. One related to post-quantum cryptography (PQC), and one from the NSA accelerating the PQC adoption timeline.
This post will discuss Webauthn and it's relation to the latter post.
The News
One of the better analysis of the NSA news has come from Filippo Valsorda which discusses what might be the situation reading between the lines. This has been echoed by others, and the current speculation is that there is a potential reduction in security of ECDSA P256 (and all other 256 bit elliptic curves) from 128 bits to 85 bits.
I am not a cryptographer so I can't comment on the validity of these claims, but it appears that certificate authorities including Let's Encrypt are now moving from P-256 to P-384. So we can safely assume there is "something there".
Webauthn / Passkeys
Webauthn uses ECDSA P256 frequently, where the authenticator (your password manager, security key, etc) contain the private key and you register the public key to the relying party (identity provider). You then are able to sign challenges to prove your identity and posession of that private key.
Is Webauthn Affected?
Yes it is - but the need to rush is not quite as important.
For certificate authorities their public keys are really public - they are out in the open, on end user devices for validation of certificates. If you can derive the private key from the public key of a certificate authority, you would be able to forge certificates.
However in Webauthn while we refer to the public key as ... well public - it's not actually "that public".
Communication to the identity provider should be performed over TLS - this is already protected by PQC key exchange, and will benefit from the certificate authority changes mentioned aboved.
But that means that the public key you enrol will only be seen by you and the identity provider. It isn't on public display meaning that the number of opportunities for an attacker to get that public key and then derive your private key are far lower.
In other words, only you and the identity provider should ever see the public key. And only your authenticator ever has the private key. The risk of your key being derived from the public part is far lower (compared to a certificate authority for example).
What this does change for Webauthn though is that identity provider data breaches were previously considered to be a "non-event" in the Webauthn world as the assumption was that possession of the public key would not grant an attacker any benefit. However now, the public key if leaked from an identity provider would then grant an attacker the ability to derive your private key and authenticate to that single identity provider (as each webauthn registration uses a unique key per site).
Advice
Identity Providers
- Treat enroled Passkey public keys similar to a password hash - avoid logging it, secure your backups, etc.
- In the event of a data breach, consider revoking users weak Passkeys (EDDSA / ES256) and triggering credential reset procedures.
- Change your webauthn registration parameters to this preference order -
ES384, RS256, ES256. Note that we retain ES256 here as some older devices only support this algorithm.
Users
- If you are affected by a data breach, revoke and re-enrol your Passkeys. Your identity provider probably has no fucking idea about how Webauthn works so you need to protect yourself.
It's hard as a user as the Passkey ecosystem is quite opaque and so private keys in a security key or password manager often don't reveal their algorithmic strength. This makes it harder for you to know if you need to rotate your Passkey to improve it's strength.
Conclusion
Webauthn/Passkeys are not as exposed to the risks associated with the possible P256 security reduction due to the fact that "public keys" are secretly held by the identity provider. This reduces the risk of an attacker being able to derive your keys, but now shifts Passkeys to needing to acknowledge that identity provider breaches affect Passkey security and may require users to perform credential rotation.