Hi list,
running OSSEC 2.8 on a debian wheezy server together with NginX 1.6 and
the ngx_pagespeed 1.8.31.2 module fires the following OSSEC rule:
--------------------------------------------------------------------------------------------------------
OSSEC HIDS Notification.
2014 Jun 28 14:45:56
Received From: example.com->/var/log/nginx/access.log
Rule: 31533 fired (level 10) -> "High amount of POST requests in a small
period of time (likely bot)."
Portion of the log(s):
1.2.3.4 - - [28/Jun/2014:14:45:55 +0200] "POST
/ngx_pagespeed_beacon?url=http%3A%2F%
2Fwww.example.com" "Mozilla/5.0
(X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0"
--------------------------------------------------------------------------------------------------------
It seems that this is a normal behavior when the ngx_pagespeed module is
installed as the IPs causing this POST requests are normal users of this
system.
For now i have created a local_rule:
---------------------------------------------------------
<!--group name="web,appsec,attack">
<rule id="100030" level="0">
<if_sid>31530</if_sid>
<decoded_as>web-accesslog</decoded_as>
<url>ngx_pagespeed_beacon</url>
<description>Ignore all ngx_pagespeed_beacon requests</description>
</rule>
</group-->
---------------------------------------------------------
to ignore those notifications but i'm not sure if there is a better way
to avoid such notifications.
Any help/hints/tips are welcome.
Thanks in advance for a reply.