chkrootkit 0.44 possible LKM trojan

This is a discussion on chkrootkit 0.44 possible LKM trojan within the Linux Security forums, part of the System Security and Security Related category; Hello. My backup server is a RH9.0 intel machine with all the updates. Chkrootkit 0.43 reports everything is ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-07-2004
Graham Vincent
 
Posts: n/a
Default chkrootkit 0.44 possible LKM trojan

Hello.

My backup server is a RH9.0 intel machine with all the updates. Chkrootkit
0.43 reports everything is OK but I just ran version 0.44 and got a bit of
a surprise:

[root@spare chkrootkit-0.44]# ./chkrootkit lkm
ROOTDIR is `/'
Checking `lkm'... You have 4 process hidden for ps command
Warning: Possible LKM Trojan installed
[root@spare chkrootkit-0.44]# ./chkproc -v
PID 1250: not in ps output
PID 1251: not in ps output
PID 1252: not in ps output
PID 1253: not in ps output
You have 4 process hidden for ps command

I've checked that ps and libproc.so are unchanged from the original rpm
install.

I'm not sure whether this is a false alarm or not? I've unplugged it from
the network and would appreciate any ideas on how to verify if I have a
real problem or not...

(I'd like to avoid the reformat/reinstall from scratch option if possible).

Thanks,

Graham

Reply With Quote
  #2 (permalink)  
Old 09-07-2004
Jose Maria Lopez Hernandez
 
Posts: n/a
Default Re: chkrootkit 0.44 possible LKM trojan

Graham Vincent wrote:
> Hello.
>
> My backup server is a RH9.0 intel machine with all the updates. Chkrootkit
> 0.43 reports everything is OK but I just ran version 0.44 and got a bit of
> a surprise:
>
> [root@spare chkrootkit-0.44]# ./chkrootkit lkm
> ROOTDIR is `/'
> Checking `lkm'... You have 4 process hidden for ps command
> Warning: Possible LKM Trojan installed
> [root@spare chkrootkit-0.44]# ./chkproc -v
> PID 1250: not in ps output
> PID 1251: not in ps output
> PID 1252: not in ps output
> PID 1253: not in ps output
> You have 4 process hidden for ps command
>
> I've checked that ps and libproc.so are unchanged from the original rpm
> install.
>
> I'm not sure whether this is a false alarm or not? I've unplugged it from
> the network and would appreciate any ideas on how to verify if I have a
> real problem or not...
>
> (I'd like to avoid the reformat/reinstall from scratch option if possible).
>
> Thanks,
>
> Graham
>


This happened to me with older versions of chkrootkit, but with
chkrootkit 0.43 it doesn't happen anymore. It used to be a bug
in chkrootkit, but check your system thoroughly anyway.


--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAŅA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Reply With Quote
  #3 (permalink)  
Old 09-07-2004
Jos
 
Posts: n/a
Default Re: chkrootkit 0.44 possible LKM trojan

On Tue, 07 Sep 2004 11:24:24 +1200, Graham Vincent wrote:

> Hello.
>
> My backup server is a RH9.0 intel machine with all the updates. Chkrootkit
> 0.43 reports everything is OK but I just ran version 0.44 and got a bit of
> a surprise:
>
> [root@spare chkrootkit-0.44]# ./chkrootkit lkm
> ROOTDIR is `/'
> Checking `lkm'... You have 4 process hidden for ps command
> Warning: Possible LKM Trojan installed
> [root@spare chkrootkit-0.44]# ./chkproc -v
> PID 1250: not in ps output
> PID 1251: not in ps output
> PID 1252: not in ps output
> PID 1253: not in ps output
> You have 4 process hidden for ps command
>
> I've checked that ps and libproc.so are unchanged from the original rpm
> install.
>
> I'm not sure whether this is a false alarm or not? I've unplugged it from
> the network and would appreciate any ideas on how to verify if I have a
> real problem or not...
>
> (I'd like to avoid the reformat/reinstall from scratch option if possible).
>
> Thanks,
>
> Graham


Happens a lot (google will show you this) with chkrootkit. E.g. if you use
clamav as virus scanner but other progs are known to give this result as
well. Check out rkhunter!

Jos

Reply With Quote
  #4 (permalink)  
Old 09-07-2004
Jos
 
Posts: n/a
Default Re: chkrootkit 0.44 possible LKM trojan

On Tue, 07 Sep 2004 06:33:24 +0200, Jos wrote:

> On Tue, 07 Sep 2004 11:24:24 +1200, Graham Vincent wrote:
>
>> Hello.
>>
>> My backup server is a RH9.0 intel machine with all the updates. Chkrootkit
>> 0.43 reports everything is OK but I just ran version 0.44 and got a bit of
>> a surprise:
>>
>> [root@spare chkrootkit-0.44]# ./chkrootkit lkm
>> ROOTDIR is `/'
>> Checking `lkm'... You have 4 process hidden for ps command
>> Warning: Possible LKM Trojan installed
>> [root@spare chkrootkit-0.44]# ./chkproc -v
>> PID 1250: not in ps output
>> PID 1251: not in ps output
>> PID 1252: not in ps output
>> PID 1253: not in ps output
>> You have 4 process hidden for ps command
>>
>> I've checked that ps and libproc.so are unchanged from the original rpm
>> install.
>>
>> I'm not sure whether this is a false alarm or not? I've unplugged it from
>> the network and would appreciate any ideas on how to verify if I have a
>> real problem or not...
>>
>> (I'd like to avoid the reformat/reinstall from scratch option if possible).
>>
>> Thanks,
>>
>> Graham

>
> Happens a lot (google will show you this) with chkrootkit. E.g. if you use
> clamav as virus scanner but other progs are known to give this result as
> well. Check out rkhunter!
>
> Jos


Use chkproc -v -v to get the offending processes.

Jos

Reply With Quote
  #5 (permalink)  
Old 09-07-2004
Graham Vincent
 
Posts: n/a
Default Re: chkrootkit 0.44 possible LKM trojan

On Tue, 07 Sep 2004 06:37:51 +0200, Jos wrote:

> On Tue, 07 Sep 2004 06:33:24 +0200, Jos wrote:
>
>> On Tue, 07 Sep 2004 11:24:24 +1200, Graham Vincent wrote:
>>
>>> Hello.
>>>
>>> My backup server is a RH9.0 intel machine with all the updates. Chkrootkit
>>> 0.43 reports everything is OK but I just ran version 0.44 and got a bit of
>>> a surprise:
>>>
>>> [root@spare chkrootkit-0.44]# ./chkrootkit lkm
>>> ROOTDIR is `/'
>>> Checking `lkm'... You have 4 process hidden for ps command
>>> Warning: Possible LKM Trojan installed
>>> [root@spare chkrootkit-0.44]# ./chkproc -v
>>> PID 1250: not in ps output
>>> PID 1251: not in ps output
>>> PID 1252: not in ps output
>>> PID 1253: not in ps output
>>> You have 4 process hidden for ps command
>>>
>>> I've checked that ps and libproc.so are unchanged from the original rpm
>>> install.
>>>
>>> I'm not sure whether this is a false alarm or not? I've unplugged it from
>>> the network and would appreciate any ideas on how to verify if I have a
>>> real problem or not...
>>>
>>> (I'd like to avoid the reformat/reinstall from scratch option if possible).
>>>
>>> Thanks,
>>>
>>> Graham

>>
>> Happens a lot (google will show you this) with chkrootkit. E.g. if you use
>> clamav as virus scanner but other progs are known to give this result as
>> well. Check out rkhunter!
>>
>> Jos

>
> Use chkproc -v -v to get the offending processes.
>
> Jos


Interesting! Thanks for the second -v.

named is the culprit for the 4 original hidden processes. I ran chkproc -v
-v while I had pan open and that generated a further 6 hidden processes.
It's looking more like a chkrootkit problem rather than a security breach :-)

Graham

Reply With Quote
  #6 (permalink)  
Old 09-08-2004
Moe Trin
 
Posts: n/a
Default Re: chkrootkit 0.44 possible LKM trojan

In article <pan.2004.09.06.22.54.50.444291@spamtrap.invalid.n z>,
Graham Vincent wrote:
> My backup server is a RH9.0 intel machine with all the updates. Chkrootkit
> 0.43 reports everything is OK but I just ran version 0.44 and got a bit of
> a surprise:


As others have pointed out, it shouldn't be.

'chkrootkit' is a tool that looks for symptoms and signs seen during
previous exploits. It is not (and probably can't be) foolproof.

If you use it, and the results are negative, it doesn't mean your
system is "clean". It only means that the exploits it's looking for
may not be present.

If you use it, and the results are positive, you need to read exactly
what the tool was looking for, and then research what it's finding.
Sometimes, it means you are r00ted - sometimes it's made a mistake.

The tool is only looking at certain things, and is only part of the job
of keeping your system clean. Depending on your threat model (what you
feel you might need to defend against), you might need to be doing a lot
more, up to and possibly including monitoring disk and memory content
from an external system. Depends on how paranoid you want to be.

> (I'd like to avoid the reformat/reinstall from scratch option if possible).


That remains the only safe option, but this doesn't mean it's time to do so.

RH9 is unsupported by Red Hat now, though there _MAY_ be some errata
available from download.fedoralegacy.org. At the very least you want to
_scan_ the Bugtraq mailing list. A number of news servers carry a mirror
of this list - look for mailing.unix.bugtraq or muc.lists.bugtraq on your
news server.

Old guy
Reply With Quote
  #7 (permalink)  
Old 09-11-2004
sin
 
Posts: n/a
Default Re: chkrootkit 0.44 possible LKM trojan

> PID 1250: not in ps output
> PID 1251: not in ps output
> PID 1252: not in ps output
> PID 1253: not in ps output


Leaving my feelings for chkrootkit aside,
For future reference you could cd /proc/1250/ && cat cmdline
And get an idea of at least what the program says it is.

sin
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0