![]() |
||
|
Detect and Clean a hacked server T0rnkit Tutorial T0rn Rootkit Tornkit is a rootkit, a set of programs that is used by an intruder to have unrestricted access to a compromised Linux system. Tornkit is also attempts to hide its presence. The t0rn rootkit is designed for speed. By that I mean that it was designed to install quickly on Linux machines. T0rn can do this because it takes very little skill to install and run. All of the binaries that the attacker would need come pre-compiled and the installation process is as simple as ./t0rn. T0rn comes standard with a log cleaner called t0rnsb, a sniffer named t0rns and a log parser called t0rnp. I am including this so that you all diag and clean up your hacked server. First of all, Step 1. run chkrootkit, and you will see some INFECTED lines. It will also report that some process are hidden from the ps chkrootkit Checking `ifconfig'... INFECTED Step 2. /etc/init.d/syslog restart Shutting down kernel logger: [ OK ] Step 3. top top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory Step 4. tail /etc/rc.d/rc.sysinit # Xntps (NTPv3 daemon) startup.. -------------------------------------------------------- OK.. looks like someone got to your server as well. Since we know what rootkit it is, let us investigate further. Configuration files /usr/include/file.h (for file hiding) Infected Binaries: top, ps, pstree lsof, md5sum, dir, login, encrypt,ifconfig,find,ls,slocate, Infected Librairies: BackDoor: (located at /lib/lblip.tk) shdc -------------------------------------------------------- Now, Lets start the cleaning process: Step 1. remove the lines that show # Xntps (NTPv3 daemon) startup.. Step 2. WARNING: 2 servers got their kernel removed after reboot. reboot the system using the redhat CD into rescue mode that should fix it. -- since already in resuce mode, perhaps also ask them to --force install the following rpm's procps*.rpm Step 3. cd /lib Step 4. Step 5. procps*.rpm -- and rpm --force install them Step 6. cat /usr/include/hosts.h thus, if you want, you can block all the IP's from 193.60 to your server via iptables. Step 7. You should be OK!
Similar Articles : Compile 2.6.7, 2.6.8, 2.6.8.1, 2.6.9, 2.6.10, 2.6.11.6 Kernel w/module-init-tools, Rkhunter Installation, Detect and Clean a hacked server T0rnkit Tutorial, How to install KISS Firewall, How to Disable Telnet, How to install mod_security for Apache, How to install BFD (Brute Force Detection), How to install APF (Advanced Policy Firewall), E-mail Alert on Root SSH Login, Mask Your Web Server for Enhanced Security, Guide to Chkrootkit - checking for intruders, Creating a Welcome message for SSH logins, Disable Direct Root Login, RootCheck - Root Check, Changing APF log for TDP/UDP drop's |
||
Quick Links: Debian Dedicated Servers, Direct Deposit Hosting, Unmetered Dedicated Servers, Virtual Dedicated Servers, Windows Server Management, High Traffic Web Hosting - Load Balanced Clusters, Windows 2008 Server Virtual Dedicated Servers © Copyright 2003-2010 ABN 97 125 618 662 |
||