Maps Assess Vulnerabilities to Protect Rules and Generates Corresponding CSV Files
- Python 3.x
- Install Dependencies
pip3 install -r requirements.txt
- Configure Credentials
Edit the
contrast_security.yaml
file, replacing the below values with your credentials from:Contrast UI -> User Settings -> YOUR KEYS
api:
url: CONTRAST_URL
api_key: CONTRAST_API_KEY
service_key: CONTRAST_SERVICE_KEY
user_name: CONTRAST_USER_NAME
organization_id: CONTRAST_ORGANIZATION_ID
- Run Enter the following command to run
python3 main.py
- Two CSV files will be generated
protect_vulnerability_mapping.csv
protection_statuses.csv
Logging is not very robust yet, but there should be some information within the contrast.log
file if you run into issues.