TechRepublic : A ZDNet Tech Community

Linux and Open Source

Host: Jack Wallen
Contact

So it’s usually op-ed here but I ran across a story the other day about a new proof of concept rootkit (Hackers Find a New Place to Hide Rootkits) and thought maybe I’d highlight an application I generally use to inspect systems for rootkits. The application is rkhunter. This tool claims to keep you 99.9% free from rootkits. By running such tests as:

  • MD5 hash compare
  • Rootkit default file search
  • Inconsistent binary file permissions
  • LKM and KLD suspected string search
  • Hidden file search
  • Optional scan within plaintext and binary files

And even though it’s .1 % inaccurate (as the developers claim) it’s still a smart move to install this application on any machine that lives on line, especially production-level machines.

Installing

Installation is simple. In an Ubuntu distribution, issue the command sudo apt-get install rkhunter, enter the sudo password, and you’re good to go. In a Fedora-based distribution issue the command yum install rkhunter (as root) and you’re good to go.

Running rkhunter
You will have to either have root access or run as sudo. So you’ll run rkhunter -c as root or sudo rkhunter -c to do an initial check for rootkits.

As rkhunter completes a section of checks you will have to hit enter to continue on. But don’t worry, it won’t time out. You can walk away and come back to hit enter, although the checks are pretty speedy.

Now don’t assume that once you have run rkhunter you are safe and do not need to run it again. In fact, I would suggest doing a couple of things. First create a cron job that will do a daily rkhunter –update to ensure that your rkhunter has the latest “definition files” for rootkits. This will require that wget be installed on the machine. Second, set up rkhunter with the –cronjob flag in an actual cronjob. Using the –cronjob flag will disable the need for the interaction.

Do you regularly scan for rootkits?

View Results

Loading ... Loading ...

Configuration and log files
The configuration file for rkhunter is /etc/rkhunter.conf. I would suggest you sift through that and make any necessary changes for your system. In particular (and especially if you are setting this up as a cron job), you’ll want to set up an e-mail address so information is sent to you.

By default the log file is /var/log/rkhunter.log. You can change this in the rkhunter configuration file. The log file contains a lot of valuable information about the scans. This log file will also inform you when new updates have been applied.

Final thoughts
Just because you’re using Linux as either your server or your desktop, don’t assume you are bomb proof. Even though you are closer to computing nirvana than you may have been before, you are still not immune to everything. Making sure your Linux machines have not fallen victim to a rootkit can mean the difference between having secure data and having total data loss.

Take the time to install rkhunter on every Linux machine you have. Set up the cron job so rkhunter is issued regularly. The peace of mind this simple application brings is worth every second you put into the installation.

Jack Wallen was a key player in the introduction of Linux to the original Techrepublic. Beginning with Red Hat 4.2 and a mighty soap box, Jack had found his escape from Windows. It was around Red Hat 6.0 that Jack landed in the hallowed halls of Techrepublic. Read his full bio and profile.

Print/View all Posts Comments on this blog

Here's something that I collected while browsing BALTHOR | 05/12/08
Is this malware? nepenthe0 | 05/12/08
Suspicious... glad I have NoScript installed in my Firefox scott_jordan@... | 05/12/08
Ah..... Ha........Haha......hahahahahahaha seanferd | 05/12/08
NickNielsen | 05/13/08
why? jlwallen@... | 05/14/08
Maybe? seanferd | 05/14/08
It's a screenshot of a Windows XP desktop :) techrepublic@... | 05/15/08
wrong-o it is a pic of explorer jlwallen@... | 05/15/08
hijack-this virus? seanferd | 05/15/08
This is the zclayton2 | 05/15/08
Thanks for the rkhunter seanferd | 05/12/08
you missed an important point there Jack Jaqui | 05/15/08
you're right jlwallen@... | 05/15/08
Imaging husserl@... | 05/17/08
that also Jaqui | 05/18/08
Leaving only one class of problems husserl@... | 05/19/08
I would like PDF alternatives... mikifinaz1@... | 05/20/08

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now
IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now

SmartPlanet

Click Here