News for hackers. Stuff that matters.
Re:Software U2F Authenticator for macOS by agucova on Thursday September 05, 2019 @05:02PM (#20890615)
Does someone know for any equivalent for Ubuntu Desktop? (or any distro for that matter)
Re:Software U2F Authenticator for macOS by danstiner on Thursday September 05, 2019 @06:15PM (#20891125)
Shameless self-plug, I've written such an equivalent for Linux distros: https://github.com/danstiner/rust-u2f#rust-u2f

Though it suffers from the caveat that secrets are just stored as a file in $HOME. I'd love to support more secure methods but haven't seen enough interest in the project to justify the dev time that would be required.

Re:Software U2F Authenticator for macOS by pabs3 on Friday September 06, 2019 @01:20AM (#20893288)
Have you considered punting the storage decision to the Linux desktop's Secret Service (the equivalent of the macOS keychain)?

https://specifications.freedesktop.org/secret-service/

Re:Software U2F Authenticator for macOS by danstiner on Friday September 06, 2019 @11:30AM (#20896516)
Thanks for the suggestion. It hasn't been a focus yet because it doesn't bring much security for me personally, but it is something I would like to do eventually.

Issue: https://github.com/danstiner/rust-u2f/issues/19

Re:Software U2F Authenticator for macOS by kelnos on Thursday September 05, 2019 @06:34PM (#20891255)
Neat! Is there a reason why it says at the top it only supports Google Chrome? I haven't looked into it too deeply, but a cursory glance seems to suggest there's no Chrome-specific extension, so I assume you're just hooking into the normal pkcs-related frameworks on Linux?
Re:Software U2F Authenticator for macOS by danstiner on Friday September 06, 2019 @11:34AM (#20896547)
It definitely also supports Firefox, updated the README.

I'm just emulating a USB device and using OpenSSL to do the signing, is there a better approach I should be looking at? (perhaps PKCS #11)

Re:Software U2F Authenticator for macOS by abrodersen on Thursday September 05, 2019 @08:16PM (#20891854)
I would love to have a hardware-backed soft U2F daemon for Linux. It would be great if this could use a TPM to encrypt the data. What would it take to add such capability to your software? I would be happy to lend my (limited) Rust experience to help make it happen.
Re:Software U2F Authenticator for macOS by danstiner on Friday September 06, 2019 @11:55AM (#20896780)
I would too. Go ahead and open an issue and we can chat more, but in short I think the biggest hurdle is understanding TPM2 and what API to use to interact with the device. (TPM2 is necessary so the key material never leaves the TPM, signing happens in the device itself)
Re:Software U2F Authenticator for macOS by eikenberry on Thursday September 05, 2019 @09:07PM (#20892116)
The oathtool command line app supports TOTP. It is pretty straightforward to script something if you need it. The package has the same name (oathtool).
Re:Software U2F Authenticator for macOS by w8rbt on Thursday September 05, 2019 @09:16PM (#20892156)
Does oathtool take stdin? Last time I looked it did not. I keep my TOTP secrets PGP encrypted and pipe them to goathgen.

    $ gpg -d encrypted-secret.txt | goathgen
https://github.com/w8rbt/goathgen
Re:Software U2F Authenticator for macOS by beefhash on Friday September 06, 2019 @12:48AM (#20893149)
Funny you'd wrote a wrapper like that, too. I ended up making something in C that uses readpassphrase(3) [with -lbsd on Linux, but I haven't built it on a Linux machine in years] and zeroes the memory with explicit_bzero(3) as it goes out.

The keys come from a dedicated password manager that only stores TOTP secrets and the password manager wipes the clipboard.

All this happens on a physically separate machine.

Re:Software U2F Authenticator for macOS by rzzzt on Thursday September 05, 2019 @05:10PM (#20890667)
I found this bit of documentation for a similar component: https://chromium.googlesource.com/chromiumos/platform2/+/HEA...