Live data from Hacker News

Pressing YubiKeys

bert.org

81–90 of 241 posts

Re: Pressing YubiKeys

#81

"If you work in tech, you probably have a YubiKey" The author must live in some kind of bubble. This may only be true at Big Tech companies or other companies with a atypically strong security focus.

Used to have some (actually, I still do, in a drawer) but gave up on them several years ago after random mysterious failures - just going dead after a few months.

I hope for their customers' sakes they have solved their reliability problem.

Re: Pressing YubiKeys

#82
post #56

Earlier quoted context omitted.

It would be better to use a software TOTP authenticator with backups. You could also store multiple encrypted copies of the TOTP secret encrypted with different Yubikeys. I don't know if there's any software that does this automatically and momentarily decrypts the TOTP secret into a secure memory location when you need it. That preserves... most of the benefit of 2fa.

Storing copies of a TOTP secret is as good as just having 2 high-entropy passwords and saving multiple copies of one of them in clear text, which is not more secure than having 2 high-entropy passwords and not storing them anywhere, and which is equivalent to just 1 doubly-high-entropy password not stored anywhere. The fact that you can store copies effectively defeats the purpose of 2FA. One of the reasons to have m…

I meant backing up TOTP keys is better than:

> to plug this [Yubikey] into a server and control it through USB over IP.

Obviously multiple Yubikeys is the only real solution.

Re: Pressing YubiKeys

#83

"If you work in tech, you probably have a YubiKey" The author must live in some kind of bubble. This may only be true at Big Tech companies or other companies with a atypically strong security focus.

I have four. One is clearly insufficient, you need a backup.

Re: Pressing YubiKeys

#84

Earlier quoted context omitted.

It would be better to use a software TOTP authenticator with backups. You could also store multiple encrypted copies of the TOTP secret encrypted with different Yubikeys. I don't know if there's any software that does this automatically and momentarily decrypts the TOTP secret into a secure memory location when you need it. That preserves... most of the benefit of 2fa.

"better" is a strange word to use when discussing security, everyone's situation is different™. You're making a set of trade-offs between availability (backups) and confidentiality (only using hardware tokens which are tamper evident) which absolutely do not generalize to every case.

I'm saying if your hardware token is plugged into a machine that you connect to with USB-over-IP your hardware token is basically security theater and your actual security is whatever secret you use to protect the machine the token is plugged into. So if you're worried about availability but want something like 2fa software TOTP secrets make a better tradeoff.

Re: Pressing YubiKeys

#85
Really enjoyed reading this post thanks.

It makes me laugh that such a small problem (pressing a yubikey at an awkward angle, which sometimes doesn't register properly) can be solved with such a delightful over engineered solution.

Re: Pressing YubiKeys

#86

It seems like you don't understand the main advantage of these types of security tokens. Rogue trigger of a security token isn't really an issue when using the recommended U2F standard. U2F uses the domain as part of the challenge-response in U2F so that phishing\spoofing attacks can be defeated.

Yubikeys can perform many functions; the one in the article is an OTP which can be accidentally pasted into Slack.

Re: Pressing YubiKeys

#87
This reminds me of something that happened at a company I worked at maybe ten years ago. An employee was fired for setting up a webcam that pointed at his 2FA key generator so he could log in remotely without having to carry it around. Hacker mentality, but not in a way that won him the respect of the security team.

Re: Pressing YubiKeys

#88
At work we use to use the old Yubi keys that were nice and long and had a good contact areas. Then they switched to the nanos and wouldn't reprogram the old ones (or even order the larger ones of the same generation, or let us pay for them ourselves).

You can do the entire OTP entirely in software. Just be sure that the location you place the secret is encrypted:

https://battlepenguin.com/tech/replacing-okta-verify-with-op...

Re: Pressing YubiKeys

#89
post #45

The obvious next step is to plug this into a server and control it through USB over IP. Call it "remote, centrally controlled 2FA" and your manager will love it!

Considering many services only allow one YubiKey or only one TOTP authenticator ... I might actually need a short term solution like this to beat the 2FA on those services. Otherwise what happens if I lose my key on the road? The 2FA services that allow >1 YubiKey are good, I can have a backup key locked up some place and use them as intended.

You use the backup keys the service gave you when you enabled 2FA.

Re: Pressing YubiKeys

#90

At work we use to use the old Yubi keys that were nice and long and had a good contact areas. Then they switched to the nanos and wouldn't reprogram the old ones (or even order the larger ones of the same generation, or let us pay for them ourselves). You can do the entire OTP entirely in software. Just be sure that the location you place the secret is encrypted: https://battlepenguin.com/tech/replacing-okta-verify-w…

Personally, I just use Keypass since it can do TOTP very easily. It's not the best 2FA since it stores the second factor alongside the passwords, but you could fix this by having two databases.
Post reply on HN