-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.config.yml
More file actions
126 lines (108 loc) · 2.64 KB
/
sample.config.yml
File metadata and controls
126 lines (108 loc) · 2.64 KB
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
config:
concurrency_jobs: 6
concurrency_commands: 6
test_times: 1
debug: false
duration: 0
tool:
bash: bash
capinfos: capinfos
editcap: editcap
tcpdump: tcpdump
tcprewrite: tcprewrite
tcpprep: tcpprep
modifier:
adjust_time: true # default is false, you must set it explicit
time_offset: 0s
keep_ip: false
c1: 192
c2: 168
c3: 186
c4: 11
s1: 10
s2: 132
s3: 123
s4: 22
use_part_3: false
use_part_4: false
p426: false
shuffle: 0
finder:
directory: /data/.prsdata/pcaps/
only_ipv6: false
modifiers:
- id: keep-ip
keep_ip: true
finders:
# 为 auth 协议查找 pcap, 使用默认的修改规则
- id: auth
directory: /data/.prsdata/pcaps/
patterns:
- smtp
- pop3
- ftp
- http
- mysql
# 为 pvs 功能查找 pcap, 使用默认的修改规则
- id: pvs
directory: /data/.prsdata/pcaps/pvs/
- id: sqli
directory: /data/.prsdata/pcaps/pvs/SqlInjection
modifier: keep-ip
- id: webshell-predict
directory: /data/.prsdata/pcaps/webshell/predata/
modifier: keep-ip
- id: webshell-detect
directory: /data/.prsdata/pcaps/webshell/detectdata/
modifier: keep-ip
jobs:
- id: zeek
name: zeek
enable: true
commands:
- name: zeek
command: /opt/zeek/bin/zeek -r {{.Path}} -C /opt/zeek-scripts/tophant.entrypoint.zeek
timeout: 10s
- id: suricata
name: suricata
enable: true
commands:
- name: suricata
command: /opt/suricata/bin/suricata -c /opt/suricata/etc/suricata/suricata.yaml -F /opt/suricata/etc/suricata/bpf-filter.bpf -r {{.Path}} -k none --runmode autofp
timeout: 10s
- id: auth
name: 认证消息
finder: auth
enable: false
commands:
- name: zeek auth
command: /opt/zeek/bin/zeek -r {{.Path}} -C /opt/zeek-scripts/auth/main.zeek
- id: pvs
name: PVS
finder: pvs
enable: false
commands:
- name: zeek protocol http
command: /opt/zeek/bin/zeek -r {{.Path}} -C /opt/zeek-scripts/protocol/http.zeek
- id: sqli
name: SQL 注入
finder: sqli
commands:
- name: zeek protocol http
command: /opt/zeek/bin/zeek -r {{.Path}} -C /opt/zeek-scripts/protocol/http.zeek
- id: aimodel
name: 智能模型
enable: false
commands:
- name: 训练
command: echo {{.Path}}
type: shell
finder: webshell-predict
- name: 等待训练模型生成
command: sleep 7200
timeout: 7202
type: shell
- name: 验证
command: echo {{.Path}}
type: shell
finder: webshell-detect