Docs / Security / How to Scan for Rootkits with rkhunter

How to Scan for Rootkits with rkhunter

By Admin · Feb 25, 2026 · Updated Apr 24, 2026 · 357 views · 1 min read

rkhunter scans your system for rootkits, backdoors, and other malware.

Install

apt install rkhunter -y

Update and Scan

rkhunter --update
rkhunter --check

Automated Scans

Run weekly via cron:

crontab -e
# Add:
0 3 * * 0 /usr/bin/rkhunter --check --cronjob --report-warnings-only | mail -s "rkhunter report" admin@example.com

Handle False Positives

After reviewing warnings, update the baseline:

rkhunter --propupd

Was this article helpful?