The Wayback Machine - https://web.archive.org/web/20240706084055/https://www.geeksforgeeks.org/detecting-and-checking-rootkits-with-chkrootkit-and-rkhunter-tool-in-kali-linux/
Open In App

Detecting and Checking Rootkits with Chkrootkit and rkhunter Tool in Kali Linux

Last Updated : 24 Jun, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

In this article, we are going to see how to Detect and Check Rootkits with Chkrootkit and rkhunter in Kali Linux.

Method 1: Using chkrootkit

chkrootkit: It is a free and open-source antivirus tool available on GitHub. This tool checks locally in the binary system of your machine and scans your Linux server for a trojan. chkrootkit is a shell script which checks system binaries for rootkit modification.  This tool is used for scanning botnets, rootkits, malware, etc. This tool is completely tested on  Linux 2.0.x, 2.2.x, 2.4.x, 2.6.x, and 3.x.x, FreeBSD 2.2.x, 3.x, 4.x, 5.x and 7.x, OpenBSD 2.x, 3.x and 4.x., NetBSD 1.6.x, Solaris 2.5.1, 2.6, 8.0 and 9.0, HP-UX 11, Tru64, BSDI and Mac OS X. This tool comes under General Public License (GPL). 

Installation:

Step 1: Open your kali Linux operating system and use the following command to install the tool.

git clone https://github.com/Magentron/chkrootkit.git
cd chkrootkit
ls

Detecting / Checking Rootkits with Chkrootkit and rkhunter in Kali Linux

Step 2: Now use the following command to run the tool.

./chkrootkit

Detecting / Checking Rootkits with Chkrootkit and rkhunter in Kali Linux

The tool has started checking whether the files are infected or not. in a similar way, you can also download and scan your local machine for trojans. This tool only works on Linux or Linux distributions.

Method 2: Using Rk-hunter

rkhunter: It (Rootkit Hunter) is a free and open-source Unix-based tool that scans for rootkits. This tool can be used for backdoors and possible local exploits. This tool rkhunter is a shell script which carries out various checks on the local system to try and detect known rootkits and malware. 

Installation:

Step 1: Download and install the tool using the following command.

wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.6/rkhunter-1.4.6.tar.gz

Detecting / Checking Rootkits with Chkrootkit and rkhunter in Kali Linux

Step 2: Use the following command to unzip the tool.

tar -xvf rkhunter-1.4.6.tar.gz

Detecting / Checking Rootkits with Chkrootkit and rkhunter in Kali Linux

Step 3: Use the following command to run the tool.

rkhunter --check

Detecting / Checking Rootkits with Chkrootkit and rkhunter in Kali Linux

The tool has started checking whether the files are infected or not. Similarly, you can also download and scan your local machine for trojans. This tool only works in Linux or Linux distributions.



Similar Reads

How to Install Rkhunter Tool in Kali Linux ?
Rkhunter (Rootkit Hunter) is a good fit for POSIX systems and can aid in the discovery of rootkits and other security flaws. Rkhunter fully examines files (both hidden and visible), default directories, kernel modules, and permissions that have been mishandled. RootKit Hunter is another alternative to chkrootkit. It's also a good complement since i
3 min read
How to Install Chkrootkit Tool in Kali Linux ?
The chkrootkit security scanner is a popular security tool that allows administrators to check the local system for evidence of a rootkit infection. A rootkit is a malicious application that may get access to a computer system without the user's knowledge. This implies that the rootkit may execute files and change system configurations on the targe
3 min read
Webkiller v2.0 - Tool Information Gathering tool in Kali Linux
Webkiller is a free and open-source tool available on GitHub. Webkiller is used as an information-gathering tool. Webkiller is used to scan websites for information gathering and finding vulnerabilities in websites and webapps. The whois data collection gives us information about Geoip lookup, Banner grabbing, DNS lookup, port scanning, sub-domain
3 min read
Cewl Tool - Creating Custom Wordlists Tool in Kali Linux
In this article, we will see how to create a wordlist with the Kali Linux tool Cewl and what options are available in this post. Cewl is a Ruby program that crawls a URL to a defined depth, optionally following external links, and produces a list of keywords that password crackers such as John the Ripper can use to crack passwords. can. FAB (Files
4 min read
Tool-X - Hacking Tool Installer in Kali Linux
Tool-X is a free and open-source tool written in python that is available on GitHub. Tool-X is used by security researchers and pen-testers in the early stages of reconnaissance and pen-testing. It is an installer framework for Kali Linux that has approximately 300 tools available on its menu. It will provide a command-line user interface that you
2 min read
Kali-Whoami - Stay anonymous on Kali Linux
In today's life, we are surrounded by a lot of cyber security tools and we talk about our online anonymity, but are we really anonymous? A single mistake can reveal our anonymity, so here is a tool that can help us to make anonymity possible and it is called WHOAMI. It is very useful and has a very simple UI. Note: if you are a parrot user then you
3 min read
Anubis - Subdomain enumeration and information gathering tool in Kali Linux
Anubis is a tool for information gathering. This tool is very useful in the initial phases of penetration testing. The main technique used to find subdomain using many modules is to target bruteforce with an improved wordlist Anubis is a free and open-source tool available on GitHub. This tool is free means you can download and use this tool free o
2 min read
ClamAV and ClamTk Antivirus Scanner Tool for Kali Linux
Malware, viruses, and Trojans are uncommon in Linux, although they are not unheard of. So, if you just require an antivirus once in a while, ClamAV is a great option. ClamAV is a free antivirus program that may be used for email scanning, online scanning, and endpoint security. It includes a multi-threaded daemon that is versatile and scalable, a c
6 min read
Red Hawk - Information Gathering and Vulnerability Scanning Tool in Kali Linux
Red Hawk is a free and open-source tool available on GitHub. Red Hawk is used to scanning websites for information gathering and finding vulnerabilities. Red Hawk is written in PHP. It uses PHP script to do reconnaissance. Red Hawk is so powerful that it can detect content management system while scanning, it can detect IP address, it can detect we
4 min read
Yuki Chan - Automated Penetration Testing and Auditing Tool in Kali Linux
Yuki Chan is a free and open-source tool available on GitHub. Yuki Chan is an Automated Penetration Testing tool. This tool is very useful for security researchers. Yuki Chan is used for information gathering and testing of the security of websites and web servers. Yuki Chan is the easiest and one of the best tools for penetration testing. Yuki Cha
4 min read