A better summary.
A better summary.
Posted Jun 10, 2026 8:03 UTC (Wed) by mjg59 (subscriber, #23239)In reply to: A better summary. by Karellen
Parent article: Eliminating long-lived credentials with trusted publishing
Yes. But they're also typically loaded into an SSH agent at either login or first use, and if an attacker has the ability to compromise that agent (either by just ptracing it, or LD_PRELOADing something into it on next login, or any number of other ways) then they can extract the private keys.
Of course, if an attacker is in a position to do those things, they're also in a position to grab your GPG passphrase the next time you type it in, so the distinction is basically irrelevant. The only real way to protect private keys on a compromised system is for them to be hardware backed, and you can do that just as well with SSH keys as you can with GPG ones.
