File: honeyd.rules

package info (click to toggle)
prelude-lml 0.9.4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,028 kB
  • ctags: 772
  • sloc: sh: 8,898; ansic: 6,432; makefile: 176
file content (233 lines) | stat: -rw-r--r-- 9,019 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
#####
#
# Copyright (C) 2003 Michael Boman <mboman at gentoo dot org>
# All Rights Reserved
#
# This file is part of the Prelude-LML program.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
#####

# Rules for honeyd version 0.5 (and perhaps later, NOT TESTED with later!)

#LOG:Dec 30 20:09:03 hacklab honeyd[5711]: Killing attempted connection: tcp (127.0.0.1:46190 - 192.168.1.20:646)
regex=Killing attempted connection: (tcp|udp) \(([\d\.]+):(\d+) - ([\d\.]+):(\d+)\); \
 classification.text=Killing attempted connection; \
 id=2600; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.port=$3; \
 source(0).service.iana_protocol_name=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.port=$5; \
 target(0).service.iana_protocol_name=$1; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Someone tried to connect to a port on the honeypot; \
 last

#LOG:Dec 30 20:09:05 hacklab honeyd[5711]: Connection to closed port: udp (127.0.0.1:37806 - 192.168.1.20:1)
regex=Connection to closed port: (tcp|udp) \(([\d\.]+):(\d+) - ([\d\.]+):(\d+)\); \
 classification.text=Connection to closed port; \
 id=2601; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.port=$3; \
 source(0).service.iana_protocol_name=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.port=$5; \
 target(0).service.iana_protocol_name=$1; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Someone tried to connect to a closed port on the honeypot; \
 last

#LOG:Dec 30 20:09:08 hacklab honeyd[5711]: Killing unknown connection: tcp (127.0.0.1:37814 - 192.168.1.20:80)
regex=Killing unknown connection: (tcp|udp) \(([\d\.]+):(\d+) - ([\d\.]+):(\d+)\); \
 classification.text=Connection to closed port; \
 id=2602; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.port=$3; \
 source(0).service.iana_protocol_name=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.port=$5; \
 target(0).service.iana_protocol_name=$1; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Someone tried to connect to a port on the honeypot; \
 last

#LOG:Dec 30 20:09:01 hacklab honeyd[5711]: Sending ICMP Echo Reply: 192.168.1.20 -> 127.0.0.1
regex=Sending ICMP Echo Reply: ([\d\.]+) -> ([\d\.]+); \
 classification.text=Sending ICMP Echo Reply; \
 id=2603; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.iana_protocol_name=icmp; \
 source(0).service.iana_protocol_number=1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 target(0).service.iana_protocol_name=icmp; \
 target(0).service.iana_protocol_number=1; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Honeypot replied to a ICMP echo request; \
 last

# Entries created from scanning syslog() calls in the honeyd (0.7a) source(0).

# Connection established: %s -> proxy to %s:%s
# Connection established: <attacker ip> -> proxy to <target(0).ip>:<target(0).port>
regex=Connection established: ([\d\.]+) -> proxy to ([\d\.]+):(\d+); \
 classification.text=Proxy connection establised; \
 id=2604; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 target(0).service.port=$3; \
 assessment.impact.completion=success; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Honeypot established a proxy connection; \
 last


# Connection established: %s -> subsystem \"%s\"
# Connection established: <attacker ip> -> subsystem "<script name>"
regex=Connection established: ([\d\.]+) -> subsystem "(.*)"; \
 classification.text=Subsystem connection establised; \
 id=2605; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 target(0).process=$2; \
 assessment.impact.completion=success; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Attacker accessed virtual service on honeypot; \
 last

# Connection established: subsystem \"%s\" -> %s
# Connection established: subsystem "<script name>" -> <attacker ip>
regex=Connection established: subsystem \"(.*)\" -> ([\d\.]+); \
 classification.text=Subsystem connection establised; \
 id=2606; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).process=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 assessment.impact.completion=success; \
 assessment.impact.type=recon; \
 assessment.impact.severity=medium; \
 assessment.impact.description=Honeypot virtual service responded to attacker; \
 last

# switching to polling mode
regex=switching to polling mode; \
 classification.text=Subsystem connection establised; \
 id=2607; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 assessment.impact.completion=success; \
 assessment.impact.type=recon; \
 assessment.impact.severity=low; \
 assessment.impact.description=Honeypot switched to polling mode; \
 last

# Subsystem \"%s\" died
# Subsystem "<script name>" died
regex=Subsystem \"(.*)\" died; \
 classification.text=Honeypot virtual service died; \
 id=2608; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 assessment.impact.completion=success; \
 assessment.impact.type=recon; \
 assessment.impact.severity=high; \
 assessment.impact.description=Honeypot virtual service died; \
 last

# Subsystem %s on %s attempts illegal bind %s:%d
# Subsystem <script name> on <honeyd template> attempts illegal bind <address(0).:<port>
regex=Subsystem (.*) on (.*) attempts illegal bind ([\d\.]+):(\d+); \
 classification.text=Honeypot virtual service attempts illegal bind; \
 id=2609; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 assessment.impact.completion=success; \
 assessment.impact.type=recon; \
 assessment.impact.severity=high; \
 assessment.impact.description=Honeypot virtual service attempted an illigal bind; \
 last

#Dec 30 20:08:24 hacklab honeyd[5711]: listening on eth0: ip  and not ether src 00:10:5a:7a:6c:47
#LOG:Dec 30 20:12:21 hacklab honeyd[5752]: listening on eth0: ip and (dst 192.168.1.20) and not ether src 00:10:5a:7a:6c:47
#Dec 30 20:15:53 hacklab honeyd[5779]: listening on lo: ip and (dst 192.168.1.20)
regex=listening on (\S+):; \
 classification.text=Honeypot starting up; \
 id=2610; \
 revision=1; \
 analyzer(0).name=honeyd; \
 analyzer(0).manufacturer=www.honeyd.org; \
 analyzer(0).class=Honeypot; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.severity=info; \
 assessment.impact.description=Honeypot started; \
 source(0).interface=$1; \
 last