Remix.run Logo
▲ stryan 4 hours ago

I'm all aboard the Yubikey train[0] for securing SSH keys, but I'd imagine most SSH keys aren't being exfiltrated by smart attackers putting in the work to steal decrypted keys from RAM. Most SSH keys are being exfiltrated by scripts being run via curl | bash (or agents...) that quickly gather up every potentially useful user file they can find and upload it to a remote endpoint somewhere.

[0] I also use an SSH key in Bitwarden for lower priority concerns, but my main SSH keys that get automatically installed on remote systems and used for signing commits are stored via FIDO on Yubis.

▲lokar 3 hours ago | parent [-]

You could also setup the yubikey as a CA to sign short lived ssh keys.

▲what 3 hours ago | parent [-]

What benefit does this provide over just having the ssh key on the yubikey?

Also, pretty sure you can’t use the CA for GitHub without enterprise.

▲lokar 2 hours ago | parent [-]

More niche situations where you can't use the agent. You need to use it from somewhere you can't forward the agent, or you need to make too many calls (eg ssh to 10,000 machines).