forked from wmetcalf/buildcuckoo-trusty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
suricata.yaml
366 lines (342 loc) · 7.57 KB
/
suricata.yaml
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
%YAML 1.1
---
runmode: single
default-log-dir: /usr/local/suricata/var/log/
outputs:
- fast:
enabled: no
filename: alert
append: yes
- unified2-alert:
enabled: no
filename: unified2.alert
- http-log:
enabled: no
filename: http.log
append: yes
extended: yes
- pcap-info:
enabled: no
- alert-debug:
enabled: no
filename: alert-debug.log
append: yes
- stats:
enabled: no
filename: stats.log
interval: 8
- file-store:
enabled: yes # set to yes to enable
log-dir: files # directory to store the files
force-magic: yes # force logging magic on all stored files
force-md5: yes # force logging of md5 checksums
- file-log:
enabled: yes
filename: files-json.log
append: yes
force-magic: yes # force logging magic on all logged files
force-md5: yes # force logging of md5 checksums
- tls-log:
enabled: no # Log TLS connections.
filename: tls.log # File to store TLS logs.
extended: yes # Log extended information like fingerprint
- eve-log:
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: alert.json
types:
- alert
- eve-log:
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: http.json
types:
- http:
extended: yes # enable this for extended logging information
- eve-log:
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: dns.json
types:
- dns:
- eve-log:
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: tls.json
types:
- tls:
extended: yes # enable this for extended logging information
- eve-log:
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: files.json
types:
- files:
force-magic: yes # force logging magic on all logged files
force-md5: yes # force logging of md5 checksums
- eve-log:
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: ssh.json
types:
- ssh
magic-file: /usr/share/file/magic
af-packet:
- interface: eth0
threads: 1
cluster-id: 99
cluster-type: cluster_round_robin
defrag: yes
use-mmap: yes
- interface: eth1
threads: 1
cluster-id: 98
cluster-type: cluster_round_robin
defrag: yes
detect-engine:
- profile: medium
- custom-values:
toclient-src-groups: 2
toclient-dst-groups: 2
toclient-sp-groups: 2
toclient-dp-groups: 3
toserver-src-groups: 2
toserver-dst-groups: 4
toserver-sp-groups: 2
toserver-dp-groups: 25
- sgh-mpm-context: auto
- inspection-recursion-limit: 3000
threading:
set-cpu-affinity: no
cpu-affinity:
- management-cpu-set:
cpu: [ 0 ] # include only these cpus in affinity settings
- receive-cpu-set:
cpu: [ 0 ] # include only these cpus in affinity settings
- decode-cpu-set:
cpu: [ 0, 1 ]
mode: "balanced"
- stream-cpu-set:
cpu: [ "0-1" ]
- detect-cpu-set:
cpu: [ "all" ]
mode: "exclusive" # run detect threads in these cpus
prio:
low: [ 0 ]
medium: [ "1-2" ]
high: [ 3 ]
default: "medium"
- verdict-cpu-set:
cpu: [ 0 ]
prio:
default: "high"
- reject-cpu-set:
cpu: [ 0 ]
prio:
default: "low"
- output-cpu-set:
cpu: [ "all" ]
prio:
default: "medium"
detect-thread-ratio: 1.5
cuda:
- mpm:
packet-buffer-limit: 2400
packet-size-limit: 1500
packet-buffers: 10
batching-timeout: 1
page-locked: enabled
device-id: 0
cuda-streams: 2
mpm-algo: ac
pattern-matcher:
- b2gc:
search-algo: B2gSearchBNDMq
hash-size: low
bf-size: medium
- b2gm:
search-algo: B2gSearchBNDMq
hash-size: low
bf-size: medium
- b2g:
search-algo: B2gSearchBNDMq
hash-size: low
bf-size: medium
- b3g:
search-algo: B3gSearchBNDMq
hash-size: low
bf-size: medium
- wumanber:
hash-size: low
bf-size: medium
defrag:
max-frags: 65535
prealloc: yes
timeout: 60
flow:
memcap: 32mb
hash-size: 65536
prealloc: 10000
emergency-recovery: 30
prune-flows: 5
flow-timeouts:
default:
new: 30
established: 300
closed: 0
emergency-new: 10
emergency-established: 100
emergency-closed: 0
tcp:
new: 60
established: 3600
closed: 120
emergency-new: 10
emergency-established: 300
emergency-closed: 20
udp:
new: 30
established: 300
emergency-new: 10
emergency-established: 100
icmp:
new: 30
established: 300
emergency-new: 10
emergency-established: 100
stream:
memcap: 32mb
checksum-validation: no # reject wrong csums
inline: no # no inline mode
reassembly:
memcap: 64mb
depth: 0 # reassemble 1mb into a stream
toserver-chunk-size: 2560
toclient-chunk-size: 2560
host:
hash-size: 4096
prealloc: 1000
memcap: 16777216
logging:
default-log-level: info
default-output-filter:
outputs:
- console:
enabled: yes
pfring:
- interface: eth0
threads: 1
interface: eth0
cluster-id: 99
cluster-type: cluster_round_robin
pcap:
- interface: eth0
classification-file: /usr/local/suricata/etc/classification.config
reference-config-file: /usr/local/suricata/etc/reference.config
vars:
address-groups:
HOME_NET: "[192.168.1.0/24]"
EXTERNAL_NET: "any"
HTTP_SERVERS: "$HOME_NET"
SMTP_SERVERS: "$HOME_NET"
SQL_SERVERS: "$HOME_NET"
DNS_SERVERS: "$HOME_NET"
TELNET_SERVERS: "$HOME_NET"
AIM_SERVERS: "$EXTERNAL_NET"
port-groups:
HTTP_PORTS: "80"
SHELLCODE_PORTS: "!80"
ORACLE_PORTS: 1521
SSH_PORTS: 22
action-order:
- pass
- drop
- reject
- alert
host-os-policy:
windows: [0.0.0.0/0]
bsd: []
bsd-right: []
old-linux: []
linux: []
old-solaris: []
solaris: []
hpux10: []
hpux11: []
irix: []
macos: []
vista: []
windows2k3: []
asn1-max-frames: 256
engine-analysis:
rules-fast-pattern: yes
rules: yes
pcre:
match-limit: 3500
match-limit-recursion: 1500
libhtp:
default-config:
personality: IDS
request-body-limit: 0
response-body-limit: 0
# inspection limits
request-body-minimal-inspect-size: 16kb
request-body-inspect-window: 16kb
response-body-minimal-inspect-size: 1024kb
response-body-inspect-window: 32kb
profiling:
rules:
enabled: yes
filename: perf.txt
append: yes
sort: avgticks
packets:
enabled: no
filename: packet_stats.log
append: yes
locks:
enabled: no
filename: lock_stats.log
append: yes
coredump:
max-dump: unlimited
app-layer:
protocols:
tls:
enabled: yes
detection-ports:
dp: 443
dcerpc:
enabled: yes
ftp:
enabled: yes
ssh:
enabled: yes
smtp:
enabled: yes
imap:
enabled: detection-only
msn:
enabled: detection-only
smb:
enabled: yes
detection-ports:
dp: 139
dns:
tcp:
enabled: yes
detection-ports:
dp: 53
udp:
enabled: yes
detection-ports:
dp: 53
http:
enabled: yes
default-rule-path: /usr/local/suricata/etc/
rule-files:
- all.rules
- luajit.rules
- local.rules
- dyndns-http-alert-and-drop.rules
- dyndns-dns.rules