myth
Homepage: http://www.chkrootkit.org/

Just discovered this program, no-one has linked to it yet, thought you guys would find it useful (even to check if your rootkit is detected)

Im not sure how it updates it database, maybe via versions (currently 0.44), so atm, i dont use it as a last resort. Also, via debians apt-get install chkrootkit, a configuration prompt was opened to run the command daily, but im a little confused where the logs are left ... Theres not alot i know about cron jobs...

/etc/cron.daily/chkrootkit

CODE
#!/bin/sh -e

CF=/etc/chkrootkit.conf

if [ -e $CF ]; then
   . $CF
fi

if [ "$RUN_DAILY" = "true" ]; then
   date >> /var/log/chkrootkit/daily.logs
   chkrootkit $RUN_DAILY_OPTS >> /var/log/chkrootkit/daily.logs
fi


Thats what i edited mine to look like, make sure that the necessary files / folders exist with proper permissions....

Example of output of 'chkrootkit'

QUOTE
ROOTDIR is `/'
Checking `amd'... not found
Checking `basename'... not infected
Checking `biff'... not found
Checking `chfn'... not infected
Checking `chsh'... not infected
Checking `cron'... not infected
Checking `date'... not infected
Checking `du'... not infected
Checking `dirname'... not infected
Checking `echo'... not infected
Checking `egrep'... not infected
Checking `env'... not infected
Checking `find'... not infected
Checking `fingerd'... not found
Checking `gpm'... not found
Checking `grep'... not infected
Checking `hdparm'... not found
Checking `su'... not infected
Checking `ifconfig'... not infected
Checking `inetd'... not infected
Checking `inetdconf'... not infected
Checking `identd'... not found
Checking `init'... not infected
Checking `killall'... not infected
Checking `ldsopreload'... not infected
Checking `login'... not infected
Checking `ls'... not infected
Checking `lsof'... not infected
Checking `mail'... not infected
Checking `mingetty'... not found
Checking `netstat'... not infected
Checking `named'... not found
Checking `passwd'... not infected
Checking `pidof'... not infected
Checking `pop2'... not found
Checking `pop3'... not found
Checking `ps'... not infected
Checking `pstree'... not infected
Checking `rpcinfo'... not infected
Checking `rlogind'... not found
Checking `rshd'... not found
Checking `slogin'... not infected
Checking `sendmail'... not infected
Checking `sshd'... not infected
Checking `syslogd'... not tested
Checking `tar'... not infected
Checking `tcpd'... not infected
Checking `tcpdump'... not infected
Checking `top'... not infected
Checking `telnetd'... not found
Checking `timed'... not found
Checking `traceroute'... not infected
Checking `vdir'... not infected
Checking `w'... not infected
Checking `write'... not infected
Checking `aliens'... no suspect files
Searching for sniffer's logs, it may take a while... nothing found
Searching for HiDrootkit's default dir... nothing found
Searching for t0rn's default files and dirs... nothing found
Searching for t0rn's v8 defaults... nothing found
Searching for Lion Worm default files and dirs... nothing found
Searching for RSHA's default files and dir... nothing found
Searching for RH-Sharpe's default files... nothing found
Searching for Ambient's rootkit (ark) default files and dirs... nothing found
Searching for suspicious files and dirs, it may take a while... nothing found
Searching for LPD Worm files and dirs... nothing found
Searching for Ramen Worm files and dirs... nothing found
Searching for Maniac files and dirs... nothing found
Searching for RK17 files and dirs... nothing found
Searching for Ducoci rootkit... nothing found
Searching for Adore Worm... nothing found
Searching for ShitC Worm... nothing found
Searching for Omega Worm... nothing found
Searching for Sadmind/IIS Worm... nothing found
Searching for MonKit... nothing found
Searching for Showtee... nothing found
Searching for OpticKit... nothing found
Searching for T.R.K... nothing found
Searching for Mithra... nothing found
Searching for OBSD rk v1... nothing found
Searching for LOC rootkit... nothing found
Searching for Romanian rootkit... nothing found
Searching for Suckit rootkit... nothing found
Searching for Volc rootkit... nothing found
Searching for Gold2 rootkit... nothing found
Searching for TC2 Worm default files and dirs... nothing found
Searching for Anonoying rootkit default files and dirs... nothing found
Searching for ZK rootkit default files and dirs... nothing found
Searching for ShKit rootkit default files and dirs... nothing found
Searching for AjaKit rootkit default files and dirs... nothing found
Searching for zaRwT rootkit default files and dirs... nothing found
Searching for Madalin rootkit default files... nothing found
Searching for anomalies in shell history files... nothing found
Checking `asp'... not infected
Checking `bindshell'... not infected
Checking `lkm'... nothing detected
Checking `rexedcs'... not found
Checking `sniffer'... lo: not promisc and no packet sniffer sockets
eth0: PACKET SNIFFER(/sbin/dhclient[6080])
eth1: not promisc and no packet sniffer sockets
Checking `w55808'... not infected
Checking `wted'... nothing deleted
Checking `scalper'... not infected
Checking `slapper'... not infected
Checking `z2'... nothing deleted


Some may find this useful
SecureD
QUOTE(Myth1368 @ Feb 21 2005, 06:02 AM)
Homepage: http://www.chkrootkit.org/

Just discovered ...........useful
*



Thanks Myth1368, this is a very usefull tool checking your box for rootkits. Already tried it out, happily nothing is found on my system ;-)
XtrA
QUOTE(Myth1368 @ Feb 21 2005, 06:02 AM)
Homepage: http://www.chkrootkit.org/

Just discovered this program, no-one has linked to it yet, thought you guys would find it useful (even to check if your rootkit is detected)



posted the prog in trial forum cause have no permissions to start a topic here ^^ wink.gif

(there)
myth
Guys, found another proggy. Probably better because you can run updates via cron-jobs....

output:

QUOTE
glitch:/home/brad/Desktop/hackz/rk_detect/rkhunter# rkhunter --checkall


Rootkit Hunter 1.2.0 is running

Determining OS... Ready


Checking binaries
* Selftests
    Strings (command)                                        [ OK ]


* System tools
  Performing 'known bad' check...
  /bin/cat                                                  [ OK ]
  /bin/chmod                                                [ OK ]
  /bin/chown                                                [ OK ]
  /bin/csh                                                  [ OK ]
  /bin/date                                                  [ OK ]
  /bin/df                                                    [ OK ]
  /bin/dmesg                                                [ OK ]
  /bin/echo                                                  [ OK ]
  /bin/ed                                                    [ OK ]
  /bin/egrep                                                [ OK ]
  /bin/fgrep                                                [ OK ]
  /bin/grep                                                  [ OK ]
  /bin/kill                                                  [ OK ]
  /bin/login                                                [ OK ]
  /bin/ls                                                    [ OK ]
  /bin/more                                                  [ OK ]
  /bin/mount                                                [ OK ]
  /bin/netstat                                              [ OK ]
  /bin/ps                                                    [ OK ]
  /bin/sh                                                    [ OK ]
  /bin/su                                                    [ OK ]
  /sbin/depmod                                              [ OK ]
  /sbin/ifconfig                                            [ OK ]
  /sbin/ifdown                                              [ OK ]
  /sbin/ifup                                                [ OK ]
  /sbin/init                                                [ OK ]
  /sbin/insmod                                              [ OK ]
  /sbin/ksyms                                                [ OK ]
  /sbin/lsmod                                                [ OK ]
  /sbin/modinfo                                              [ OK ]
  /sbin/modprobe                                            [ OK ]
  /sbin/rmmod                                                [ OK ]
  /sbin/runlevel                                            [ OK ]
  /sbin/sulogin                                              [ OK ]
  /sbin/sysctl                                              [ OK ]
  /usr/bin/basename                                          [ OK ]
  /usr/bin/chattr                                            [ OK ]
  /usr/bin/du                                                [ OK ]
  /usr/bin/file                                              [ OK ]
  /usr/bin/find                                              [ OK ]
  /usr/bin/groups                                            [ OK ]
  /usr/bin/head                                              [ OK ]
  /usr/bin/killall                                          [ OK ]
  /usr/bin/last                                              [ OK ]
  /usr/bin/lastlog                                          [ OK ]
  /usr/bin/less                                              [ OK ]
  /usr/bin/locate                                            [ OK ]
  /usr/bin/logger                                            [ OK ]
  /usr/bin/lsattr                                            [ OK ]
  /usr/bin/md5sum                                            [ OK ]
  /usr/bin/passwd                                            [ OK ]
  /usr/bin/pstree                                            [ OK ]
  /usr/bin/sha1sum                                          [ OK ]
  /usr/bin/size                                              [ OK ]
  /usr/bin/sort                                              [ OK ]
  /usr/bin/stat                                              [ OK ]
  /usr/bin/strace                                            [ OK ]
  /usr/bin/strings                                          [ OK ]
  /usr/bin/test                                              [ OK ]
  /usr/bin/top                                              [ OK ]
  /usr/bin/touch                                            [ OK ]
  /usr/bin/users                                            [ OK ]
  /usr/bin/vmstat                                            [ OK ]
  /usr/bin/w                                                [ OK ]
  /usr/bin/watch                                            [ OK ]
  /usr/bin/wc                                                [ OK ]
  /usr/bin/wget                                              [ OK ]
  /usr/bin/whatis                                            [ OK ]
  /usr/bin/whereis                                          [ OK ]
  /usr/bin/which                                            [ OK ]
  /usr/bin/who                                              [ OK ]
  /usr/bin/whoami                                            [ OK ]
  /usr/sbin/adduser                                          [ OK ]
  /usr/sbin/chroot                                          [ OK ]
  /usr/sbin/cron                                            [ OK ]
  /usr/sbin/inetd                                            [ OK ]
  /usr/sbin/tcpd                                            [ OK ]
  /usr/sbin/useradd                                          [ OK ]
  /usr/sbin/usermod                                          [ OK ]
  /usr/sbin/vipw                                            [ OK ]
  Performing 'known good' check...

[Press <ENTER> to continue]



Check rootkits
* Default files and directories
  Rootkit '55808 Trojan - Variant A'...                      [ OK ]
  ADM Worm...                                                [ OK ]
  Rootkit 'AjaKit'...                                        [ OK ]
  Rootkit 'aPa Kit'...                                      [ OK ]
  Rootkit 'Apache Worm'...                                  [ OK ]
  Rootkit 'Ambient (ark) Rootkit'...                        [ OK ]
  Rootkit 'Balaur Rootkit'...                                [ OK ]
  Rootkit 'BeastKit'...                                      [ OK ]
  Rootkit 'BOBKit'...                                        [ OK ]
  Rootkit 'CiNIK Worm (Slapper.B variant)'...                [ OK ]
  Rootkit 'Danny-Boy's Abuse Kit'...                        [ OK ]
  Rootkit 'Devil RootKit'...                                [ OK ]
  Rootkit 'Dica'...                                          [ OK ]
  Rootkit 'Dreams Rootkit'...                                [ OK ]
  Rootkit 'Duarawkz'...                                      [ OK ]
  Rootkit 'Flea Linux Rootkit'...                            [ OK ]
  Rootkit 'FreeBSD Rootkit'...                              [ OK ]
  Rootkit '(filtered)`it Rootkit'...                              [ OK ]
  Rootkit 'GasKit'...                                        [ OK ]
  Rootkit 'Heroin LKM'...                                    [ OK ]
  Rootkit 'HjC Kit'...                                      [ OK ]
  Rootkit 'ignoKit'...                                      [ OK ]
  Rootkit 'ImperalsS-FBRK'...                                [ OK ]
  Rootkit 'Irix Rootkit'...                                  [ OK ]
  Rootkit 'Kitko'...                                        [ OK ]
  Rootkit 'Knark'...                                        [ OK ]
  Rootkit 'Li0n Worm'...                                    [ OK ]
  Rootkit 'Lockit / LJK2'...                                [ OK ]
  Rootkit 'MRK'...                                          [ OK ]
  Rootkit 'Ni0 Rootkit'...                                  [ OK ]
  Rootkit 'RootKit for SunOS / NSDAP'...                    [ OK ]
  Rootkit 'Optic Kit (Tux)'...                              [ OK ]
  Rootkit 'Oz Rootkit'...                                    [ OK ]
  Rootkit 'Portacelo'...                                    [ OK ]
  Rootkit 'R3dstorm Toolkit'...                              [ OK ]
  Rootkit 'RH-Sharpe's rootkit'...                          [ OK ]
  Rootkit 'RSHA's rootkit'...                                [ OK ]
  Sebek LKM                                                  [ OK ]
  Rootkit 'Scalper Worm'...                                  [ OK ]
  Rootkit 'Shutdown'...                                      [ OK ]
  Rootkit 'SHV4'...                                          [ OK ]
  Rootkit 'SHV5'...                                          [ OK ]
  Rootkit 'Sin Rootkit'...                                  [ OK ]
  Rootkit 'Slapper'...                                      [ OK ]
  Rootkit 'Sneakin Rootkit'...                              [ OK ]
  Rootkit 'Suckit Rootkit'...                                [ OK ]
  Rootkit 'SunOS Rootkit'...                                [ OK ]
  Rootkit 'Superkit'...                                      [ OK ]
  Rootkit 'TBD (Telnet BackDoor)'...                        [ OK ]
  Rootkit 'TeLeKiT'...                                      [ OK ]
  Rootkit 'T0rn Rootkit'...                                  [ OK ]
  Rootkit 'Trojanit Kit'...                                  [ OK ]
  Rootkit 'Tuxtendo'...                                      [ OK ]
  Rootkit 'URK'...                                          [ OK ]
  Rootkit 'VcKit'...                                        [ OK ]
  Rootkit 'Volc Rootkit'...                                  [ OK ]
  Rootkit 'X-Org SunOS Rootkit'...                          [ OK ]
  Rootkit 'zaRwT.KiT Rootkit'...                            [ OK ]

* Suspicious files and malware
  Scanning for known rootkit strings                        [ OK ]
  Scanning for known rootkit files                          [ OK ]
  Testing running processes...                              [ OK ]
  Miscellaneous Login backdoors                              [ OK ]
  Miscellaneous directories                                  [ OK ]
  Software related files                                    [ OK ]
  Sniffer logs                                              [ OK ]

[Press <ENTER> to continue]


* Trojan specific characteristics
  shv4
    Checking /etc/rc.d/rc.sysinit                            [ Not found ]
    Checking /etc/inetd.conf                                [ Clean ]
    Checking /etc/xinetd.conf                                [ Skipped ]

* Suspicious file properties
  chmod properties
    Checking /bin/ps                                        [ Clean ]
    Checking /bin/ls                                        [ Clean ]
    Checking /usr/bin/w                                      [ Clean ]
    Checking /usr/bin/who                                    [ Clean ]
    Checking /bin/netstat                                    [ Clean ]
    Checking /bin/login                                      [ Clean ]
  Script replacements
    Checking /bin/ps                                        [ Clean ]
    Checking /bin/ls                                        [ Clean ]
    Checking /usr/bin/w                                      [ Clean ]
    Checking /usr/bin/who                                    [ Clean ]
    Checking /bin/netstat                                    [ Clean ]
    Checking /bin/login                                      [ Clean ]

* OS dependant tests

  Linux
    Checking loaded kernel modules...                        [ OK ]
    Checking files attributes                                [ OK ]
    Checking LKM module path                                [ OK ]


Networking
* Check: frequently used backdoors
  Port 2001: Scalper Rootkit                                  [ OK ]
  Port 2006: CB Rootkit                                      [ OK ]
  Port 2128: MRK                                              [ OK ]
  Port 14856: Optic Kit (Tux)                                [ OK ]
  Port 47107: T0rn Rootkit                                    [ OK ]
  Port 60922: zaRwT.KiT                                      [ OK ]

* Interfaces
    Scanning for promiscuous interfaces                      [ OK ]

[Press <ENTER> to continue]



System checks
* Allround tests
  Checking hostname... Found. Hostname is glitch
  Checking for passwordless user accounts... OK
  Checking for differences in user accounts...                      [ NA ]
  Checking for differences in user groups... Creating file It seems this is your first time.
  Checking boot.local/rc.local file...
    - /etc/rc.local                                          [ Not found ]
    - /etc/rc.d/rc.local                                    [ Not found ]
    - /usr/local/etc/rc.local                                [ Not found ]
    - /usr/local/etc/rc.d/rc.local                          [ Not found ]
    - /etc/conf.d/local.start                                [ Not found ]
    - /etc/init.d/boot.local                                [ Not found ]
  Checking rc.d files...                                    [ Not found ]
  Checking history files
    Bourne Shell                                            [ OK ]

