Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Other > /etc

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-2008, 05:50 AM
Outstanding Member
 
Posts: 684
Default Comprimised SSH keys.

Is this something Zimbra users need to worry about?

Linux under attack: Compromised SSH keys lead to rootkit | Zero Day | ZDNet.com

If anyone has the time, how do these attacks work?
Reply With Quote
  #2 (permalink)  
Old 08-27-2008, 11:32 AM
Moderator
 
Posts: 441
Default

That one mostly seems to be targeting the flaw that Debian had in their SSH key generation. The attack would either target the flawed key, or try to use already stolen SSH keys to gain access. Then they install the rootkit.

Debian / Ubuntu have already released fixes for this. If you use SSH keys for logging in, you may want to use a passphrase. And don't let anyone get your private keys.
Reply With Quote
  #3 (permalink)  
Old 08-27-2008, 11:40 AM
Elite Member
 
Posts: 380
Default

And if you run an sshd that is visible to the outside world, either directly or via NAT, you should read this article, and implement one of the solutions -- I like the /etc/hosts.allow approach myself.
Reply With Quote
  #4 (permalink)  
Old 08-27-2008, 12:33 PM
Special Member
 
Posts: 133
Default

You should not be accessing a machine via SSH over any other medium than a VPN.
Basic security should help you to avoid this vulnerability
Reply With Quote
  #5 (permalink)  
Old 08-27-2008, 01:13 PM
Elite Member
 
Posts: 380
Default

Aw, that's horse-crap. If ssh isn't hardened enough to be on the edge, your VPN probably isn't either.
Reply With Quote
  #6 (permalink)  
Old 08-27-2008, 01:30 PM
Outstanding Member
 
Posts: 684
Default

After reading at us-cert, I guess some SSH access is done using keys without passwords or passphrases. These are the ones at most risk. I'm having trouble believing someone would not be using a password for access but I guess it is happening.
Reply With Quote
  #7 (permalink)  
Old 08-27-2008, 02:09 PM
Special Member
 
Posts: 133
Default

Agree. Again, basic security. As for putting SSH on the edge - Good luck with that.
Anyone remember that scene in the matrix where trinity uses the old ssh exploit to kick the door in on a server.
Had to do that an old HP-UX box some years ago...
Reply With Quote
  #8 (permalink)  
Old 08-30-2008, 08:45 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

Quote:
Agree. Again, basic security. As for putting SSH on the edge - Good luck with that.
Anyone remember that scene in the matrix where trinity uses the old ssh exploit to kick the door in on a server.
Had to do that an old HP-UX box some years ago...
are you being serious?
Reply With Quote
  #9 (permalink)  
Old 08-30-2008, 01:27 PM
Special Member
 
Posts: 133
Default

About what? Putting ssh on the edge or exploiting the HP-UX box?
Reply With Quote
  #10 (permalink)  
Old 09-29-2008, 07:40 AM
New Member
 
Posts: 4
Default Basic SSH security not that difficult

This exploit should not threaten any site that has taken a few basic steps to secure ssh. At a minimum:

- Don't allow root login on ssh, easy to configure in sshd_config
- Don't use port 22 on any system accessible from the outside world. Add port in sshd_config and iptables to allow access via high numbered misc port, e.g. 53764
- Note that Zimbra uses port 22 for internal admin, so use iptables to lockout outside access, add "-s localhost" to the port 22 config entry
- Install and thoughtfully configure the denyhosts package to shutdown attackers after a few login attempts.

Basic sysadmin practice, but well worth repeating for the benefit of all here.
__________________
Macy Hallock - Hallock Consulting - Medina, Ohio
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.