Imported Upstream version 2.7
[ossec-hids.git] / etc / rules / courier_rules.xml
1 <!-- @(#) $Id: ./etc/rules/courier_rules.xml, 2011/09/08 dcid Exp $
2
3   -  Official Courier 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 <!-- Using logs from: http://www.ossec.net/wiki/index.php/Courier -->
17
18 <group name="syslog,courier,">
19   <rule id="3900" level="0">
20     <decoded_as>courier</decoded_as>
21     <description>Grouping for the courier rules.</description>
22   </rule>
23   
24   <rule id="3901" level="3">
25     <if_sid>3900</if_sid>
26     <match>^Connection, </match>
27     <description>New courier (imap/pop3) connection.</description>
28     <group>connection_attempt,</group>
29   </rule>
30
31   <rule id="3902" level="5">
32     <if_sid>3900</if_sid>
33     <match>^LOGIN FAILED,| FAILED:</match>
34     <description>Courier (imap/pop3) authentication failed.</description>
35     <group>authentication_failed,</group>
36   </rule>
37
38   <rule id="3903" level="0">
39     <if_sid>3900</if_sid>
40     <match>^LOGOUT,|^DISCONNECTED</match>
41     <description>Courier logout/timeout.</description>
42   </rule>
43
44   <rule id="3904" level="3">
45     <if_sid>3900</if_sid> 
46     <match>^LOGIN,</match>
47     <description>Courier (imap/pop3) authentication success.</description>
48     <group>authentication_success,</group>
49   </rule>  
50   
51   <rule id="3910" level="10" frequency="10" timeframe="30">
52     <if_matched_sid>3902</if_matched_sid>
53     <description>Courier brute force (multiple failed logins).</description>
54     <group>authentication_failures,</group>
55     <same_source_ip />
56   </rule>
57
58   <rule id="3911" level="10" frequency="15" timeframe="30">
59     <if_matched_sid>3901</if_matched_sid>
60     <same_source_ip />
61     <description>Multiple connection attempts from same source.</description>
62     <group>recon,</group>
63   </rule>
64 </group> <!-- SYSLOG,COURIER -->
65
66
67 <!-- EOF -->