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