Skip to main content

Rootkit Hunter

Install Rootkit Hunter​

dnf install -y rkhunter
# update rkunter database
rkhunter --update
# update file properties database
rkhunter --propupd

Configure Email Address for Warnings​

/etc/rkhunter.conf
MAIL-ON-WARNING=<your-email-address>

Run an Update and Check​

rkhunter --update --check --skip-keypress

Cron Job​

Run crontab -e

0 2 * * * /usr/bin/rkhunter --update --check --skip-keypress --cronjob --nocolors

Optionally, you can use taskset and nice to run the cron job with low priority.

0 2 * * * taskset -c 0 nice -n 19 ionice -c3 /usr/bin/--update --check --skip-keypress --cronjob --nocolors

View Logs​

tail -f /var/log/rkhunter/rkhunter.log