News for hackers. Stuff that matters.
Re:The Cryptography Behind Passkeys by labadal on Wednesday May 14, 2025 @11:45AM (#43985903)
I love passkeys. I love them being on my phone, requiring biometric authentication before unlocking. I just hate the vendor lock in that comes with it.

Does anyone know the state of the standard wrt this? I know that they planned on doing something about it, just haven't kept up.

Re:The Cryptography Behind Passkeys by hiatus on Wednesday May 14, 2025 @11:56AM (#43986043)
Can you expand on the vendor lock aspect? I have stored passkeys in my password manager, so they feel pretty portable to me. Is it that each service requires a unique passkey? That seems comparable to how each service would require its own TOTP seed.
Re:The Cryptography Behind Passkeys by supportengineer on Wednesday May 14, 2025 @12:05PM (#43986162)
Your password manager came from a vendor. As a thought exercise, switch vendors.
Re:The Cryptography Behind Passkeys by EnPissant on Wednesday May 14, 2025 @12:14PM (#43986270)
Bitwarden exports include passkeys.
Re:The Cryptography Behind Passkeys by dboreham on Wednesday May 14, 2025 @12:38PM (#43986562)
Have you actually tried exporting a passkey and importing it into another manager, then successfully authenticate with it?
Re:The Cryptography Behind Passkeys by coldpie on Wednesday May 14, 2025 @01:46PM (#43987299)
KeepassXC lets you export the private key, which you can then back up or import into another KeepassXC instance. I have tested this, it works. I even shipped my exported private key off to a friend in another state and he was able to import it into a KeepassXC instance and log in to my account. Presumably another password manager could support importing the data, as it's just plaintext, though I don't know if any do.

Unfortunately the spec authors think this export feature violates the spec and have threatened KeepassXC with being banned by authenticating websites[1]. This explicit support from the spec authors for client banning makes passkeys non-viable to me. The websites I log in to should not be able to restrict what clients I choose to use to manage my own data.

[1] Spec author writes, "To be very honest here, you risk having KeePassXC blocked by relying parties. ... (RPs [may] block you, something that I have previously rallied against but rethinking as of late because of these situations)." https://github.com/keepassxreboot/keepassxc/issues/10407

Re:The Cryptography Behind Passkeys by timeflex on Wednesday May 14, 2025 @11:20PM (#43991509)
Furthermore, they "heard rumblings that KeepassXC is likely to be featured in a few industry presentations that highlight security challenges with passkey providers."

Basically, do what we say or expect us to have our corporate sponsors write bad press about your security.

Re:The Cryptography Behind Passkeys by cyberax on Wednesday May 14, 2025 @03:43PM (#43988433)
BitWarden is OpenSource. I did try importing the export using my own hosted BitWarden server, it worked.
Re:The Cryptography Behind Passkeys by EnPissant on Wednesday May 14, 2025 @02:12PM (#43987562)
Just having the data exported is peace of mind for me. It's trivial to import or convert to another format (even if not implemented now), so the worst-case scenario is acceptable, especially considering how much better Bitwarden + Passkeys are to every other form of authentication.
Re:The Cryptography Behind Passkeys by koakuma-chan on Wednesday May 14, 2025 @07:57PM (#43990455)
Re:The Cryptography Behind Passkeys by recursive on Wednesday May 14, 2025 @08:57PM (#43990779)
> we have no interest in creating a walled garden or locking you into 1Password.

They have no interest... in collecting subscription fees? I'm a satisfied 1Password customer, but it's hard to take this claim seriously. What does it mean? They literally get paid. Isn't that the definition of an interest?

Re:The Cryptography Behind Passkeys by koakuma-chan on Thursday May 15, 2025 @12:43AM (#43991920)
Maybe they can get more customers by being based.
Re:The Cryptography Behind Passkeys by dataflow on Thursday May 15, 2025 @02:01AM (#43992251)
I think you're thinking of incentive not interest. Like how you can have incentives to steal from the supermarket, but still have no interest.
Re:The Cryptography Behind Passkeys by recursive on Thursday May 15, 2025 @12:15PM (#43996509)
I'm thinking of another definition of "interest". e.g. "have an interest in"
Re:The Cryptography Behind Passkeys by Steltek on Wednesday May 14, 2025 @01:15PM (#43986965)
From the article:

> But how can websites know whether its users are using secure authenticators? Authenticators can cryptographically prove certain facts about their origins, like who manufactured it, by generating an attestation statement when the user creates a passkey; this statement is backed by a certificate chain signed by the manufacturer.

How many scummy companies trot out "Let me protect you from yourself" to justify taking away their users' freedoms?

Re:The Cryptography Behind Passkeys by yladiz on Wednesday May 14, 2025 @12:01PM (#43986113)
Unfortunately I don’t think there’s much to help with vendor lock in directly (like, you may or may not be able to export the private key(s) depending on the tool, and in some cases it’s definitely not possible like with a hardware key), but any website that supports passkeys supports WebAuthn in general so you shouldn’t have difficulty migrating to another tool if desired, although you would need to register again.
Re:The Cryptography Behind Passkeys by reginald78 on Wednesday May 14, 2025 @12:44PM (#43986617)
Passkeys support an attestation anti-feature, enshrined in the spec. This feature can be abused (and will be IMO, why put it in the spec otherwise?) to limit which providers can access a service. Lock-in is built into the design.

One of the developers already threatened to use it against keepass when they built an export feature he didn't agree with.

Re:The Cryptography Behind Passkeys by parliament32 on Wednesday May 14, 2025 @01:00PM (#43986786)
Attestation is probably the best feature of passkeys.

From a corporate compliance perspective, I need to ensure that employee keys are stored in a FIPS-compliant TPM and unexportable. Key loss is not an issue because we have, ya know, an IT department. The only way I can ensure this happens is by whitelisting AAGUIDs and enforcing attestation.

With these factors I can also get out of the MFA hellhole (because I can prove that whitelisted vendor X already performs MFA on-device without me having to manage it: for example, WHFB requires something you have (keys in your TPM) and either something you are (face scan / fingerprint) or something you know (PIN), without me having to store/verify any of those factors or otherwise manage them). Same goes for passkeys stored in MS Authenticator on iOS/Android.

Re:The Cryptography Behind Passkeys by coldpie on Wednesday May 14, 2025 @01:51PM (#43987360)
This is fine for corporate settings, where the data is not owned by the user but by the company. But it's completely unacceptable for managing one's own personal account. What do I do if I do not trust proprietary software to manage my ability to log in to online services? How can this be compatible with open source passkey providers?

The spec failing to distinguish between these two cases is a major flaw and completely kills passkey viability for personal accounts until they resolve it.

Re:The Cryptography Behind Passkeys by WorldMaker on Wednesday May 14, 2025 @03:22PM (#43988258)
Apple has stated very publicly and in multiple places/ways that Consumer Passkeys will never include attestation data on Apple hardware. That's not "the spec", but it is still currently a big enough moat to protect Consumer usage of passkeys away from Corporate needs, given most Consumer apps/websites probably want iOS/iPadOS/macOS (in decreasing interest) users today.
Re:The Cryptography Behind Passkeys by coldpie on Wednesday May 14, 2025 @03:47PM (#43988477)
> Apple has stated very publicly and in multiple places/ways that Consumer Passkeys will never include attestation data on Apple hardware.

I'm interested in reading more about this. Do you have some links? I did some quick searching of the terms you mentioned and nothing obvious came up.

Re:The Cryptography Behind Passkeys by WorldMaker on Wednesday May 14, 2025 @04:32PM (#43988852)
Yeah, it's unfortunate we live in an age where searching for things is harder and less likely to turn up the results from even a couple months ago.

Some quick bits and pieces from my own searching just now:

Apple's documentation on Passkey attestation is entirely under "declarative configuration", their terminology for mobile device management (MDM) corporate tools: https://support.apple.com/guide/deployment/passkey-attestati...

It is noticeably absent from, for instance, AuthenticationServices documentation: https://developer.apple.com/documentation/authenticationserv...

On non-attestation Passkey responses intentionally send an empty AAGUID for privacy/Apple's belief in the spec's suggestion to send an empty AAGUID:

> iCloud Keychain is one of the few (maybe the only?) passkey authenticator that currently follows the spec and will use an all-zero AAGUID.

From: https://developer.apple.com/forums/thread/739004

On the technical side of limitations of attestation for consumer Passkeys (due to iCloud Keychain sync):

> Passkeys do not provide an attestation statement, as the attestation model currently defined in WebAuthn wasn't designed with syncing credentials in mind.

> Attestation was designed to attest to a specific device, exclusively at the point of creation, with a specific set of security properties. It doesn't make sense for synced credentials for a number of reasons, including syncing to devices with different security properties, changes in security properties that happen after key creation, security properties of the sync fabric, sharing the passkey, or exporting to other passkey providers. We're working hard with W3C and FIDO to solve these problems.

From: https://developer.apple.com/forums/thread/708982

(I believe some of the problems being solved in that one in 2022 is referring to how we got the "uvi" and "uvm" extensions to Passkeys, neither of which is in attestation data nor attested in any way, and both designed for a general semblance of user privacy: https://www.w3.org/TR/webauthn-1/#sctn-uvi-extension)

I believe the juiciest quotes I'm looking for are buried in WWDC videos and I can't find a transcript search tool just yet.

Re:The Cryptography Behind Passkeys by parliament32 on Wednesday May 14, 2025 @04:45PM (#43989000)
Excellent writeup. This is the true kicker:

> Passkeys do not provide an attestation statement, as the attestation model currently defined in WebAuthn wasn't designed with syncing credentials in mind.

On any platform, attestation and "syncing" are effectively opposites. Either you're getting attestation that the auth comes from a secure application and on secure hardware (read: non-exportable in-TPM crypto material), or not.

As usual, it's a tug-of-war between security and convenience.

Re:The Cryptography Behind Passkeys by eikenberry on Wednesday May 14, 2025 @06:00PM (#43989650)
Attestation is only about security if there are ways for people to handle it themselves. Think of them like certs where anyone can buy one or get one for free using lets-encrypt. I should be able to attest my own keys in a similar way. If I cannot then they are not really about security but about control and lock-in.
Re:The Cryptography Behind Passkeys by yladiz on Wednesday May 14, 2025 @01:23PM (#43987054)
But most passkey providers don’t return attestation data. How do you get the data?
Re:The Cryptography Behind Passkeys by parliament32 on Wednesday May 14, 2025 @01:39PM (#43987224)
Attestation is not provided by the passkey provider itself, but the OS.

For example, iOS uses the App Attest service (https://developer.apple.com/documentation/devicecheck/prepar...). On Android, you get it from Google Play Services (https://developer.android.com/google/play/integrity/overview) then the built in key attest service (https://developer.android.com/privacy-and-security/security-...). MS Authenticator does all the legwork and returns the results to you at sign-in time.

On Windows, WHFB has this built in (obviously). On macOS, this comes from Platform SSO (https://support.apple.com/en-ca/guide/deployment/dep7bbb0531...).

Re:The Cryptography Behind Passkeys by immibis on Thursday May 15, 2025 @05:46AM (#43993380)
Attestation is probably the worst feature of passkeys.

From a freedom perspective, I need to ensure that Google has no idea whether my device is an Android phone bought from an officially licensed manufacturer, or Waydroid or android-x86. Compliance is not an issue because I am, ya know, some random guy. The only way I can ensure this happens is by ensuring attestation is not possible.

Re:The Cryptography Behind Passkeys by cyberax on Wednesday May 14, 2025 @04:04PM (#43988623)
> Passkeys support an attestation anti-feature, enshrined in the spec. This feature can be abused (and will be IMO, why put it in the spec otherwise?) to limit which providers can access a service.

The problem is that Passkeys really conflate two separate feature sets:

1. Synchronized password replacements. They _have_ to be represented as accessible clear-text to be synced between devices, at least during transit. So they can be stolen, for example, by malware that scans RAM for keys.

2. Keys that never leave a hardened hardware devices. Since they never leave the device, they can't be synced. But they're completely secure.

Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @06:40PM (#43989922)
This is largely a problem because the specification does not cleanly call these out as two completely different feature sets, e.g. via "profiles" or a similar mechanism.

Effectively implementations already do that, and the spec could clear things up a lot by clearly defining one profile for synchronizing, non-attestation-capable, discoverable credentials called "passkeys", and another for hardware-backed, non-exportable, attestation-supporting ones called something else.

Re:The Cryptography Behind Passkeys by cyberax on Wednesday May 14, 2025 @07:38PM (#43990331)
Yes, clearly separating these two use-cases would have helped immensely.

This technically is true because Passkeys are just a subset of WebAuth.

Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @06:37PM (#43989907)
None of the common passkey implementations support attestation.

Apple doesn't support it at all anymore; Google only supports it for non-synchronized credentials (which are arguably not passkeys). Bitwarden obviously doesn't either (it can't, as a pure software implementation).

> One of the developers already threatened to use it against keepass when they built an export feature he didn't agree with.

Developer of what? There's no competing software solution that supports attestation, and hardware authenticators complement software ones, rather than compete with them.

Re:The Cryptography Behind Passkeys by proactivesvcs on Wednesday May 14, 2025 @06:59PM (#43990069)
https://github.com/timcappalli, "passkeys, FIDO2/WebAuthn, and digital credentials @ okta"

Not directly threatening but within that frame of mind:

https://github.com/keepassxreboot/keepassxc/issues/10407#iss...

https://github.com/keepassxreboot/keepassxc/issues/10407#iss...

Re:The Cryptography Behind Passkeys by supportengineer on Wednesday May 14, 2025 @12:04PM (#43986146)
For me, the only thing that makes passkeys viable is backing them up in the cloud and automatically syncing them across devices. Otherwise, I do not trust them.
Re:The Cryptography Behind Passkeys by TechDebtDevin on Wednesday May 14, 2025 @12:08PM (#43986192)
What do you use?
Re:The Cryptography Behind Passkeys by dboreham on Wednesday May 14, 2025 @12:41PM (#43986587)
Not the parent, but the obvious answer is: a hard token (e.g. Yubikey). After all passkeys are just a software emulation of the smart card / FIDO2 mechanism that's been around for many years.
Re:The Cryptography Behind Passkeys by crote on Wednesday May 14, 2025 @02:08PM (#43987505)
This doesn't solve the problem, unfortunately.

The issue with hard tokens is that there is only one of them. By design, you can't back up a Yubikey's content to a second token. This means that any time you add 2FA to a new account, you must have all of your hard tokens in your possession to enroll them. This means a "one token on your keyring for daily use, one token in a safety deposit box as backup" approach isn't possible.

Yubico did propose a potential solution five years ago[0], but that proposal seems to have gone nowhere. Until something like that gets implemented, FIDO2 (and by extension Passkeys) requires some form software implementation backed by cloud synchronization to actually be usable for the average person.

[0]: https://www.yubico.com/blog/yubico-proposes-webauthn-protoco...

Re:The Cryptography Behind Passkeys by hanikesn on Wednesday May 14, 2025 @02:20PM (#43987626)
It works well enough. When you need to signup for a new service on the go, you can add your backup key when you get to it. Having the backup key in a safety deposit box hardly accessible seems like a non-goal given you protect it with a pin with a very limited number of retries.
Re:The Cryptography Behind Passkeys by bitzun on Wednesday May 14, 2025 @03:09PM (#43988156)
I keep it in a secure separate location in case my house catches on fire.
Re:The Cryptography Behind Passkeys by godelski on Wednesday May 14, 2025 @04:47PM (#43989032)

  > When you need to signup for a new service on the go, you can add your backup key when you get to it
Good on paper, bad in practice.

Requires you to remember doing that each and every time. Incidentally this isn't that different from just grabbing your keys like the parent suggested. Only it introduces a new variable: time delay. A lot can happen in that time and we all know the reality is that even a diligent person is going to slip now and then. It surely isn't a reasonable expectation for an average person.

Re:The Cryptography Behind Passkeys by blibble on Wednesday May 14, 2025 @05:21PM (#43989351)
I have three: 1) local usage 2) local backup key 3) remote backup key

every few months I swap 2 and 3, and re-enroll any missing (kept track of with a spreadsheet)

quite annoying, offline enrollment would be considerably better

Re:The Cryptography Behind Passkeys by rssoconnor on Wednesday May 14, 2025 @09:40PM (#43991016)
This is the way.
Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @06:28PM (#43989840)
> Having the backup key in a safety deposit box hardly accessible seems like a non-goal

It's absolutely a goal, since a PIN doesn't prevent your security key from loss, theft, or physical destruction.

Re:The Cryptography Behind Passkeys by johnisgood on Wednesday May 14, 2025 @12:21PM (#43986345)
I'm not sure if this is satire. You trust the "cloud" and whatever does the syncing to the cloud? I definitely don't trust anything that "syncs to the cloud".
Re:The Cryptography Behind Passkeys by paulryanrogers on Wednesday May 14, 2025 @12:34PM (#43986497)
> I definitely don't trust anything that "syncs to the cloud".

What if you lose your device? Do you install alternate passkeys in a second device? Do you have to do that for every site and service?

Re:The Cryptography Behind Passkeys by johnisgood on Wednesday May 14, 2025 @01:47PM (#43987309)
I use KeePassXC, and I have backups, if that counts, at least for passwords/passphrases and TOTP.
Re:The Cryptography Behind Passkeys by lurking_swe on Wednesday May 14, 2025 @04:01PM (#43988598)
do you have offsite backups?
Re:The Cryptography Behind Passkeys by johnisgood on Thursday May 15, 2025 @03:48AM (#43992776)
I do not have any backups on any servers, I have them on other media that I have physical access to.
Re:The Cryptography Behind Passkeys by jonasdegendt on Wednesday May 14, 2025 @04:43PM (#43988987)
I read their comment to be “I trust myself to lose a hardware key, but not a software key that’s backed up and synced across all my devices.”

That’s one way to look at it: passkeys are just a more convenient form of authentication compared to passwords. Although in my mind you’re arguably not achieving a whole lot considering the security bottle neck is still the same, being the login to your password manager.

I use physical Yubikeys so I’m a bit out of the loop here, but are there any methods for protecting your root password to your password manager in this scenario?

Re:The Cryptography Behind Passkeys by recursive on Wednesday May 14, 2025 @05:44PM (#43989527)
Probably not satire. He/she doesn't need you to trust it for them to use it.
Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @06:29PM (#43989849)
Sure, why not? The cloud is just somebody else's computer, and if I don't trust that somebody to not take a peek, I'll make sure to encrypt my data first.

Many password managers do just that.

Re:The Cryptography Behind Passkeys by udev4096 on Thursday May 15, 2025 @03:17AM (#43992609)
It doesn't matter as long as it's encrypted. Use rclone crypt and upload to whatever "cloud" you want
Re:The Cryptography Behind Passkeys by johnisgood on Thursday May 15, 2025 @07:40AM (#43993970)
If it is encrypted (incl. the filenames), sure, but is it usually the case? If I do it manually, of course it would be, but all these modern "sync to cloud" solutions, I absolutely do not trust.
Re:The Cryptography Behind Passkeys by taeric on Wednesday May 14, 2025 @12:21PM (#43986336)
I always ask how you expect to defeat the vendor lock in?

Effectively you have a secret that you are using to authenticate yourself. With pass keys managed by a vendor, you are trusting that vendor to manage your secret. If they are able to give your secret to someone else, then they can no longer confirm who all knows your secret.

I'm sure you can come up with a protocol where you can fan out access to the secret in a way that requires fanning back messages to you. But I don't see any clear way to do so that doesn't increase the communication burden on everyone.

I'm also sure smarter people than me can surprise me with something, here. But secrets that can be shared historically tend to not be secrets for long.

Re:The Cryptography Behind Passkeys by blibble on Wednesday May 14, 2025 @12:25PM (#43986400)
> I'm sure you can come up with a protocol where you can fan out access to the secret in a way that requires fanning back messages to you. But I don't see any clear way to do so that doesn't increase the communication burden on everyone.

the spec actually supports this, it's called caBLE

Re:The Cryptography Behind Passkeys by taeric on Wednesday May 14, 2025 @12:51PM (#43986687)
Right, that flow seems somewhat straight forward and is roughly what I had in mind with my sentence. It doesn't really break you out of vendor involvement, though? You both still have to be fully in on the whole flow. Right?

Asked differently, how does this get a vendor out of the picture?

Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @06:31PM (#43989859)
caBLE is not a specification for transferring secrets, but for mediating (temporary) access to them.

But the FIDO alliance is apparently working on that: https://fidoalliance.org/fido-alliance-publishes-new-specifi...

Re:The Cryptography Behind Passkeys by taeric on Wednesday May 14, 2025 @09:37PM (#43990988)
I actually thought it was more for mediating confirmation of access to them. You don't share the secret with the new party, but you and the vendor both do a flow with them to confirm that someone claiming to be an identity can support that claim.
Re:The Cryptography Behind Passkeys by udev4096 on Thursday May 15, 2025 @03:13AM (#43992592)
Do not use a vendor for managing passkeys. Use a self hosted password manager like vaultwarden. Or spin up an OIDC provider with pocket-id. Using a vendor is just pointless and should be avoided at all costs
Re:The Cryptography Behind Passkeys by taeric on Thursday May 15, 2025 @09:32AM (#43994898)
I do that. Largely. I prefer hardware tokens.

I also have to confess this is clearly less convenient than having Apple or Google manage them for me.

Re:The Cryptography Behind Passkeys by jp191919 on Wednesday May 14, 2025 @12:23PM (#43986375)
I use KeepassXC on my PC. Not sure of an app for mobile though.
Re:The Cryptography Behind Passkeys by vngzs on Wednesday May 14, 2025 @12:41PM (#43986591)
I can register my Yubikeys on account.google.com (and around the web, e.g., fastmail.com) as passkeys. If you visit the account security page[0] and enable "skip password when possible", then you can log in to Google with only a Yubikey-backed passkey.

If you have old Google creds on your Yubikey, you may have to first remove those creds from your account (because there are older and newer protocol choices, and with the old protocols enabled Google will not support passwordless login).

Multiple yubikeys are required if you would like to have backups; there is no syncing between keys.

For support matrices, see [1].

[0]: https://myaccount.google.com/security

[1]: https://passkeys.dev/device-support/

Re:The Cryptography Behind Passkeys by AnotherGoodName on Wednesday May 14, 2025 @02:40PM (#43987843)
You can also simply register all your devices individually as a passkey and login with any one of them. Part of the point of the passkey standard was that you can simply have your laptop/phone/etc. act as a Fido2 backed security key in its own right. So if you have multiple devices it's pretty easy to set them all up as your passkeys.

Eg. My Microsoft desktop, my Google phone, my Apple laptop all have passkeys setup individually that allow login to my various accounts such as my Google account.

So they aren't at all synced. They are all from different vendors but they can all login since i set them all up as passkeys. It's easy to do this too. Setup one site for passkey login via phone, go to that site on your desktop and select "auth via phone passkey" and use the phone passkey and then once logged in on the desktop go to account setup and select "Create a passkey on this device". The end result is you have multiple hardware security keys, namely your phone, desktop and laptop.

Re:The Cryptography Behind Passkeys by xyzzy123 on Wednesday May 14, 2025 @04:39PM (#43988942)
My issue with this is the NxM problem, if you want to do this on 10 websites with 5 devices you need to maintain 50 passkeys.
Re:The Cryptography Behind Passkeys by kccqzy on Wednesday May 14, 2025 @05:33PM (#43989456)
The NxM problem is at least better than the other problem where a website or app requires at most one passkey. WeChat (which is basically required if you need to talk to business associates or friends in mainland China) simply does not support multiple passkeys.
Re:The Cryptography Behind Passkeys by immibis on Thursday May 15, 2025 @05:41AM (#43993353)
I find it odd to be designing our technology based around ease of use by totalitarian governments.
Re:The Cryptography Behind Passkeys by AnotherGoodName on Wednesday May 14, 2025 @05:05PM (#43989204)
For myself it's really only the Google/Apple/MS accounts i'm using with passkeys so far (and third party sign in/chrome password syncing for the smaller sites) so N is small right now.

Hopefully better syncing comes soon but i'm ok with the current situation for now.

Re:The Cryptography Behind Passkeys by xyzzy123 on Wednesday May 14, 2025 @06:01PM (#43989658)
It seems like the obvious endgame is most people will use very strong auth between their devices and Google / Microsoft / Apple and then federate to everything else. All other workflows will become niche because it's not in monopoly interests to build features that make anything else convenient or manageable.

This is where the incentives push and is why we're unlikely to see usable or easy passkey sync.

I'm sort of ok with this (it will be a net security improvement) but it saddens me a little to see more of the web come under centralised control.

Most people won't fully understand the implications of this, which will be that the right law enforcement request will instantly unlock every service you have access to regardless of jurisdiction.

Plus lots of secondary effects relating to fed auth providers having increasing leverage over the web in general.

Re:The Cryptography Behind Passkeys by kccqzy on Wednesday May 14, 2025 @08:37PM (#43990650)
> the right law enforcement request will instantly unlock every service you have access to regardless of jurisdiction.

You are conflating the old model of "log in with Google" and the new model of Google syncing your passkeys in an E2E way. The latter is more resistant to law enforcement misuse (not 100%, see All Writs Act in the San Bernardino shooter case).

Re:The Cryptography Behind Passkeys by xyzzy123 on Wednesday May 14, 2025 @10:14PM (#43991199)
Yep, I agree good outcomes are possible and an e2e sync'd passkey should have better privacy properties than a federated login.

It's a nuanced discussion because in practice today, email provider is regarded as ultimate source of truth regarding identity, except for high security domains e.g. where money is involved (banks, crypto) and it's economically viable for recovery to be high touch.

So having access to a user's email is the first "golden key".

Second is OIDC / social logins.

Third would be passkeys / stored passwords / an unlocked device.

My guess about the future is that OIDC / social login will prove to scale and grow better than direct passkeys in most instances. It's a better, more fully developed model for thinking about and managing identity lifecycle, passkeys themselves are a low level primitive by comparison.

Users will understand it (social login) better, providers will support it better (partly because corporates don't have any way to centrally manage passkeys at scale, nor should they) and finally because of the fallback / recovery problem for sites using passkeys.

Re:The Cryptography Behind Passkeys by recursive on Wednesday May 14, 2025 @05:40PM (#43989508)
This scares me because I could get fully locked out if my house burns down or something. I like this property of a password manager. This seems to be in direct conflict with the design goals of passkeys.
Re:The Cryptography Behind Passkeys by AnotherGoodName on Wednesday May 14, 2025 @05:54PM (#43989609)
Non-passkey based account access still works. As in i can go into my Google/Apple/MS account settings right now and in the security tab there's a ton of different options you can set.

Backup codes, sms phone recovery, alternate recovery email are all there in all of the above.

It's no different to forgetting your password/losing access to your password manager is it? As in i've literally at points lost access with passkeys (i only had 1 at the time) and the way i got back in was very straightforward and no different to losing access to a password manager. I got an email and typed my old password and i got back in and re-setup my passkeys.

Re:The Cryptography Behind Passkeys by recursive on Wednesday May 14, 2025 @07:51PM (#43990402)
If I lose access to my password manager, I'd be substantially boned. But I'm less worried about that. It would require me to forget my password, or 1password to get pwned, go bad, or lose data.

The way I assess risk, that's less likely to happen than I am to lose my passkeys.

If I'm using passkeys but can recover my account with SMS, then why am I using passkeys? That sounds like the weak link of security. I'd rather use passwords, where I can understand what the password consists of rather than passkeys if I'm not getting an increase in security.

Re:The Cryptography Behind Passkeys by AnotherGoodName on Wednesday May 14, 2025 @09:19PM (#43990886)
Account recovery with the big providers that support passkeys is two factor from what i've experienced, eg. sms+email, email+old password or sms+recovery code etc. so definitely a step up from password login.
Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @06:23PM (#43989801)
Many password managers these days support passkeys and can synchronize them in whatever way you use to also sync your passwords (i.e. a cloud backend, but also a self-hosted Syncthing shared folder etc.)
Re:The Cryptography Behind Passkeys by recursive on Wednesday May 14, 2025 @08:55PM (#43990768)
I can easily export and import my passwords from my password managers and do whatever I want with them. I enjoy having that lever over my subscription.
Re:The Cryptography Behind Passkeys by lxgr on Wednesday May 14, 2025 @09:25PM (#43990924)
There are several subscription-free password managers available that support passkeys, e.g. Bitwarden (self-hosted), Strongbox (lifetime version available), or KeepassXC.

It's unfortunately not quite the same level of portability as passwords, as I don't think there's any standardized export/import format yet, but these options are significantly better than Apples's and Google's closed ecosystems.

Re:The Cryptography Behind Passkeys by dvngnt_ on Wednesday May 14, 2025 @06:11PM (#43989721)
I've been using keypassxc which supports passkeys. It works for github at least
Re:The Cryptography Behind Passkeys by zikduruqe on Wednesday May 14, 2025 @12:57PM (#43986748)
I just use a Trezor One (yes, a bitcoin hardware wallet).

I back up my 12 word seed phrase, and then I can restore any and all my TOTP/FIDO/passkeys with another one if needed.

Re:The Cryptography Behind Passkeys by kccqzy on Wednesday May 14, 2025 @02:35PM (#43987790)
I tried setting this up for a non-technical friend who was gifted multiple brand new Yubikeys. The goal is to log in to Google using any one of the Yubikeys with no password. Unfortunately doing so causes Chrome to pop up a dialog requesting a PIN for the Yubikey. How did you solve that problem?

Searching online I found an answer on Stack Overflow stating that a PIN is required in this case: https://stackoverflow.com/a/79471904 How did you bypass it? I also find it idiotic that it is required. A PIN is just a password in another name, so we are back to using Yubikeys as the second factor in 2FA rather than a password replacement.

Re:The Cryptography Behind Passkeys by AnotherGoodName on Wednesday May 14, 2025 @02:46PM (#43987914)
Passkeys need to have two factor to count as a passkey per the standard. Otherwise in theory someone could steal your key alone and get in (a big risk).

You need to buy a newer Yubikey with biometrics to make this work. I assume you have an older Yubikey and Google is getting to the standard by asking for a PIN.

I have a https://www.yubico.com/products/yubikey-bio-series/ and it works with Google exactly like you want it to, no PIN required. It's completely understandable to require a PIN if you don't have one of these though.

Re:The Cryptography Behind Passkeys by kccqzy on Thursday May 15, 2025 @08:40AM (#43994392)
I don't understand why someone stealing my key and getting in is a big risk. They could steal my house key and get into to my house and do far greater damage: grab all physical documents and grab all computers where their full disk encryption key is in RAM.
Re:The Cryptography Behind Passkeys by AnotherGoodName on Thursday May 15, 2025 @09:52AM (#43995107)
Finding a dropped yubikey and immediately having access to someone’s google account is simply reasonably a bridge too far if that ever became commonplace. Someone decided not to allow that footgun to the public.

It’s no inconvenience though since the yubikey with a button to press and a yubikey with a biometric button to press work the same.

Re:The Cryptography Behind Passkeys by secabeen on Thursday May 15, 2025 @12:12PM (#43996484)
> Finding a dropped yubikey and immediately having access to someone’s google account

Is that how it works? A dropped house key essentially has a second factor (the address of the home), but if you have someones Yubikey that can be used for Google, is the Google Username stored in the Yubikey and accessible to the finder?

Re:The Cryptography Behind Passkeys by AnotherGoodName on Thursday May 15, 2025 @12:58PM (#43996964)
You should at least need the username but i still totally get the bar being set where it is.

Like you can argue a dropped house key is similar to a dropped yubikey but i'd still give some benefit to the dropped house key involving real world attempts on locks with appropriate social suspicion on that if seen vs a dropped yubikey allowing anonymous attempts.

Re:The Cryptography Behind Passkeys by godelski on Wednesday May 14, 2025 @04:40PM (#43988957)

  > there is no syncing between keys
This seems like a key failure point to me and why I've been a tad resistant[0]. If there isn't some form of automatic backup then I guarantee I will not have a sync when I need it the most.

There is a similar problem even in OTPs. I switched phones not too long ago and some OTPs didn't properly transfer. I actually lost some accounts due to this, luckily nothing critical (I checked critical things but it's easy to let other things slip). The problem is that registering a new OTP removes the old ones. In some cases I've used recovery codes and in others the codes failed. IDK if I used the wrong order or what, but I copy-paste them into bitwarden, and I expect this is typical behavior.

99% of the time everything works perfectly fine. But that 1% is a HUGE disruption. With keys, I would even be okay if I had to plug my main key into a dock to sync them. Not as good as a safe, but better than nothing. I feel like we're trying to design software safes like we design physical safes. But if you lose your combo to a physical safe you always have destructive means to get in. With digital, we seem to forget how common locksmiths are. Googling, numbers seem kinda low but I'm not in a big city and there are at least 4 that I pass by through my typical weekly driving. So it seems that this issue is prolific enough we need to better account for actual human behavior.

[0] Don't get me wrong, I love them but I'm not willing to not undermine them via OTP creds because I need some other way in.

Re:The Cryptography Behind Passkeys by michaelt on Wednesday May 14, 2025 @07:39PM (#43990337)
> If there isn't some form of automatic backup then I guarantee I will not have a sync when I need it the most.

As I understand things, passkeys come in a few different varieties.

You can buy a yubikey if you want the credential tied to one specific physical device. Figure out your own backup strategy, such as spare yubikeys or printed recovery codes or whatever.

Or you can use apple/google/microsoft if you want your passkeys backed up to your cloud account. This means passkeys are basically the "Log In With Google" button, but with extra steps.

Re:The Cryptography Behind Passkeys by kccqzy on Wednesday May 14, 2025 @05:38PM (#43989487)
I feel sorry for you, but I've also experienced bugs in password managers that fail to sync plain old passwords.

I feel like if I must choose between a 99% reliable syncing solution, and a non-existent automatic syncing solution that requires manual syncing, I would still choose the latter for its mental simplicity.

Re:The Cryptography Behind Passkeys by godelski on Wednesday May 14, 2025 @06:10PM (#43989716)
My point is that we need to address and solve these issues. I agree with you, but if we dismiss them then they don't get solved. The best algorithms are useless if they're too complicated to use and can't fit the reality of an average user. Currently they are hard to maintain for technical users!
Re:The Cryptography Behind Passkeys by kccqzy on Wednesday May 14, 2025 @09:15PM (#43990874)
I don't think solving the syncing problem is as important as giving users clear expectations. The best way to teach passkeys to regular users is to use analogy. Consider the house key: the physical key that unlocks the front door of your house. You can have two keys on separate keychains so that you carry one of them and treat the other as a backup. But if your key is accidentally lost and potentially in the possession of a bad actor, you will want to change the lock on your front door. And if you do that, it is entirely your responsibility to change the keys on your other keychain.
Re:The Cryptography Behind Passkeys by godelski on Thursday May 15, 2025 @12:03AM (#43991736)
I disagree. I think this strategy has been tried for awhile. Decades of security training has improved things but I don't think enough. Email encryption didn't resource get mass adoption until it was a seamless integration like in gmail or icloud. Same with text and phone, via Signal, WhatsApp, and iMessage.

My point is that training doesn't seem to be effective to the general population. Frankly most people don't care. As we both probably know a big part is likely not knowing the importance

Re:The Cryptography Behind Passkeys by kccqzy on Thursday May 15, 2025 @08:44AM (#43994412)
This strategy has not been tried. Decades of security training has focused on credentials and objects that only exist inside a computer. And because it only exists in a computer, it is too abstract and not tactile enough for regular users to form a mental model. Yubikey is the one chance where we tie digital security to physical security and give people a clear mental model. Earlier you said that

> The best algorithms are useless if they're too complicated to use and can't fit the reality of an average user.

I agree. So get rid of needing to understand algorithms and simply require users to understand passkeys in relation to their house keys.

Re:The Cryptography Behind Passkeys by godelski on Thursday May 15, 2025 @11:25AM (#43996013)

  > This strategy has not been tried.
Has your work never given you security training?

Have you tried to convince your friends to use messaging systems like Signal? What about PGP?

  > understand passkeys in relation to their house keys.
Except they aren't the same thing. For exactly the reasons I was discussing. How often are locksmiths helping people get into their houses? What about their cars? It's a lot more common that you think.
Re:The Cryptography Behind Passkeys by kccqzy on Thursday May 15, 2025 @12:21PM (#43996579)
You didn't get my point. It's not the lack of security training, but the issue is that the security training focuses on intangible things like passwords, domain names, links, emails. Yubikey is the opportunity to break this model and focus on tangible and tactile things that exist in the physical world. A passkey synced using iCloud or Google account does not break that model and will continue to be less understandable for real users than Yubikeys.

There are plenty of cases where I know that people have misplaced Yubikeys. They might have a spare Yubikey. Or the equivalent to finding a locksmith is to log in with a non-passkey method. It's fine and in fact better if logging in without a passkey is considered an unusual fallback.

Re:The Cryptography Behind Passkeys by godelski on Thursday May 15, 2025 @04:08PM (#43998810)
You're not getting my point though.

  > A passkey synced using iCloud or Google account does not break that model
Yes, yes it does. Have you seen how hard it is to recover these accounts? There's not uncommon HN posts that do get these solved, but only then by high visibility. A method most people do not have available to them.

  > Or the equivalent to finding a locksmith is to log in with a non-passkey method
Sure, it is just that the backup methods end up undermining the security key.

Both of these were mentioned in my post you originally responded to: https://news.ycombinator.com/item?id=43988957

Re:The Cryptography Behind Passkeys by secabeen on Thursday May 15, 2025 @12:04PM (#43996426)
We do do security by obscurity with our house keys; I don't label my house keys with my home address, while I do label my saved passwords with both the URL and my username. /shrug
Re:The Cryptography Behind Passkeys by palata on Thursday May 15, 2025 @03:38AM (#43992718)
> This seems like a key failure point

Actually it is a feature. The whole point of the Yubikey is that you can't extract the key. Syncing keys would mean extracting them, which would defeat the purpose of the Yubikey.

Now I am not saying that it is a feature you want. That's why there are other kinds of passkeys. My point is that it is not a flaw in Yubikeys, it is by design.

Re:The Cryptography Behind Passkeys by godelski on Thursday May 15, 2025 @04:12PM (#43998839)

  > Actually it is a feature.
There's a critical flaw in PGP actually. If you reply to any PGP encrypted email with "sorry, I couldn't decrypt" you'll, with high likelihood, get the cleartext version of the email soon after.

The joke is quite old and part of what I'm pointing to. Security doesn't work well if it isn't very usable. At least this is a bit better than secure communication, but it isn't as huge of a difference as it might appear.

The biggest boon in security has come due to making these tools easy to use. That's from decades of experience is realizing you can't get everyone to be technical.

Re:The Cryptography Behind Passkeys by palata on Thursday May 15, 2025 @05:19PM (#43999440)
> There's a critical flaw in PGP actually.

Passkeys use FIDO2, not PGP?

Re:The Cryptography Behind Passkeys by namro on Wednesday May 14, 2025 @01:01PM (#43986797)
On Android, Keepass2Android developer is working on supporting passkeys in the near future (https://github.com/PhilippC/keepass2android/issues/2099) but I'll be honest, I haven't dedicated enough time learning about passkeys to be sure the app will be able to support all implementations of passkeys and avoid vendor locking completely.
Re:The Cryptography Behind Passkeys by iknowstuff on Wednesday May 14, 2025 @02:26PM (#43987669)
Re:The Cryptography Behind Passkeys by shellcromancer on Wednesday May 14, 2025 @03:32PM (#43988343)
The FIDO Alliance (who wrote the WebAuthn spec with the W3C) has a draft specification for a format (Credential Exchange Format) and protocol (Credential Exchange Protocol) for migrating passkeys and other credentials [1]. I don't think this is implemented by any providers yet, but it's being worked on.

[1] https://fidoalliance.org/specifications-credential-exchange-...

Re:The Cryptography Behind Passkeys by conradev on Thursday May 15, 2025 @01:45AM (#43992190)
The big remaining issue in my mind is this one:

https://github.com/fido-alliance/credential-exchange-feedbac...

I am worried about providers blocking exports “because security”. That’s Apple’s favorite argument

Re:The Cryptography Behind Passkeys by an_d_rew on Wednesday May 14, 2025 @03:45PM (#43988450)
1Password integrates with all pass keys on my iPhone, my Mac, and my Linux box.

By a far and away WORTH the subscription, for me!

Re:The Cryptography Behind Passkeys by drdrey on Wednesday May 14, 2025 @04:51PM (#43989080)
doesn't that mean your passkeys are now about as secure as a regular password?
Re:The Cryptography Behind Passkeys by SchemaLoad on Wednesday May 14, 2025 @06:57PM (#43990055)
No. The service you are logging in to does not hold the keys so they can't be leaked, passkeys do not get reused between services, it's effectively impossible to fall for phishing attacks with passkeys, and it's effectively impossible to fall for scammers trying to get your keys since there isn't any mechanism to directly dump the private keys out.

Pretty much all the problems related to passwords are solved by passkeys, having them synced between your devices does not impact that.

Re:The Cryptography Behind Passkeys by johnmaguire on Wednesday May 14, 2025 @05:11PM (#43989269)
Passkeys are highly phishing resistant in a way that passwords are not and are not subject to credential reuse (though password managers somewhat solve the first problem and almost entirely solve the latter problem.)

In effect, though, 1Password is both something you have (the device with 1P logged in, login requires a Security Key that you don't memorize) and something you know (the master password) or are (typically biometrics can be used to unlock for a period after entering the master password.)

Re:The Cryptography Behind Passkeys by jcattle on Thursday May 15, 2025 @02:47AM (#43992469)
How do Password managers solve phishing issues? Even just somewhat?
Re:The Cryptography Behind Passkeys by josephcsible on Thursday May 15, 2025 @02:52AM (#43992492)
Your password manager will autofill your credentials on the real site but not on a phishing site.
Re:The Cryptography Behind Passkeys by jcattle on Thursday May 15, 2025 @05:02AM (#43993143)
Ah true. Didn't think of that. Good point
Re:The Cryptography Behind Passkeys by kbolino on Wednesday May 14, 2025 @05:03PM (#43989191)
A passkey is a public-private keypair strongly tied to a specific site. Sites never have access to the private key, and the key will never be presented for use on the wrong site. Those two advantages remain even if the passkey is stored in software or synced over the cloud.
Re:The Cryptography Behind Passkeys by recursive on Wednesday May 14, 2025 @05:42PM (#43989517)
Don't know about you, but my passwords were already secure enough anyway.
Re:The Cryptography Behind Passkeys by awesome_dude on Wednesday May 14, 2025 @07:00PM (#43990072)
That's my impression as well, and the nature of computing today /encourages/ putting passkeys into some container that means that they can be accessed from other pieces of hardware at different locations.
Re:The Cryptography Behind Passkeys by loeg on Thursday May 15, 2025 @02:02AM (#43992255)
From a practical perspective, passkeys are mostly identical to passwords where (1) secret generation is guaranteed to be strong, random, and unique; (2) they're tied to a specific site, so they can't be phished; and (3) filling is standardized and therefore ergonomic. If your passwords have those properties, passkeys aren't really an improvement for you. The main benefit to savvy consumers is that websites can trust that your passkeys are actually high quality and treat them as a primary authentication mechanism, instead of only a weak factor in an MFA system. And of course the huge huge benefit to most (unsavvy) consumers is that, you know, they're actually secure/unique and phishing-resistant.
Re:The Cryptography Behind Passkeys by udev4096 on Thursday May 15, 2025 @03:21AM (#43992623)
Normal passwords can be phished, no matter how strong it is. The weak link is always a careless human. Passkeys are definitely a huge improvement for everyone, apart from the vendor-lock in which can be avoided
Re:The Cryptography Behind Passkeys by loeg on Thursday May 15, 2025 @01:43PM (#43997437)
You can get around it, of course, but password managers are aware of the correct domain for a password and will only auto fill it into a form on the right domain. This is phishing-resistant. I'm not saying it's perfect, and I'm a big passkeys advocate. But "randomly generated password auto-filled by 1password" already meets many of the same benefits as passkeys, kinda, so long as auto-fill works on that particular website. Passkeys, in addition to stronger versions of those properties, also provide (1) ergonomics/standardization ("fill" works everywhere) and (2) sites can trust them to be strong.
Re:The Cryptography Behind Passkeys by udev4096 on Thursday May 15, 2025 @03:25AM (#43992653)
Imagine using the worst password manager out there. 1Password was breached several times and even led to some people losing significant amount of money
Re:The Cryptography Behind Passkeys by larsnystrom on Thursday May 15, 2025 @04:40AM (#43993049)
Please do share some links to these events, because this is the first I hear of it.
Re:The Cryptography Behind Passkeys by idle_zealot on Wednesday May 14, 2025 @03:46PM (#43988462)
> Does anyone know the state of the standard wrt this?

Exporting/transporting keys seems to be optional on the part of implementors, but my solution has been to use Bitwarden, so I at least get cross platform keys.

Re:The Cryptography Behind Passkeys by normalaccess on Wednesday May 14, 2025 @06:19PM (#43989772)
I use Bitwarden to store my passkeys. Syncs to all my devices and just works. I have very few issues with it. Also for the truly paranoid, you can run the open-source back end on your own server if you want.

https://bitwarden.com/passwordless-passkeys/

Re:The Cryptography Behind Passkeys by secabeen on Wednesday May 14, 2025 @07:45PM (#43990362)
Can you export the passkeys to an importable form that your heirs can use to get into your accounts if you have passed away? Something that's sealed in an envelope inside a fire safe, for example?

Every vendor I see offering a solution has no documented export option at all. Yes, you can use the legacy method to login, but an authentication stream that is not used regularly is one that will break, or will ask for a factor that I no longer have access to (I wouldn't know this because I only use passkeys.)

I also expect that there will be sites that only accept passkeys eventually, even if the spec says you shoudln't.

Re:The Cryptography Behind Passkeys by SchemaLoad on Wednesday May 14, 2025 @08:18PM (#43990549)
Yes. If you use a password manager like 1password you can print out the recovery slip and write your password on it. Then all of your passkeys will be accessible.
Re:The Cryptography Behind Passkeys by internetter on Wednesday May 14, 2025 @09:15PM (#43990871)
I think you missed the point. If I have a passkey in 1password how does it become my passkey? As in, a passkey I can freely read, redistribute, and store in platforms that are not 1password. This is a property of passwords but not of passkeys.
Re:The Cryptography Behind Passkeys by SchemaLoad on Wednesday May 14, 2025 @10:15PM (#43991206)
Today you can do that with open source password managers, and in the future there is a passkey portability specification coming to do passkey migrations between managers.

But in general it's a bad idea to have the passkeys just sitting around in text files so the current managers are largely designed around preventing the tech support scammer from instructing grandma to dump the passkeys and email it to them.

Re:The Cryptography Behind Passkeys by devman0 on Wednesday May 14, 2025 @11:36PM (#43991596)
if a passkey is exportable how is it materially different from a password? Isn't the point of a passkey to be hardware bound so it can't be swiped?
Re:The Cryptography Behind Passkeys by Groxx on Wednesday May 14, 2025 @11:50PM (#43991670)
They're closer to a client side certificate - you never send the server your passkey, you sign data that proves you have it without exposing it. (Or something semantically equivalent anyway)

Other than that, which is mostly only a benefit for edge cases around partially compromised devices or servers: yeah they're not much different than random unique passwords. Except they have vendor-lock-in.

Re:The Cryptography Behind Passkeys by hooverd on Thursday May 15, 2025 @12:11AM (#43991776)
Passkeys aren't vulnerable to phishing or breaches (if they are you have bigger problems).
Re:The Cryptography Behind Passkeys by SchemaLoad on Thursday May 15, 2025 @02:05AM (#43992264)
Passkeys would be vulnerable to phishing if password managers allowed you to export them in plaintext. Because the phishing page would just show you the steps to do this and paste the private key in.

But because most managers have no UI for doing this, it's impossible to trick someone into doing it.

Re:The Cryptography Behind Passkeys by hooverd on Thursday May 15, 2025 @11:55AM (#43996345)
Password managers could warn about this, like "WEBSITES WILL NEVER ASK YOU FOR THIS DATA". I don't think we should cripple Passkeys and limit syncing to third-party walled gardens because users are stupid.
Re:The Cryptography Behind Passkeys by ensignavenger on Wednesday May 14, 2025 @08:34PM (#43990634)
It is my understanding that there is ongoing work to create an import/export standard, and that bitwarden is planning to support it. But also, you can give your heirs your bitwarden root password.
Re:The Cryptography Behind Passkeys by mcculley on Wednesday May 14, 2025 @09:50PM (#43991074)
Giving out the root password is less than ideal. I would prefer that my heirs not have to lie about their identity. I’m not singling out bitwarden here. Most SaaS offerings do not think about these issues. Pretty much every system should have a way of delegating authority without requiring lies.
Re:The Cryptography Behind Passkeys by seemaze on Wednesday May 14, 2025 @11:41PM (#43991624)
While I agree with the premise, to equate utilizing another’s credentials as lying conflates a system identity with a physical identity. Is it lying when I give someone the keys to my car to drive? And when will this ‘root’ character realize I’ve been appropriating their login with abandon?
Re:The Cryptography Behind Passkeys by rstuart4133 on Wednesday May 14, 2025 @11:28PM (#43991551)
> Giving out the root password is less than ideal.

I expect something akin to handing out the private key to your heirs is what happens. But the term "giving out" understates what happens: https://bitwarden.com/help/emergency-access/ It's an escrowed time lock. I haven't looked at the details, but I expect it's a multi step protocol involving at least two public keys. It the scheme of possibilities, it's pretty good.

Re:The Cryptography Behind Passkeys by panarky on Thursday May 15, 2025 @12:48AM (#43991941)
Bitwarden paid users have a feature called "Emergency Access" where you designate one or more other Bitwarden users who can access your vault in an emergency.

If you die or become incapacitated, your emergency contact can click a button to request access to your vault. You receive a series of emails requesting that you approve or deny their request.

If you don't deny their request within a wait time that you specify in advance, your public key-encrypted user symmetric key is delivered to the the emergency contact for decryption with the their private key.

More here -> https://bitwarden.com/help/emergency-access/

Re:The Cryptography Behind Passkeys by sph on Thursday May 15, 2025 @02:42AM (#43992442)
> It is my understanding that there is ongoing work to create an import/export standard

I have heard this so many times that, given the big names behind the standard who benefit from vendor lock-in, it’s no wonder they are dragging their feet. Until there is a serious import/export mechanism, I’ll stay away.

Re:The Cryptography Behind Passkeys by vbezhenar on Thursday May 15, 2025 @02:37AM (#43992415)
vaultwarden uses sqlite database, so obviously you can export it.

I think that there are some objections about allowing user-friendly way to export passkeys as it's contradicts with their nature. But in the end they are exportable.

May be someone would build pure software implementation as browser extension which would allow export-import as PEM files and to hell with purists.

Re:The Cryptography Behind Passkeys by withinboredom on Thursday May 15, 2025 @05:51AM (#43993406)
Generally, they should be able to get into any account with a death certificate, even if they don't know the password. It just takes longer. It took like 4 months for a friend to gain access to their dad's one-drive account to access photos on their computer.
Re:The Cryptography Behind Passkeys by patrakov on Thursday May 15, 2025 @06:38AM (#43993611)
This is not possible if the data on the server is encrypted with the key derived from the person's password or a completely independent key and no escrow has ever been implemented. That's why, for example, you can't read my old Wire messages or look at photos that I sent and received there, even if you fake my death certificate.
Re:The Cryptography Behind Passkeys by toomuchtodo on Thursday May 15, 2025 @12:00PM (#43996386)
Legacy contacts are the pattern here.

https://support.apple.com/en-us/102631

Re:The Cryptography Behind Passkeys by cube00 on Thursday May 15, 2025 @09:08AM (#43994649)
No chance that's happening with Google.
Re:The Cryptography Behind Passkeys by squigz on Thursday May 15, 2025 @09:42AM (#43995014)
Re:The Cryptography Behind Passkeys by cube00 on Friday May 16, 2025 @12:54PM (#44007574)
Good luck not getting burnt by Google's classic lack of support... https://www.reddit.com/r/google/comments/1fclx16/google_dece...
Re:The Cryptography Behind Passkeys by jeroenhd on Thursday May 15, 2025 @07:20AM (#43993835)
Bitwarden's hosted platform has a feature exactly for this use case: https://bitwarden.com/help/emergency-access/

But yes, you can export passkeys. They take this format in the backed up JSON:

    {
      "passwordHistory": null,
      "revisionDate": "2025-05-15T11:10:37.341Z",
      "creationDate": "2025-05-15T11:10:37.134Z",
      "deletedDate": null,
      "id": "3b90b785-efb7-491b-92e8-525b446df781",
      "organizationId": null,
      "folderId": null,
      "type": 1,
      "reprompt": 0,
      "name": "passkeys.io",
      "notes": null,
      "favorite": false,
      "login": {
        "fido2Credentials": [
          {
            "credentialId": "f167c754-5a4c-4c4a-b5e5-6faf18bde5a6",
            "keyType": "public-key",
            "keyAlgorithm": "ECDSA",
            "keyCurve": "P-256",
            "keyValue": "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgMnNsrXAHP50Glhs1vBPgCFVv3jj-nuZ9gHVRdGg2anehRANCAATtK7xFvDIn8mAOCniczaG5ytAE_eBR0kkgd5lFVahpI6tQ5U-nBAkgqvlmtObrWDNu0-RgiCgYnOLXFPEyda4j",
            "rpId": "www.passkeys.io",
            "userHandle": "47GTTn99QtyNUGaMFMzH2A",
            "userName": "<masked against scrapers>",
            "counter": "0",
            "rpName": "passkeys.io",
            "userDisplayName": "<masked against scrapers>",
            "discoverable": "true",
            "creationDate": "2025-05-15T11:10:37.645Z"
          }
        ],
        "uris": [
          {
            "match": null,
            "uri": "https://www.passkeys.io/"
          }
        ],
        "username": "<masked against scrapers>",
        "password": null,
        "totp": null
      },
      "collectionIds": null
    }
(I have deleted the account on passkeys.io so don't bother trying to hack my demo account)

As for the lack of documented export options: that's kind of the point for many passkey providers. You can't export the key from a Yubikey, you can't export the keys from a smart card, you can't export the keys from an RFID dongle*, and in the same vein you cannot export the keys from many passkey providers.

What you can (or at least should be able to) do, is add a backup key. That can be someone else's PC/account in case your house burns down, or a physical Yubikey you store in a fire safe somewhere, whatever mitigations you need. You could also use a tiered setup; if you use hardware tokens to sign into your relatives' Apple/Google/Microsoft/1Password account, you can in turn use their cloud tokens to sign into whatever services they use. That way, you hand out some trust to their authentication provider, but in exchange managing physical backup keys becomes a lot easier as you don't need to open your safe every time you create a credential for an important website. You can use such a physical recovery key even if your relative prefers to log in with username+password.

Re:The Cryptography Behind Passkeys by agile-gift0262 on Thursday May 15, 2025 @10:01AM (#43995201)
I didn't know Bitwarden exported passkeys. This makes me consider migrating from 1password to Bitwarden. I've been a happy customer of 1password for 8 years, but it doesn't export passkeys, so I've been quite reluctant to using passkeys because of how they would lock me into 1password.
Re:The Cryptography Behind Passkeys by cevn on Thursday May 15, 2025 @12:24PM (#43996614)
I switched last month and it is basically the exact same flow except.. you don't have to pay due to self hosting.
Re:The Cryptography Behind Passkeys by secabeen on Thursday May 15, 2025 @11:58AM (#43996373)
Thank you. This is helpful, as this is the first example of an actual key export that I've seen. The tiering system is interesting, that could work too.

On the flip-side, backup keys are not a solution for me in this instance. The model being proposed is one where we have hundreds of passkeys in our vaults, one for each service. I don't want to spend time setting up a backup key on every service; I want the ease of use of just hitting "use passkey" on a new site and having it all work. I just also want a 100% reliable backup option that has no dependency on any service, vendor-specific system or anything. Essentially, I want a backup that my grandmother could hand to a local kid with tech skills, and be able to get into my account(s) while sitting together at her computer.

Re:The Cryptography Behind Passkeys by packtreefly on Thursday May 15, 2025 @02:09PM (#43997675)
I put the passkeys in a password manager, then lock the password manager with multiple physical Yubikeys, keeping several in secure storage.

This same pattern works for Google/iCloud accounts.

Re:The Cryptography Behind Passkeys by udev4096 on Thursday May 15, 2025 @03:06AM (#43992549)
It's not paranoid to host your own password manager. It's about not relying on Bitwarden for the most critical service without which I am locked out of pretty much everything. Plus, you get lots of cool features that are only available on bitwarden premium
Re:The Cryptography Behind Passkeys by lolinder on Thursday May 15, 2025 @09:17AM (#43994736)
The mission critical problem cuts both ways.

I've weighed the risks and decided that I'm more comfortable relying on Bitwarden for the most critical service than I am hosting in on my own hardware and counting on my own skills to keep it available. I self host plenty of other things, but having `rm -rf /`'d my hard drive before I don't trust myself more than I trust the folks at Bitwarden.

Re:The Cryptography Behind Passkeys by lolinder on Thursday May 15, 2025 @09:20AM (#43994766)
What do passkeys synced over Bitwarden get you that a username + random password does not?
Re:The Cryptography Behind Passkeys by izacus on Thursday May 15, 2025 @10:32AM (#43995509)
Same thing SSH keys give you what username + random password does not. Convenience.
Re:The Cryptography Behind Passkeys by lolinder on Thursday May 15, 2025 @11:54AM (#43996333)
But how much more convenient is it really? Filling out the login form with Bitwarden is a single hotkey: Ctrl+Alt+L. That's such a light burden that I'm having a hard time seeing the value proposition for users who are already on a password manager.

I can totally see the value for companies who serve users that don't use password managers—if you can get those people onto passkeys that's a clear security win.

Re:The Cryptography Behind Passkeys by horse666 on Thursday May 15, 2025 @04:20PM (#43998918)
Phishing protection? Unlike passwords, passkeys are bound to a domain.
Re:The Cryptography Behind Passkeys by lolinder on Thursday May 15, 2025 @06:45PM (#44000117)
My passwords are bound to a domain and Bitwarden will refuse to autofill if the domain doesn't match. I can copy the password manually if I care to, but that's true in every passkey implementation that I've seen as well: they're never the only login option, you can always log in with a password too.
Re:The Cryptography Behind Passkeys by horse666 on Friday May 16, 2025 @03:33AM (#44002697)
I don’t understand what you mean, sorry. If you are manually copying a password, then you are not using passkeys? There is nothing to copy/accidentally leak with passkeys.

I guess it will be a while before passkeys are the _only_ option that websites accept

Re:The Cryptography Behind Passkeys by lolinder on Saturday May 17, 2025 @09:37AM (#44014241)
I'm saying that as long as websites use the username/password model alongside passkeys with no way to turn off the former, you're just as at risk of phishing with passkeys as I am with domain-bound autofill.

Either one of us would have to choose to manually copy our logins into a phishing form in order to get phished.

Re:The Cryptography Behind Passkeys by browningstreet on Thursday May 15, 2025 @11:59AM (#43996382)
Maybe someday I’ll get excited about them. But I’m confused about this support across the tooling I have and whether or not it locks me into my tooling.

I use 1Passeord and like it but I’m also tired of all the different auth schems. Passwords, Google OAuth, AppleID, magic email links, 2FA with an alt method, 2FA without an alt method, Okta, backup email address validations, etc etc. I try and login sometimes and my phone is elsewhere and I don’t like feeling obligated to go find my phone even when I’m wearing an Apple Watch.

It’s too much.