Autoblog reviews all the hottest cars

Hunt for rootkits with rkhunter

There's been a lot of talk lately about rootkits, thanks to Sony's stupidity, & Linux users may have been laughing at their Windows' brethren. However, there are rootkits in the Linux world … just not from Sony. Rkhunter hunts down rootkits, so this is a good thing to install & set up with a cron job, so your machine gets scanned every night. If you're using Debian, just run apt-get install rkhunter. If you're not using Debian, download the file from http://www.rootkit.nl/projects/rootkit_hunter.html (scroll down to the Downloads section), then install it like this (I'm using Kubuntu, so I use sudo; everyone else should su to root):

tar zxvf rkhunter-1.2.7.tar.gz

cd rkhunter

sudo ./installer.sh

It'll install, & then you should update rkhunter's database:

sudo rkhunter --update

At that point, run it:

sudo rkhunter --checkall

You're going to notice that you have to press Enter often, which is annoying. Better to run this way, which suppresses the need to press Enter constantly:

sudo rkhunter --checkall --cronjob

If you only want to see warnings, and not line after line of OK, use this:

sudo rkhunter --checkall --cronjob --report-warnings-only

If I was running it as a cronjob, I'd use a command like this:

sudo rkhunter --versioncheck && sudo rkhunter --update && sudo rkhunter --checkall --cronjob --report-warnings-only > /tmp/rkhunter_output && kedit /tmp/rkhunter_output

This checks the version of rkhunter, updates it, runs it, writes the output to a tmp file, & then opens that tmp file in a text editor so you see it every morning when you sit down. Pretty cool, eh?

Documentation is located at /usr/local/rkhunter/lib/rkhunter/docs, if you need it.

(Check out all of our posts on security & rootkits.)

concepts
blogging (1)
books (2)
howto (0)
humor (1)
licensing (0)
networking (2)
odf (1)
presentations (1)
programming (1)
review (2)
rss (1)
security (6)
switching (0)
wireless (1)
distros
auditor (1)
debian (2)
fedora core (2)
k/ubuntu (12)
knoppix (2)
libranet (1)
mac os x (2)
solaris (1)
suse (3)
format
flac (1)
mp3 (1)
odf (0)
ppt (0)
hardware
cpu (0)
dvd (1)
keyboard (1)
mouse (1)
printing (1)
microsoft
bullying (0)
ntfs (1)
office (2)
windows (3)
multimedia
imagemanagement (1)
music (3)
podcast (1)
rip-mix-burn (1)
video (0)
people
daveraggett (1)
ericmeyer (1)
software
amarok (0)
azureus (3)
bash (4)
bittorrent (4)
bloglines (1)
clamav (1)
css (1)
ethereal (1)
firefox (11)
gmail (1)
gnome (3)
html (1)
java (2)
kde (2)
kmail (1)
openoffice.org (3)
picasa (1)
regex (1)
rubyonrails (1)
ssh (3)
thunderbird (0)
vim (3)
vmware (0)
wordpress (1)
companies
google (2)
microsoft (0)
novell (0)
red hat (0)
sun (1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: