|
|
@ -193,12 +193,14 @@ The docker-compose file has been tested and running on a Ubuntu 18.04 environmen
|
|
|
|
mkdir data && chmod -R 666 data #data/database/report_tracker.db will need 777 to use with local vulnwhisperer
|
|
|
|
mkdir data && chmod -R 666 data #data/database/report_tracker.db will need 777 to use with local vulnwhisperer
|
|
|
|
```
|
|
|
|
```
|
|
|
|
otherwise the users running inside the docker containers will not be able to work with it properly. If you don't apply chmod recursively, it will still work to sync the data, but only root use in localhost will have access to the created data (if you run local vulnwhisperer with the same data will break).
|
|
|
|
otherwise the users running inside the docker containers will not be able to work with it properly. If you don't apply chmod recursively, it will still work to sync the data, but only root use in localhost will have access to the created data (if you run local vulnwhisperer with the same data will break).
|
|
|
|
|
|
|
|
- docker/logstash.yml file will need other read/write permissions in order for logstash container to use the configuration file; youll need to run:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
|
|
|
chmod 666 docker/logstash.yml
|
|
|
|
|
|
|
|
```
|
|
|
|
- You will need to rebuild the vulnwhisperer Dockerfile before launching the docker-compose, as by the way it is created right now it doesn't pull the last version of the VulnWhisperer code from Github, due to docker layering inner workings. To do this, the best way is to:
|
|
|
|
- You will need to rebuild the vulnwhisperer Dockerfile before launching the docker-compose, as by the way it is created right now it doesn't pull the last version of the VulnWhisperer code from Github, due to docker layering inner workings. To do this, the best way is to:
|
|
|
|
```shell
|
|
|
|
```shell
|
|
|
|
|
|
|
|
|
|
|
|
wget https://raw.githubusercontent.com/qmontal/docker_vulnwhisperer/master/Dockerfile
|
|
|
|
wget https://raw.githubusercontent.com/qmontal/docker_vulnwhisperer/master/Dockerfile
|
|
|
|
docker build --no-cache -t hasecuritysolutions/docker_vulnwhisperer -f Dockerfile . --network=host
|
|
|
|
docker build --no-cache -t hasecuritysolutions/docker_vulnwhisperer -f Dockerfile . --network=host
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
This will create the image hasecuritysolutions/docker_vulnwhisperer:latest from scratch with the latest updates. Will soon fix that with the next VulnWhisperer version.
|
|
|
|
This will create the image hasecuritysolutions/docker_vulnwhisperer:latest from scratch with the latest updates. Will soon fix that with the next VulnWhisperer version.
|
|
|
|
- The vulnwhisperer container inside of docker-compose is using network_mode=host instead of the bridge mode by default; this is due to issues encountered when the container is trying to pull data from your scanners from a different VLAN than the one you currently are. The host network mode uses the DNS and interface from the host itself, fixing those issues, but it breaks the network isolation from the container (this is due to docker creating bridge interfaces to route the traffic, blocking both container's and host's network). If you change this to bridge, you might need to add your DNS to the config in order to resolve internal hostnames.
|
|
|
|
- The vulnwhisperer container inside of docker-compose is using network_mode=host instead of the bridge mode by default; this is due to issues encountered when the container is trying to pull data from your scanners from a different VLAN than the one you currently are. The host network mode uses the DNS and interface from the host itself, fixing those issues, but it breaks the network isolation from the container (this is due to docker creating bridge interfaces to route the traffic, blocking both container's and host's network). If you change this to bridge, you might need to add your DNS to the config in order to resolve internal hostnames.
|
|
|
@ -213,13 +215,17 @@ docker exec -i -t 665b4a1e17b6 /bin/bash #where 665b4a1e17b6 is the container im
|
|
|
|
You can also make sure that all ELK components are working by doing "curl -i host:9200 (elastic)/ host:5601 (kibana) /host:9600 (logstash). WARNING! It is possible that logstash is not exposing to the external network the port but it does to its internal docker network "esnet".
|
|
|
|
You can also make sure that all ELK components are working by doing "curl -i host:9200 (elastic)/ host:5601 (kibana) /host:9600 (logstash). WARNING! It is possible that logstash is not exposing to the external network the port but it does to its internal docker network "esnet".
|
|
|
|
- If Kibana is not showing the results, check that you are searching on the whole ES range, as by default it shows logs for the last 15 minutes (you can choose up to last 5 years)
|
|
|
|
- If Kibana is not showing the results, check that you are searching on the whole ES range, as by default it shows logs for the last 15 minutes (you can choose up to last 5 years)
|
|
|
|
- X-Pack has been disabled by default due to the noise, plus being a trial version. You can enable it modifying the docker-compose.yml and docker/logstash.conf files. Logstash.conf contains the default credentials for the X-Pack enabled ES.
|
|
|
|
- X-Pack has been disabled by default due to the noise, plus being a trial version. You can enable it modifying the docker-compose.yml and docker/logstash.conf files. Logstash.conf contains the default credentials for the X-Pack enabled ES.
|
|
|
|
|
|
|
|
- On Logstash container, "/usr/share/logstash/pipeline/" is the default path for pipelines and "/usr/share/logstash/config/" for logstash.yml file, instead of "/etc/logstash/conf.d/" and "/etc/logstash/".
|
|
|
|
|
|
|
|
- In order to make vulnwhisperer run periodically, add to crontab the following:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
|
|
|
0 8 * * * /usr/bin/docker-compose run vulnwhisp-vulnwhisperer
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
To launch docker-compose, do:
|
|
|
|
To launch docker-compose, do:
|
|
|
|
```shell
|
|
|
|
```shell
|
|
|
|
docker-compose -f docker-compose.yml up
|
|
|
|
docker-compose -f docker-compose.yml up
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Known issue: Qualys Vuln Management error -> QualysGuard Username: [ERROR] Could not connect to Qualys - EOF when reading a line (working on vulnwhisperer without docker)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Running Nightly
|
|
|
|
Running Nightly
|
|
|
|
---------------
|
|
|
|
---------------
|
|
|
@ -247,7 +253,7 @@ Authors
|
|
|
|
|
|
|
|
|
|
|
|
Contributors
|
|
|
|
Contributors
|
|
|
|
------------
|
|
|
|
------------
|
|
|
|
- [@qmontal](https://github.com/qmontal)
|
|
|
|
- [Quim Montal (@qmontal)](https://github.com/qmontal)
|
|
|
|
|
|
|
|
|
|
|
|
AS SEEN ON TV
|
|
|
|
AS SEEN ON TV
|
|
|
|
-------------
|
|
|
|
-------------
|
|
|
|