Cyberwatch API script to generate data for DefectDojo parser
- Python3
- Access to a Cyberwatch API
Create an api.conf
file with your connection information to Cyberwatch.
Check the Cyberwatch documentation on how to get your API credentials if needed.
- Create a virtual env and activate it:
python3 -m venv .venv
source .venv/bin/activate
- Install the required python packages:
pip install -r requirements.txt
- Run the script, by default the script will prompt the user to input a group name from Cyberwatch:
python3 get_cves_security_issues.py
Enter the group name:
The script will generate a JSON file that contains all CVEs and security issues (active and inactive) present on the assets that belong to the provided group in Cyberwatch.