Live data from Hacker News

Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

github.com

21–30 of 46 posts

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#21
post #3

It worked fine on Mac, curious how does it work on Windows?

Windows has had TPM-backed authentication mechanisms baked in for a while now. For devices lacking biometrics, you authenticate with your Windows PIN/password, use a phone, or use a yubikey or similar device. Or, on any OS, you can use addons like Bitwarden to take over WebAuthn for you.

I do wonder what the macOS workflow looks like, especially if you don't have a fingerprint reader on your keyboard.

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#22
post #2

I'm confused how this works. I tried the demo and Bitwarden asked me if I wanted to save the passkey. From a UX experience, this felt weird.. Why do I need to create an account, and save that account? Why is passkey storage prevent bots? Just that bots haven't added that automation yet?

Passkey can be thought of as software emulation of a smartcard (aka hard token aka Yubikey). When it asks you to save it, that's when it creates the virtual smartcard in some reasonably secure local storage (possibly TPM-secured or at least kernel-secured).

The benefit of this approach is that a bot doesn't have the private key.

Of course you want to be sure that webauthn on boarding can't be botted.

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#23
post #12

Honestly I just want government backed digital ID for this stuff. I know the concerns. I no longer care. The benefits outweight the costs, imho. I want to be able to tell a site "yes I'm Martin here's proof either ban me or let me in but stop making me jump through hoops to prove ID. And so that social sites I use will no longer have to deal with undesired non-unique accounts for bot swarms and sockpuppets and the li…

There is a US government authentication system (login.gov).

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#24
post #17

Earlier quoted context omitted.

there is attestation of the registration device in webauthn so you can tell that a token was signed by an official yubikey, apple secure enclave, tpm, etc for yubikeys the attestation signing certificate is shared between devices, but this number is limited so you could rate limit... just it would be a horrible experience when you are limited

I don’t see that in the code. But you’re right that there is something heuristic you can do.

Here is a relevant discussion about it in S/O: https://stackoverflow.com/questions/67797804/how-to-distingu...

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#25
post #2

I'm confused how this works. I tried the demo and Bitwarden asked me if I wanted to save the passkey. From a UX experience, this felt weird.. Why do I need to create an account, and save that account? Why is passkey storage prevent bots? Just that bots haven't added that automation yet?

Passkey can be thought of as software emulation of a smartcard (aka hard token aka Yubikey). When it asks you to save it, that's when it creates the virtual smartcard in some reasonably secure local storage (possibly TPM-secured or at least kernel-secured). The benefit of this approach is that a bot doesn't have the private key. Of course you want to be sure that webauthn on boarding can't be botted.

I'm still confused... Why can't headless Chrome with Bitwarden easily by-pass this? What private key?

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#26
I don’t think you understand the problem space. Although, this is a great alternative for SMB’s who aren’t being targeted by attackers who are writing tools specifically for their business.

But, also.. A hardcoded “what’s 7\1=“ would also achieve the same outcome.

Barrier to beat is “can the attacker put together a webauthn emulator”. Low, but will work for many organisations for a long time.

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#27
post #17
post #10

This is neither a new idea or a good one. Cloudflare did a PR launch of pretty much the same thing a few years back, and that you haven't actually seen it in the wild probably tells you all you need to know about how useful it is. Webauthn is not an integrity attestation; it doesn't tell you anything about how trustworthy the client is. Nor is it a uniqueness attestation; an attacker can mint an arbitrary number of d…

there is attestation of the registration device in webauthn so you can tell that a token was signed by an official yubikey, apple secure enclave, tpm, etc for yubikeys the attestation signing certificate is shared between devices, but this number is limited so you could rate limit... just it would be a horrible experience when you are limited

What about for software implementations like 1Password and Bitwarden?

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#28
post #13

As other commenters have said, a better solution needs to be something that is prohibitively difficult for bots to mint. I’m sure there are a few contenders in the space but one I’m aware of is [worldcoin]( https://world.org/ )

Worldcoin has always creeped me out since this: https://d1sr9z1pdl3mb7.cloudfront.net/wp-content/uploads/202...

Saruman's vacation pics?

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#29
post #17
post #10

This is neither a new idea or a good one. Cloudflare did a PR launch of pretty much the same thing a few years back, and that you haven't actually seen it in the wild probably tells you all you need to know about how useful it is. Webauthn is not an integrity attestation; it doesn't tell you anything about how trustworthy the client is. Nor is it a uniqueness attestation; an attacker can mint an arbitrary number of d…

there is attestation of the registration device in webauthn so you can tell that a token was signed by an official yubikey, apple secure enclave, tpm, etc for yubikeys the attestation signing certificate is shared between devices, but this number is limited so you could rate limit... just it would be a horrible experience when you are limited

[deleted]

Re: Show HN: Replace CAPTCHAs with WebAuthn passkeys for bot prevention

#30
post #17

Earlier quoted context omitted.

there is attestation of the registration device in webauthn so you can tell that a token was signed by an official yubikey, apple secure enclave, tpm, etc for yubikeys the attestation signing certificate is shared between devices, but this number is limited so you could rate limit... just it would be a horrible experience when you are limited

What about for software implementations like 1Password and Bitwarden?

They can't fake the attestation from hardware implementations so you could just reject keys from software implementations.
Post reply on HN