{"id":1125,"date":"2018-10-28T16:49:06","date_gmt":"2018-10-28T13:49:06","guid":{"rendered":"http:\/\/kifarunix.com\/?p=1125"},"modified":"2024-03-11T19:55:45","modified_gmt":"2024-03-11T16:55:45","slug":"how-to-install-rkhunter-rootkit-hunter-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-rkhunter-rootkit-hunter-on-ubuntu-18-04\/","title":{"rendered":"How to Install RKHunter (RootKit Hunter) On Ubuntu 18.04"},"content":{"rendered":"\n

In this tutorial, you will learn how to install RKHunter (RootKit Hunter) On Ubuntu 18.04. RootKit Hunter<\/a> is a Unix-based shell script that can scan the local system for rootkits, backdoors and possible local exploits. It does this by comparing the SHA-1 hashes of the local files with the known good hashes in an online database.<\/p>\n\n\n\n

It can also monitor the local system commands, startup files, network interfaces for any alteration as well as listening applications.<\/p>\n\n\n\n

Installing RKHunter On Ubuntu<\/h2>\n\n\n\n

The rkhunter packages is available in standard Ubuntu repositories hence we can install it by running the command below;<\/p>\n\n\n\n

apt update<\/code><\/pre>\n\n\n\n
apt install rkhunter -y<\/code><\/pre>\n\n\n\n

Configure and Use RKHunter<\/h2>\n\n\n\n

Once the installation is done, you need to configure RKHunter before you can use it to scan your system. Therefore open the configuration file, \/etc\/rkhunter.conf<\/code><\/strong>, and make the changes as shown below.<\/p>\n\n\n\n

vim \/etc\/rkhunter.conf<\/code><\/pre>\n\n\n\n

Set the value of UPDATE_MIRRORS<\/code> to 1. This ensures that the mirror files are also checked for updates when checking for rkhunter updated date files with the --update<\/code><\/strong> option.<\/p>\n\n\n\n

UPDATE_MIRRORS=1<\/code><\/strong><\/p>\n\n\n\n

Set the value of  MIRRORS_MODE<\/code> to 0. The MIRRORS_MODE option tells rkhunter which mirrors are to be used when the –update or --versioncheck<\/code><\/strong> command-line options are given. There are three possible values for this;<\/p>\n\n\n\n