* Filesystem checks
  Checking /dev for suspicious files...                      [ OK ]
  Scanning for hidden files...                              [ Warning! ]
---------------
/dev/.udevdb /etc/.pwd.lock
---------------
Please inspect:  /dev/.udevdb (directory)

[Press <ENTER> to continue]



Application advisories
* Application scan
  Checking Apache2 modules ...                              [ OK ]
  Checking Apache configuration ...                          [ OK ]

* Application version scan
  - GnuPG 1.2.5                                              [ OK ]
  - OpenSSL 0.9.7e                                          [ OK ]
  - Procmail MTA 3.22                                        [ OK ]
  - ProFTPd 1.2.10                                          [ OK ]
  - OpenSSH [unknown]                                        [ OK ]



Security advisories
* Check: Groups and Accounts
  Searching for /etc/passwd...                              [ Found ]
  Checking users with UID '0' (root)...                      [ OK ]

* Check: SSH
  Searching for sshd_config...
  Found /etc/ssh/sshd_config
  Checking for allowed root login...                        [ OK (Remote root login permitted by explicit option) ]
  Checking for allowed protocols...                          [ OK (Only SSH2 allowed) ]

* Check: Events and Logging
  Search for syslog configuration...                        [ OK ]
  Checking for running syslog slave...                      [ OK ]
  Checking for logging to remote system...                  [ OK (no remote logging) ]

[Press <ENTER> to continue]



---------------------------- Scan results ----------------------------

MD5
MD5 compared: 0
Incorrect MD5 checksums: 0

File scan
Scanned files: 342
Possible infected files: 0

Application scan
Vulnerable applications: 0

Scanning took 120 seconds

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

Do you have some problems, undetected rootkits, false positives, ideas
or suggestions?
Please e-mail me by filling in the contact form (@http://www.rootkit.nl)

-----------------------------------------------------------------------
glitch:/home/brad/Desktop/hackz/rk_detect/rkhunter#


http://www.rootkit.nl/projects/rootkit_hunter.html <- domain looks really familar, so this may have been posted before .... :/

http://downloads.rootkit.nl/rkhunter-1.2.1.tar.gz

Compiled w/o any problems, comes with its own SH installer

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.