scanrootkit

chkrootkit, How to Install, Run and Read Its Results on Linux

chkrootkit is a small, free tool that checks a Unix-like system for signs of a rootkit. It is a shell script backed by a handful of C programs, and its site says it has been in use for 25 years. It still gets releases, which is more than can be said for most tools of its age.

What chkrootkit checks

The main script tests whether common system commands have been replaced with trojaned versions. Its test list includes ls, ps, netstat, login, sshd, su, find, top, crontab, syslogd and dozens more. Alongside that, its helper programs check for:

It also has named checks for families such as aliens, bindshell, lkm, sniffer, scalper, slapper and OSX_RSPLUG. Run chkrootkit -l to list every available test.

Current version and maintainers

Item Detail
Latest release 0.60, 11 October 2026 (chkrootkit.org)
Changes in 0.60 chkproc false-positive fixes, general improvements, bug fixes
Authors Nelson Murilo and Klaus Steding-Jessen
Debian 0.58b in Debian 13 (trixie), 0.59 in unstable
Fedora 0.60
Arch Linux Not in the official repositories

If your distribution’s version is older, the package is still worth using for convenience. Newer releases mainly reduce false positives.

Install chkrootkit

Debian and Ubuntu:

sudo apt update
sudo apt install chkrootkit

Fedora:

sudo dnf install chkrootkit

From source, download the tarball from the official site, check it against the published MD5 and GPG signature, then build the helper programs:

tar xzf chkrootkit.tar.gz
cd chkrootkit-0.60
make sense
sudo ./chkrootkit

make sense is the project’s own build target name.

Run it

chkrootkit must run as root. The simplest run performs every test:

sudo chkrootkit

Useful options from the official README:

Option What it does
-q Quiet mode. Only shows results with an infected status
-x Expert mode. Prints suspicious strings found in binaries, for you to analyse
-l Lists the available tests
-r dir Uses dir as the root directory, for checking a mounted disk
-p dir1:dir2 Uses trusted copies of the external commands chkrootkit relies on
-n Skips NFS-mounted directories
-V Shows the version

You can also name specific tests, for example sudo chkrootkit ps ls sniffer.

Do not trust the system’s own tools

chkrootkit uses ordinary commands such as awk, find, ls, netstat, ps and strings to do its work. If those have been replaced, the results can be wrong. Two options from the README address this:

The second is the stronger check, and it is the approach described in Linux rootkit detection and offline rootkit scans.

Reading the results

The README defines five messages:

Message Meaning
INFECTED The test found a command probably modified by a known rootkit
not infected No known rootkit signature found
not found The command to be tested is not installed, so it was skipped
not tested The test was not run, because it is specific to another OS, needs a missing program, or an option like -r prevents it
Vulnerable but disabled The command is infected but not in use, for example not running or commented out in inetd.conf

Most lines on a clean system say not infected or not found. Lots of not found is normal on a modern distribution, since many of the old services chkrootkit tests no longer ship.

When you see INFECTED or a warning

False positives happen, and 0.60’s release notes specifically mention fixes to chkproc false positives. Before you act:

  1. Re-run the single test, for example sudo chkrootkit sshd, to confirm it repeats.
  2. Ask the package manager whether the file is original: dpkg --verify openssh-server on Debian or Ubuntu, rpm -V openssh-server on Fedora.
  3. Run rkhunter for a second opinion.
  4. Update chkrootkit if your version is old, since newer releases remove known false alarms.

If the package manager confirms a replaced binary with no update to explain it, the machine has been compromised by someone with root access. The chkrootkit README is blunt about the fix: reinstall from safe media. How to remove a rootkit explains why, and backdoors covers what attackers usually leave behind.

Scheduling

Debian’s package ships a daily job (a cron script and a systemd timer), configured in /etc/chkrootkit/chkrootkit.conf. On other systems, a root crontab line works:

0 4 * * * /usr/sbin/chkrootkit -q 2>&1 | mail -s "chkrootkit" root

Adjust the path to wherever your distribution installs the binary, and make sure mail to root actually reaches you.

rkhunter vs chkrootkit

chkrootkit rkhunter
Latest release 0.60 (October 2026) 1.4.6 (February 2018)
Language Shell script plus C helpers Shell script
Main method Signature checks on system commands, login-record and interface checks Known rootkit files, stored file-property baseline, config checks
Baseline needed No Yes, --propupd
Remote data updates No, update the program itself --update (disabled by default on Debian)
False positives Fewer, mostly specific tests More, from config and file-property checks
Logging To the screen /var/log/rkhunter.log

chkrootkit is quick and needs no setup. rkhunter’s property baseline catches changes to files that no signature knows about. Running both, on a schedule, is the usual recommendation for Linux servers. Neither is a guarantee against a kernel-level rootkit, which can hide from any tool running on the same kernel; see kernel-mode rootkits.

For Windows and Mac equivalents, see the best rootkit scanners.

Frequently asked questions

What is the latest version of chkrootkit?
Version 0.60, released on 11 October 2026, with fixes for chkproc false positives and other improvements. Distribution packages often lag behind; Debian 13 ships 0.58b and Debian unstable has 0.59.
Who maintains chkrootkit?
Its original authors, Nelson Murilo and Klaus Steding-Jessen, still publish releases on chkrootkit.org. The project's site says it has been helping people for 25 years.
What does "not found" mean in chkrootkit?
The command chkrootkit wanted to test is not installed on your system, so there was nothing to check. It is not a warning.
What should I do if chkrootkit says INFECTED?
Check it before you panic. Confirm the file with your package manager and run rkhunter as a second opinion. If the file really has been replaced, chkrootkit's authors advise reinstalling the machine from safe media, because the attacker had root.
Should I use chkrootkit or rkhunter?
Both. They are free, quick, and use different tests, so running them together catches more than either alone.