Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don’t need root access.. just your .ssh dir


And I’d though everyone else also kept their gpg and ssh keys on Yubikeys[1].

[1]: https://github.com/drduh/YubiKey-Guide


Or in the Secure Enclave on Macs.

https://github.com/maxgoedjen/secretive


I keep my subkeys on my YubiKey and my master key on a printed QR code in a safe. Submitted some binary data decoding patches to ZBar just to make this easier.


I don’t store them on it but I do require it to use it.


Though you should keep your private keys protected by a pass phrase.

Top tip for people that use 1Password: I’ve discovered recently that you can run it as an ssh agent. That way your keys never leave the 1password app.


Either you're forced to type in your password 100 times a day (so the rootkit has to wait until you type it in) or you use ssh-agent and your decrypted key is in memory for all to see.


Indeed. Use the Mac’s Secure Enclave [1] or a Yubikey, preferably with Touch ID or touch confirmation on a YK.

https://github.com/maxgoedjen/secretive


Judging by the downvotes, my suggestion isn't great, though it does seem a tiny bit better.

I was under the impression that 1password uses secure enclave on the Mac and that it only decrypts the key as it's needed. I guess depending on the implementation the decrypted key could be in memory for a moment - or maybe longer.


The GP said they just need access to your .ssh directory (not root access, no mention of a root kit). A pass phrase on the key is a valid mitigation for that level of access.

You don’t need to type it, you can store it in a password manager and copy/paste, which is pretty fast. I do it all the time, it’s not a big deal.


Ok fair, but IMO there are few threat models where that would make a difference. In practice the attacker can just edit your bashrc and alias ssh-agent to log the password. Same for the password manager. Btw user mode rootkits are a thing and they typically don't need root despite the name.

If attacker code can run under your user, you're kinda screwed.


This would be just a minor speed bump if the adversary has control of the user account.


You’re going to need my U2F key too.


Good luck bypassing my CGNAT ;)


Well.. with ipv6, there’s no need to nat anymore




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: