chkrootkit, 리눅스 루트킷 검사 프로그램 설치 및 점검 방법
- Uncategorized
- 2014. 9. 3.
chkrootkit, 리눅스 루트킷 검사 프로그램 설치 및 점검 방법
centos 기준으로 루트킷 검사 프로그램 다운로드 후 압축 풀고 검사 까지의 과정이다.
굵은 글씨만 유의해서 보면 된다.
[root@meta ~]# wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
--2014-09-03 04:46:21-- ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
=> `chkrootkit.tar.gz'
Resolving ftp.pangeia.com.br... 187.33.4.179
Connecting to ftp.pangeia.com.br|187.33.4.179|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/seg/pac ... done.
==> SIZE chkrootkit.tar.gz ... 38616
==> PASV ... done. ==> RETR chkrootkit.tar.gz ... done.
Length: 38616 (38K) (unauthoritative)
100%[==========================================================================>] 38,616 93.4K/s in 0.4s
2014-09-03 04:46:23 (93.4 KB/s) - `chkrootkit.tar.gz' saved [38616]
[root@meta ~]# ll
total 40
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# tar xvfz chkrootkit.tar.gz
chkrootkit-0.50
chkrootkit-0.50/chkproc.c
chkrootkit-0.50/COPYRIGHT
chkrootkit-0.50/README.chkwtmp
chkrootkit-0.50/chkutmp.c
chkrootkit-0.50/chkwtmp.c
chkrootkit-0.50/ifpromisc.c
chkrootkit-0.50/strings.c
chkrootkit-0.50/chklastlog.c
chkrootkit-0.50/chkrootkit.lsm
chkrootkit-0.50/check_wtmpx.c
chkrootkit-0.50/chkdirs.c
chkrootkit-0.50/Makefile
chkrootkit-0.50/README
chkrootkit-0.50/README.chklastlog
chkrootkit-0.50/ACKNOWLEDGMENTS
chkrootkit-0.50/chkrootkit
[root@meta ~]# ll
total 44
drwxr-xr-x 2 root wheel 4096 May 21 07:24 chkrootkit-0.50
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# cd chkrootkit
-bash: cd: chkrootkit: No such file or directory
[root@meta ~]# ll
total 44
drwxr-xr-x 2 root wheel 4096 May 21 07:24 chkrootkit-0.50
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# ll
total 44
drwxr-xr-x 2 root wheel 4096 May 21 07:24 chkrootkit-0.50
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# cd chkrootkit-0.50/
[root@meta chkrootkit-0.50]# ll
total 184
-r--r--r-- 1 root wheel 4366 May 21 07:33 ACKNOWLEDGMENTS
-r--r--r-- 1 root wheel 1343 Dec 25 2013 COPYRIGHT
-r--r--r-- 1 root wheel 1635 May 6 05:56 Makefile
-r--r--r-- 1 root wheel 14478 Dec 31 2013 README
-r--r--r-- 1 root wheel 1323 Dec 25 2013 README.chklastlog
-r--r--r-- 1 root wheel 1292 Dec 25 2013 README.chkwtmp
-r--r--r-- 1 root wheel 7195 Dec 25 2013 check_wtmpx.c
-r--r--r-- 1 root wheel 7126 Mar 31 16:06 chkdirs.c
-r--r--r-- 1 root wheel 7855 May 6 06:12 chklastlog.c
-r--r--r-- 1 root wheel 9742 Dec 25 2013 chkproc.c
-rwxr-xr-x 1 root wheel 77483 May 21 07:28 chkrootkit
-r--r--r-- 1 root wheel 582 May 21 07:28 chkrootkit.lsm
-r--r--r-- 1 root wheel 5594 Dec 25 2013 chkutmp.c
-r--r--r-- 1 root wheel 2299 May 6 06:13 chkwtmp.c
-r--r--r-- 1 root wheel 8892 May 21 07:23 ifpromisc.c
-r--r--r-- 1 root wheel 2484 May 6 06:17 strings.c
[root@meta chkrootkit-0.50]# ./chkrootkit
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 `crontab'... 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 tested
Checking `inetdconf'... not found
Checking `identd'... not found
Checking `init'... not infected
Checking `killall'... not infected
Checking `ldsopreload'... can't exec ./strings-static, not tested
Checking `login'... not infected
Checking `ls'... not infected
Checking `lsof'... not infected
Checking `mail'... not infected
Checking `mingetty'... not infected
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 LOC rootkit... nothing found
Searching for Romanian rootkit... nothing found
Searching for HKRK 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 Fu rootkit default files... nothing found
Searching for ESRK rootkit default files... nothing found
Searching for rootedoor... nothing found
Searching for ENYELKM rootkit default files... nothing found
Searching for common ssh-scanners default files... nothing found
Searching for Linux/Ebury - Operation Windigo ssh... nothing found
Searching for 64-bit Linux Rootkit ... nothing found
Searching for 64-bit Linux Rootkit modules... nothing found
Searching for suspect PHP files... nothing found
Searching for anomalies in shell history files... nothing found
Checking `asp'... not infected
Checking `bindshell'... not infected
Checking `lkm'... not tested: can't exec
Checking `rexedcs'... not found
Checking `sniffer'... not tested: can't exec ./ifpromisc
Checking `w55808'... not infected
Checking `wted'... not tested: can't exec ./chkwtmp
Checking `scalper'... not infected
Checking `slapper'... not infected
Checking `z2'... not tested: can't exec ./chklastlog
Checking `chkutmp'... not tested: can't exec ./chkutmp
Checking `OSX_RSPLUG'... not infected
[root@meta chkrootkit-0.50]# cd
[root@meta ~]#
--2014-09-03 04:46:21-- ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
=> `chkrootkit.tar.gz'
Resolving ftp.pangeia.com.br... 187.33.4.179
Connecting to ftp.pangeia.com.br|187.33.4.179|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/seg/pac ... done.
==> SIZE chkrootkit.tar.gz ... 38616
==> PASV ... done. ==> RETR chkrootkit.tar.gz ... done.
Length: 38616 (38K) (unauthoritative)
100%[==========================================================================>] 38,616 93.4K/s in 0.4s
2014-09-03 04:46:23 (93.4 KB/s) - `chkrootkit.tar.gz' saved [38616]
[root@meta ~]# ll
total 40
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# tar xvfz chkrootkit.tar.gz
chkrootkit-0.50
chkrootkit-0.50/chkproc.c
chkrootkit-0.50/COPYRIGHT
chkrootkit-0.50/README.chkwtmp
chkrootkit-0.50/chkutmp.c
chkrootkit-0.50/chkwtmp.c
chkrootkit-0.50/ifpromisc.c
chkrootkit-0.50/strings.c
chkrootkit-0.50/chklastlog.c
chkrootkit-0.50/chkrootkit.lsm
chkrootkit-0.50/check_wtmpx.c
chkrootkit-0.50/chkdirs.c
chkrootkit-0.50/Makefile
chkrootkit-0.50/README
chkrootkit-0.50/README.chklastlog
chkrootkit-0.50/ACKNOWLEDGMENTS
chkrootkit-0.50/chkrootkit
[root@meta ~]# ll
total 44
drwxr-xr-x 2 root wheel 4096 May 21 07:24 chkrootkit-0.50
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# cd chkrootkit
-bash: cd: chkrootkit: No such file or directory
[root@meta ~]# ll
total 44
drwxr-xr-x 2 root wheel 4096 May 21 07:24 chkrootkit-0.50
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# ll
total 44
drwxr-xr-x 2 root wheel 4096 May 21 07:24 chkrootkit-0.50
-rw-r--r-- 1 root root 38616 Sep 3 04:46 chkrootkit.tar.gz
[root@meta ~]# cd chkrootkit-0.50/
[root@meta chkrootkit-0.50]# ll
total 184
-r--r--r-- 1 root wheel 4366 May 21 07:33 ACKNOWLEDGMENTS
-r--r--r-- 1 root wheel 1343 Dec 25 2013 COPYRIGHT
-r--r--r-- 1 root wheel 1635 May 6 05:56 Makefile
-r--r--r-- 1 root wheel 14478 Dec 31 2013 README
-r--r--r-- 1 root wheel 1323 Dec 25 2013 README.chklastlog
-r--r--r-- 1 root wheel 1292 Dec 25 2013 README.chkwtmp
-r--r--r-- 1 root wheel 7195 Dec 25 2013 check_wtmpx.c
-r--r--r-- 1 root wheel 7126 Mar 31 16:06 chkdirs.c
-r--r--r-- 1 root wheel 7855 May 6 06:12 chklastlog.c
-r--r--r-- 1 root wheel 9742 Dec 25 2013 chkproc.c
-rwxr-xr-x 1 root wheel 77483 May 21 07:28 chkrootkit
-r--r--r-- 1 root wheel 582 May 21 07:28 chkrootkit.lsm
-r--r--r-- 1 root wheel 5594 Dec 25 2013 chkutmp.c
-r--r--r-- 1 root wheel 2299 May 6 06:13 chkwtmp.c
-r--r--r-- 1 root wheel 8892 May 21 07:23 ifpromisc.c
-r--r--r-- 1 root wheel 2484 May 6 06:17 strings.c
[root@meta chkrootkit-0.50]# ./chkrootkit
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 `crontab'... 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 tested
Checking `inetdconf'... not found
Checking `identd'... not found
Checking `init'... not infected
Checking `killall'... not infected
Checking `ldsopreload'... can't exec ./strings-static, not tested
Checking `login'... not infected
Checking `ls'... not infected
Checking `lsof'... not infected
Checking `mail'... not infected
Checking `mingetty'... not infected
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 LOC rootkit... nothing found
Searching for Romanian rootkit... nothing found
Searching for HKRK 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 Fu rootkit default files... nothing found
Searching for ESRK rootkit default files... nothing found
Searching for rootedoor... nothing found
Searching for ENYELKM rootkit default files... nothing found
Searching for common ssh-scanners default files... nothing found
Searching for Linux/Ebury - Operation Windigo ssh... nothing found
Searching for 64-bit Linux Rootkit ... nothing found
Searching for 64-bit Linux Rootkit modules... nothing found
Searching for suspect PHP files... nothing found
Searching for anomalies in shell history files... nothing found
Checking `asp'... not infected
Checking `bindshell'... not infected
Checking `lkm'... not tested: can't exec
Checking `rexedcs'... not found
Checking `sniffer'... not tested: can't exec ./ifpromisc
Checking `w55808'... not infected
Checking `wted'... not tested: can't exec ./chkwtmp
Checking `scalper'... not infected
Checking `slapper'... not infected
Checking `z2'... not tested: can't exec ./chklastlog
Checking `chkutmp'... not tested: can't exec ./chkutmp
Checking `OSX_RSPLUG'... not infected
[root@meta chkrootkit-0.50]# cd
[root@meta ~]#