1 <!-- @(#) $Id: ./etc/rules/attack_rules.xml, 2011/09/08 dcid Exp $
3 - Official "attack" correlation 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
17 <!-- System users. They should never log in to the system -->
18 <var name="SYS_USERS">^apache$|^mysql$|^www$|^nobody$|^nogroup$|^portmap$|^named$|^rpc$|^mail$|^ftp$|^shutdown$|^halt$|^daemon$|^bin$|^postfix$|^shell$|^info$|^guest$|^psql$|^user$|^users$|^console$|^uucp$|^lp$|^sync$|^sshd$|^cdrom$|^ossec$</var>
21 <!-- Attack signatures -->
22 <group name="syslog,attacks,">
23 <rule id="40101" level="12">
24 <if_group>authentication_success</if_group>
25 <user>$SYS_USERS</user>
26 <description>System user successfully logged to the system.</description>
27 <group>invalid_login,</group>
30 <rule id="40102" level="14">
31 <regex>^rpc.statd[\d+]: gethostbyname error for \W+</regex>
32 <description>Buffer overflow attack on rpc.statd</description>
33 <group>exploit_attempt,</group>
36 <rule id="40103" level="14">
37 <regex>ftpd[\d+]: \S+ FTP LOGIN FROM \.+ 0bin0sh</regex>
38 <description>Buffer overflow on WU-FTPD versions prior to 2.6</description>
39 <group>exploit_attempt,</group>
42 <rule id="40104" level="13">
43 <match>?????????????????????</match>
44 <description>Possible buffer overflow attempt.</description>
45 <group>exploit_attempt,</group>
48 <rule id="40105" level="12">
49 <match>changed by \(\(null\)</match>
50 <description>"Null" user changed some information.</description>
51 <group>exploit_attempt,</group>
54 <rule id="40106" level="12">
55 <match>@@@@@@@@@@@@@@@@@@@@@@@@@</match>
56 <description>Buffer overflow attempt (probably on yppasswd).</description>
57 <group>exploit_attempt,</group>
60 <rule id="40107" level="14">
61 <regex>cachefsd: Segmentation Fault - core dumped</regex>
62 <description>Heap overflow in the Solaris cachefsd service.</description>
63 <info type='cve'>2002-0033</info>
64 <group>exploit_attempt,</group>
67 <rule id="40109" level="12">
68 <match>attempt to execute code on stack by</match>
69 <description>Stack overflow attempt or program exiting </description>
70 <description>with SEGV (Solaris).</description>
71 <info type="link">http://snap.nlc.dcccd.edu/reference/sysadmin/julian/ch18/389-392.html</info>
72 <group>exploit_attempt,</group>
75 <rule id="40111" level="10" frequency="10" timeframe="160">
76 <if_matched_group>authentication_failed</if_matched_group>
77 <description>Multiple authentication failures.</description>
78 <group>authentication_failures,</group>
81 <rule id="40112" level="12" timeframe="240">
82 <if_group>authentication_success</if_group>
83 <if_matched_group>authentication_failures</if_matched_group>
85 <description>Multiple authentication failures followed </description>
86 <description>by a success.</description>
89 <rule id="40113" level="12" frequency="6" timeframe="360">
90 <if_matched_group>virus</if_matched_group>
91 <description>Multiple viruses detected - Possible outbreak.</description>
95 </group> <!-- SYSLOG, ATTACKS, -->
99 <!-- Privilege escalation messages -->
100 <group name="syslog,elevation_of_privilege,">
101 <rule id="40501" level="15" timeframe="300" frequency="2">
102 <if_group>adduser</if_group>
103 <if_matched_group>attacks</if_matched_group>
104 <description>Attacks followed by the addition </description>
105 <description>of an user.</description>
107 </group> <!-- SYSLOG, ELEVATION_OF_PRIVILEGE, -->
111 <!-- Scan signatures -->
112 <group name="syslog,recon,">
113 <rule id="40601" level="10" frequency="10" timeframe="90" ignore="90">
114 <if_matched_group>connection_attempt</if_matched_group>
115 <description>Network scan from same source ip.</description>
117 <info type="link">http://project.honeynet.org/papers/enemy2/</info>
119 </group> <!-- SYSLOG,SCANS -->