Linux · System Tools
rkhunter
Rootkit Hunter is a command-line tool that scans Linux systems for signs of rootkits, backdoors, and trojans.
- License
- GPL-2.0
- Latest version
- 1.4.6
What is rkhunter?
Rootkit Hunter, or rkhunter, is a well-established security utility designed to detect rootkits, local exploits, and suspicious files. It operates by comparing file hashes and strings against known good versions, checking for hidden processes, and scanning for common malware signatures. While it has been around for many years, its development pace has slowed, making it a stable but less frequently updated tool compared to some modern alternatives. It is not a real-time antivirus but a periodic scanner that you run manually or via cron jobs to audit your system's integrity.
This tool is best suited for system administrators, security-conscious users, and anyone managing servers or workstations who want an additional layer of defense beyond standard monitoring. It is particularly useful in environments where you need to verify that system binaries have not been tampered with. Since it runs from the command line, it requires some familiarity with Linux terminal operations. It is not intended for casual users who prefer graphical interfaces, nor is it a replacement for a full-fledged intrusion detection system.
Compared to Windows Defender or Malwarebytes, rkhunter feels much more raw and technical. There is no GUI, no background service running constantly, and no automatic quarantine of files. Instead, you run it, read the text output, and interpret the results yourself. It is less "set and forget" and more "periodic audit." You will not see pop-ups or real-time blocks; you will see a log of potential issues that require your judgment to resolve.
Best for: System administrators who need a periodic, command-line audit tool to check for rootkits and system integrity issues.
Key features of rkhunter
- Scans for known rootkit signatures and hidden files
- Verifies MD5 and SHA1 hashes of critical system binaries
- Checks for suspicious strings in system files
- Detects hidden processes and modified kernel modules
- Scans for local exploits and backdoors
- Generates detailed text-based reports for analysis
- Supports scheduled scans via cron jobs
Pros
- Lightweight and low resource usage
- Open source and free
- Effective at detecting known rootkits
- Simple to install on most distributions
Cons
- Command-line only, no graphical interface
- Not a real-time protection tool
- Can produce false positives that require manual verification
- Development is slow or infrequent
Windows programs rkhunter replaces
How to install rkhunter on Linux
sudo apt install rkhuntersudo apt install rkhuntersudo dnf install rkhuntersudo pacman -S rkhunterTips for Windows users
Coming from Windows Defender or Malwarebytes, you will need to adjust your expectations. There is no system tray icon or real-time scanning. You will likely set up a cron job to run rkhunter weekly or monthly. When you run it, read the output carefully; it lists files and hashes that differ from expected values. You will need to manually investigate these entries to determine if they are false positives or actual threats. There is no automatic quarantine; you must decide whether to delete or restore files based on your analysis.
rkhunter: frequently asked questions
Is rkhunter a real-time antivirus?
No, rkhunter is not a real-time antivirus. It is a scanner that you run periodically to check for signs of compromise. It does not monitor files in the background or block threats as they occur.
What should I do if rkhunter reports a warning?
First, verify if the file is a known false positive. Check the file's hash against a trusted source or your package manager's database. If it is a legitimate modification, you can add it to the whitelist. If it is suspicious, investigate further or restore the file from a backup.
Can rkhunter replace Windows Defender?
No, rkhunter is not a direct replacement for Windows Defender. It focuses on rootkits and system integrity, while Defender provides real-time protection, firewall integration, and broader malware detection. On Linux, you might use rkhunter alongside other tools like ClamAV for a more comprehensive setup.
How often should I run rkhunter?
It is recommended to run rkhunter at least once a week or after major system updates. You can schedule this using cron to ensure regular scans without manual intervention.
Updated