<!-- @(#) $Id$
  -  Official Netscreen Firewall 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="netscreenfw,">
  <rule id="4500" level="0">
    <decoded_as>netscreenfw</decoded_as>
    <description>Grouping for the Netscreen Firewall rules</description>
  </rule>

  <rule id="4501" level="3">
    <if_sid>4500</if_sid>
    <action>notification</action>
    <description>Netscreen notification message.</description>
  </rule>

  <rule id="4502" level="4">
    <if_sid>4500</if_sid>
    <action>warning</action>
    <description>Netscreen warning message.</description>
  </rule>

  <rule id="4503" level="5">
    <if_sid>4500</if_sid>
    <action>critical</action>
    <description>Netscreen critical/alert message.</description>
  </rule>

  <rule id="4513" level="5">
    <if_sid>4500</if_sid>
    <action>alert</action>
    <description>Netscreen critical/alert message.</description>
  </rule>
  
  <rule id="4504" level="5">
    <if_sid>4500</if_sid>
    <action>information</action>
    <description>Netscreen informational message.</description>
  </rule>

  <!-- ns204: NetScreen device_id=ns204 [Root]system-critical-00027: 
     - Configuration Erase sequence accepted -->
  <rule id="4505" level="11">
    <if_sid>4503</if_sid>
    <id>^00027</id>
    <description>Netscreen Erase sequence started.</description>
    <group>service_availability,</group>
  </rule>

  <rule id="4506" level="8">
    <if_sid>4501</if_sid>
    <id>^00002</id>
    <description>Successfull admin login to the Netscreen firewall</description>
    <group>authentication_success,</group>
  </rule>
  
  <rule id="4507" level="8">
    <if_sid>4502</if_sid>
    <id>^00515</id>
    <description>Successfull admin login to the Netscreen firewall</description>
    <group>authentication_success,</group>
  </rule>

  <rule id="4508" level="8">
    <if_sid>4501</if_sid>
    <id>^00018</id>
    <description>Firewall policy changed.</description>
    <group>config_changed,</group>
  </rule>

  <rule id="4509" level="8">
    <if_sid>4504</if_sid>
    <id>^00767</id>
    <description>Firewall configuration changed.</description>
    <group>config_changed,</group>
  </rule>
  
  <rule id="4550" level="10" frequency="4" timeframe="180" ignore="60">
    <if_matched_sid>4503</if_matched_sid>
    <same_source_ip />
    <description>Multiple Netscreen critical messages from </description>
    <description>same source IP.</description>
  </rule>

  <rule id="4551" level="10" frequency="6" timeframe="180" ignore="60">
    <if_matched_sid>4503</if_matched_sid>
    <description>Multiple Netscreen critical messages.</description>
  </rule>

  <rule id="4552" level="10" frequency="4" timeframe="180" ignore="60">
    <if_matched_sid>4513</if_matched_sid>
    <same_source_ip />
    <description>Multiple Netscreen alert messages from </description>
    <description>same source IP.</description>
  </rule>

  <rule id="4553" level="10" frequency="8" timeframe="100" ignore="60">
    <if_matched_sid>4513</if_matched_sid>
    <description>Multiple Netscreen alert messages.</description>
  </rule>
</group> <!-- SYSLOG,NETSCREENFW -->
