2 - Official Courier rules for OSSEC.
4 - Copyright (C) 2009 Trend Micro Inc.
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
12 - License details: http://www.ossec.net/en/licensing.html
15 <!-- Using logs from: http://www.ossec.net/wiki/index.php/Courier -->
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>
23 <rule id="3901" level="3">
25 <match>^Connection, </match>
26 <description>New courier (imap/pop3) connection.</description>
27 <group>connection_attempt,</group>
30 <rule id="3902" level="5">
32 <match>^LOGIN FAILED,| FAILED:</match>
33 <description>Courier (imap/pop3) authentication failed.</description>
34 <group>authentication_failed,</group>
37 <rule id="3903" level="0">
39 <match>^LOGOUT,|^DISCONNECTED</match>
40 <description>Courier logout/timeout.</description>
43 <rule id="3904" level="3">
45 <match>^LOGIN,</match>
46 <description>Courier (imap/pop3) authentication success.</description>
47 <group>authentication_success,</group>
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>
57 <rule id="3911" level="10" frequency="15" timeframe="30">
58 <if_matched_sid>3901</if_matched_sid>
60 <description>Multiple connection attempts from same source.</description>
63 </group> <!-- SYSLOG,COURIER -->