1 <!-- @(#) $Id: ./etc/rules/ids_rules.xml, 2011/09/08 dcid Exp $
3 - Official IDS rules for OSSEC.
5 - Copyright (C) 2009 Trend Micro Inc.
8 - This program is a free software; you can redistribute it
9 - and/or modify it under the terms of the GNU General Public
10 - License (version 2) as published by the FSF - Free Software
13 - License details: http://www.ossec.net/en/licensing.html
17 <var name="IDS_FREQ">8</var>
20 <rule id="20100" level="8">
21 <category>ids</category>
23 <description>First time this IDS alert is generated.</description>
27 <rule id="20101" level="6">
28 <category>ids</category>
29 <check_if_ignored>srcip, id</check_if_ignored>
30 <description>IDS event.</description>
33 <!-- This rule ignores some Ids that cause too much
34 - false positives. Snort specific.
36 <rule id="20102" level="0">
37 <if_sid>20100, 20101</if_sid>
38 <decoded_as>snort</decoded_as>
39 <!-- 1:1852 -> robots.txt access
43 - 1:399 - ICMP host unreachable
44 - 1:402 - ICMP port unreachable
46 - 1:480 - ICMP ping speedera.
47 - 1:1365 - RM commant attempt (too many false positives)
48 - 1:2925 - web bug 0x0 gif attempt
50 <id>^1:1852:|^1:368:|^1:384:|^1:366:|^1:402:|^1:408:|^1:1365:|</id>
51 <id>^1:480:|^1:399:|^1:2925:</id>
52 <description>Ignored snort ids.</description>
55 <!-- Ignored Dragon ids -->
56 <rule id="20103" level="0">
57 <if_sid>20100, 20101</if_sid>
58 <decoded_as>dragon-nids</decoded_as>
59 <!-- EOL -> end of line
60 - SOF -> start of file
61 - HEARTBEAT -> Heartbeat
65 <id>^EOL$|^SOF$|^HEARTBEAT$|^DYNAMIC-TCP$|^DYNAMIC-UDP$</id>
66 <description>Ignored snort ids.</description>
69 <rule id="20152" level="10" frequency="$IDS_FREQ" timeframe="120" ignore="90">
70 <if_matched_sid>20101</if_matched_sid>
72 <check_if_ignored>id</check_if_ignored>
73 <description>Multiple IDS alerts for same id.</description>
76 <rule id="20151" level="10" frequency="$IDS_FREQ" timeframe="120" ignore="90">
77 <if_matched_sid>20101</if_matched_sid>
79 <check_if_ignored>srcip, id</check_if_ignored>
80 <description>Multiple IDS events from same source ip.</description>
84 <!-- This rule is to detect bad configured IDSs alerting on
85 - the same thing all the time. We will skip those events
86 - since they became just noise.
88 <rule id="20161" level="11" frequency="3" timeframe="3800">
89 <if_matched_sid>20151</if_matched_sid>
92 <ignore>srcip, id</ignore>
93 <description>Multiple IDS events from same source ip </description>
94 <description>(ignoring now this srcip and id).</description>
97 <rule id="20162" level="11" frequency="3" timeframe="3800">
98 <if_matched_sid>20152</if_matched_sid>
101 <description>Multiple IDS alerts for same id </description>
102 <description>(ignoring now this id).</description>