51 points · by prometheon1 · 4y ago · 98 comments
Interestingly google's own Authenticator TOTP app still exists, but apparently you can't use it to set up 2FA for a google account anymore: https://play.google.com/store/apps/details?id=com.google.and...
The Google Authenticator app isn't the only app that can be used to generate TOTP tokens, even though many sites directly refer to it. Anywhere that you are given a QR code to scan you can use any TOTP app you'd like. I use Authy personally because it allows me to back up my TOTP tokens behind a master password and access to my phone number, so in the event my phone is lost or replaced I'm able to restore 2FA access by going through the process to configure Authy again and re-enter my master password from another password manager.
This is just a softer layer of security to slow down less sophisticated mass signup attempts.
Google may very well eventually phase out TOTP, under the justification that it is not as secure, but I would be shocked if they ever retire the highly insecure SMS verification.
Why? I hope they don't, as I'm relying on my password manager to emulate a hardware token so I can finally log in to websites without needing a username/password.
At its core, FIDO2 is an authentication API, so the site can ask your browser to authenticate you (in whatever way the browser wants). If that's "talk to the password manager to authenticate the user using some fancy cryptography", why does the authenticating site care?
I'm looking forward to the day when my password manager only has one credential in it, my soft-FIDO2 private key.
> Why?
Likely not in the same of security, but as an extra speed bump for automated account creations.
The easier it is to create accounts in automated ways en masse, the more likely that system can be abused.
If you require SMS authentication, you can use that telephone number as a means to limit accounts being generated.
If you can restrict software emulating hardware, you're similarly increasing the barrier to entry to require hardware tokens too, increasing the cost of creating accounts used for fraudulent activity, and reducing the lower hanging fruit (e.g. spam) from being as profitable.
You use self signed certificates all the time with SSH. If you haven't seen an SSH key before, you don't fall back to telnet.
If you stop to think about it, is incredible how much effort they put into forcing you to use the latest browser, and not trust self signed certificates. It is far easier to root your device and patch your kernel than it is to use an older browser.
Yes, it is a highly effective but clumsy heuristic to detect abuse. But I am convinced that they may have other incentives as well.
You are still protected from your password hash being stolen from the target website, decrypted and then used for log-in, but if password hashes were accessed, potentially a bunch of other stuff that you'd care about is too, so that's a somewhat moot point.
But someone stealing your laptop and getting access to your password manager gets access to your 2FA too. Making it not a "second" anything: it's akin to using two passwords for log in to a single site and keeping them in the same place. Physical separation of the two authentication factors, thus, matters.
That also means that you should not have your password manager on the phone, or at least only have a separate one: ideally, password managers would integrate between desktops and mobile devices to pass short-lived access to passwords for Oauth/OpenID Connect auth instead.
Yeah, bridging convenience and security is a long standing nightmare of a problem to solve. :)
[1]: https://keepassxc.org/docs/#faq-security-totp
[2]: https://f-droid.org/en/packages/org.shadowice.flocke.andotp/
I first heard about Authy when it was recommended to me by coinbase but sometime last year coinbase forced me to change to Google authenticator.
Any access is easily "phished" with pliable people (which is not necessarily a set of people, but also a question of timing and circumstances: everyone is sometimes more or less pliable): "please log in with your U2F device, download that document and upload it to this URL https://your-company-confidential.s3.amazonaws.myurl.com/, before we can reinstate your access to company systems".
The advantage of U2F is that it isn’t phishable. You can only sign the message for the pre enrolled URL.
Yes, you can still fall for more elaborate instructions but you cannot simply give the attacker your credentials through a normal looking flow.
They're probably hiding the TOTP option because the backup story for Google Authenticator is really poor. If you lose your device, you lose access to all of the accounts you had set up 2FA for with Google Authenticator. Of course, there are other TOTP apps that are better in this regard, but Google is unlikely to promote those because then they'd lose some control over the authentication flow.
Though now Google Authenticator supports transfers, there is less of a need.
But I still enjoy using andOTP.
(I am, somewhat shamedly, not yet a user of TOTP 2FA, although I will have to become so soon because of various platfrom and organizational requirements, and am trying to figure it out, and finding it challenging).
What are the options/ways that other TOTP apps handle this better, what are my choices here?
The way to handle this correctly is to have backup options. This can be a second device or a printed sheet of backup codes. I’d wager that few people actually do this, though.
A more user friendly cloud solution might be Authy that others have recommended.
You can actually do backup of your keys (encrypted).
Also they reverse engineered the steam Authenticator, so one less app to have on my phone.
* TOTP (and SMS codes) can be forwarded, so you can be phished/duped into entering credentials on a spoof website. FIDO prevents this.
* TOTP (and SMS) may be grabbed from your phone by malware. This is harder with FIDO as it requires a physical button press.
* TOTP requires substantial user knowledge to use correctly. FIDO also has usability issues (have to keep your key with you, endless USB-A vs USB-C issues) but maybe they believe its better.
Even so, non technical people get very confused by this stuff. As the CTO, I enforce 2FA for all of our stuff. But it continues to be a support headache when we have new people joining.
I'd love for this to be solved in a more user friendly & standardized way. So, I can understand why Google moved away from TOTP as the main way to do 2FA. It probably caused a lot of support overhead for them.
Hardware tokens have the same issue. Nice for techies but too hard to deal with for normal people.
Google has been mainly prompting me on other devices rather than asking for my TOTP code, however.
Allows you to import and export to csv; ios app also has automated icloud backup if you're so inclined.
The fact that Google doesn't give him the option, presumably.
>We recommend you sign in with Google prompts. It's easier to tap a prompt than enter a verification code.
A bigger security/privacy issue with U2F is that you cannot use it with javascript disabled.
Honestly, the alternatives are worse. For U2F keys, you need to remember to bring your dongle with you, it has bad support on phones/mobile devices, some machines lock down ports, and there's a not-insignificant cost to buy.
You might correctly call that concern more focused on CYA of the the firm itself, but I think that's not the worse thing in the world, and the underlying crypto primitives certainly played a role here.
Meanwhile: WebAuthn (nee U2F) was literally introduced as an anti-phishing tool --- not as a database protection technology. They did U2F because people kept getting phished with code-generator authentication. The problem with TOTP is that it doesn't have a mechanism to authenticate the site asking for the code.
The benefit of using TOTP at all far outweighs the insecurity of storing it on the same computer. And it is so low effort, I use it everywhere possible.
I have a simple script that takes a screenshot, uses zbarimg to extract the single line otpauth:// string, and appends it to my pass password database[1], which then hooks back into my browser. I somehow don't think I would bother with a hardware key for my BestBuy.com account.
Besides, my password db is itself is encrypted with GPG, and GPG can use a hardware token to be unlocked, thereby giving you more flexibility and transparency, while still benefiting from a token.
Developers can't know what configuration users have.
Point of something being a second factor is for it to be something physically distinct from the first factor, and something different in the "something you know, something you are, something you have". As long as you keep your TOTP device and password manager separate, they provide all the guarantees a second factor should.
As a bonus, they also provide one-time use tokens (both HOTP and TOTP, though HOTP is more susceptible to pre-generation of tokens to be used later), thus protecting against eavesdropping and people looking over your shoulder (or recording you).
As such, I don't buy the argument for TOTP not being a second factor auth at all.
And there are children comments here talking about how it's fine, they keep their TOTP keys in the same password database.
Yes, there are comments of people using them here that way. At my previous job, even a security IT guy did not find that an issue when I brought it up how people automated 2FA for CLI scripts. In that case, they are not even 1.5FA, they are strictly 1FA password-authentication (jumping through a few hoops to get all "components" of a password, but it's a single password protecting access).
If they are separate devices and you don't really remember your key, they are hardly something you know, IMO, so I disagree there.
In a sense, you could also extract the base cryptographic key of any hardware token (or the producer of the token might have it), and it's also "something you know", which is why I disagree. It's just trivial to extract this key for TOTP, but extraction is a separate step IMO.
If you want to do it with a protocol that enables signed messages and other stuff then the UX cannot be “type in a few numbers.”
(I.e. they have the option: use their personal phone, or carry this Yubikey.)
Privacy invasion in the name of security. TOTP doesn't offer this and is clearly to be discouraged. Unless you accept the privacy invasion, they really don't want you to have an account.