Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
keychain / authentication-forwarding security question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
6169
n00b
n00b


Joined: 08 Mar 2003
Posts: 7

PostPosted: Mon Mar 10, 2003 1:36 am    Post subject: keychain / authentication-forwarding security question Reply with quote

Just discovered ssh-keygen, ssh-agent, and keychain (lol, roughly in that order, within about an hour of each other) the other day. I had been using ssh conventionally with regular passwords for some time. Besides the fact that using keypairs is just plain cool, its more secure and convenient, especially with keychain.

I understand that using keychain and ssh's authentication-forwarding ability is more secure than running ssh-agent on untrusted machines. However, the OpenSSL manpages offer the following cheerfully ominous warning:


Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent's Unix-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent.


Roughly, this means that it is technically possible for a user with root on the box I am logging into to hijack my keychain? Is this feasably accomplished? Should I then avoid using authentication forwarding when logging into remote boxes where I don't trust the sysadmin at all?
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Mon Mar 10, 2003 2:14 pm    Post subject: Reply with quote

I can't say for sure it this is possible but, if you don't trust the person or persons with root access on a machine that you are using then I'd say this is the least of your problems. If you can't trust them then you cant trust ANY aspect of that system.
_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
6169
n00b
n00b


Joined: 08 Mar 2003
Posts: 7

PostPosted: Mon Mar 10, 2003 4:24 pm    Post subject: Reply with quote

That is very true. I it just seems that logging in using my public key on the 'untrusted' machine should be safe, since my private key or passphrase never exists on that system or is passed on the network. However using ForwardAgent would then make this dangerous?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum