News for hackers. Stuff that matters.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by matthiasb on Sunday May 15, 2016 @08:52PM (#11703579)
I stopped reading at "Google Authenticator". An app which scan a QR code which contains a clear text key is not enterprise-grade.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by voltagex_ on Sunday May 15, 2016 @10:15PM (#11703837)
Heh. The "enterprise" solution for this is something like DIGIPASS-ES [1], which is probably TOTP but just broken enough that you have to use their pretty terrible app instead of your existing apps.

1: https://www.vasco.com/images/DIGIPASS-for-Mobile-ES-201312-v...

Re:How to Set Up Two-Factor Authentication for Login and Sudo by dfc on Sunday May 15, 2016 @09:11PM (#11703641)
I'll bite... What is your threat model and proposed "enterprise-grade solution"?
Re:How to Set Up Two-Factor Authentication for Login and Sudo by parent5446 on Sunday May 15, 2016 @11:33PM (#11704064)
I don't agree with the original poster, but to at least supplement: using something like U2F (using pam_u2f) might be more secure, since no secret is transmitted in plaintext, and the secret is usually stored on an untamperable hardware token. Of course, most applications do not require such protection.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by knorker on Monday May 16, 2016 @04:17AM (#11704958)
That only works for local authentication. Which is fine, the article is about login and sudo.

But there's a problem. If I had partial access and the first factor (password) I'd race the real admin's "sudo" for the U2F touch. Poll list of processes in a loop. If "sudo" was just started, ask for U2F before sudo has a chance. (e.g. by having a pre-started sudo paused in GDB).

U2F has its problems for non-web auth. Just look at how awkward the SSH patches are. (also not secure and/or anonymous (I forget), by the way. See mailing list threads)

Re:How to Set Up Two-Factor Authentication for Login and Sudo by technofiend on Sunday May 15, 2016 @11:45PM (#11704108)
In my limited experience "enterprise" 2FA seems limited to RSA tokens. I'm not sure if I'm 10 years out of date particularly since they were hacked a while back.

Wouldn't a more elegant solution be to add Kerberos authentication combined with 2FA? You can then pay the price for access up front but someone phishing your password gets nothing since presumably they cannot answer the second factor challenge.

Re:How to Set Up Two-Factor Authentication for Login and Sudo by parent5446 on Sunday May 15, 2016 @11:59PM (#11704163)
Yeah, I mean if the goal is the "enterprise" solution, which is usually the solution where the setup, as well as the risk and damages of a break-in, can be shouldered to another company, then yeah RSA is usually the answer. I was primarily referring to the cryptographic security. Yes, RSA does avoid the transfer of plaintext secrets over the network, but instead you are placing your trust in RSA as a company to not have stored the secrets elsewhere (which, in most cases, is probably just fine).

The advantage of U2F is that it uses an asymmetric scheme where a keypair is generated for each authentication endpoint, so the secrets never leave the hardware token in the first place. Compared to RSA SecurID, you would need to have a really severe threat scenario such that you can't even trust RSA with your keys. Of course, U2F is also a much more complicated protocol than say TOTP, and has not existed long enough to stand the cryptographic test of time.

To answer your second question, I'm not sure I understand what you mean. TOTP (Google Authenticator), RSA SecurID, and U2F are all different types of 2FA. They could all be combined with Kerberos if that is what you want.

Re:How to Set Up Two-Factor Authentication for Login and Sudo by oarsinsync on Monday May 16, 2016 @04:30AM (#11704992)
> you would need to have a really severe threat scenario such that you can't even trust RSA with your keys

Such as the one where RSA was compromised and secrets were leaked, sadly.

Re:How to Set Up Two-Factor Authentication for Login and Sudo by dugite-code on Sunday May 15, 2016 @09:25PM (#11703680)
Out of curiosity when you say "app" are you talking about the pam module or the phone app? I would agree 2FA shouldn't replace a password but I don't see why it would be an issue as an addition to it.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by Daviey on Monday May 16, 2016 @03:26AM (#11704801)
And yet, that is a common model for how the seed for RSA android/iPhone is shared in a BYOD enterprise.

(The app supports QR)

Re:How to Set Up Two-Factor Authentication for Login and Sudo by matthiasb on Monday May 16, 2016 @04:31PM (#11709373)
I guess I got down voted because my statement is not popular? Or was it because I did not respect one of the YC News rule?
Re:How to Set Up Two-Factor Authentication for Login and Sudo by vacri on Monday May 16, 2016 @01:25AM (#11704405)
The very first step, "open google play and install something from it", indicates that the target audience is not enterprise.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by matthiasb on Monday May 16, 2016 @04:30PM (#11709361)
I made the same comment and I got downvoted as well. I don't vacri is saying it is bad to get the app from the Google App store. What is not enterprise ready is the Google Authenticator app itself. I use Google Authenticator for every consumer application which supports it, but it would be a mistake for an organization to use it to protect employee access to networks.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by the_mitsuhiko on Monday May 16, 2016 @03:12AM (#11704753)
The RSA app also comes from the play store.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by Daviey on Monday May 16, 2016 @03:29AM (#11704809)
So installing a random apk for http://enterprise.com is better?

Increasingly enterprises are allowing BYOD for this, with or without content protection systems like airwatch.

Re:How to Set Up Two-Factor Authentication for Login and Sudo by jimktrains2 on Monday May 16, 2016 @09:40AM (#11706153)
Totp is a standard protocol.there are multiple f/OS's that do it and are installable from f-droid or buildable and deployable as an apk. The method of getting the app isn't important.
Re:How to Set Up Two-Factor Authentication for Login and Sudo by meapix on Monday May 16, 2016 @08:30AM (#11705829)
If you don't want google authenticator, you can use oathtool to do that.