x
Loading
 Loading
Hello, Guest | Login | Register

Finding Rootkits, Infections, and Files

Last month’s “Tech Support” showed you how to monitor filesystem changes with Tripwire, a handy system utility that alerts you to all filesystem changes. Like SNORT and others, Tripwire’s just one of many practical security measures that minds your system 24/7.

Last month’s “Tech Support” showed you how to monitor filesystem changes with Tripwire, a handy system utility that alerts you to all filesystem changes. Like SNORT and others, Tripwire’s just one of many practical security measures that minds your system 24/7.

Another sentry tool is chkrootkit, a free utility that can detect rootkits, loadable kernel modules, worms, and other nefarious cracker tools. (A rootkit is a collection of tools used to mask intrusion, obtain administrator-level access and, install a backdoor on a target computer. A loadable kernel module, or LKM, is a piece of code that’s loaded directly into the Linux kernel.) chkrootkit uses digital signatures to detect over fifty known rootkits and LKMs. It also uses some simple heuristics — looking for hidden processes, hidden directories, and a few other simple checks — to attempt to detect unknown kits.

chkrootkit is maintained by Nelson Murilo and is available from http://www.chkrootkit.org. After downloading the latest version of chkrootkit, verify the MD5 checksum, and unpack the tarball. Then type make sense in the build directory. After the build’s complete, run the program by typing ./chkrootkit. You’ll have to be root to run the chkrootkit tools.

By default, chkrootkit is quite verbose. You can use the -q flag to only output messages that indicate an “infection.” Another useful flag is -p, which allows you to specify a path to the supplemental, external programs that chkrootkit uses. Running the external commands from a read-only media ensures that…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Klaatu Recommends Nikto for Web Security
  2. Ubuntu's Encrypted Home Directory: A Canonical Approach to Data Privacy
  3. Your Distro is Insecure: Ubuntu
  4. On-the-fly Encryption with TrueCrypt
  5. Enhance Security with Port Knocking
Follow Linux Magazine
Rackspace