What is a Rootkit?

When an attacker successfully breaks into a Unix system, two of the first things he usually wants to do are:

One of the methods of accomplishing both of these tasks is to modify the system binaries, or even the system libraries.

The most simple and classic example of this is to replace /bin/login.

  1. Obtain a copy of the source code to /bin/login for the version of Unix the target host is running -- or at least a very close version.
  2. Edit the source code to /bin/login to include a "secret" password that will always let you login as root if you enter the "backdoor" password. This backdoor will also not create an entry in the system log files.
  3. Compile the source code.
  4. Save a copy of the original /bin/login binary in case something goes wrong.
  5. Replace the original /bin/login with your new /bin/login, keeping the same file permissions, ownerships, and time stamps.

These steps replace one system binary. A rootkit is a collection of modified program sources or binaries which replace an entire set of system binaries.

System binaries replaced by common rootkit's include netstat, ifconfig, ps, ld, du, in.telnetd, chfn, chsh, inetd, passwd, top, rshd, and syslogd

Most rootkits come with accessories like packet sniffers, log file editors, and time stamp utilities.

Practical Unix and Internet Security Essential System Administration Unix System Administration Handbook Linux Security Cookbook
Purchase these excellent books on Unix security and administration at Amazon.com


Bookmark What is a Rootkit?

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.