Docker container with automated OpenVAS 20.8.0 (GVMD 20.8.0) based on the Debian 10 image.
It contains custom automation script that allows to scan selected targets and generate a report with one command.
This is a lite version and it does not include Greenbone Security Assistant - web app for managing OpenVAS.
Previous version with OpenVAS 10 is available here.
Oldest container based on Ubuntu with OpenVAS 9 is available here.
docker pull thedoctor0/openvas-docker-lite
docker run --rm -v $(pwd):/reports/:rw thedoctor0/openvas-docker-lite python3 -u scan.py <target> [options]
This will start up the container and update the NVTs cache - it can take some time, so be patient.
After that, the scan script will run and the progress will be displayed in the console.
Target can be a single IP or CIDR or a comma separated list of IP addresses or CIDRs.
It is possible to specify output filename with -o or --output argument.
By default report is saved as openvas.report.
You can select what report format will be used with -f or --format argument with one of the available profiles.
By default XML format is used to generate the report.
You can select scan profile by adding -p or --profile argument with one of the available profiles.
By default Full and fast profile is used.
You can select scan alive tests by adding -t or --tests argument with one of the available tests.
By default ICMP, TCP-ACK Service & ARP Ping alive tests are used.
You can select scan alive tests by adding -P or --ports argument with one of the available tests.
By default All TCP and Nmap top 100 UDP port list is used. Note that using All TCP and Nmap top 100 UDP will significantly increase the scan time.
You can exclude hosts from specified target by adding -e or --exclude argument with list of IPs.
By default list of excluded hosts is empty.
It is possible to override max_hosts variable in OpenVAS config which specify maximum number of simultaneous hosts tested. Just add -m or --max argument with wanted numeric value.
By default 10 is used as max_hosts variable value.
It is possible to override max_checks variable in OpenVAS config which specify maximum number of simultaneous checks against each host tested. Just add -c or --checks argument with wanted numeric value.
By default 3 is used as max_checks variable value.
You can enable printing command responses by adding --debug argument.
You can also add --update argument to force update.
This will synchronize OpenVAS feeds before making the scan.
Feeds update is quite slow, so it will take significantly more time.