Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-30-2006, 09:56 PM
|
#1
|
Member
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400
Rep:
|
Compromised ? ./2[1].6.12
Hi,
Noticed in my cron daily email from server this .
Code:
/etc/cron.daily/logrotate:
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
error: error running shared postrotate script for /var/log/apache2/*.log
run-parts: /etc/cron.daily/logrotate exited with return code 1
So when hunting and.....
Code:
[root@debian rc1.d]# netstat -tulpn | grep :80
tcp6 0 0 :::80 :::* LISTEN 9340/2[1].6.12
Code:
[root@debian rc1.d]# ps ax | grep 9340
9340 ? T 0:00 ./2[1].6.12
16123 pts/0 R+ 0:00 grep 9340
What the heck is that ? Looks like a kernel version of sorts.
chkrootkit doesn't return anything about this. I haven't any other packages like tripwire or snort installed yet.
Should I be worried ?
|
|
|
09-30-2006, 10:30 PM
|
#2
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Looks highly suspect. Who owns it (ps aux)?
What does cat /proc/9340/cmdline show?
Also go through the usual suspects: Check /tmp for any weird files or directories. Check the output of last -i for abnormal logins. Check /etc/passwd for new users or non-root users with uid/gid of 0. Check system logs for anything strange especially error messages or panics. Check root and user bash histories. Check system for SUID/SGID root files. If you have any other systems on this network, try sniffing some of the outbound traffic.
If the process is owned by root (or someone with 0 uid) then this is likely a serious incident that will require a complete rebuild from trusted media. That fact that the process is using a priviledged port is not a good sign.
Last edited by Capt_Caveman; 09-30-2006 at 10:32 PM.
|
|
|
10-02-2006, 06:14 AM
|
#3
|
Member
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400
Original Poster
Rep:
|
Thanks Caveman.
I later did this....
Code:
[root@debian rc1.d]# kill -9 9340
[root@debian rc1.d]# ps ax | grep 9340
16129 pts/0 R+ 0:00 grep 9340
[root@debian rc1.d]# invoke-rc.d apache2 start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
invoke-rc.d: initscript apache2, action "start" failed.
[root@debian rc1.d]# ps ax | grep 9340
16152 pts/0 R+ 0:00 grep 9340
[root@debian rc1.d]# netstat -tulpn | grep :80
tcp6 0 0 :::80 :::* LISTEN 9346/k-rad3
[root@debian rc1.d]# ps ax | grep 9346
9346 ? T 0:00 ./k-rad3
16156 pts/0 R+ 0:00 grep 9346
Then killed process 9346 and then started Apache ok. Then went away for the long weekend and only just got back to read your reply.
So far apache is running fine, but I will comb through the server for anything suspicious. Its only meant to be a temp server anyway, but have been running it for a few months now [home projects just seem to take longer then you want]
|
|
|
10-02-2006, 07:05 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Code:
tcp6 0 0 :::80 :::* LISTEN 9346/k-rad3
While the name a process is known by itself doesn't make it's malicious, chances a benign process is named "k-rad3" are infinitesmally, uh, small. If it's the K-rad3 I think it is then you're looking at a kernel 2.6 exploit from 2005.
I suggest you read these before doing anything else:
Intruder Detection Checklist (CERT): http://www.cert.org/tech_tips/intrud...checklist.html
Steps for Recovering from a UNIX or NT System Compromise (CERT): http://www.cert.org/tech_tips/root_compromise.html
then perform those tasks CC asked you.
|
|
|
10-10-2006, 07:47 PM
|
#5
|
Member
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400
Original Poster
Rep:
|
The checklist didnt find any anomalies at all. Good sign.
I'll try the other steps next.
Thanks
|
|
|
All times are GMT -5. The time now is 03:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|