Live data from Hacker News

Adding a security key to Gmail

techsolidarity.org

71–80 of 126 posts

Re: Adding a security key to Gmail

#71
post #16

Bought a U2F Yubikey more than a year ago. It is pretty sturdy. Better buy two and use one as a backup. U2F is really convenient to use. Compare that to all the OTP apps out there.

Can attest to sturdyness. I have washed and decased 2 of mine with acetone and they still work as expected.

As an alternative to a second key as a backup, you can always keep a set of printable backup OTP tokens offline in a safe etc, ideally encrypted.

Re: Adding a security key to Gmail

#72
post #42

I would advise against Google Authenticator as a backup as it really defeats the point of a hardware token. Google Authenticator stores the TOTP secret in plaintext on your device where the potential exists for it to be stolen. An adversary that exploits your phone can generate TOTP tokens as they like and ignore the fact you have a hardware token. If you are going to use Google Authenticator it is your weakest link…

Are there any safe software alternatives to Google Authenticator? Duo? LastPass?

I use Authy: https://www.authy.com/ Now I'm wondering are there similar security concerns here as with Google Authenticator?

Re: Adding a security key to Gmail

#73
post #68
post #3

Thanks for writing this! One nitpick: the guide says "If you're curious why it's important to not have a phone number on your account, see the security key FAQ", but the linked security FAQ doesn't actually appear to say why it's important.

I have answers/arguments along those lines here: https://github.com/lrvick/security-token-docs/blob/master/FA... Would be interested in seeing contrasting views though!

These are indeed answers, but they aren't the real answers.

The real answer for "why not a smartphone app" is "because code generators are just as phishable as passwords". In the real world, that's how people are being compromised, not by elaborate phone exploit pivots but by phishing pages. It also speaks to why phone authenticators are acceptable backups to tokens.

The real answer for "why not SMS" is "because both teenagers and intelligence services can get a phone number redirected; your phone number is not your phone."

Obviously, you don't PIN-lock a U2F token; the answer to "what if it's stolen" is "whoever stole it probably doesn't have your password, which they'll need in order to use the token, so if your token is stolen remove it from your account and then fish $17.99 out of your couch cushions and buy a new one".

Re: Adding a security key to Gmail

#74
post #16

Bought a U2F Yubikey more than a year ago. It is pretty sturdy. Better buy two and use one as a backup. U2F is really convenient to use. Compare that to all the OTP apps out there.

My Yubikey recently died, so I'd +1 on this approach to have another as backup. They offered to replace it under warranty, though.

I am very curious what you did to kill it. I have been unable to with anything short of a hammer or soldering iron.

Re: Adding a security key to Gmail

#75
post #44

Earlier quoted context omitted.

If only there were a similar guide to getting gpg agent working with the yubikey stored gpg keys and ssh. I've done it, but for the life of my I couldn't tell you how as it was mostly just trying magic incantations of things until it started working.

Here you go: Simple GPG setup: https://github.com/lrvick/security-token-docs/blob/master/Us... Advanced GPG setup with backups: https://github.com/lrvick/security-token-docs/blob/master/Us... SSH Setup: https://github.com/lrvick/security-token-docs/blob/master/Us... I also will be adding an alternate "quick ssh setup" guide via PKCS#11 flows to just store an existing ssh private key. Still I think GPG is the way to g…

"You should disable any other keys that aren't backed by a security token" ... why? You don't need a security token to physically secure a backup key; just put it on a USB drive and stick it in a safe (or a sock drawer).

Security tokens are a nice little bonus for security, and they're a major corrective for the kinds of real-world attacks that screw real people over, like phishing (and dumb passwords). But they're pretty marginal against the kinds of attackers who will target SSH keys. Don't get fetishistic about them; at bottom, for serious systems security, they're mostly cosmetic. It feels good to say that all your SSH keys are held in secure devices, but it doesn't mean much.

Re: Adding a security key to Gmail

#76
post #72

Earlier quoted context omitted.

Are there any safe software alternatives to Google Authenticator? Duo? LastPass?

I use Authy: https://www.authy.com/ Now I'm wondering are there similar security concerns here as with Google Authenticator?

Yes. But those concerns don't really matter. Just use whatever TOTP application you're most comfortable with, and, because even experts can be phished, try to use the security key as much as you can.

