News for hackers. Stuff that matters.
Re:Ask HN: How many 2FA tokens do you have? by simonbarker87 on Saturday March 05, 2022 @07:40AM (#30567025)
Related: anyone have a good 2FA backup solution? Like if I loose my phone at this point I’d be pretty stuffed as my Google Auth app would be gone and my text 2FA also gone in the same moment.
Re:Ask HN: How many 2FA tokens do you have? by willis936 on Saturday March 05, 2022 @07:54AM (#30567131)
TOTP is based off of a shared secret, so keeping that secret backed up is possible. I keep all of my TOTP tokens in a keepass database that is synced to my computers. If my keepass database is ever stolen and the encryption defeated then I'd be hosed, but I have a feeling there would be much worse problems in the world on that day.
Re:Ask HN: How many 2FA tokens do you have? by AndrewOMartin on Saturday March 05, 2022 @09:30AM (#30567878)
Isn't the whole point of 2FA to keep you safe if your passwords get compromised? Seems like you may as well not bother with it.

I guess this means that any attacker will need to compromise your keepass database rather than just one of your other passwords, but it would help avoid a potential "hosed" scenario.

Maybe you think you're more likely to lose your phone then leak your master password? Perfectly reasonable I suppose :)

Re:Ask HN: How many 2FA tokens do you have? by willis936 on Saturday March 05, 2022 @09:46AM (#30567993)
Passwords are sending secrets around. TOTP auth doesn't involve sending any secrets because the algorithm shouldn't be practically reversible.

My master password has hundreds of bits of entropy and only leaves my brain to enter it.

Most likely bad scenario is master password gets lifted from a keylogger and the database is stolen. I don't see what keeping the secrets in an app does to help that though.

Re:Ask HN: How many 2FA tokens do you have? by rasse on Saturday March 05, 2022 @09:49AM (#30568020)
Sounds about correct, but this setup provides adequate protection against phishing and MITM attacks. The KeePass database itself can be hardened with a 2FA token.
Re:Ask HN: How many 2FA tokens do you have? by giaour on Saturday March 05, 2022 @08:59AM (#30567651)
When you set up Google Auth for a site, you can capture the seed value and back that up. 1Password has TOTP (Google Auth protocol) support baked in if you're looking for a way to use TOTP without relying on a single physical device.
Re:Ask HN: How many 2FA tokens do you have? by u2077 on Saturday March 05, 2022 @08:16AM (#30567277)
I use strongbox[1] on iOS and it has a feature to print off your entire database (automatically formats everything). The passwords are stored in a standard kdbx file that you can sync manually or use drive, iCloud, etc. KeepassXC[2] has browser extensions and cross-platform apps and pairs well with strongbox. (No print feature afaik) Both apps are open-source.

[1] https://strongboxsafe.com/ [2] https://keepassxc.org//

Re:Ask HN: How many 2FA tokens do you have? by dorianmariefr on Saturday March 05, 2022 @07:48AM (#30567083)
You usually have backup codes, you can print them, send them to yourself in your emails, have them in a passport manager, as notes, etc.
Re:Ask HN: How many 2FA tokens do you have? by simonbarker87 on Saturday March 05, 2022 @07:52AM (#30567104)
Sure, that’s a massive pain in the butt though. I’m thinking about something that allows me to get back up and running with the same system relatively quickly.
Re:Ask HN: How many 2FA tokens do you have? by habibur on Saturday March 05, 2022 @07:47AM (#30567071)
This. I am pretty scared of losing my phone too.

Reinstalling the app didn't seem to revive the tokens, last time I tried.

Re:Ask HN: How many 2FA tokens do you have? by simonbarker87 on Saturday March 05, 2022 @07:54AM (#30567128)
Yeh, 2FA through an authenticator app feels so fragile for the consequences of something going wrong.
Re:Ask HN: How many 2FA tokens do you have? by refurb on Saturday March 05, 2022 @07:59AM (#30567161)
And as far as I know you can only have one device enabled with Google Authenticator at a time?

If it could be on multiple devices then I could set up an old phone and have it as a backup.

Edit: I’m wrong. You can sync two Authenticator apps using the same QR code during setup.

Re:Ask HN: How many 2FA tokens do you have? by BLKNSLVR on Saturday March 05, 2022 @07:47AM (#30567070)
You can export Google Auth tokens and reimport them on a separate device.

Authy seems to sync between the 2 devices I have with it installed (which indicates that it's stored "in the cloud").

I always have second device mirroring the important stuff on my primary device. Usually my most recently replaced phone.

Re:Ask HN: How many 2FA tokens do you have? by toastal on Saturday March 05, 2022 @08:02AM (#30567167)
I wouldn't trust closed source services for something this simple. Authy wants your phone number and Google wants anything it can get its hands on. There are plenty of open source options with backup options.
Re:Ask HN: How many 2FA tokens do you have? by simonbarker87 on Saturday March 05, 2022 @07:53AM (#30567117)
As I was typing the question I thought “I guess my old phone could do the job?” I’m wondering there is a middle ground option.
Re:Ask HN: How many 2FA tokens do you have? by ZGDUwpqEWpUZ on Saturday March 05, 2022 @08:04AM (#30567182)
There is the OTP extension[1] for Password Store[2], although it kind of defeats the point of 2FA to have OTP tokens stored alongside passwords. Might be best used as a backup?

[1] https://github.com/tadfisher/pass-otp

[2] https://www.passwordstore.org

Re:Ask HN: How many 2FA tokens do you have? by 1MachineElf on Saturday March 05, 2022 @02:03PM (#30570740)
Use Bitwarden. You can back up everything into an encrypted JSON file - including your 2FA TOTP stuff. Import it into a self-hosted Bitwarden too, if you like.

EDIT: Exactly as petepete said. Multiple FIDO tokens like Yubikeys are supported.

Re:Ask HN: How many 2FA tokens do you have? by petepete on Saturday March 05, 2022 @07:53AM (#30567119)
I use BitWarden for 2FA via their paid plan (£10 per year).

My BitWarden account is secured by Yubikey, of which I have two.

Re:Ask HN: How many 2FA tokens do you have? by simonbarker87 on Saturday March 05, 2022 @07:55AM (#30567134)
Ok, think I need to look at Yubikey as it keeps coming up here. I have a paid LastPass account, maybe there is something in there I can use.
Re:Ask HN: How many 2FA tokens do you have? by petepete on Saturday March 05, 2022 @08:17AM (#30567285)
Yeah, you can lock your LastPass with it in the same way I do mine.

Knowing my passwords and 2FA are protected and backed up is a huge relief.

Re:Ask HN: How many 2FA tokens do you have? by woleium on Saturday March 05, 2022 @12:00PM (#30569244)
LastPass authenticator uses centralized (encrypted) storage of keys
Re:Ask HN: How many 2FA tokens do you have? by gregjor on Saturday March 05, 2022 @09:57PM (#30574603)
iCloud Keychain works across devices, backed up automatically to iCloud. Only for Apple devices but works great.