1 <!-- @(#) $Id: ./etc/rules/courier_rules.xml, 2011/09/08 dcid Exp $
3 - Official Courier 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
16 <!-- Using logs from: http://www.ossec.net/wiki/index.php/Courier -->
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>
24 <rule id="3901" level="3">
26 <match>^Connection, </match>
27 <description>New courier (imap/pop3) connection.</description>
28 <group>connection_attempt,</group>
31 <rule id="3902" level="5">
33 <match>^LOGIN FAILED,| FAILED:</match>
34 <description>Courier (imap/pop3) authentication failed.</description>
35 <group>authentication_failed,</group>
38 <rule id="3903" level="0">
40 <match>^LOGOUT,|^DISCONNECTED</match>
41 <description>Courier logout/timeout.</description>
44 <rule id="3904" level="3">
46 <match>^LOGIN,</match>
47 <description>Courier (imap/pop3) authentication success.</description>
48 <group>authentication_success,</group>
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>
58 <rule id="3911" level="10" frequency="15" timeframe="30">
59 <if_matched_sid>3901</if_matched_sid>
61 <description>Multiple connection attempts from same source.</description>
64 </group> <!-- SYSLOG,COURIER -->