I've seen mention multiple times in this forum of 'false positive' on SucKit rootkit via chkrootkit. Here are some tests to confirm if you've been infected or not. I ran across this problem.. and wanted to provide information to anyone else that may have lost a few years of their life stressing out about this.
This was taken from a great site:- The SucKIT rootkit allows an attacker to hide malicious files by giving them a particular ending. The current attacker is hiding code that ends in xrk or mem. To test for the presence of the rootkit, create a file whose name ends in xrk or mem, then execute an "ls -l". If the files you just created are not shown in the output of ls, it means that the rootkit is hiding them, ie. your system is compromised and needs to be rebuilt.
- Change directories to /sbin and execute an "ls -l init" -- the link count should be 1. Create a hard link to init using ln, and then execute the "ls -l init" again. If the link count is still 1, the SK rootkit is installed.
- Rooted systems send usernames and passwords to other compromised machines using TCP port 55, so if you keep records of network connections, traffic to destination port TCP/55 merits further investigation.
http://securecomputing.stanford.edu/ale ... r2004.html
My false positive was related to a re-emerge of baselayout. I went through the steps above and all failed (which was good). Thanks for the 'badass' volumen1 we found out why chkrootkit was complaining:
In the sourcecode of chkrootkit.. grep'ing for Suckit he found this:
Code: Select all
## Suckit rootkit
expertmode_output "${STRINGS} ${ROOTDIR}sbin/init | ${egrep} HOME"
expertmode_output "cat ${ROOTDIR}proc/1/maps | ${egrep} init."Code: Select all
strings /sbin/init | grep HOMECode: Select all
cat /proc/1/maps | grep initCode: Select all
08048000-08050000 r-xp 00000000 03:03 4556009 /var/tmp/portage/baselayout-1.9.4-r6/image/sbin/init (deleted)
08050000-08051000 rw-p 00007000 03:03 4556009 /var/tmp/portage/baselayout-1.9.4-r6/image/sbin/init (deleted)Normally the maps would show:
Code: Select all
08048000-08050000 r-xp 00000000 03:03 7992667 /sbin/init
08050000-08051000 rw-p 00007000 03:03 7992667 /sbin/initBoth chkrootkit and rkhunter were freshly installed. We also verified with egress filtering that no outbound traffic was destined to port 55
Hope this helps someone.
hanji




