X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=etc%2Frules%2Fweb_rules.xml;h=6d40e604dffd3c2f63aff13db73fee51b1f7b5b2;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=9f0b00e06d9c835d2144542150779e152ecb70f5;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/etc/rules/web_rules.xml b/etc/rules/web_rules.xml old mode 100755 new mode 100644 index 9f0b00e..6d40e60 --- a/etc/rules/web_rules.xml +++ b/etc/rules/web_rules.xml @@ -1,4 +1,5 @@ - - - + + web-log @@ -35,28 +36,28 @@ 31101 - .jpg$|.gif$|favicon.ico$|.png$|robots.txt$|.css$|.js$ + .jpg$|.gif$|favicon.ico$|.png$|robots.txt$|.css$|.js$|.jpeg$ is_simple_http_request Ignored extensions on 400 error codes. - + - 31100 - ='|select%20|select+|insert%20|%20from%20|%20where%20|union%20| + 31100,31108 + =select%20|select+|insert%20|%20from%20|%20where%20|union%20| union+|where+|null,null|xp_cmdshell SQL injection attempt. attack,sql_injection, - + 31100 - + - %027|%00|%01|%7f|%2E%2E|%0A|%0D|../..|..\..|echo;|..| - cmd.exe|root.exe|_mem_bin|msadc|/winnt/| + %027|%00|%01|%7f|%2E%2E|%0A|%0D|../..|..\..|echo;| + cmd.exe|root.exe|_mem_bin|msadc|/winnt/|/boot.ini| /x90/|default.ida|/sumthin|nsiislog.dll|chmod%|wget%|cd%20| - cat%20|exec%20|rm%20 + exec%20|../..//|%5C../%5C|././././|2e%2e%5c%2e|\x5C\x5C Common web attack. attack, @@ -68,7 +69,7 @@ XSS (Cross Site Scripting) attempt. attack, - + 31103, 31104, 31105 ^200 @@ -76,6 +77,22 @@ attack, + + 31100 + ?-d|?-s|?-a|?-b|?-w + PHP CGI-bin vulnerability attempt. + attack, + + + + 31100 + +as+varchar + %2Bchar\(\d+\)%2Bchar\(\d+\)%2Bchar\(\d+\)%2Bchar\(\d+\)%2Bchar\(\d+\)%2Bchar\(\d+\) + MSSQL Injection attempt (/ur.php, urchin.js) + attack, + + + @@ -85,13 +102,14 @@ Ignored URLs for the web attacks - + 31100 URL too long. Higher than allowed on most browsers. Possible attack. invalid_access, + @@ -114,7 +132,7 @@ Web server 500 error code (Internal Error). system_error, - + 31120 ^503 @@ -130,11 +148,18 @@ Ignoring google/msn/yahoo bots. - - + + + 31101 + ^499 + Ignored 499's on nginx. + + + + 31101 - Mutiple web server 400 error codes + Multiple web server 400 error codes from same source ip. web_scan,recon, @@ -143,14 +168,14 @@ 31103 Multiple SQL injection attempts from same - souce ip. + source ip. attack,sql_injection, - + 31104 - Multiple common web attacks from same souce ip. + Multiple common web attacks from same source ip. attack, @@ -158,28 +183,43 @@ 31105 Multiple XSS (Cross Site Scripting) attempts - from same souce ip. + from same source ip. attack, - - + + 31121 Multiple web server 501 error code (Not Implemented). web_scan,recon, - - + + 31122 Multiple web server 500 error code (Internal Error). system_error, - - + + 31123 Multiple web server 503 error code (Service unavailable). web_scan,recon, + + + 31100 + =%27|select%2B|insert%2B|%2Bfrom%2B|%2Bwhere%2B|%2Bunion%2B + SQL injection attempt. + attack,sqlinjection, + + + + 31100 + %EF%BC%87|%EF%BC%87|%EF%BC%87|%2531|%u0053%u0045 + SQL injection attempt. + attack,sqlinjection, + +