LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-02-2010, 06:38 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
chkrootkit warning


Found this in chkrootkit (nothing in rkhunter).
Is this another false positive?

Quote:
Checking `lkm'... You have 1 process hidden for readdir command
You have 1 process hidden for ps command
chkproc: Warning: Possible LKM Trojan installed
Quote:
Checking `chkutmp'... The tty of the following user process(es) were not found
in /var/run/utmp !
! RUID PID TTY CMD
! root 3187 tty6 /sbin/mingetty tty6
! RSTART 24942 r(filename, - 1);? } else {? filename_no_gz = filename;? }? match(filename_no_gz, "/[^/]+$");? progname = substr(filename, RSTART + 1, RLENGTH - 1);? if (match(progname, "\\." section "[A-Za-z]+")) {? actual_section = substr(progna! da? 16232 | $2 ~ /^NUME/ || # ro? $2 ~ /^BEZEICHNUNG/ || # de? $2 ~ /^NOMBRE/ || # es? $2 ~ /^NIMI/ || # fi? $2 ~ /^NOM/ || # fr? $2 ~ /^IME/ || # sh?chkutmp: nothing deleted
 
Old 01-03-2010, 12:43 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
That does indeed look suspicious. Did you check that chkrootkit's results were correct? And depending on how paranoid about security you have to be: proceed with caution. A few more details about the machine's role, etc. will help us determine how to proceed.

Regards,

Alunduil
 
Old 01-03-2010, 12:46 PM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by alunduil View Post
That does indeed look suspicious. Did you check that chkrootkit's results were correct? And depending on how paranoid about security you have to be: proceed with caution. A few more details about the machine's role, etc. will help us determine how to proceed.

Regards,

Alunduil
Not sure how to check if they are correct?
Do I just rerun it?
I basically only use the machine as a proxy server although I did recently open up the OpenVPN port but have not fully finished installing OpenVPN.
I just reran chkrootkit and the same results were not there - all clear.
Quote:
Checking `lkm'... chkproc: nothing detected

Checking `chkutmp'... The tty of the following user process(es) were not found
in /var/run/utmp !
! RUID PID TTY CMD
! root 3187 tty6 /sbin/mingetty tty6
chkutmp: nothing deleted
Nothing has turned up in rkhunter at all - all clear.

Last edited by qwertyjjj; 01-03-2010 at 12:49 PM.
 
Old 01-03-2010, 12:50 PM   #4
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Are you logged in as root on tty6? If so, then you're probably safe.

Regards,

Alunduil
 
Old 01-03-2010, 01:00 PM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by alunduil View Post
Are you logged in as root on tty6? If so, then you're probably safe.

Regards,

Alunduil
Stupid question but what is TTY?
Yes, I was logged in as root when I reran it.

Why does chkrootkit throw up these false positives that disappear every so often? It's almost random.
 
Old 01-03-2010, 01:12 PM   #6
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
The virtual consoles (accesses via ctl+f?) are usually associated with a tty. The details of this are in /etc/inittab (unless you're on Ubuntu, they moved that configuration around).

It's the nature of rootkit hunters and what they search for that cause the false positives. I've always been a firm believer in forensic tools combined with knowing your system by watching a statistical tool such as cacti.

Regards,

Alunduil
 
Old 01-03-2010, 01:22 PM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

TTY is a communication layer between the system and the use, as simplest and best to my knowledge. You can find more information on it on this site which I may say is very technical.

Kind regards,

Eric
 
Old 01-09-2010, 06:02 PM   #8
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
and another today randomly:

Quote:
Checking `lkm'... You have 2 process hidden for readdir command
You have 2 process hidden for ps command
chkproc: Warning: Possible LKM Trojan installed
Checking `rexedcs'... not found
Checking `sniffer'... eth0: not promisc and no PF_PACKET sockets
eth0:0: not promisc and no PF_PACKET sockets
tun0: not promisc and no PF_PACKET sockets
Checking `w55808'... not infected
Checking `wted'... chkwtmp: nothing deleted
Checking `scalper'... not infected
Checking `slapper'... not infected
Checking `z2'... chklastlog: nothing deleted
Checking `chkutmp'... The tty of the following user process(es) were not found
in /var/run/utmp !
! RUID PID TTY CMD
! root 3187 tty6 /sbin/mingetty tty6
! RSTART 24942 r(filename, - 1);? } else {? filename_no_gz = filename;? }? match(filename_no_gz, "/[^/]+$");? progname = substr(filename, RSTART + 1, RLENGTH - 1);? if (match(progname, "\\." section "[A-Za-z]+")) {? actual_section = substr(progna! da? 16232 | $2 ~ /^NUME/ || # ro? $2 ~ /^BEZEICHNUNG/ || # de? $2 ~ /^NOMBRE/ || # es? $2 ~ /^NIMI/ || # fi? $2 ~ /^NOM/ || # fr? $2 ~ /^IME/ || # sh?chkutmp: nothing deleted
 
Old 01-09-2010, 11:46 PM   #9
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Which tty do you run X on? Or do you have this as a headless machine? That may cause the spurious tty check fail.

Regards,

Alunduil
 
Old 01-10-2010, 03:47 AM   #10
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by alunduil View Post
Which tty do you run X on? Or do you have this as a headless machine? That may cause the spurious tty check fail.

Regards,

Alunduil
What's X?
I'm reading through that TTY site at present but have little idea of what it is really at present.
 
Old 01-10-2010, 10:12 AM   #11
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
X is the GUI (graphical user interface).

Regards,

Alunduil
 
Old 01-10-2010, 10:17 AM   #12
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by alunduil View Post
X is the GUI (graphical user interface).

Regards,

Alunduil
Oh...I don;t have a GUI, just the command line.
 
Old 01-10-2010, 10:27 AM   #13
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Then the question remains as to what processes are running on that tty.

Let's try running the following:

Code:
ps -lxf | gawk '$4 == <pid> {print $n}'
Where <pid> is the PID of the tty returned by chkrootkit.

Regards,

Alunduil
 
Old 01-10-2010, 10:30 AM   #14
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by alunduil View Post
Then the question remains as to what processes are running on that tty.

Let's try running the following:

Code:
ps -lxf | gawk '$4 == <pid> {print $n}'
Where <pid> is the PID of the tty returned by chkrootkit.

Regards,

Alunduil
Syntax error somewhere?
Quote:
[root@]# ps -lxf | gawk '$4 == 3187 {print $n}'
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
[root@]# ps -lxf | gawk '$4 == 24942 {print $n}'
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
I reran chkrootkit and nothing appeared. Only worry is whether something is happening when I'm not logged on in the middle of the night perhaps.
 
Old 01-10-2010, 11:05 AM   #15
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What time does chkrootkit run and what time does cron run? Does cron run the chkrootkit? If so, I'm willing to bet that chkrootkit is finding it's own parent and saying it's a break-in.

Regards,

Alunduil
 
  


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
chkrootkit warning qwertyjjj Linux - Newbie 1 09-20-2009 09:51 AM
chkrootkit warning appears two days in a row kaplan71 Linux - Software 7 03-28-2008 02:41 AM
chkrootkit EchoWarrior Linux - Newbie 2 04-20-2006 04:45 PM
chkrootkit ? jmanjeff Linux - Security 2 05-31-2005 11:15 PM
chkrootkit warning of lkm trojan provkitir Linux - Security 5 10-20-2004 06:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:41 PM.

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