Forensicsrootkitdetectorscannermalwaresecurity

chkrootkit

chkrootkit is a rootkit detector that searches for signs of over 70 different rootkits on Linux systems. It provides automated scanning but requires human judgment for final verification.

Description

The chkrootkit security scanner searches for signs that the system is infected with a 'rootkit'. Rootkits are a form of malware that seek to exploit security flaws to grant unauthorised access to a computer or its services, generally for malicious purposes. chkrootkit can identify signs of over 70 different rootkits.

Please note that an automated tool like chkrootkit can never guarantee a system is uncompromised. Nor does every report always signify a genuine problem: human judgement and further investigation will always be needed to assure the security of your system.

chkrootkit includes additional utilities like chklastlog (checks lastlog for deleted entries), chkwtmp (checks wtmp for deleted entries), and chkrootkit-daily (runs chkrootkit daily via cron/systemd and emails results).

How It Works

chkrootkit performs signature-based detection for known rootkit indicators across system files, processes, and logs. It checks for common rootkit hiding techniques including modified binaries, hidden processes, and log tampering. chklastlog compares /var/log/wtmp against /var/log/lastlog to detect users with logins but no lastlogin info. chkwtmp scans /var/log/wtmp for overwritten null-byte entries indicating deletions.

Installation

bash
sudo apt install chkrootkit

Flags

-hshow this help and exit
-Vshow version information and exit
-lshow available tests and exit
-ddebug
-qquiet mode
-xexpert mode
-e 'FILE1 FILE2'exclude files/dirs from results. Must be followed by a space-separated list of files/dirs. Read /usr/share/doc/chkrootkit/README.FALSE-POSITIVES first.

Examples

Show usage help and available options
chkrootkit -h
Display version information
chkrootkit -V
List all available tests
chkrootkit -l
Scan the system for signs of rootkits
chkrootkit
Check lastlog file for deleted entries
chklastlog
Check wtmp file for deleted entries
chkwtmp
Run chkrootkit and report results via email (for cron/systemd)
chkrootkit-daily
Updated 2026-04-16kali.org ↗