-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenlastovr-sample.yml
110 lines (100 loc) · 3.48 KB
/
genlastovr-sample.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
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
### genlastOVR.yml - configuration file to run genlastOVR.py
#
#
# gvm connection
gvm:
#--- for sock connection
# the local user who runs the script must be on 'gvm' group
connection: 'sock'
sock_path: '/var/run/gvm/gvmd.sock'
#--- for tls connection
# 1. add
# OPTIONS="-a 0.0.0.0 -p 9390"
# to /etc/sysconfig/gvmd and add
# OPTIONS="--mlisten 127.0.0.1 --mport 9390"
# to /etc/sysconfig/gsad
#
# 2. remove --munix-socket=/var/run/gvmd/gvmd.sock from ExecStart option
# on file /etc/systemd/system/multi-user.target.wants/gsad.service
#
# 3. restart services
# $ systemctl daemon-reload
# $ systemctl restart gvmd.service
# $ systemctl restart gsad.service
#
# 4. open the tcp port with firewall-cmd (if used)
# $ firewall-cmd --add-port=9390/tcp --permanent
# $ firewall-cmd --reload
#
#connection: 'tls'
#hostname: 'gvm.example.com'
#port: 9390
#--- for ssh connection
# the remote user at gvm server must connect to the gvm socket. To make it work:
# 1. create and grant execution permission to script gvm_socket_shell
# in the home folder of this user:
# #!/bin/bash
# socat UNIX:/var/run/gvmd/gvmd.sock -
#
# 2. modify shell for the user
# $ sudo usermod -s /home/{remote_user}/gvm_socket_shell.sh {remote_user}
#
# (solution by krisko at https://forum.greenbone.net/t/connect-python-client-python-gvm-to-gvm-11-via-ssh/4730/9)
#
# the remote user must be part of 'gvm' group
#
#connection: 'ssh'
#hostname: 'gvm.example.com'
#port: 22
#username: '{remote_user}'
#password: '{remote_password}'
#
# This gsad user must have get_tasks permission in all tasks that will be exported
# (usually I create a role and give get_tasks permissions to each task to this role)
# (yeah, it works but should be easier)
credentials:
user: '{gsad_user}'
password: '{gsad_password}'
# data directory
workdir: '/path/to/work/directory'
# where to get cisa known active exploited vulnerabilities list. cisa_file is relative to workdir
cisa_url: 'https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json'
cisa_file: '/filters/cisa_latest.txt'
# where to get ms patch tuesday list. ms_file is relative to workdir
ms_url: 'https://api.msrc.microsoft.com/cvrf/v2.0/document/'
ms_file: '/filters/ms_latest.txt'
# tasks whose results will be exported
tasks: [
'001 - Servers',
'003 - Infra',
]
# filter used to export results
global_filter: 'severity>3.9 apply_overrides=1 rows=1000 min_qod=70 first=1 sort-reverse=severity result_hosts_only=1'
# reports to be created
reports:
'000.Cisa.Active.Exploits':
input: ['*.xml']
format: 'xlsx'
reporttype: ['h', 'v']
cve:
includes: '/filters/cisa_latest.txt'
'001.Servers':
input: ['001*.xml']
format: 'xlsx'
reporttype: ['h', 'v']
regex:
excludes: ['defender', 'firefox', 'SSL/TLS', 'ssh', 'cipher']
network:
excludes: ['10.0.1.0/24','192.168.0.10-192.168.0.15', '172.20.9.16']
cve:
excludes: '/filters/ms_latest.txt'
'002.Infra':
input: ['003*.xml']
format: 'xlsx'
reporttype: ['h', 'v']
regex:
excludes: ['defender', 'firefox', 'SSL/TLS', 'ssh', 'cipher']
network:
excludes: ['10.0.1.0/24','192.168.0.10-192.168.0.15', '172.20.9.16']
cve:
excludes: '/filters/ms_latest.txt'