This repo is no longer supported - please use https://github.com/Qualys/add_ec2_connector
THIS SCRIPT IS PROVIDED TO YOU "AS IS." TO THE EXTENT PERMITTED BY LAW, QUALYS HEREBY DISCLAIMS ALL WARRANTIES AND LIABILITY FOR THE PROVISION OR USE OF THIS SCRIPT. IN NO EVENT SHALL THESE SCRIPTS BE DEEMED TO BE CLOUD SERVICES AS PROVIDED BY QUALYS
Info : Python File adds the AWS EC2 connector into Qualys Asset View Connectors w.r.t details provided in "./AWS_EC2_CONNECTOR_INFO.csv" & "./config.txt". Console output as well as debug_file.txt will have both success & failure logs.
Info : csv files contains below attributes required for AWS connector Script looks for AWS_CONNECTOR_INFO.csv in the directory the script runs from
ARN,NAME,EXTID,REGION,MODULE
EXTID must be an INT from 9-90 in length Example: 98765456787654567821
REGION must be single spaced list of regions or "ALL" Currently only ALL and single specified region work. Additonal support for multiple regions is being worked.
Examples
ALL
us-east-1
MODULES must be an list of modules to activate for connector
Examples:
VM
"VM PC"
"VM PC SCA"
config.yml Provide script configuration information for API U/P, vulnerability severity ratings, and Qualys API URL username: "QualysUsername" password: "QualysPassword"
apiURL: "Qualys API URL base (https:// - > .com/, no trailing '/') for your pod" Examples:
This script is written in Python 2.7.x (X > 10) This script requires the following PIP modules to run Modules: sys, requests, datetime, os, time, yaml, json, csv, base64
Example Python module install MAC/Linux "pip install requests" Windows "python -m pip install requests"
Example Python yaml module install MAC/Linux "pip install pyyaml" Windows "python -m pip install pyyaml"
Debug file for script run, located in ./debug folder with time/date stamp per line. To disable debug, comment out all lines containing "debug"