$linuxjunkies
>

rkhunter(8)

rkhunter is a rootkit and malware scanner that searches for hidden processes, backdoors, and suspicious files on Linux systems.

UbuntuDebianFedoraArch

Synopsis

rkhunter [OPTION]... [FILE]...

Description

rkhunter (Rootkit Hunter) is a security scanning tool that checks for signs of rootkits, backdoors, and other malware on Linux and Unix systems. It performs checks against known malware signatures, suspicious file permissions, hidden processes, and system vulnerabilities.

The scanner can be run in interactive mode or as an automated check, making it suitable for both manual security audits and scheduled monitoring via cron jobs. Results are logged and can be reported to administrators.

Common options

FlagWhat it does
--checkRun all checks on the system; the primary scanning mode
--updateUpdate the rootkit database and malware signatures
--propupdUpdate the file properties database for baseline comparisons
-l, --logfile FILEWrite output to specified log file instead of stdout
-r, --reportGenerate a report of previous scan results
-q, --quietRun in quiet mode, suppress normal output
--cronjobRun in cron mode (non-interactive, minimal output)
-x, --skip-keypressRun without waiting for key presses between screens
--enable OPTIONEnable a specific check option (e.g., --enable all)
--disable OPTIONDisable a specific check option to skip it
--config FILEUse alternate configuration file instead of default

Examples

Run a complete system scan without waiting for key presses between screens

rkhunter --check --skip-keypress

Update the malware signature database to the latest version

rkhunter --update

Perform a scan in quiet mode and save all output to a log file

rkhunter --check --quiet --logfile /var/log/rkhunter.log

Run rkhunter from cron with minimal output, suitable for scheduled security audits

rkhunter --cronjob --logfile /var/log/rkhunter-cron.log 2>&1

Display a report of the last scan results

rkhunter --report

Run all checks except the suspicious files check

rkhunter --check --enable all --disable suspicious.files

Update the file properties database for future baseline comparisons

rkhunter --propupd

Related commands