4 ms·
This of course is all true and important. But there's an alternative here - keep private data unreadable. I believe if you use smartcard authentication via gpg-
by viraptor 11y ago
This of course is all true and important. But there's an alternative here - keep private data unreadable. I believe if you use smartcard authentication via gpg-agent, ssh simply has no access to your key. The only thing that could be leaked is the session key (which the other side could get via standard exchange anyway).
I moved to yubikey some time ago and don't regret it.
- makomk 11y agoThe downside of Yubikey is that if it was manufactured before April and you used OpenPGP card mode, anyone who manages to steal your Yubikey could use it to log into your servers without needing to know your PIN/password because PIN authentication was completely broken and bypassable on the earlier Yubikeys. YubiCo also heavily downplayed the importance of this issue, claiming in their announcement that it didn't matter because anyone who got hold of your Yubikey could get hold of your PIN anyway. See https://developers.yubico.com/ykneo-openpgp/SecurityAdvisory%202015-04-14.html https://developers.yubico.com/ykneo-openpgp/SecurityAdvisory...
- alexandrerond 11y agoThey are replacing all affected keys for free. That seems the right thing to do, even if they downplayed at first.
- emilecantin 11y agoCan confirm, got a replacement very fast after asking nicely.
- viraptor 11y agoEvery system had, has, or will have issues. That's why you have multiple layers of protection from cpu rings to user training. Sure, they had issues, but I'll still take hardened box, with ssh, with yubikey over ssh on its own. I don't trust any of those layers, but each provides more difficulty in exploitation. (Also, this still doesn't provide the key itself. That means even with the vulnerable yubikey you can only spoof connections while it's plugged in)
- makomk 11y agoIt means that anyone who can swipe your Yubikey for a couple of minutes or even just wave an NFC-enabled phone past it can SSH to your server and then at their leisure convert that connection into a persistent backdoor. How often do you check your .authorized_keys? Your list of running processes? Your .bashrc for a line redirecting sudo to a small binary that logs your password for later use? Arguably this even made it less secure than a normal USB key with your SSH key on it encrypted with a strong passphrase.
- creshal 11y agoApart from the problem that you now have to be able to trust your smartcard provider. Yubikeys have had bugs critical enough to warrant replacements in the past, and have yet to undergo any external audit.
- viraptor 11y agoSee my other comment. That's why we do layers, not ultimate trust in one thing. Nothing is without bugs.
- legulere 11y agoI think the more obvious way to keep private data unreadable is ensuring memory safety: write only the performance critical parts in memory unsafe languages like C and prove them memory safe.
- viraptor 11y agoYou realise that definition also applies to hardware keys, right? They're unreadable, private data via memory safety - there's only limited interface to operate on that data in valid ways. Proving code correct is far from obvious though. Apart from single instances like sel and python's sort, can you remember any verified software with proofs right now?
- legulere 11y agoMemory safety is only a subset of verification. In fact, most programming languages are memory safe (although I think there are no formal proofs, I haven't come across memory unsafety in a language that claims to be memory safe). seL4 is actually another verified software I know.
- viraptor 11y ago"Apart from single instances like sel and python's sort" ...
- lawnchair_larry 11y agoBut then it's actually impossible to erase them from memory!