-
Notifications
You must be signed in to change notification settings - Fork 0
/
CobaltStrike-filebeat.yml
63 lines (56 loc) · 1.42 KB
/
CobaltStrike-filebeat.yml
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
filebeat.prospectors:
- type: log
scan_frequency: 5s
enabled: true
fields_under_root: true
paths:
- /root/cobaltstrike/logs/*/events.log
fields:
infralogtype: rtops
cslogtype: events
- type: log
scan_frequency: 5s
enabled: true
fields_under_root: true
paths:
- /root/cobaltstrike/logs/*/weblog.log
fields:
infralogtype: rtops
cslogtype: weblog
- type: log
scan_frequency: 5s
enabled: true
fields_under_root: true
paths:
- /root/cobaltstrike/logs/*/*/beacon_*.log
multiline.pattern: '^\d\d\/\d\d\s\d\d\:\d\d\:\d\d\s\[' # match "06/19 12:32:56 ["
multiline.negate: true
multiline.match: after
fields:
infralogtype: rtops
cslogtype: beacon
- type: log
scan_frequency: 5s
enabled: true
fields_under_root: true
paths:
- /root/cobaltstrike/logs/*/*/keystrokes/keystrokes_*.txt
multiline.pattern: '^\d\d\/\d\d\s\d\d\:\d\d\:\d\d\s\bReceived keystrokes\b$' # match "06/19 12:32:56 Received keystrokes"
multiline.negate: true
multiline.match: after
fields:
infralogtype: rtops
cslogtype: keystrokes
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 3
name: "@@HOSTNAME@@"
fields_under_root: true
fields:
attackscenario: @@ATTACKSCENARIO@@
harvester.limit: 1
output.logstash:
hosts: ["@@HOSTANDPORT@@"]
ssl.certificate_authorities: ["/etc/filebeat/redelkCA.crt"]