Knowledge Base
MilesWeb / Web Hosting FAQ

How To Install Chkrootkit Security Scanner On Ubuntu 18.04

Approx. read time : 3 min

Brief About Chkrootkit

Chkrootkit is also known as Check Rootkit. It is a common Unix-based security scanner that allows you to detect rootkits on your system. Chkrootkit consists of a shell script that looks after various security issues and system binaries for rootkit modification.

This tutorial explains how to install and configure Chkrootkit on MilesWeb Cloud Elastic Compute Service (ECS) Ubuntu 18.04 server.

Prerequisites

  • MilesWeb Cloud Instance with Ubuntu 18.04 installed.
  • Your instance needs to have a root password.

First of all, create a new ECS instance and connect to your instance as the root user.

If you don’t know how to do it, let the MilesWeb support team help you with it.

After it, log into your Ubuntu 18.04 instance and run the following command.

This command will update your base system with the latest available packages.

Install Chkrootkit

Remember by default, Chkrootkit is available in the Ubuntu 18.04 default repository. So, to install it just run the below command :

Once the installation is done, you can check the version of Chkrootkit using following command :

Output will be :

To list out the options available with Chkrootkit use the following command :

Run the following command to list all the available tests with Chkrootkit :

Use Chkrootkit

Now, run the following command to run the Chkrootkit test :

The output will be as shown below. If any of the output shows as infected, then you will need to check :

To list the output message with only ‘infected’ status, run Chkrootkit with -q option :

Output :

Run the following command to check all the files under the specified directory :

Enable the Schedule Check

Chkrootkit consists of a default crontab configuration file. The daily checkup can be enabled by /etc/chkrootkit.conf file.

Now, change this line from –

to –

Once you are done with all the processes, Save and Close the file.

That’s it!

This way you can successfully install and use Chkrootkit on Ubuntu 18.04 server. It also enables you to easily find any infected files on your system using Chkrootkit.

Also Read :

Installing PIP on Ubuntu 18.04

How To Install the Latest MySQL on Ubuntu 18.04?

Discover the Steps to Install PostgreSQL on Ubuntu 18.04

Sonam Wagh
With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.
Need help? We’re always here for you.
Register Your Free Domain Name
OFFER EXPIRES IN
04
min
59
sec