by cmdli · 3y ago · 0 comments
Because passkeys have had a lot of support from the megacorps like Google/Apple, people can obviously get the impression that passkeys are just about locked-down ecosystems, but that isn't true at all. From a technological standpoint, passkeys are just as versatile as passwords and IMO will eventually be just as widespread.
I don't need special software to authenticate with a password, and passwords can be used to authenticate on very low-grunt devices. So not quite as versatile.
I'm not arguing against passkeys at all, but passwords are much more versatile and convenient than them, albeit at the cost of being more difficult to use securely.
Technically correct (the best kind of correct!), but in my recent experience with 4 different password managers[1], there are some pretty big catches:
It’s incredibly time consuming and error-prone to init and use good passwords correctly and to maintain them without any password manager, aka “special software” with deep hooks in your OSs and browsers that allow it to fill and save passwords efficiently.
And it’s nearly as bad to do so if you don’t have a cross-platform one unless you’re all in on a single narrow ecosystem like Apple. Suddenly I would be on a different platform and I’m like, using telegram to shoot myself messages with passwords from my phone. And don’t forget the absurd password ‘rules’ (sorry, “/“ is not on our list of 5 ‘special characters’) that are differently-misguided on every site. This is a huge blow to “passwords are convenient.”
And even if you do have one that’s cross-platform my experience recently has confirmed that if you’re not using the OS vendor’s own solution, you’re guaranteed a buggy, unreliable, slow, second-class experience on Apple devices because they don’t allow anyone else to work as efficiently, probably for some combination of “security” and “battery life” reasons. Similarly, even first party password managers are laggy or fail to trigger correctly in about 1/3 of “Apps” (they work fine on websites)
This means with passwords I’m left completely without a solution already since I’m sure as hell: 1. Not using Safari. 2. Not limiting myself to Apple only. So I have to pick a 3rd party solution with its buggy trade offs.
Anyway, if passkeys are implemented universally, at least I could ditch password managers and just have 1 passkey each in the Apple and a cross-platform storage location, and never have to deal with updating them.
[1]: I tried, in order: iCloud (omg what a horrendous b—-h to “export” from!), Dashlane, 1Password, Microsoft.
The UX is basically the same: as a user, let the browser deal with it. Let the browser's password manager/keychain restore/backup/sync it.
The overall security is higher (higher entropy, public-key cryptography).
The DX for building that website is a little more complex, but not arduously more complex (especially for any website already previously supporting FIDO and WebAuthn standards for 2FA).
Instead, with all these password manager vendors not wanting to be left out, and a good portion of the userbase either not being entirely in a single vendor's ecosystem and not wanting to deal with the hassle of QR codes and registering each fabric in each RP, or simply distrusting the big vendors like we see here in this thread, I can see cross-platform virtual authenticators like the one you're working on becoming more common, and I don't think it's unlikely that the OSs will offer APIs to back these keys with TPMs/Secure Enclaves, and will allow you to replacethe built-in passkey manager with a third-party, much like they do with password managers today.
If software-based authenticators want to support import/export capabilities, they don't quite need an open standard, in the same way there isn't one for passwords but you can import/export passwords with any major password manager.
In my ideal scenario, users would be able to use software passkeys for most websites, and then have hardware authenticators either for the vault of software passkeys or directly for a few key websites.
What I'd like to see password manager vendors like you do, though, is to push FIDO and the OS vendors to have richer APIs for interacting with the hardware components that can back keys. To be clear, I don't want to use Bulwark to manage or export passkeys in my iCloud Keychain (I'm confident that will never happen), but I want Bulwark to be able to create a passkey that is backed by a secure element in Mac OS, and then be able request a wrapped version of that key to be exported, and later imported into a TPM running on a Windows OS.
It seems like you know more about this space than I do, so maybe you can explain it to me. What incentive do players like Apple and Google have to allow this to happen? Don't all of their incentives point to eventually requiring attestation from trusted hardware devices and increasing lockin?
For what it is worth, Apple has recently stated that they don't see a lot of day-to-day need for hardware-attested keys and their Passkeys implementation is working to avoid them in most cases in practice, in large part especially due to that user experience of preferring comfort and recoverability over lock-in.
When I use a non-proprietary passkeys implementation, it is essentially just a file on my harddrive, just like my KeePass database containing my passwords is. It is still a huge single-point-of-failure, and unlike proper MFA should not be treated as if it provides any additional security.
Switching to passkeys is a downgrade from password+2FA token and should be treated as such.
If the only attack vector is someone having to crack into your encrypted hard drive, and then decrypt whatever stores the passkeys… that’s still both pretty strong and also probably not the biggest security issue most people face.
The biggest issues most non-tech people face are 1. reusing simple passwords, and 2. getting phished through similar UIs/emails. It’d be much better for most people to use passkeys.
Whether it's a downgrade or not depends on your specific threat model, and whether it's a downgrade for you or for the userbase at large.
In comparison with a password manger managed password +2FA , just software passkeys are a downgrade.
Whether it is acceptable downgrade can depend on your threat model, the fact that it downgrade or not is not
I'll restate in case I wasn't clear -- the fact that it's wrapped addresses the "just a file"; meaning it's not sufficient to attack the filesystem to steal it, just like a password manager vault is.
As for how it's not a downgrade (or upgrade, mind you), it's domain-bound using standard browser APIs, meaning it's less likely than the comparable autofill used by a password manager to not leak passwords to the wrong site (LastPass suffered this issue in the past, for example). It prevents reuse across sites, it's not vulnerable to a man-in-the-middle in the same way a password or TOTP secret is, and guarantees strong assymetric crypto as opposed to whatever a server decides to do with a password and a secret. Additionally, and especially when compared to password managers, most of them now offer to also store and autofill TOTP secrets leaving us in the same spot were at with virtual authenticator backed passkeys, but with worse cryptography.
I tried to add a FIDO2 key to Google's passkey page and failed already, so it doesn't seem entirely compatible out of the box.
I am surprised that the FIDO2 key doesn't work on Google, but it probably just means that there is a bug somewhere in the implementation.
FIDO marketing materials talk about passkeys in the same way you do, a resident key (now called discoverable credentials). Some other materials say that passkey with no other qualifier is a multi-device passkey, meaning it's backed up by a sync fabric. (e.g. the short version here https://passkeys.dev/docs/reference/terms/#passkey). Others, like Google did in their blogpost last week and the long version of that link, say that a passkey is a multi-device passkey that also has user verification (so it can be used for passwordless and not just 2FA/2SV).
Most hardware tokens don't support discoverable credentials.
The default U2F/FIDO2 model was to use a single secret on the token, and deterministically generate a public-private keypair as required. At registration the token provided some opaque bytes to the website, and the website must supply those bytes back to the token when trying to authenticate.
Registration:
1. Token generates random seed
2. Token calculates public/private keypair by combining seed with global secret
3. Token signs registration request using private key
4. Token returns seed, public key, and registration request to server
5. Server stores seed and public key in user's database entry
Authentication:
1. User provides username
2. Server looks up user's seed and public key in user database
3. Server provides seed to token
4. Token calculates public/private keypair by combining seed with global secret
5. Token signs authentication request using private key
6. Token returns signed authentication request to server
7. Server validates authentication request against stored public key, and user is now authenticated
The biggest benefit of this is that the token is quite trivial to create as there is no need to store a per-website secret on it. One secret can be securely used to authenticate with an infinite number of websites without any security or privacy risks.
Passkeys use resident keys. This basically means that the seed is not stored on the server, but on the token. The biggest benefit of this is that you can also get rid of the username in the authentication process.
Registration:
1. Token generates public/private keypair
2. Token signs registration request (which includes unique token identifier) using private key
3. Token stores private key, together with website URL
4. Token returns public key, and registration request to server
5. Server stores public key and unique token identifier in user's database entry
Authentication:
1. Token looks up public/private keypair using website URL
2. Token signs authentication request
3. Token returns authentication request and unique token identifier to server
4. Server looks up user's entry in user database by unique token identifier
5. Server validates authentication request against stored public key, and user is now authenticated
And before you ask: no, I have no idea how this is supposed to work if you have multiple accounts on the same website either.