LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-07-2005, 11:53 AM   #1
nixinbarrie
Member
 
Registered: Apr 2004
Posts: 43

Rep: Reputation: 15
Compromised?


Hello everyone,


Please help if you can.

I like everyone else here have experienced numerous ssh brute force attempts.

What worries me is as follows:

1. I noticed it occurring this morning and when I ran netstat is showed my local server was established via ssh to another foreign IP.
2. When I run finger it displayed root with three sessions: (*.0, pts/1, pts/2)

I was worried that a rootkit was installed however, I downloaded and ran chkrootkit and it did not find anything infected.

I ran nmap against the foreign ip and it had a tone of open ports.

I have numerous ip’s form several different origins of where the brute force was conducted.

Any ideas as to what I should look for to confirm if the system was or was not compromised? I have run finger on all of my users, looked at numerous files that were recently modified, searched for rootkit’s, etc.

I am going to revamp my security on the network and look at possibly implementing private key authentication. Actually with security in mind, I would like to setup private key authentication with hardware of software based tokens, if possible.

If anyone has any insight I would greatly appreciate it.

Thanks for all your help,

Take care,
 
Old 05-07-2005, 02:00 PM   #2
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
we can post the abuse ip's and I noticed the same large amout of open ports
 
Old 05-07-2005, 02:05 PM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Having an established connection in netstat output doesn't necessarily indicate that a compromise or successfull bruteforce attack has occured. All it indicates is that there is an ongoing tcp connection. So running a bruteforce attack would appear as "established" regardless of whether any passwords have been successfully guessed.

That being said, I'd recommend running rkhunter as well just to be sure. Also take a look at the output of the 'last' command and look for any successfull logins that coincide with the time when the bruteforce was run. Also take a look in /tmp for anything abnormal. Unless you have very poor passwords, then the standard sshbrute attack is unlikely to be successfull (it uses a very limited set of username/pasword combos like test/test or root/root.
 
Old 05-07-2005, 02:07 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
//Moderator note: I'm splitting this off into it's own thread as we're really looking at compromised detection rather than the bruteforce itself.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compromised by SSH bruteforce MBH Linux - Security 3 09-16-2005 10:10 PM
ssh bruteforce DoS branden_burger Linux - Security 10 03-29-2005 02:53 AM
Has anyone been successful ? starjones Linux - Wireless Networking 3 02-10-2004 01:49 PM
SVGATextMode, had someone been successful using it ? GIJoe Linux - General 0 11-11-2003 06:54 AM
bruteforce nautilus_1987 Linux - Software 6 09-02-2002 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration