10 ms·
For a noob like me, I am thinking to get a Yubikey. What will happen if I lose my Yubikey? Am I essentially out of luck assuming the admins can’t reset my passw
by christiansakai 6y ago
For a noob like me, I am thinking to get a Yubikey. What will happen if I lose my Yubikey? Am I essentially out of luck assuming the admins can’t reset my password or associated yubikey device?
How do I prevent such scenario from happening? Is there truly a fool proof way of hardware authentication?
- Tomte 6y agoUsually people buy a second Yubikey, enrol both and have the second one somewhere safe. Most services and web sites also give you emergency login codes to print out, though.
- busterarm 6y agoThis is the thing to do. But I would suggest SoloKeys instead. I use these to log into my Linux systems, in combination with a password. pam_u2f was pretty easy to setup.
- exporectomy 6y agoFor services where no admin can get your access back, like most websites, a 3rd factor should be a compulsory part of 2FA. There's a balance between keeping hackers out and keeping yourself out. The more factors you require, the more optional factors you should also require users to have, not just optional codes but "you must write these codes down, we'll check later to make sure you did" or something like that.
- userbinator 6y agonot just optional codes but "you must write these codes down, we'll check later to make sure you did" or something like that. ...which people will still not do, or misplace/erase due to disuse, etc. Security and availability are always at odds with each other. The question that you should always have when choosing a level of security is "does the risk of denying everyone access --- including myself --- outweigh the risk of someone other than myself gaining access?"
- tomatocracy 6y agoIsn't minimising the "I lost them/forgot where I put them" scenario the point of checking you still have them (not just asking - checking eg by saying "enter one of the codes")? That way, if you don't have them, you can print a new set of backup codes while you still have your "normal" second factor to hand.
- sly010 6y agoBuy 3 keys. Register all of them to your account. Then register all of them to your spouses account too. Put one on your keychain. Put one on your spouses keychain. Put one in a safe place. By enrolling my spouse and cross registering all keys, both of us are safe. We might loose our keychain, but we will always find each other, even when we are traveling. This works for Google and GitHub, but not every service allows for multiple keys. But this should be a no-brainer imho.
- BoppreH 6y agoDoesn't that mean that stealing any of the 3 yubikeys means full permanent compromise of all your and your spouse's account? I think a good with system should include some sort of revocation, like a master key you can keep in a safe to revoke other devices.
- 1MachineElf 6y agoNo, it does not mean that. At least in my experience, every service where I have multiple YubiKeys registered still requires my username and password. Without those, someone who stole the YubiKey would not be able to login to my accounts.
- cronos 6y agoYou can un-register any of the keys when you're logged in. So if you lose one key, log in using the others and remove it. No need for a master key.
- BoppreH 6y agoYour idea works well for recovery. But I'm thinking of a revocation scenario, where a key is stolen. In that case the attacker can just remove your keys first.
- jackson1442 6y agoYubikey still acts as a second factor, so for the average person's threat model this should be fine provided you use strong, unique passwords for your accounts (i.e. a password manager). 1Password supports U2F as a second factor to access your account, but you still need to know your secret key and master password; you cannot decrypt your vault with only a hardware token.
- ecesena 6y agoWhen you enable 2FA with security keys you have 2 options, let's call them the easy and the strong. The easy. Add both a security key and OTP (e.g. Google Authenticator). You have 1 rule to strictly adhere: if you click on a link, you MUST use the security key, because that's the one that protects you against phishing. When you don't have your security key, you can just use OTP provided that you typed the url and not clicked on it from email/text. The strong. You enable 2+ security keys. You keep one in a safe at home. You always use a security key to sign in. On your Google account you can also enable Advanced Protection, that's essentially this plus some extra restrictions to API access.
- mlac 6y agoFor anyone reading this and considering Advance protection, know that it causes a ton of problems with google home and other applications. I made the mistake of setting up google home with my primary google account. Which is necessary to get YouTube premium / YouTube music / YouTube TV (all associated with that account), plus all of my smart home devices that have been set up with that account over time. So when you flip on google advance protection, all of that breaks. It’ll be a weekend project to convert over all of my smart home devices and automation away from my primary email account and transition it to a home media account. Then I will turn on google advance protection. Advance protection also puts a delay on logging into the system if you are locked out / some extra restrictions. Until then I’m just using the key but not advanced protection. If I were starting fresh (a new smart home / google services), I’d make an email just for that and use my original address (a clean name with no numbers from 2004) strictly for mail / financial passwords / high priority accounts. The divide that I would do is smart home / subscription services used by the family gets the lower security one, everything else is high security. I’d be interested to hear how others deal with this problem.
- diggernet 6y agoI've been troubled by that question too. Especially since I've heard people complain about sites that only allow registering one key. But TacticalCoder just said something really interesting in another part of this conversation: > you can use the Ledger Nano S with your "seed" (say a 256-bit secret, stored as 24 words you hide), to log in sites using U2F. > Additionally as long as you've got your secret, you can reinitialize your Nano S (or another one) as a new U2F device and there's no need to reset your U2F credentials on the site as the newly initialized device shall work exactly as if it was the old one. If I read that right, some keys rather than having a hardcoded unique seed, will let you set your own. Which implies you can have multiple functionally-identical backup keys locked up securely somewhere. If true, that significantly reduces key loss anxiety, and increases my interest in hardware MFA. Anyone know which keys support this (aside from the mentioned Nano S and Trezor)? What's the magic keyword to look for in specs?
- droopyEyelids 6y agohttps://www.yubico.com/support/download/yubikey-personalization-tools/ https://www.yubico.com/support/download/yubikey-personalizat... you can do a lot with a yubikey but idk if you can actually change the U2F secret
- tialaramex 6y agoYou can tell the device you want a new random secret (so now your existing credentials don't work), but you can't get the secret out (obviously bad guys would use that, so it would be a terrible idea) neither can you set the current one to an explicit value.
- desmond373 6y agoSo you can set the current one at the start of your use and keep the secret hidden somewhere forever. Sounds like the solution to me.
- tialaramex 6y ago
- jrockway 6y agoYou're out of luck, modulo extra keys and a recovery mechanism. Most services let you register multiple devices. I typically use a Yubikey nano and a regular Yubikey. Then I have a backup on my keyring, but don't have to get it out every time. With WebAuthn becoming more popular, you can also use things like Windows Hello, Face ID, etc. Generally, I try to register all of those methods, and then if one device fails, I still have plenty of backups. But, some services don't let you register multiple devices (AWS comes to mind). In that case, you'll have to make sure you have a backup recovery method. (And those recovery methods obviously reduce the security of your account, SMS is notoriously weak.)
- dan-robertson 6y agoA simple method is as follows: 0. This mostly matters for the accounts that need to be particularly secure (eg email, maybe GitHub or Facebook or Twitter depending on how much you care about them). Also accounts for money if they offer this kind of security. 1. Set up a yubikey. Try to only ever use the yubikey for logging in. 2. Set up some account recovery codes, print them out, put them in a safe place (ie somewhere that you don’t live or work, though you could probably also keep copies there. If you have a folder of personal and account information ready in case you die unexpectedly, put it there too) 3. Set up Google Authenticator on an iPhone so you can get in if you don’t have access to your keys. You should treat these more like the recovery codes than the yubikey—be very careful about entering the name of the website and checking the certificate because they won’t protect you from phishing.
- mnahkies 6y ago> Also accounts for money if they offer this kind of security This is something that astonishes me. So many financial institutions still have: - (low) max length limits on passwords - restrictions like no special chars in passwords, or exactly this many numbers etc - over reliance on a pin where a password would be more suitable - no 2fa, or at best SMS based 2fa - ridiculous security questions as if someone's favourite colour etc is drawn from a large pool of values As a developer I can guess that most of these restrictions are probably stemmed from a mountain of tech debt, but I would've expected this to be a priority for such companies. It makes me wonder if they are bound to follow some outdated regulations or something preventing them from doing better
- deleted 6y ago[deleted]
- kjjjjjjjjjjjjjj 6y agoYou need at least 2 yubikeys. Register both and keep one in a safe hidden place. You can also print out backup codes and keep them in a safe.
- skybrian 6y agoYes, you do need a backup way of getting in. Some websites will let you print out some one-time-use codes that you can store in a strongbox. (This is cheaper than buying two Yubikeys.) You could also get 2 Yubikeys, but might be out of luck if the website doesn't support that. (Also, some Android phones can act as a hardware key.)
- InvertedRhodium 6y agoI use YubiKeys for just about everything, the easiest solution is to simply have multiple keys. I have 3 total, gathering them all together once a year to renew the gpg key isn't a real issue and after the initial setup I don't find myself enrolling new services regularly.
- gorgoiler 6y agoA hardware key is a resilient tool which can be taken out of the house, safe in the knowledge that no one can crack it open and get the keys inside. You can have other forms of authentication — PostIts with backup OAUTH codes, console passwords, root password etc — but those have to stay at home in the vault because a piece of paper in the outside world is too dangerous to lose. You want both. You’ll lose your hardware keys eventually.
- Freak_NL 6y agoThis is not a bad question, but it is one that keeps getting asked on this topic. I really think standards like WebAuthn should more explicitly provide an appendix about account recovery, even if that is out of scope of the technical standard. As others have pointed out, account recovery should always be provided in some form. A common way seems to be the use of a one-time password that can be used to regain access. What I'd really like is a clear best practice for this for developers to implement though. It doesn't help if your authentication method is strong when the recovery option has glaring security holes in it. It now looks like every site that uses WebAuthn just rolls its own recovery solution.
- mPReDiToR 6y agoI tried YubiKey and SoloKey (OSS). I've settled on OnlyKey (https://crp.to https://crp.to) because it's OSS and you can back it up and restore. Backup can be GPG encrypted. 24 slots, programmable to store URL, U/N, P/W, 2FA, with the ability to click the address bar in a browser, hit a key on the OnlyKey and watch as it types it all in without any other interaction. It stores MANY types of auth. Not affiliated, but a very happy user. It's a device you'll learn more about as you use it, but YubiKey functionality is achieved in a couple of minutes.
- gnufx 6y agoOnlyKey's features are attractive, but its implementation has been questioned. https://news.ycombinator.com/item?id=21884184 https://news.ycombinator.com/item?id=21884184
- mPReDiToR 6y agoI'm not sure I come away from that discussion with less confidence. The dev managed to answer everything put to them with alacrity. The question of code quality was of no consequence as even ugly code can work, and it's got more eyes on it than closed source. In my threat theatre this device is far more than adequate for securing GitHub, GOOG, and a couple of GPG/ssh keys. Should I ever becaome a spy, I'll probably revert to speaking to strangers about how red sparrows fly at certain times of day again.