News for hackers. Stuff that matters.
Re:WebAuthN and Fido for Linux by ranguna on Monday October 24, 2022 @03:45AM (#33313960)
Is this software to emulate fido2 without a hardware key, or is it software to allow non Web clients to access fido2 devices, or something else ?

I already use fido2 on Linux with a hardware key for a while now. So I'm finding this a bit confusing.

Re:WebAuthN and Fido for Linux by lifeisstillgood on Monday October 24, 2022 @04:49AM (#33314301)
If I understand it correctly, it's to use fido2 without firefox or other browser. I support any spread of this and am looking forward to (having the time) to read it
Re:WebAuthN and Fido for Linux by ranguna on Monday October 24, 2022 @04:32PM (#33322309)
But Linux already supports FIDO2 without Firefox, I use fido2 with sudo, LUKS and ssh keys (gpg as well, but it uses a custom agent). But maybe those use their own custom implementation of the fido protocol?

Didn't really look this up tbh, it just works right now.

Re:WebAuthN and Fido for Linux by Borealid on Wednesday October 26, 2022 @03:17AM (#33340733)
sudo, LUKS, and OpenSSH each dynamically link and use Yubico's `libfido2`. That supports FIDO2 well on Linux.
Re:WebAuthN and Fido for Linux by ranguna on Wednesday October 26, 2022 @04:03AM (#33341025)
Meaning this is an alternative to yubico libfido2, gotcha. Thanks.
Re:WebAuthN and Fido for Linux by stavros on Monday October 24, 2022 @05:09AM (#33314399)
Looks like a DBus API for FIDO2, so it would let any browser or non-browser app to authenticate via FIDO2. It looks pretty neat!
Re:WebAuthN and Fido for Linux by ranguna on Monday October 24, 2022 @04:33PM (#33322326)
Ah that makes sense!

So it's a way to allow stuff to communicate with fido2 capable devices without having any dependency other than this and dbus, nice

Re:WebAuthN and Fido for Linux by gre345t34 on Monday October 24, 2022 @08:20AM (#33315743)
As far as I can tell, it's a library that implements CTAP2 (which it erroneously refers to as webauthn).
Re:WebAuthN and Fido for Linux by Borealid on Monday October 24, 2022 @08:39AM (#33315896)
This appears to be an alternative to Yubico's `libfido2`. It is software which OTHER software on your computer can use to connect to a FIDO2 authenticator over Bluetooth, USB, etc.

The primary benefit is that Firefox wants Rust-language code for FIDO2 support, so hopefully this library will (eventually) fill that gap and get Firefox-on-Linux to proper FIDO2 Webauthn support.

Re:WebAuthN and Fido for Linux by ranguna on Monday October 24, 2022 @04:29PM (#33322263)
Hmmm but Firefox on Linux already supports FIDO2, I can login to github and gitlab just fine with the existing implementation.
Re:WebAuthN and Fido for Linux by Borealid on Wednesday October 26, 2022 @03:14AM (#33340707)
I bet you're using U2F/FIDO1. Or, more precisely, I bet you're not using CTAP2.

An easy test is to set a PIN on your authenticator, which is an operation that is supported in CTAP2 and unsupported in CTAP1. Does Firefox prompt you for a PIN when you go to authenticate? If no, you're using CTAP1.

Re:WebAuthN and Fido for Linux by ranguna on Wednesday October 26, 2022 @04:01AM (#33341019)
My token has a global pin which when o unlock, I can authorise any request with a simple click. But for ssh keys I do have a pin for each one. The websites I've tried never requested for a pin when setting up.

Also LUKS does use FIDO2 https://www.freedesktop.org/software/systemd/man/systemd-cry...

Re:WebAuthN and Fido for Linux by Borealid on Wednesday October 26, 2022 @09:09AM (#33343091)
Firefox (only talking about Firefox here) does not use CTAP2, to the best of my knowledge. What you think is "FIDO2" is likely actually U2F/CTAP1. Backwards compatibility with that protocol is part of the FIDO2 spec, but it doesn't enable no-username-provided authentication. LUKS uses libfido2, which supports CTAP2 (and most of CTAP2.1).
Re:WebAuthN and Fido for Linux by michaelt on Monday October 24, 2022 @06:28AM (#33314864)
> Windows Hello, Android's FIDO2 support, Apple's TouchID and FaceID, are all examples of platform authenticators. There is no reason why the Linux desktop community could not enjoy similar benefits

Don't those platforms all rely on strict sandboxing and code signing, so that funny-dancing-monkey.exe can't rename itself to google-chrome.exe then perform a passwordless sign-on to google.com ?

I always thought this stuff was slow to arrive on Linux because it demands things that are incompatible with the free-software ethos.

Re:WebAuthN and Fido for Linux by notpushkin on Monday October 24, 2022 @07:32AM (#33315360)
You can do strict sandboxing on Linux, too (e. g. with Flatpak).
Re:WebAuthN and Fido for Linux by michaelt on Monday October 24, 2022 @09:40AM (#33316480)
Yeah, but that only sandboxes the applications that opt in.

If you want to stop malicious applications from doing malicious things, even when the system owner unwisely grants them permission, you need mandatory sandboxing that the system owner can't bypass.

And that isn't compatible with the free software ethos.

Re:WebAuthN and Fido for Linux by roblabla on Monday October 24, 2022 @10:06AM (#33316790)
I don't think that's necessarily true. All you need is default-on sandboxing that is "painfully obviously wrong" for the system owner to bypass. As a case in point, look at macOS. You can bypass almost every security feature in macOS by rebooting to recovery and disabling CSR, AMFI and whatnot. And even after disabling all this, touchID will still work, and I believe it will still be accepted as a platform authenticator.

I think something similar could be compatible with free software ethos.

Re:WebAuthN and Fido for Linux by notpushkin on Sunday October 30, 2022 @01:05AM (#33391271)
This exactly. Bypassing sandbox should be like installing software from tarball as opposed to package managers: possible but pretty much discouraged, an “escape hatch” of sorts.
Re:WebAuthN and Fido for Linux by georgyo on Monday October 24, 2022 @07:47AM (#33315494)
Android is Linux, and most of those sandboxing changes have been upstreamed.
Re:WebAuthN and Fido for Linux by e12e on Monday October 24, 2022 @10:16AM (#33316915)
There's https://www.sigstore.dev/ - but looks like the focus is on containers mostly (rather than eg refusing to load/exec an untrusted dll or binary).

See also some related discussion here:

https://lwn.net/Articles/733431/

Re:WebAuthN and Fido for Linux by ece on Monday October 24, 2022 @05:05PM (#33322663)
I also found this: https://github.com/psanford/tpm-fido

FIDO2 should be used more, hopefully more sites end up supporting it sooner rather than later.