News for hackers. Stuff that matters.
Re:Passkeys: A Shattered Dream by michaelt on Friday April 26, 2024 @08:48AM (#40168791)
> I’ve avoided passkeys so far because I just don’t have a good mental model of them.

OK, so the simplest way to understand is to first know about the previous generation.

U2F keys are designed to be used alongside a username and password, as a more secure replacement for phone apps showing 6-digit codes.

In U2F the key has a hardware 'secure element' where secrets can't be extracted, even if you plug it into a compromised machine. You get a separate public/private key pair for every account and website (so it can't be used to track you between websites) and that key pair can be used to authenticate with the website. A physical button has to be pressed to authenticate, keeping it secure even if an attacker has control over your keyboard and mouse. The browser integration takes care of letting the USB key know which website is asking to authenticate. U2F keys have to be used alongside a username and password.

For a variety of reasons U2F keys never really took off. Partly cost, partly the 'what if I lose it' issue, partly lack of uptake by websites, partly difficulty using them on mobile, partly competition from 'log in with google' type systems.

So the trade group behind U2F said "Hey, maybe we could just emulate the hardware secure element in the smartphone's OS? And while we're at it, we could save the username, and use fingerprint/faceid instead of a password, eliminate that tedious button press, and automatically back up the public/private keypairs to the cloud". They kept a USB option about for the sake of tradition, but it's on life support.

So that's the mental model of a Passkey: It's like an impossible-to-clone USB hardware secure element that does challenge-response authentication to websites. Except it's emulated in OS software, and is no longer impossible to clone.

Another way of thinking of it is: It's very similar to using the 'Log in with Google' / 'Log in with Apple ID' buttons you see on many websites, you're authenticating to a service by proving you have access to a cloud account. The implementation details in the background are very different, but the result is broadly the same.

