new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / etc / rules / web_appsec_rules.xml
old mode 100755 (executable)
new mode 100644 (file)
index 3f405c0..6448db2
   -
   -  License details: http://www.ossec.net/en/licensing.html
   -->
-  
+
 
 <!-- Collection of rules for common web attacks that we are seeing in the wild.
   -  The real goal is to stop bots and automated attacks from doing further damage
-  -  on sites that are not updated. 
-  -->  
+  -  on sites that are not updated.
+  -->
 <group name="web,appsec,attack">
 
 
 
-  <!-- Checking POST / requests - WP comment spam coming from fake search engines. 
+  <!-- Checking POST / requests - WP comment spam coming from fake search engines.
     -->
   <rule id="31501" level="6">
     <if_sid>31100</if_sid>
@@ -88,7 +88,7 @@
   <!-- BAD/Annoying user agents -->
   <rule id="31508" level="6">
     <if_sid>31100</if_sid>
-    <match> "ZmEu"| "libwww-perl/|"the beast"|"Morfeus|"ZmEu|"Nikto|"w3af.sourceforge.net|MJ12bot/v</match>
+    <match> "ZmEu"| "libwww-perl/|"the beast"|"Morfeus|"ZmEu|"Nikto|"w3af.sourceforge.net|MJ12bot/v| Jorgee"|"Proxy Gear Pro|"DataCha0s</match>
     <description>Blacklisted user agent (known malicious user agent).</description>
   </rule>
 
   <!-- Nothing wrong with wget per se, but it misses a lot of links
      - that generates many 404s. Blocking it to avoid the noise.
     -->
-  <rule id="31511" level="6">
+  <rule id="31511" level="0">
     <if_sid>31100</if_sid>
     <match>" "Wget/</match>
     <description>Blacklisted user agent (wget).</description>
     <description>PHPMyAdmin scans (looking for setup.php).</description>
    </rule>
 
-  <!-- Suspicious URL's access 
+  <!-- Suspicious URL's access
     -->
   <rule id="31516" level="6">
     <if_sid>31100</if_sid>
-    <url>.swp$|.bak$|/.htaccess|/server-status|/.ssh|/.history</url>
+    <url>.swp$|.bak$|/.htaccess|/server-status|/.ssh|/.history|/wallet.dat</url>
     <description>Suspicious URL access.</description>
    </rule>