Imported Upstream version 2.7
[ossec-hids.git] / etc / rules / ms-exchange_rules.xml
1 <!-- @(#) $Id: ./etc/rules/ms-exchange_rules.xml, 2011/09/08 dcid Exp $
2
3   -  Example of MS Exchange rules for OSSEC.
4   -
5   -  Copyright (C) 2009 Trend Micro Inc.
6   -  All rights reserved.
7   -
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
11   -  Foundation.
12   -
13   -  License details: http://www.ossec.net/en/licensing.html
14   -->
15
16
17 <!-- Still BETA - anyone using it? -->
18
19
20 <group name="ms,exchange,">
21   <rule id="3800" level="0">
22     <decoded_as>msexchange</decoded_as>
23     <description>Grouping of Exchange rules.</description>
24   </rule>
25
26   <rule id="3801" level="4">
27     <if_sid>3800</if_sid>
28     <action>RCPT</action>
29     <id>^550</id>
30     <description>E-mail rcpt is not valid (invalid account).</description>
31     <group>spam,</group>
32   </rule>
33   
34   <rule id="3802" level="4">
35     <if_sid>3800</if_sid>
36     <id>^5</id>
37     <description>E-mail 500 error code.</description>
38     <group>spam,</group>
39   </rule>
40
41   <rule id="3851" level="9" frequency="10" timeframe="120" ignore="120">
42     <if_matched_sid>3801</if_matched_sid>
43     <same_source_ip />
44     <description>Multiple e-mail attempts to an invalid account.</description>
45     <group>multiple_spam,</group>
46   </rule>
47   
48   <rule id="3852" level="9" frequency="12" timeframe="120" ignore="240">
49     <if_matched_sid>3802</if_matched_sid>
50     <same_source_ip />
51     <description>Multiple e-mail 500 error code (spam).</description>
52     <group>multiple_spam,</group>
53   </rule>
54   
55
56 </group> <!-- MS,Exchange -->