Re:Securing my personal SSH infrastructure with Yubikeys
by jamiesonbecker on Tuesday February 09, 2021 @11:27AM
(#26079363)
Agreed. But the reason why might be because agent caching was a lot more difficult 20 years ago. It was a pain, especially for new users; you had to start the agent and then launch a new bash session, until Daniel Robbins wrote GNU keychain as part of Gentoo. Now, however, it's turned into a crazy mess of insecurity.
All of them have insanely insecure defaults: aggressively cache every unlocked key and present every unlocked key to anyone who asks (which is anyone who can connect to the agent) without even so much as asking the user if some rogue process should be permitted to access the key.
You can't uninstall the agents either. It's a non-optional part of each of those packages. You won't find all of them, anyone can start one, and any client will try to connect to it by default. If you mark it as non-executable then it will be re-marked as executable on the next package update. You can't put it as a symlink to /dev/null. Even truncating it and using SELinux to mark it as a file isn't guaranteed to keep the damn thing off after a system update.
It's a f!@#$ing virus symptom.
All because some users are too lazy to type their SSH passphrase more than once.