chkrootkit(8)
β¨ NAME β¨
okay so bestie, this is chkrootkit(8) β the manual page for the tool that scans your system for signs of rootkits, and honestly? it's giving security-bestie energy. π
πΈ SYNOPSIS πΈ
chkrootkit [OPTIONS] [TEST...]
π¦ DESCRIPTION π¦
So chkrootkit examines the target system for signs that it has been tampered with. Lowkey detective work, fr fr. π
Some tools which chkrootkit uses can be found in /usr/lib/chkrootkit. That's where the little helper besties live. π β¨
π OPTIONS π
Okay so first, a very important heads-up: unlike usual programmes, options cannot be 'combined', so you need to write -q -n instead of -qn. No smooshing them together, she needs her space. π
ββοΈ
-qβ Enter quiet mode. This suppresses output of tests that find nothing suspicious. Basically "if you have nothing shady to report, say nothing." β¨-xβ Enter expert mode. This makes many tests produce additional output showing what they have found. She's spilling everything now. π-dβ Enter debug mode. This shows exactly whatchkrootkitis doing at every step (it includes runningchkrootkitwithset -x). Max transparency, no secrets. π-e "FILE1[ FILE2...]"β Exclude listed files from the results of some tests. The list should be space-separated (which will generally require quoting when run from a shell). You can also specify-eseveral times. Use this to remove false positives from the result of many tests β see/usr/share/doc/chkrootkit/README.FALSE-POSITIVES.gz. Not everything suspicious is actually suspicious, bestie, sometimes it's just your weird little file. π-s REGEXPβ Similar to-ebut only applies to the result of the sniffer test. This test will class standard network managers likesystemd-networkd(1),NetworkManager(1)orwpa_supplicant(1)as packet sniffers. You can remove such messages from the output with something likechkrootkit -s '(systemd-networkd|NetworkManager|wpa_supplicant)'(you may want to use a more precise regular expression, see/etc/chkrootkit/chkrootkit.conf). The argument can be any regular expression understood byegrep(1)and is applied to every line of the output of theifpromisctest. Regex girlies, this one's for you. π§-p DIR1[:DIR2...]β Specify an alternative$PATH.chkrootkitassumes that standard programmes, likefind(1)andgrep(1), are uncompromised. The intention is that you place trusted copies of such binaries where they cannot be modified and invoke with something likechkrootkit -p /media/usb. Trusted binaries only, no suspicious randos. π‘οΈ-r DIRβ Use DIR as the root directory. For example, you might mount a compromised disk on an uncompromised system and runchkrootkit -r /mnt. Investigating your messy ex from a safe distance, iconic. π-nβ make some tests ignore NFS-mounted directories. NFS stays out of it. π-T FSTYPEβ make some tests ignore file systems of type FSTYPE. This usesfind(1)'s-fstypeoption. Selective vision, but make it intentional. β¨-lβ Print available tests. Show me the menu, queen. π-hβ Print a short help message and exit. Little help, no commitment. π«Ά-Vβ Print version information and exit. Who are you, bestie? π
heads-up: that-e/-sexclusion stuff is genuinely about quieting false positives β don't use it to silence a test that's telling you something real. π
π AUTHOR π
Manual page written by Yotam Rubin <yotam@makif.omer.k12.il>, Marcos Fouces <marcos@debian.org>, Lantz Moore <lmoore@debian.org>, and Richard Lewis <richard.lewis.debian@googlemail.com> for the Debian project. It may be used by others. Legends, all of them. π
β SEE ALSO β
strings(1) chklastlog(8) chkwtmp(8)
and that's the whole vibe check, bestie β this page is from the System Manager's Manual, dated Oct 23, 2021 π stay safe, scan often, and remember: not everything weird is a rootkit, sometimes it's just networking being networking. π¦β¨
π¦ where this page comes from
- debian trixie: chkrootkit 0.58b-5+b8 Β· BSD-2-Clause
- ubuntu questing: chkrootkit 0.58b-6
- ubuntu resolute: chkrootkit 0.58b-6build1 Β· BSD-2-Clause
- ubuntu stonking: chkrootkit 0.59-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms