Re: Bug in chkrootkit ?

From: Alex 'CAVE' Cernat (cave_at_cernat.ro)
Date: 07/30/03

  • Next message: Alex 'CAVE' Cernat: "Re: Bug in chkrootkit ?"
    Date: Wed, 30 Jul 2003 19:52:13 +0300
    To: security-basics@securityfocus.com
    
    

    > "You have 4 process hidden for ps command" and the hint for a probably
    > installed "LKM Rootkit". So far, so good. "chkproc" with verbose
    > option enabled (-v) say:
    >
    > [mw@zeus chkrootkit-0.38]# ./chkproc -v
    > PID 26194: not in ps output
    > PID 26195: not in ps output
    > PID 26196: not in ps output
    > PID 26197: not in ps output
    > You have 4 process hidden for ps command
    >

    try a better thing:
    ls -l /proc/$pid/exe - this command will give you the real path of the
    executable 'name', which can be even '/usr/man/man1/xxx/whatever/named'
    also you can try ls -l /proc/$pid/fd/ - list of file descriptors opened
    by process $pid

    i had a server cracked and chrootkit report me 2 process hidden; and
    they we're on my system, hidden for ps and top, but not enough hidden
    for absolute path
    i'm not sure, but i believe that a lkm is clever enough (ie. very good
    programmed), it can really 'wipe' a file/process/??? from the system, so
    it's hard sometimes to diagnose your server

    Alex

    ---------------------------------------------------------------------------
    ----------------------------------------------------------------------------


  • Next message: Alex 'CAVE' Cernat: "Re: Bug in chkrootkit ?"

    Relevant Pages

    • Re: 7.1RC1: system hang
      ... pid ppid pgrp uid state wmesg wchan cmd ... Tracing command vmstat pid 96381 tid 100276 td 0xc756caf0 ...
      (freebsd-stable)
    • Re: how to delete a DLL beeing used by windows?
      ... ListDLLs V2.23 - DLL lister for Win9x/NT ... WINLOGON.EXE pid: 164 ... Command line: winlogon.exe ... > "Dimitriy Braslavskiy" wrote in message ...
      (microsoft.public.win2000.security)
    • Re: IPC
      ... You want to use the system command here ... ... Pid in perl script are different from Pid in bash and so I can't kill them and I can't wait for them. ... 19992 pts/1 00:00:00 example.pl ... 20001 pts/1 00:00:00 sh child process 19993 finished, ...
      (comp.lang.perl.misc)
    • Re: Wait for background processes to complete
      ... trying to use the shell concepts and maximize parallelism). ... the systemcommand - which leaves us back at square one. ... fork, and then do your own wait. ... PID PGID COMMAND ...
      (comp.lang.perl.misc)
    • Re: IPC
      ... >>>....don't return the pid of the subprocess! ... This is a nasty command that attempts to fill up your disk with a file ... Yes, you are correct in that the open command launches a shell process, ...
      (comp.lang.perl.misc)