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
  Search this Thread
Old 03-05-2006, 08:34 PM   #1
alienmagic
Member
 
Registered: Feb 2006
Distribution: Slackware 10.2, (2.6.16.16), FC 5
Posts: 109

Rep: Reputation: 15
Apache log question regarding security


Last week I noticed that I had some brute force attempts on ssh, none of which were successful as far as I can tell. Today, I noticed the following in my Apache error log:

Quote:
[Sun Mar 05 04:02:06 2006] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 05 04:02:06 2006] [notice] Digest: done
[Sun Mar 05 04:02:06 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Mar 05 04:02:06 2006] [notice] LDAP: SSL support unavailable
[Sun Mar 05 04:02:07 2006] [notice] Apache/2.0.47 (Fedora) configured -- resuming normal operations
script not found or unable to stat
script not found or unable to stat
[Sun Mar 05 07:49:31 2006] [error] [client 216.63.146.236] File does not exist: /var/www/html/mambo
[Sun Mar 05 07:49:32 2006] [error] [client 216.63.146.236] File does not exist: /var/www/html/cvs
script not found or unable to stat
[Sun Mar 05 07:49:34 2006] [error] [client 216.63.146.236] File does not exist: /var/www/html/drupal
[Sun Mar 05 07:49:35 2006] [error] [client 216.63.146.236] File does not exist: /var/www/html/phpgroupware
[Sun Mar 05 07:49:37 2006] [error] [client 216.63.146.236] File does not exist: /var/www/html/wordpress
script not found or unable to stat
script not found or unable to stat
[Sun Mar 05 12:27:20 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/mambo
[Sun Mar 05 12:27:22 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/cvs
[Sun Mar 05 12:27:23 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/articles
[Sun Mar 05 12:27:24 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/cvs
script not found or unable to stat
[Sun Mar 05 12:27:28 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/blog
[Sun Mar 05 12:27:29 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/blog
[Sun Mar 05 12:27:30 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/blogs
[Sun Mar 05 12:27:31 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/drupal
[Sun Mar 05 12:27:33 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/phpgroupware
[Sun Mar 05 12:27:34 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/wordpress
script not found or unable to stat
[Sun Mar 05 12:27:36 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/xmlrpc
[Sun Mar 05 12:27:38 2006] [error] [client 202.125.44.182] File does not exist: /var/www/html/xmlsrv
[Sun Mar 05 14:04:31 2006] [warn] child process 8051 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8052 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8053 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8054 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8055 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8056 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8058 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8059 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8051 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8052 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8055 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8056 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8058 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:31 2006] [warn] child process 8059 still did not exit, sending a SIGTERM
[Sun Mar 05 14:04:32 2006] [notice] caught SIGTERM, shutting down
I'm fairly new to running my own personal Apache server, so I don't know if this means much or not, but the lines I'm questioning are the first two with "Digest", the one mentioning Apache being configured, and the last one mentioning "SIGTERM". I've only been running a basic place holder page in Apache and haven't made any config changes at all for weeks. The mention of something being configured this morning caught my attention. Are these normal, or something to be concerned about?
 
Old 03-06-2006, 04:44 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It doesn't look very good. It may cause your server to have very high load average. Something's preventing Apache threads from exitting when they should. It may be a script that's in an infinite loop etc. Hard to say having just the error log. Look into the normal log. Look at the requests (compare timestamps). Do you have only requests for static pages or maybe also scripts?
 
Old 03-06-2006, 09:10 PM   #3
alienmagic
Member
 
Registered: Feb 2006
Distribution: Slackware 10.2, (2.6.16.16), FC 5
Posts: 109

Original Poster
Rep: Reputation: 15
Here's the normal log for the same day:

Quote:
202.125.44.182 - - [05/Mar/2006:12:27:25 -0500] "POST /xmlrpc.php HTTP/1.1" 404 288 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:27 -0500] "POST /blog/xmlrpc.php HTTP/1.1" 404 293 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:28 -0500] "POST /blog/xmlsrv/xmlrpc.php HTTP/1.1" 404 300 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:29 -0500] "POST /blogs/xmlsrv/xmlrpc.php HTTP/1.1" 404 301 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:30 -0500] "POST /drupal/xmlrpc.php HTTP/1.1" 404 295 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:32 -0500] "POST /phpgroupware/xmlrpc.php HTTP/1.1" 404 301 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:33 -0500] "POST /wordpress/xmlrpc.php HTTP/1.1" 404 298 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:34 -0500] "POST /xmlrpc.php HTTP/1.1" 404 288 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:35 -0500] "POST /xmlrpc/xmlrpc.php HTTP/1.1" 404 295 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
202.125.44.182 - - [05/Mar/2006:12:27:37 -0500] "POST /xmlsrv/xmlrpc.php HTTP/1.1" 404 295 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"
192.168.200.1 - - [05/Mar/2006:14:02:49 -0500] "GET / HTTP/1.1" 200 356 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1"
Does this look like a system compromise, or just a problem with the way Apache is operating?
 
Old 03-07-2006, 05:11 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks like an attack. Unsuccessful, as it seems from the error log (files not found). Something has caused the processes to run, however. You may have a small number of request that didn't get 4xx errors. Look for them.
 
Old 03-07-2006, 10:18 PM   #5
alienmagic
Member
 
Registered: Feb 2006
Distribution: Slackware 10.2, (2.6.16.16), FC 5
Posts: 109

Original Poster
Rep: Reputation: 15
I don't see anything that got something other than a 404, other than 2 from my internal network.

I stopped the apache service as soon as I saw this the other day. Is it safe to restart it, or do I need some more investigating first?
 
Old 03-08-2006, 04:54 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Before restarting, upgrade it (you may be one or two versions behind). Then run it, but look into the logs from time to time to see if there are anomalies.
 
Old 03-08-2006, 09:53 PM   #7
alienmagic
Member
 
Registered: Feb 2006
Distribution: Slackware 10.2, (2.6.16.16), FC 5
Posts: 109

Original Poster
Rep: Reputation: 15
Thanks for all of your suggestions.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache log formatch question whysyn Linux - Software 1 11-07-2005 10:27 AM
Apache Log file question. GarroteYou Linux - Security 8 10-24-2004 05:51 AM
Question on Apache Log Files JLDixon Linux - Software 1 10-12-2003 11:03 AM
Apache log question--What is this? grizzly Linux - Security 4 09-02-2003 02:18 PM
Apache log Question kobe Linux - General 11 09-05-2002 10:53 AM

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

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