[svlug] Need help with diagnosing compromised Linux system
M. A. Sridhar
m_a_sridhar at yahoo.com
Thu Apr 21 09:19:20 PDT 2005
Hello folks,
I am a longtime lurker on this list, and need some help. My Linux system
(RedHat 7.2) was broken into earlier this week. The intruder managed to plant
a backdoor into the system, and installed "John the ripper" which I think is
a password cracker (although I don't think it was actually running). There
was also a process named r0nin running, and it turns out (as fuser told me)
that that program was listening on port 1666. If you telnet'ed into port
1666, you'd get a root shell on the box.
Not having understood exactly how he got in, I thought I would kill the
process and watch the system for a day or two. Apparently the intruder got in
again early this morning: When I did a 'find / -mtime -1' I found that he had
installed a rootkit detector called rkhunter. The commands he had issued were
in /var/tmp/.bash_history. And I found that r0nin was running again. But
there was no entry in the syslogs showing a successful login of anyone, so I
could not understand how he got in, nor the backdoor (r0nin) was restarted.
(I also looked in my cron files to see if there was anything suspicious, and
came up empty-handed.)
I want to understand how it happened and how to prevent it from happening
again.
I'm not an expert on configuring Linux securely, but I did have my
hosts.allow and hosts.deny set up to allow access from just the two IP
addresses I need. I had also set up sshd as the only means for getting into
it remotely.
I would like to learn whatever is needed to handle such things. I'd
appreciate any pointers you folks have on where to start.
Also, is there a way to tell what time a running process was started up? the
timestamps in /proc always show the current time.
Thanks for any assistance.
Regards.
M. A. Sridhar
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the svlug
mailing list