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