Hunting for rootkits |
Security - Security Tools |
Rootkit HunterRootkit Hunter performs a more comprehensive check than chkrootkit, and takes somewhat longer to run. If your distro's package repository doesn't have it, you can download it from the author's website. Verify the file with the md5sum command. To perform a check of your system, enter:
To update Rootkit Hunter, enter:
rkhunter --update
List scans that it performs.
rkhunter - -list
rkhunter - -propupd In order to run rkhunter as a cron job, or without user input, you must make a few modifications. Other wise, during the course of its scan, it will stop several times and ask the user to press "Enter". Use the command:
Email Your Account
This is the message you will receive is there is a problem.
False Positives You may have to uncomment lines in the rkhunter.conf file to allow for some hidden directories.
#ALLOWHIDDENDIR=/etc/.java ALLOWHIDDENDIR=/dev/.udev #ALLOWHIDDENDIR=/dev/.udevdb #ALLOWHIDDENDIR=/dev/.udev.tdb ALLOWHIDDENDIR=/dev/.static ALLOWHIDDENDIR=/dev/.initramfs #ALLOWHIDDENDIR=/dev/.SRC-unix
Install rkhunter
Step #1 - Uncompress and Untar the Program
tar zxvf rkhunter-1.3.0.tar.gz
Step #2 - Enter the New Directory and Install the Program
cd rkhunter ./installer.sh
Step #3 - Run the Program
rkhunter -c
Rootkit Hunter 1.3.0 is running
Determining OS... Ready
Checking binaries * Selftests Strings (command) [ OK ]
* System tools Performing 'known bad' check... /bin/cat [ OK ] /bin/chmod [ OK ] ---cut---
---------------------------- Scan results ---------------------------- MD5 MD5 compared: 0 Incorrect MD5 checksums: 0
File scan Scanned files: 342 Possible infected files: 0
Application scan Vulnerable applications: 1
Scanning took 163 seconds -----------------------------------------------------------------------
Copyright CyberMontana Inc. and BeginLinux.com
All rights reserved. Cannot be reproduced without written permission. Box 1262 Trout Creek, MT 59874
|