Create an virtual environment
python3 -m venv venv
source venv/bin/activate
python -m pip install requests
To clean up
deactivate
Create a creds.json
file, see the template creds.json.template
for the format - obtain the API key and secret from your Lacework UI
python3 get_cves.py creds.json
It will tell you how many rows it has found and create a vulnerabilities.csv
Modify timefilter
in the get_host_vulnerabilities
function to set a different time range (default is last 24 hours)
Modify filters
in the get_host_vulnerabilities
function to filter on different fields