Re: Adding a security key to Gmail

#77
post #72

Earlier quoted context omitted.

Are there any safe software alternatives to Google Authenticator? Duo? LastPass?

I use Authy: https://www.authy.com/ Now I'm wondering are there similar security concerns here as with Google Authenticator?

Authy has the same core issues because the problem is they have to store the secret key in plain text somewhere for TOTP to work. Worse: it is closed source and does not allow itself to be easily audited so we don't even get to know for sure where the key is stored and how beyond what the docs promise.

Security is hard enough when everything is open source. Closing foundational security tools so only a select few biased individuals can deem them secure on a deadline is never a good plan.

Re: Adding a security key to Gmail

#78
post #54
post #49

Earlier quoted context omitted.

tokenizerrr | https://news.ycombinator.com/item?id=14105616 Even without root. Just run a backup and extract it from that. You can do it with just adb or helium. -- I can't quickly find any examples online that don't specifically mention requiring rooting the phone. Just this anecdote: https://community.spiceworks.com/topic/465582-google-authent... If you do a backup (even if not rooted you can use ADB to backup your…

Well the scenario we are wanting to defend against is an attacker that can remotely (or even locally) exploit/root the phone (see long list of vulns for ios and android that have allowed exactly this). How many of these still exist not yet patched? Depending on who you work for, someone might just burn a 0-day on you. It all depends on your threat profile. Putting the secret in a hardware token gives you easy to reas…

No, that's a scenario you want to defend against, and I'll remind you again that if you're dealing with attackers that can exploit your computing devices directly, the tokens are pretty much cosmetic. If you have an insecure phone and you actually use it like a smartphone, you're boned no matter how many security tokens you've got attached to your key ring.

When we work with lawyers, reporters, and NGOs, what we find are people with much more urgent security problems. They're one carefully worded email away from giving their entire email account away to a 25 year old in Estonia. They aren't worried that their phone is about to get owned up --- mostly because that isn't going to happen, but for other reasons too.

Real targets are going to be compromised for 3 reasons:

1. They're going to be phished out of losing their credentials.

2. They're going to share credentials between sites and lose them in a breach of one of those sites.

3. They're going to click on an attachment and lose their whole computer to an attacker.

The U2F/TOTP stack this post recommends nicely addresses (1) and (2), and nothing anyone on this thread is talking about addresses (3). I'm not sure why we're spending so much time considering (13).

Re: Adding a security key to Gmail

#79
post #73
post #68

Earlier quoted context omitted.

I have answers/arguments along those lines here: https://github.com/lrvick/security-token-docs/blob/master/FA... Would be interested in seeing contrasting views though!

These are indeed answers, but they aren't the real answers. The real answer for "why not a smartphone app" is "because code generators are just as phishable as passwords". In the real world, that's how people are being compromised, not by elaborate phone exploit pivots but by phishing pages. It also speaks to why phone authenticators are acceptable backups to tokens. The real answer for "why not SMS" is "because both…

Code generators are super phishable and that is the whole reason to abandon them in the medium term. In the short term however they are all we have for most websites so protecting the secret in a hardwre token is as good as we can get.

No matter how much you protect the secret though, not getting phished is left to the hopefully paranoid user, which is for sure not ideal, but we are probably years out from TOTP being replaced with U2F for most sites.

TOTP via hardware tokens is a stopgap.

Great comments though. Will update to reflect them.

Re: Adding a security key to Gmail

#80
post #14

I'd like some advice about safely accessing gmail from your phone. In particular an android phone that might not have the latest version of android on it. Also for situations where not only do you access your gmail from your phone but also your google authenticator app is installed on it.

Encrypt + add PIN + disable SMS/Phone authentication? Is this insufficient?

Thanks but I don't know if it is or not. The steps you mention apart from the last are all to do with protection in case a phone is stolen. I suppose what really concerns me is someone hacking my phone through some kind of malware. If Android is as insecure as some say it is, then is it risky to log in to gmail on any android device ever? What about the Google Pixel range of phones? How do they compare to the iphone. I don't want an iphone if I can help it. I prefer Android to iOS. If fact, a lot people I know who had iphones have been switching over to higher end android devices. But security trumps everything else if it's a question of keeping email secure.
Post reply on HN