Published 2004-06-08 21:09:11

One of my clients's servers managed to get rootkit'ed, not a happy situation. The first symptom was the fact the server stopped working, as the rootkit was far from perfect.

When I came in, it was unable to boot, as mount was segfaulting. It took quite a while to realize that it was not just a fsck error or something. eventually after looking at things like bash_history, it became clear that someone had got in and installed rk.tgz (or tried various rootkits).

The first evening was spent attempting to recover the existing system. This proved futile, as it appears that the segfaulting mount was a symtom of the rootkit, It appears to modify all the major commands, cp, ls etc. in such a way that any executable becomes infected. If you try and fix them, you usually end up running another infected file, which then infects all the ones you have fixed.. so at the end of the evening it became pretty clear that a clean install was required.

Day2 consisted of installing a new debian on a new hard disk (with the assumption that we would copy the old data from the infected drive at a later point.) This went pretty well, give or take the fudging around to find drivers for dell's rather odd mix of hardware.

However, the machine in question runs an POS application supplied by a third party, so after getting most of the new system going, i copied across the old application, and tried it out. BANG!!! - the whole system got re-infected.. (this is when i relalized that the rootkit seems to infect all running applications as well as the core utilities.)

Oh well.. back to the drawing board - remove bin,sbin and usr and re-install over again..

Mentioned By:
google.com : ALL YOUR BASE ARE BELONG TO US (202 referals)
google.com : php rootkit (197 referals)
google.com : april (68 referals)
google.com : december (57 referals)
google.com : debian remove rootkit (47 referals)
google.com : rk.tgz (44 referals)
google.com : debian rootkit (42 referals)
google.com : rootkit debian (26 referals)
google.com : rootkit remove (25 referals)
google.com : Debian rootkit remover (19 referals)
google.com : remove rootkit debian (19 referals)
google.com : rootkit.tgz (18 referals)
google.com : debian rootkit removal (14 referals)
google.com : rootkit php (13 referals)
google.com : "php rootkit" (10 referals)
google.com : recover from rootkit (9 referals)
google.com : rootkit remove debian (9 referals)
google.com : <script>alert(String.fromCharCode(72, 65, 73, 33))</script> (8 referals)
google.com : debian recover from rootkit (8 referals)
google.com : rootkit remover debian (8 referals)

Comments

Damn, that really sucks! My sympathies for you...
#0 - Toby ( Link) on 2004-06-08 22:32:38 Delete Comment
yeah, we had a similar issue back in january, maybe my blogpost at http://blog.bitflux.ch/p1627.html helps ;)
#1 - Chregu ( Link) on 2004-06-09 01:20:02 Delete Comment
That is a bummer! That's one fight I hope I never have to fight!
#2 - BDKR ( Link) on 2004-06-15 21:58:10 Delete Comment

Add Your Comment

Follow us on