Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache logs iis worms
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Sat Jul 24, 2004 12:48 am    Post subject: apache logs iis worms Reply with quote

I was wondering if anyone had some tips on dealing with IIS worms in apache log files. My logs are full of requests from worms & I would like apache to send these requests to another log file other than the access_log.
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sat Jul 24, 2004 7:21 am    Post subject: Reply with quote

Something like this should help, at least you'll get the idea:

Code:
SetEnvIf Request_URI "^/default.ida" attacks
SetEnvIf Request_URI "^/scripts" attacks
SetEnvIf Request_URI "^/c/winnt" attacks
SetEnvIf Request_URI "^/_mem_bin" attacks
SetEnvIf Request_URI "^/_vti_bin" attacks
SetEnvIf Request_URI "^/MSADC" attacks
SetEnvIf Request_URI "^/msadc" attacks
SetEnvIf Request_URI "^/d/winnt" attacks

CustomLog /var/log/apache/access_log combined env=!attacks
CustomLog /var/log/apache/attack_log combined env=attacks

_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Sun Jul 25, 2004 11:33 pm    Post subject: Reply with quote

thanks for the reply. This seems to be working as I am now seeing stuff in the attack log instead. The one I was having most problem with was not listed which is the iis webdav exploit worm. Here is my rule for it:

Code:

SetEnvIf Request_URI "^/\x90\x02" attacks
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Mon Jul 26, 2004 7:59 am    Post subject: Reply with quote

no this is not working correctly .... I have entries in both the attack_log and the access_log for the worms...any ideas why ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum