logoalt Hacker News

e12e • yesterday at 1:46 AM • 0 replies • view on HN

Yes. I think of it like this: password - a secret mostly shared between client and server (server stores salted hash) - you prove you know the password, by giving it to the server (over https). Malicious code on the client or server, or mitm like a tls proxy can access plaintext password.

Didn't have to be so, but browsers never went beyond digest auth - no pake or whatever oob.

Which leads to two; totp via shared secret. Client and server shares symmetric key - either can prove knowledge of key by providing a totp token. Subject to replay (within window).

Sometimes the server will pretend sms or email is a secure channel and send itself a totp token - that user inputs.

Passkeys: private/public keypair. No replay. No secrets over the wire. Hard for users to manage (sync). Best use-case add to two to three hw tokens which require pin.

You now need to have the hw token, know the pin. 2fa.

If you store the private key in os or other pw manager - becomes prone to exfiltration. You no longer need a device - you no longer need to know a pin.

Still, compared to password (and totp) - much less likely to leak, be brute forced, replayed, re-use across services.

I think most users have one or two devices (phone, maybe PC).

If we assume they access a concervative fifty accounts - they need a pw manager. Compromise of the device will yield passwords and totp secrets.

Yet, pw manager can help with random pws, eliminate pw re-use, and with totp limit usefulness of leaked/sniffed passwords.

Ideally, a dedicated usb Fido dongle with passkeys - would improve security one more step. But harder to guarantee against lockout (I lost all my Fido usb keys while fishing).

Theoretically a dedicated totp device could help - but then I'd just prefer a smarter Fido device.

I think I might have to go and recommend Fido hw keys now...