--- /dev/null
+<!-- @(#) $Id: ./etc/rules/smbd_rules.xml, 2011/09/08 dcid Exp $
+
+ - Official SMB 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
+ -
+ - Test logs sent by: Kayvan A. Sylvan <kayvan at sylvan.com>
+ -->
+
+<!-- Still BETA -->
+
+<group name="syslog,smbd,">
+ <rule id="13100" level="0" noalert="1">
+ <decoded_as>smbd</decoded_as>
+ <description>Grouping for the smbd rules.</description>
+ </rule>
+
+ <rule id="13101" level="0">
+ <if_sid>13100</if_sid>
+ <match>getpeername failed. Error was Transport endpoint</match>
+ <description>Samba network problems.</description>
+ </rule>
+
+ <rule id="13102" level="5">
+ <if_sid>13100</if_sid>
+ <match>Denied connection from|Connection denied from</match>
+ <description>Samba connection denied.</description>
+ <group>access_denied,</group>
+ </rule>
+
+ <rule id="13103" level="0">
+ <if_sid>13100</if_sid>
+ <match>Connection reset by peer</match>
+ <description>Samba network problems.</description>
+ </rule>
+
+ <rule id="13104" level="5">
+ <if_sid>13100</if_sid>
+ <match>Permission denied--</match>
+ <description>User action denied by configuration.</description>
+ <group>access_denied,</group>
+ </rule>
+
+ <rule id="13105" level="3">
+ <if_sid>13100</if_sid>
+ <match>Unable to connect to CUPS server</match>
+ <description>Samba network problems (unable to connect).</description>
+ </rule>
+
+ <rule id="13106" level="0" noalert="1">
+ <decoded_as>nmbd</decoded_as>
+ </rule>
+
+ <rule id="13108" level="1">
+ <if_sid>13100</if_sid>
+ <match>smbd is already running</match>
+ <description>An attempt has been made to start smbd but the process is already running.</description>
+ </rule>
+
+ <rule id="13109" level="1">
+ <if_sid>13106</if_sid>
+ <match>nmbd is already running</match>
+ <description>An attempt has been made to start nmbd but the process is already running.</description>
+ </rule>
+
+ <rule id="13110" level="2">
+ <if_sid>13100</if_sid>
+ <match>Connection denied from</match>
+ <description>Connection was denied.</description>
+ </rule>
+
+ <rule id="13111" level="3">
+ <if_sid>13100</if_sid>
+ <match>Socket is not connected</match>
+ <description>Socket is not connected, write failed.</description>
+ </rule>
+
+ <rule id="13112" level="3">
+ <decoded_as>iptables</decoded_as>
+ <match>gvfsd-smb</match>
+ <regex>segfault at \S+ ip \S+ sp \S+ error \d+ in</regex>
+ <description>Segfault in gvfs-smb.</description>
+ </rule>
+
+
+
+</group> <!-- SYSLOG,SMBD, -->
+
+
+<!-- EOF -->