Re:Passkeys: A Shattered Dream by chrisweekly on Friday April 26, 2024 @09:39AM (#40169253)
> "and use fingerprint/faceid instead of a password"

This is the part that makes absolutely no sense to me. An essential aspect of passwords is that they can be changed. If someone manages to fake the digital representation of my fingerprints or face, what now? Security guru Bruce Schneier has written about this w/ much more eloquence and authority.

Re:Passkeys: A Shattered Dream by vel0city on Friday April 26, 2024 @10:09AM (#40169632)
The fingerprint/faceid is just a local proof to unlock the actual asymmetric encryption key. It is not your actual identifier to the remote server. So if you need to redo your auth, you just rekey and stash the new key in your authenticator (or have your authenticator originate the key material and never expose it to main memory at all).

Think an SSH key protected by a passphrase. Your passphrase isn't the thing that actually logs you into the server, its just what you use to unlock your actual key material you use in your SSH handshake. Your fingerprint/face identity is just your local unlock of the actual key material stored in some other secure enclave.

Re:Passkeys: A Shattered Dream by chrisweekly on Friday April 26, 2024 @01:43PM (#40172151)
thanks, that does help.
Re:Passkeys: A Shattered Dream by taeric on Friday April 26, 2024 @12:14PM (#40171119)
Your fingerprint/faceid/whatever is used to access the passkey. It is not the passkey. To that end, yes, if you are worried about clandestine access to your phone (if that is your passkey), then you probably don't want to allow access using fingerprint/faceid. And if someone can copy your passkey off of your phone, you are again compromised.
Re:Passkeys: A Shattered Dream by throwaway48476 on Friday April 26, 2024 @09:57AM (#40169465)
The unstated value of a USB key is the functional similarity to metal keys for ordinary people.
Re:Passkeys: A Shattered Dream by c0wb0yc0d3r on Friday April 26, 2024 @10:08AM (#40169619)
This is exactly how I describe them to many as well. I just wish there was a USB key with the durability of a metal key.
Re:Passkeys: A Shattered Dream by vel0city on Friday April 26, 2024 @10:20AM (#40169797)
Somewhat personal ancedote, but I've had pretty good experiences with Yubikeys. I've had one on my daily keychain for over a decade now. Its been run through clothes washing machines too many times to count, I've left it out in rainstorms, its been baked in the sun on hot summer days multiple times, its been dropped in pools, its been run over by a car, I've dropped it some pretty significant heights while hiking. It is still working just fine. That and a PNY 16GB metal keychain flash drive have taken a ton of abuse and are still working just fine. Other than a higher melting point or ability to take high energy RF I don't imagine there is much more abuse a traditional metal key would have compared to what I've done to my Yubikey.
Re:Passkeys: A Shattered Dream by Arelius on Friday April 26, 2024 @12:23PM (#40171221)
Maybe it’s the old USB version? I haven’t had so much luck… I had a couple of nanos, and those broke pretty quick. More recently, I switched to a usb-c version…. And while it still works and stays attached to the key ring. The plastic housing has broken already. I got a corp branded one now, that I’m trying and seems a touch more robust
Re:Passkeys: A Shattered Dream by vel0city on Friday April 26, 2024 @12:33PM (#40171345)
I've only had the full USB-A style ones. Every device I've had that I've needed a yubikey with has either a USB-A or supported NFC. The >1 decade device is a Yubikey NEO, I recently got a Yubikey 5 USB-A variant and also have one of those FIDO-only blue Security keys in USB-A.

What kind of failures did you have for the nanos? They just became unresponsive? Did they suffer any obvious physical failure or any particular kind of event cause their failure?

Re:Passkeys: A Shattered Dream by abdullahkhalids on Friday April 26, 2024 @01:54PM (#40172264)
If there was a NFC only version of these (and laptops came equipped with NFC), then we could make a block-of-metal key. No holes and I mean the keys with no buttons. Would be water proof and crush resistant. Assuming that you can send NFC signals through metal.
Re:Passkeys: A Shattered Dream by int_19h on Friday April 26, 2024 @11:53PM (#40177044)
Not quite. It's easy to create a duplicate of your metal key, and many people do exactly that to avoid a situation where they lose it and have no way of opening their door. The fact that you can't do that with USB keys is my biggest gripe with them. I understand that inability to copy even if you have physical access to the original has its security advantages, but 1) most things don't actually need that much security, and 2) it could still be done by e.g. allowing you to buy them in premanufactured batches where all keys are identical.
Re:Passkeys: A Shattered Dream by selykg on Friday April 26, 2024 @10:15AM (#40169726)
The biometric stuff is simply allowing access to the keys. It’s not being used for anything else.

Your face or fingerprint being out there isn’t a concern because that’s not, ultimately, the thing being used to generate the keys or anything.

It’s an ease of use function.

On iOS for instance, as I understand it, these are being stored in iCloud Keychain. Which has a password. The derived key for iCloud Keychain is stored in such a way that the system has access if you allow biometrics to be used.

Biometrics then simply allow access, in essence, not part of the encryption process. The password for iCloud Keychain is necessary to add those items on a new device. Your biometrics aren’t stored by Apple anywhere other than in the device.

Honestly I am blown away how few people on this site understand how this stuff works. It’s fascinating and I’m surprised more people aren’t interested in understanding it. But so many people assume the biometrics are being used in the encryption process and that if your face is somehow stolen your whole life is doomed. These features have been on Apple devices for what.. a decade almost at this point? More? The process for Face ID is the same as Touch ID. Developers make zero distinction between the two in code, as that whole process is passed off to the system and effectively results in a bool value (or access to the secure item requested). At no point does a developer ever get your biometrics data.

I don’t know how Android or Windows do it but it is similar enough I suspect.

The FUD around passkeys feels like some sort of propaganda campaign to discredit it.

Re:Passkeys: A Shattered Dream by kevinsync on Friday April 26, 2024 @12:56PM (#40171658)
Agree. I actually wanted to acquire a biometric signature to do something with it on iOS and was super bummed once I dug in to see how it works -- all Apple exposes is a function that returns true or false hahaha
Re:Passkeys: A Shattered Dream by pixl97 on Friday April 26, 2024 @01:45PM (#40172162)
"A pass key is an ssh key with more steps for the user to fuck up and get locked out of their account"

I mean there is plenty of FUD, but at the end of the day it's not terribly exciting technology.

Re:Passkeys: A Shattered Dream by m3kw9 on Friday April 26, 2024 @11:24AM (#40170602)
This is the part where you have people dismissing a security from a simple assumption and reverting back to another assumption of their current state. Is still dangerous
Re:Passkeys: A Shattered Dream by m3kw9 on Friday April 26, 2024 @11:27AM (#40170641)
Your faith in humanity seem low, because this would never be pushed worldwide by security experts who eats and sleeps it, if it was so easily broken where you just figures it out during a comment
Re:Passkeys: A Shattered Dream by NoMoreNicksLeft on Friday April 26, 2024 @10:23AM (#40169817)
This sounds, to me, like a really bad and convoluted way of storing pub/priv in a password manager, and hoping the software implementation gets it right when it's trying to manage these things for me because I'm too dumb to manage passwords and too hobbled by bad IT policies that want to change my passwords every 4 weeks.
Re:Passkeys: A Shattered Dream by ryandrake on Friday April 26, 2024 @12:20PM (#40171180)
[deleted]
Re:Passkeys: A Shattered Dream by red_admiral on Friday April 26, 2024 @12:41PM (#40171453)
Yubikeys absolutely took off in certain corporate, government and tech environments. Just not so much with the general public.
Re:Passkeys: A Shattered Dream by michaelt on Friday April 26, 2024 @12:57PM (#40171674)
Eh, somewhat. The lost key account recovery story is much better in large organisations, where you have a 24/7 helpdesk that can check your ID badge in person, a HR department with a photocopy of your passport, and suchlike.

But for example if you're using Azure/AD? No U2F + Password allowed, gotta go straight to "passwordless" [1].

So they never took off far enough for Microsoft to support them.

[1] https://learn.microsoft.com/en-us/entra/identity/authenticat...

Re:Passkeys: A Shattered Dream by whartung on Friday April 26, 2024 @05:28PM (#40174513)
The big question I have is are the keys device/browser specific?

Seems to me I need to be able to log in with a password from any place (my phone, my machine, my office, my wifes phone, her laptop, my friends laptop, etc.).

I mean, who knows when I'll want or need to get into Something.

Also, my wife and I share accounts (such as Amazon). So, it needs to work seamlessly across all of her devices.

Then there's always the "F-with it factor" that I loathe. At least I understand passwords. Can (mostly) always recover a password (I recall trying to recover my Apple ID password -- they bluntly said "ok, but you have to come back in 2 weeks", so I was locked out for 2 weeks).

And, of course the level of patience my wife has with Technology is less than zero.

I rely on my Safari auto fill, when I use another browser, I just copy the pw from Safari.

And I don't use any of the cloud services. I have an iPhone, but don't use iCloud.