How To Install RKHunter
“Rootkit scanner is scanning tool to ensure you for about 99.9%* you’re clean of nasty tools.
This tool scans for rootkits, backdoors and local exploits by running tests like:
- MD5 hash compare
- Look for default files used by rootkits
- Wrong file permissions for binaries
- Look for suspected strings in LKM and KLD modules
- Look for hidden files
- Optional scan within plaintext and binary files
Rootkit Hunter is released as GPL licensed project and free for everyone to use.
* No, not really 99.9%.. It’s just another security layer”
“www.rootkit.nl”
RKhunter is compatible with the most popular Hosting Control Panels like cPanel, Directadmin, Plesk etc.
Install Rkhunter:
- Login to your server via SSH as root.
- Download RKHunter Version 1.3.4
wget http://files.123tweak.com/rkhunter-1.3.4.tar.gz - Extract files
tar -xzvf rkhunter-1.3.4.tar.gz - Change into the rkhunter directory:
cd rkhunter-1.3.4 - Install RKHunter
./installer.sh - Now you can run a test scan with the following command:
/usr/local/bin/rkhunter -c - Lets setup RKHunter to e-mail you you daily scan reports.
nano /etc/cron.daily/rkhunter.sh
Add the following replacing your email address:
#!/bin/bash
(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "Daily Rkhunter Scan Report" youremail@domain.com)
then
chmod +x /etc/cron.daily/rkhunter.sh
Updating RKHunter
Gets the latest database updates from their central server and matches your OS better to prevent false positives.
rkhunter --update