LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-24-2002, 05:07 PM   #1
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
I think I'm being hacked. How to proceed?


I've noticed that some files have permisions
root as UID and bin as GID. so someone has entered the computer through wrong door.

Anyone knows what daemons start as bin. I have rh62 apache 1.3.12, sendmail 8.11.6, wu-ftpd, qpopper4.0, ssh 2.4, bind 9.2.0, servers running. And my screen dissapers every time. Does screen opens any ports when active, or is it exploitable?

Thanks for any help!
 
Old 05-24-2002, 07:00 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't know what servers have bin group rights, but you can easily locate 'em by doing "find / -group bin -print". Btw, "noticing" isn't enough. Having a file integrity checker like Aide, Tripwire or the like installed (and their database on read-only media) to check for changes in file(size,permissions,inode,atime,ctime,etc,etc) gives you a better chance to notice stuff the objective way.

If you think that box really has been compromised, read the following: CERT Intruder Detection Checklist, CERT Steps for Recovering from a UNIX or NT System Compromise and the CERT UNIX Security Checklist v2.0.
Wouldn't hurt anyone to read it if you haven't got a compromised box.

Btw, what do you mean by "screen"?
 
Old 05-25-2002, 01:41 AM   #3
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
I'm looking through tripwire, but it's too late now.
By screen I meant screen command (to use multiple terminals over ssh)
Thanks for the links I'll read them
 
Old 05-25-2002, 02:18 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
I found a strange utilitiy .ttyaa which i think masks processes and files, but the problem is that nothing in logfiles, nothing in processes, nothing in network connections
 
Old 05-26-2002, 08:45 AM   #5
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
If you think a system has compromised, you only ever have one option if you want to ensure the integrity of the hard disk contents: format the disk and re-install.

I noticed you said you had wu-ftpd on there. This ftp daemon has an attrocious security history. I'd almost bet money that that's how "they" got it.

Regards
 
Old 05-26-2002, 01:43 PM   #6
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
Thats what I'm going to do anyways, I'm setting up new server with new hardware, so I'll just replace the whole thing, but I'm really keen on finding the leak, so I don't put new server up, and get hacked again, next day.

you said wu-ftpd. I need to check, I run it on all of my servers. What do you suggest for the good, configurable ftp server?

thanks
 
Old 05-26-2002, 01:45 PM   #7
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
proftpd is probably one of the better ones, I've used it for some time.

When you say "all your servers" do you mean you have a lot?

If so, have you ever considered having an external security audit done?

Regards
 
Old 05-26-2002, 02:01 PM   #8
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
I have 5 of them, but two are serious, the rest are mostly for testing, I have some friends that are very good at security, but I rather try to solve problems my self, and if can't do it then ask them for help, but thanks. I saw your site, we have/sell similar services.

I remember installing proftpd once and was unable to set it up as I wanted, but I'll give it another try.

Thanks for your clue!
 
Old 05-27-2002, 11:24 AM   #9
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
it's torn v8 rootkit
 
Old 05-27-2002, 12:03 PM   #10
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
If you're so confident about your system, why not let me audit your boxes at, say, 10ukp per security hole?

After all, if you boxes are secure, I won't find anything, and it won't cost you a penny )

Regards
 
Old 05-27-2002, 01:58 PM   #11
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
I didn't say I'm confident of my system. Far from being confident. I just like tackle problems on my own if I can. If I see I won't be able to solve it, then I call for help.

But thanks for your proposal. I'm looking forward to cooperate with you.
 
Old 05-28-2002, 12:35 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Just out of curiosity, did you save the disk's image, or at least any weird files like the ".ttyaa" you mentioned? Ran "strings" on it?

Btw, locally exploitable version of screen in 2001(!) was updated with screen-3.9.10. More info look for SuSE Security Announcement (SuSE-SA:2001:030).
 
Old 05-28-2002, 03:45 PM   #13
doris
Member
 
Registered: May 2001
Location: New York, USA
Distribution: RH 7.3, 8.0
Posts: 64

Rep: Reputation: 15
I got this too?

Some programs in /bin have been modified. I could not run ls, ps, top, find, and many other programs. The permission of these files was set to "rwx------" of user root.

I believe my system was hacked because I cannot "rm" or "chmod" these files as superuser. "rm" and "chmod" must have been modified.

My question is how this happened. My computer is behind a linksys router and the router functions as a firewall using NAT (Network Address Translation).

Doris
 
Old 05-28-2002, 03:47 PM   #14
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
It depends on what your firewall does. "firewall" is a much overused and much misunderstood term.

Regards
 
Old 05-29-2002, 01:03 AM   #15
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
I used chkrootkit and suggested that I have some version of t0rn/etC, and I found most of the files which belong to t0rn v8.
I'm investigating how I got it, so I won't get my new system hacked again.
My new system is ready with clean install, an almost no old files
 
  


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
How do I proceed with installation of packages? anindyanuri Linux - Software 9 05-03-2005 07:59 AM
Installation crashed - how to proceed? Transition Linux - Newbie 2 01-31-2004 05:22 PM
Need some advice on how to proceed with -> proendo Slackware 1 01-27-2004 10:46 AM
Post-Install ... How Do I proceed? svarreby Slackware 3 01-10-2004 11:33 AM
How should i proceed? BajaNick General 6 12-07-2003 07:21 PM

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

All times are GMT -5. The time now is 12:20 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