Unknown linux rootkit?
Recently noticed a bunch of servers (CentOS 5.2 and CentOS 4.8) with SSH fingerprint mismatches. After poking around, it appears that they had been compromised. chkrootkit and RKhunter found nothing but the suspicious entry in /dev (see below).
WARNING: DSA key found for host ourserver.domain.com
DSA key fingerprint f4:27:d0:32:6b:4c:9f:6e:52:6f:49:dd:19:54:c2:f1.
+–[ DSA 1024]—-+
| . o..|
| * . .E|
| + B . . .o|
| S * o …|
| . o = . |
| . o + |
| o . |
The authenticity of host ‘ourserver.domain.com (10.0.0.2)’ can’t be established
but keys of different type are already known for this host.
RSA key fingerprint is 4c:5f:95:3e:52:08:6c:cd:0f:f8:37:38:3c:dd:bf:56.
Are you sure you want to continue connecting (yes/no)? yes
/dev/sax /bin/suidshell /usr/local/bin/ssh-agent /usr/local/bin/sftp-server /usr/local/bin/ssh-agent2 /usr/local/bin/ssh /usr/local/bin/ssh-add2 /usr/local/bin/ssh-signer /usr/local/bin/ssh-keygen2 /usr/local/bin/ssh-probe2 /usr/local/bin/ssh-probe /usr/local/bin/scp /usr/local/bin/sftp /usr/local/bin/ssh-chrootmgr /usr/local/bin/ssh-signer2 /usr/local/bin/sftp2 /usr/local/bin/scp2 /usr/local/bin/ssh-pubkeymgr /usr/local/bin/ssh-dummy-shell /usr/local/bin/ssh-add /usr/local/bin/sftp-server2 /usr/local/bin/ssh-askpass /usr/local/bin/ssh2 /usr/local/bin/ssh-keygen /usr/local/sbin/sshd2 /usr/local/sbin/sshd-check-conf /usr/local/sbin/sshd
- /usr/local/sbin/sshd2 — captures login credentials for both root and non-root logins over SSH/SCP/sftp etc and logs to /dev/sax
/bin/suidshell — is exactly that, a shell with the suid bit set that instantly gives root access to any unprivileged user!
/dev/sax — stores plaintext username and password for root and non-root accounts