<!-- @(#) $Id$
  -  Official Horde IMP rules for OSSEC.
  -
  -  Copyright (C) 2009 Trend Micro Inc.
  -  All rights reserved.
  -
  -  This program is a free software; you can redistribute it
  -  and/or modify it under the terms of the GNU General Public
  -  License (version 2) as published by the FSF - Free Software
  -  Foundation.
  -
  -  License details: http://www.ossec.net/en/licensing.html
  -->

  
<group name="syslog,hordeimp,">
  <rule id="9300" level="0">
    <decoded_as>horde_imp</decoded_as>
    <description>Grouping for the Horde imp rules.</description>
  </rule>
  
  <rule id="9301" level="0">
    <if_sid>9300</if_sid>
    <match>^[info]</match>
    <description>Horde IMP informational message.</description>
  </rule>

  <rule id="9302" level="3">
    <if_sid>9300</if_sid>
    <match>^[notice]</match>
    <description>Horde IMP notice message.</description>
  </rule>

  <rule id="9303" level="5">
    <if_sid>9300</if_sid>
    <match>^[error]</match>
    <description>Horde IMP error message.</description>
  </rule>
 
  <rule id="9304" level="9" ignore="60">
    <if_sid>9300</if_sid>
    <match>^[emergency]</match>
    <description>Horde IMP emergency message.</description>
    <group>service_availability,</group>
  </rule> 
 
  <rule id="9305" level="3">
    <if_sid>9302</if_sid>
    <match>Login success for </match>
    <description>Horde IMP successful login.</description>
    <group>authentication_success,</group>
  </rule> 
 
  <rule id="9306" level="5">
    <if_sid>9303</if_sid>
    <match>FAILED LOGIN </match>
    <description>Horde IMP Failed login.</description>
    <group>authentication_failed,</group>
  </rule> 

  <rule id="9351" level="10" frequency="6" timeframe="120">
    <if_matched_sid>9306</if_matched_sid>
    <same_source_ip />
    <description>Horde brute force (multiple failed logins).</description>
    <group>authentication_failures,</group>
  </rule>

  <rule id="9352" level="10" frequency="4" timeframe="320">
    <if_matched_sid>9304</if_matched_sid>
    <description>Multiple Horde emergency messages.</description>
    <group>service_availability,</group>
  </rule>
            
</group> <!-- SYSLOG,HORDE_IMP -->


<!-- EOF -->
