LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-07-2004, 08:46 AM   #1
Mogh
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
chkrootkit false alarm?


Hi, I am bit new to using chkrootkit and it found 16 hidden processes from ps and says possible LKM trojan installed on all three of my RH 8.0 bind/apache server systems.

Is it normal for named, mysql and nautulis to do this, therefore assuming false positive? When I shut down named and mysql the message no longer appears. There is no lastlog file since I deleted it many months ago but assumed it would have rebuilt by now but guess I needed to create the file first in order for it to rebuild again.


ROOTDIR is `/'
###
### Output of: ./chkproc -v -v -p 1
###
PID 767: not in ps output
CWD 767: /var/lib/mysql
EXE 767: /usr/sbin/mysqld
PID 768: not in ps output
CWD 768: /var/lib/mysql
EXE 768: /usr/sbin/mysqld
PID 769: not in ps output
CWD 769: /var/lib/mysql
EXE 769: /usr/sbin/mysqld
PID 770: not in ps output
CWD 770: /var/lib/mysql
EXE 770: /usr/sbin/mysqld
PID 771: not in ps output
CWD 771: /var/lib/mysql
EXE 771: /usr/sbin/mysqld
PID 787: not in ps output
CWD 787: /var/lib/mysql
EXE 787: /usr/sbin/mysqld
PID 788: not in ps output
CWD 788: /var/lib/mysql
EXE 788: /usr/sbin/mysqld
PID 789: not in ps output
CWD 789: /var/lib/mysql
EXE 789: /usr/sbin/mysqld
PID 790: not in ps output
CWD 790: /var/lib/mysql
EXE 790: /usr/sbin/mysqld
PID 806: not in ps output
CWD 806: /var/named
EXE 806: /usr/sbin/named
PID 807: not in ps output
CWD 807: /var/named
EXE 807: /usr/sbin/named
PID 808: not in ps output
CWD 808: /var/named
EXE 808: /usr/sbin/named
PID 809: not in ps output
CWD 809: /var/named
EXE 809: /usr/sbin/named
PID 12756: not in ps output
CWD 12756: /root
EXE 12756: /usr/bin/nautilus
PID 12757: not in ps output
CWD 12757: /root
EXE 12757: /usr/bin/nautilus
PID 12758: not in ps output
CWD 12758: /root
EXE 12758: /usr/bin/nautilus
You have 16 process hidden for ps command

Last edited by Mogh; 09-07-2004 at 08:58 AM.
 
Old 09-07-2004, 11:25 AM   #2
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
you are using RH,if you were using Fedora Core,I would recomend you to check this link below

http://www.redhat.com/archives/fedor.../msg01586.html
 
Old 09-07-2004, 01:46 PM   #3
jc materi
LQ Newbie
 
Registered: Aug 2004
Location: Saskatoon, SK, Canada
Distribution: fedora 4
Posts: 25

Rep: Reputation: 15
I have been using chkrootkit for over a year and I suspect it is prone to false positives. On the last one I could not find why it was saying 'last root user not logged in or deleted' (or something like that). Since I could not track down the source of the problem I gave chkrootkit the benefit of the doubt and re-installed which took over a day since the server configuration was quite complicated.

However, I made the decision to discontinue the use of chkrootkit and now use rkhunter which you can download from http://www.rkhunter.org/ . chkrootkit might be alright but I got tired of re-installing what I *strongly suspected* were perfectly fine non-comprimised servers.

In any case, get rkhunter and run the scan. I run it as a cron job nightly like this.

/usr/local/bin/rkhunter -c --cronjob --skip-keypress > <some file>

Probably the commands --cronjob and --skip-keypress are redundant but hey!

Of course, to run it as a cronjob you must also do the appropriate crontab stuff.
 
Old 09-07-2004, 03:15 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I have been using chkrootkit for over a year and I suspect it is prone to false positives.
Any checking done based on static locations, strings, signals, checksums etc, etc has it's limits.
And just like setting network restrictions is a triplet: (X)inetd or daemon config, Libwrap and firewall (and, not or), as far as basic checking is concerned Chkrootkit and Rootkit Hunter complement eachother but really should be used *after* properly hardening the system (start with mount FSes readonly, chattr dirs immutable) and setting up a filesystem integrity checker like Aide, Samhain, (Osiris, Integrit), tripwire.
Check out the LQ FAQ: Security references.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
true or false? alaios Programming 7 07-16-2005 10:54 AM
question about /etc/false notstrider Debian 2 10-23-2004 12:52 AM
Chkrootkit False Positives Sabicas Linux - Software 0 08-03-2004 12:42 AM
'Chkrootkit 0.43' false positive? Mr. Gone Linux - Security 2 03-09-2004 09:16 AM
'Chkrootkit 0.43' false positive? Mr. Gone Linux - Security 0 03-08-2004 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration