News: Cexx forums, with volunteers dedicated to helping you remove malware and stay protected
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
May 23, 2013, 23:27:41
Pages: [1]   Go Down
  Print  
Topic: Attacks against Linux-based systems - compromised SSH keys  (Read 1158 times)
0 Members and 1 Guest are viewing this topic.
« on: August 26, 2008, 16:36:05 »
AplusWebMaster Offline
Global Moderator WWW

Karma: 501
Posts: 7325



FYI...

- http://www.us-cert.gov/current/#ssh_key_based_attacks
August 26, 2008 - "US-CERT is aware of active attacks against linux-based computing infrastructures using compromised SSH keys. The attack appears to initially use stolen SSH keys to gain access to a system, and then uses local kernel exploits to gain root access. Once root access has been obtained, a rootkit known as "phalanx2" is installed.
Phalanx2 appears to be a derivative of an older rootkit named "phalanx". Phalanx2 and the support scripts within the rootkit, are configured to systematically steal SSH keys from the compromised system. These SSH keys are sent to the attackers, who then use them to try to compromise other sites and other systems of interest at the attacked site. Detection of phalanx2 as used in this attack may be performed as follows:
    * "ls" does not show a directory "/etc/khubd.p2/", but it can be entered with "cd /etc/khubd.p2".
    * "/dev/shm/" may contain files from the attack.
    * Any directory named "khubd.p2" is hidden from "ls", but may be entered by using "cd".
    * Changes in the configuration of the rootkit might change the attack indicators listed above. Other detection methods may include searching for hidden processes and checking the reference count in "/etc" against the number of directories shown by "ls".

US-CERT encourages administrators to perform the following actions to help mitigate the risks:
    * Proactively identify and examine systems where SSH keys are used as part of automated processes. These keys will typically not have passphrases or passwords.
    * Encourage users to use the keys with passphrase or passwords to reduce the risk if a key is compromised.
    * Review access paths to internet facing systems and ensure that systems are fully patched.

If a compromise is confirmed, US-CERT recommends the following actions:
    * Disable key-based SSH authentication on the affected systems, where possible.
    * Perform an audit of all SSH keys on the affected systems.
    * Notify all key owners of the potential compromise of their keys.
US-CERT will provide additional information as it becomes available."

 Exclamation Evil or Very Mad Exclamation
Logged

This machine has no brain.
....... Use your own.
Browser check for updates here.
.
« Reply #1 on: August 28, 2008, 19:57:27 »
AplusWebMaster Offline
Global Moderator WWW

Karma: 501
Posts: 7325



FYI...

- http://isc.sans.org/diary.html?storyid=4937
Last Updated: 2008-08-26 21:52:26 UTC - "...Sources of compromised keys could include the weak key vulnerability in Debian-based systems a few months ago, so if you haven't updated and replaced those keys, you ought to do so now. The biggest defense is to have any keys, especially those used to authenticate to remote machines and certainly internet facing ones, require a passphrase to use. Check your logs, especially if you use SSH key-based auth, to identify accesses from remote machines that have no business accessing you. If you have IPs, that would be good. To detect if you have Phalanx2, look for /etc/khubd.p2/ (access by cd, not ls) or any directory that is called "khubd.p2". /dev/shm/ may contain files from the attack as well. Tripwire, AIDE and friends should also be able to detect filesystem changes."

 Exclamation
Logged

This machine has no brain.
....... Use your own.
Browser check for updates here.
.
 
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Page created in 0.414 seconds with 19 queries.