LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 01-27-2008, 08:28 PM   #1
mohtech
Member
 
Registered: Dec 2004
Location: Denver Colorado
Distribution: Kubuntu/Debian
Posts: 120

Rep: Reputation: 15
Looks like I'm in the news...sort of...I'm one of the 100,000 computers...


Yeah! I got Rooted!? If that sounds strange to be excited about, it means that I have a reason to really learn about security

The only evidence I've had was that nmap kept on reporting more ports in particular were closed. Many of them were trojan-like.

The server itself has a very strict iptable scheme...only allows ssh from a high port from a single computer, however port 80 may have been the entry point.

I read an old article about several rootkits and what they do. I didn't bother doing forensics since the server is for now a testing LAMP server. Wipe to metal and start again...

However, this has been a beast for me to clean. Wiping the partitions and or erasing the data on each partition didn't do it, even when taking the box "behind closed doors". I just ran a knoppix shred on it, that *should* do the trick.

Am I correct in my assumptions that something nasty was trying to get out?

I've read about LKMs being a key for installing a rootkit...is there a way to disable LKMs in Linux?
 
Old 01-27-2008, 09:03 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,610
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
Quote:
Originally Posted by mohtech View Post
The only evidence I've had was that nmap kept on reporting more ports in particular were closed. Many of them were trojan-like.
Nmap uses its own port mapping "database" similar to /etc/services. Unless you (or Nmap) interrogates a specific port to get a specific response there is no telling what's listening there. I could for instance have SSH listening on ports 23, 135, 136, 137, 1024, 31337...


Quote:
Originally Posted by mohtech View Post
The server itself has a very strict iptable scheme...only allows ssh from a high port from a single computer, however port 80 may have been the entry point.
"Only allow in" means no outbound filtering? And "port 80 may have been" means you ran a vulnerable application on that port?


Quote:
Originally Posted by mohtech View Post
Wiping the partitions and or erasing the data on each partition didn't do it
Didn't do what exactly?


Quote:
Originally Posted by mohtech View Post
I didn't bother doing forensics
Well, then it all ends there. W/o "evidence" anything else will be just speculation.


Quote:
Originally Posted by mohtech View Post
Am I correct in my assumptions that something nasty was trying to get out?
To that I usually say "don't assume, make certain" but since you collected no "evidence"...


Quote:
Originally Posted by mohtech View Post
I've read about LKMs being a key for installing a rootkit...is there a way to disable LKMs in Linux?
For servers that run unattended and don't see much module loading it would be possible, I mean, you could build a monolithic kernel and I used to take away capabilities (GRSecurity can do the same) but all in all it's a hassle for workstations. However I think focussing on the LKM thing is a waste of time in your case since you most likely didn't harden the box properly in the first place, right?
 
  


Reply

Tags
rootkit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 16,000 Linux computers delivered - for free LXer Syndicated Linux News 0 07-12-2007 06:31 PM
100,000,000 Firefox downloads! Eerath General 6 10-22-2005 11:20 PM
Guess the Correct Time LQ will hit 100,000 Members jeremy LQ Suggestions & Feedback 152 05-03-2004 12:56 AM
100,000 members maillion LQ Suggestions & Feedback 6 03-20-2004 12:00 PM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration