Scan for Rootkits with rkhunter
Run a full rootkit, backdoor, and local-exploit scan from the terminal and review the pass/warning summary and log.
01Command
$ sudo rkhunter --update && sudo rkhunter --check --sk02What it does
Rootkit Hunter checks for known rootkit signatures, compares system binaries against known-good hashes, and looks for suspicious hidden files and kernel modules — behaviors typical of a compromised machine. --sk suppresses the 'press Enter' pauses so the scan runs unattended, and the summary at the end lists every warning. Warnings are not proof of compromise: package-managed configs and binaries often trip tests, so read /var/log/rkhunter.log and confirm anything serious against your package manager before acting.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- rkhunter — Debian WikiEvidence: Debian's guidance on configuring rkhunter, expected false positives on packaged systems, and log file location (/var/log/rkhunter.log).
- rkhunter(8) — Linux manual pageEvidence: rkhunter --check scans for rootkits, backdoors and local exploits; --update refreshes detection data; --sk skips keypresses between tests.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.