Instructions for deploying and operating the Qualys Connector within the Keyfactor AgileSec Platform for processing and analysis.
Overview
The Qualys Connector integrates the Qualys Cloud Platform with Keyfactor's AgileSec Platform. This Connector retrieves vulnerability scan reports from Qualys and extracts cryptographic protocol findings, bringing protocol and cipher visibility into the AgileSec ecosystem.
What Gets Scanned
The Qualys Connector can discover the following cryptographic asset types from Qualys scan reports:
-
TLS/SSL Protocol Versions: Identifies which protocol versions are in use on scanned hosts.
-
Cipher Suites: Extracts cipher suite information from protocol scan results.
-
Key Exchange Algorithms: Identifies key exchange algorithms observed during scans.
-
Host Information: Captures IP addresses, DNS names, operating systems, and tracking metadata.
Note: The Qualys Connector scans completed scan reports in XML format with titles containing the configured report_title. See Configuration Fields table for more information.
Prerequisites
Ensure you meet the following requirements to enable scanning.
Network Access
Ensure HTTPS network connectivity from AgileSec platform or remote execution machine to the Qualys API. See Qualys Platform Identification for more details from Qualys. unles
Supported Authentication Methods
The Qualys Connector uses Basic Authentication (username and password) to access Qualys:
-
Same credentials you would use to log into the Qualys Cloud Platform.
-
The user must have API access enabled in Qualys.
Qualys Required Access Rights
The Qualys user account must have the following permissions:
|
Permission |
Purpose |
Required |
|---|---|---|
|
|
Required to call Qualys REST API endpoints |
✅ Yes |
|
|
Required to list and download scan reports |
✅ Yes |
|
|
Required for template initialization |
❌ No after template is initialized. |
Remote Execution Requirements
If running the Connector remotely using CLI, the remote execution machine must meet these requirements:
|
Component |
Requirement |
|---|---|
|
Operating System |
|
|
RAM |
Minimum 500 mb (0.5 GB) to enable API calls and data streaming. |
|
Disk Space |
Minimal; scans are API-driven and findings are streamed to the AgileSec platform. No data is stored on disk. |
|
Permissions |
Read/write access to remote sensor working directory (remote sensor install location) |
Qualys Connector and Template Initialization
Before running the Qualys Connector the first time, users must initialize the Connector and generate a report template in Qualys.
Scans may be run on remote host machines with the AgileSec Remote Sensor Package.
Download Remote Sensor Package
-
Open your browser and navigate to the Keyfactor AgileSec Platform Web URL
-
Log in with your credentials
-
Click on "Sensors" in the left navigation menu under Scan
-
Click Remote Scan.
-
Click + Download Remote Sensor.
-
Download the sensor binary for your remote machine’s operating system
Generate Platform Token
-
In the Download Remote UI, click "Generate Token"
-
Copy the generated token
-
Store securely in an environment variable such as
SENSOR_TOKEN:export SENSOR_TOKEN="your-generated-token"
Create Configuration File
-
Create a file
isg_qualys.jsonwith the following variables:{ "qualys": { "url": "QUALYS_URL", "username": "QUALYS_USERNAME", "password": "QUALYS_PASSWORD" } } -
Set the
QUALYS_URL,QUALYS_USERNAME, andQUALYS_PASSWORDvariables. -
Create and save the template
infosec-protocol-template.xmlprovided below:
<?xml version="1.0" encoding="UTF-8"?>
<!-- <!DOCTYPE REPORTTEMPLATE SYSTEM
"https://qualysapi.qg3.apps.qualys.com/api/2.0/fo/report/template/scan/scanreporttemplate_info.dtd"> -->
<REPORTTEMPLATE>
<SCANTEMPLATE>
<TITLE>
<INFO key="title"><![CDATA[InfosecGlobal-Kex-Scan-Report]]></INFO>
</TITLE>
<TARGET>
<INFO key="scan_selection"><![CDATA[HostBased]]></INFO>
<INFO key="include_trending"><![CDATA[0]]></INFO>
<INFO key="asset_groups"><![CDATA[All]]></INFO>
<INFO key="ips"><![CDATA[]]></INFO>
<INFO key="host_with_cloud_agents"><![CDATA[all]]></INFO>
</TARGET>
<DISPLAY>
<INFO key="display_text_summary"><![CDATA[0]]></INFO>
<INFO key="graph_severity"><![CDATA[0]]></INFO>
<INFO key="graph_potential_severity"><![CDATA[0]]></INFO>
<INFO key="graph_ig_severity"><![CDATA[0]]></INFO>
<INFO key="graph_os"><![CDATA[0]]></INFO>
<INFO key="graph_services"><![CDATA[0]]></INFO>
<INFO key="display_custom_footer"><![CDATA[0]]></INFO>
<INFO key="display_custom_footer_text"><![CDATA[]]></INFO>
<INFO key="sort_by"><![CDATA[host]]></INFO>
<INFO key="cvss"><![CDATA[all]]></INFO>
<INFO key="qualys_system_ids"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details"><![CDATA[1]]></INFO>
<INFO key="include_vuln_details_threat"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_impact"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_solution"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_compliance"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_exploit"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_malware"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_results"><![CDATA[1]]></INFO>
<INFO key="include_vuln_details_appendix"><![CDATA[0]]></INFO>
<INFO key="exclude_account_id"><![CDATA[0]]></INFO>
<INFO key="metadata_ec2_instances"><![CDATA[0]]></INFO>
<INFO key="cloud_provider_metadata"><![CDATA[0]]></INFO>
<INFO key="include_vuln_details_detection_logic"><![CDATA[0]]></INFO>
<INFO key="include_trurisk_details"><![CDATA[0]]></INFO>
</DISPLAY>
<FILTER>
<INFO key="selective_vulns"><![CDATA[custom]]></INFO>
<INFO key="search_list_ids"><![CDATA[9408879]]></INFO>
<INFO key="exclude_qid_option"><![CDATA[0]]></INFO>
<INFO key="exclude_search_list_ids"><![CDATA[]]></INFO>
<INFO key="included_os"><![CDATA[ALL]]></INFO>
<INFO key="status_new"><![CDATA[1]]></INFO>
<INFO key="status_active"><![CDATA[1]]></INFO>
<INFO key="status_reopen"><![CDATA[1]]></INFO>
<INFO key="status_fixed"><![CDATA[0]]></INFO>
<INFO key="vuln_active"><![CDATA[0]]></INFO>
<INFO key="vuln_disabled"><![CDATA[0]]></INFO>
<INFO key="vuln_ignored"><![CDATA[0]]></INFO>
<INFO key="potential_active"><![CDATA[0]]></INFO>
<INFO key="potential_disabled"><![CDATA[0]]></INFO>
<INFO key="potential_ignored"><![CDATA[0]]></INFO>
<INFO key="ig_active"><![CDATA[1]]></INFO>
<INFO key="ig_disabled"><![CDATA[0]]></INFO>
<INFO key="ig_ignored"><![CDATA[0]]></INFO>
<INFO key="display_non_running_kernels"><![CDATA[0]]></INFO>
<INFO key="exclude_non_running_kernel"><![CDATA[0]]></INFO>
<INFO key="exclude_non_running_services"><![CDATA[0]]></INFO>
<INFO key="exclude_superceded_patches"><![CDATA[0]]></INFO>
<INFO key="exclude_qids_not_exploitable_due_to_configuration"><![CDATA[0]]></INFO>
<INFO key="categories_list"><![CDATA[ALL]]></INFO>
<INFO key="qds_score_min"><![CDATA[1]]></INFO>
</FILTER>
<SERVICESPORTS>
<INFO key="required_services"><![CDATA[]]></INFO>
<INFO key="unauthorized_services"><![CDATA[]]></INFO>
<INFO key="services_info"><![CDATA[]]></INFO>
<INFO key="required_ports"><![CDATA[]]></INFO>
<INFO key="unauthorized_ports"><![CDATA[]]></INFO>
</SERVICESPORTS>
<USERACCESS>
<INFO key="global"><![CDATA[1]]></INFO>
<INFO key="report_access_users"><![CDATA[]]></INFO>
</USERACCESS>
</SCANTEMPLATE>
</REPORTTEMPLATE>
-
Initialize the connector and Qualys report template with the following commands:
-
On Linux:
Bash./bin/isg_qualys_linux --config <path-to-isg_qualys.json> \ --template <path-to-infosec-protocol-template.xml> -
On Windows:
.\bin\isg_qualys_windows.exe --config <path-to-isg_qualys.json> \ --template <path-to-infosec-protocol-template.xml>
-
This initialization command will:
-
Use the
infosec-protocol-template.xmlto create a search list with the minimum required configuration. -
Generate a report template named
InfosecGlobal-Kex-Scan-Report. -
Exit without initiating a scan.
Recommended: Run this initialization once for every new deployment instance.
Running the Connector
AgileSec Qualys scans can be executed using the following methods:
-
Platform Scan Execution: Configure and execute scans directly through the Keyfactor AgileSec web UI with on-demand or scheduled execution options.
-
API Scan Execution: Programmatically trigger scans through REST API calls, enabling integration with CI/CD pipelines and automation workflows.
-
Remote Scan Execution: Deploy and run the connector via CLI on customer-managed infrastructure for scenarios such as:
-
Scanning air-gapped or internal instances the platform cannot directly reach
-
Customers wanting to manage their own scheduling and execution environment.
-
Refer to Scan Execution Flows for additional scan execution information.
Connectors/Sensors Note: Connectors are considered a subset of Sensors. Sensors and Connectors utilize the same Unified Sensor Framework, but Sensors use the Host Sensor for additional scanning depth.
“Sensor”-labeled variables for API and Remote execution are common to both Sensors and Connectors. Unless specified, do NOT update these with “Connector”.
Configuration Fields
The following parameters are used to configure AgileSec Qualys scans.
|
Field Name |
UI Display Name |
Type |
Required |
Description |
|---|---|---|---|---|
|
|
Qualys API URL |
String |
✅ Yes |
The base URL for your Qualys platform. See Qualys Platform Identification for more information. |
|
|
Username |
String |
✅ Yes |
Qualys account username with API access. |
|
|
Password |
String |
✅ Yes |
Qualys account password. |
|
|
Report Title |
String |
❌ No |
Case-insensitive keyword to match report titles. Only reports containing this keyword are scanned. Defaults to |
Platform Scan Execution
Running scans through the user interface is the simplest and fastest way to get started. The platform enables running on-demand or scheduled scans in a dedicated environment.
Platform Scan Configuration
-
Open your browser and navigate to the Keyfactor AgileSec Platform Web URL
-
Log in with your credentials
-
Click on "Sensors" in the left navigation menu under Scan
-
Click "+ New Sensor".
-
Click on the correct card to open the configuration interface.
Configure Parameters and Start Scan
-
Fill in the required configuration parameters.
-
Click Save.
-
Click Action then Scan to begin a scan.
Note: Click Edit to reconfigure parameters.
API Scan Execution
Scans may be programmatically triggered through REST API calls, enabling seamless integration with CI/CD pipelines, automation workflows, and custom applications. API execution provides flexibility for developers to incorporate cryptographic scanning into their existing development and deployment processes.
Note: For complete API reference, see API.
Generate AgileSec API Access Token
-
Open your browser and navigate to AgileSec Platform UI
-
Log in with your Keyfactor credentials
-
Click "Access Tokens" in the main navigation menu
-
Click "Generate Token" button
-
Set Token Type to API Token and provide the required details
-
Click "Generate" and copy the generated token
AgileSec API Endpoint
POST https://<platform-url>/v3/scan/create/
Request Format
Headers
Content-Type: application/json
isg-api-token: <your-api-token>
Request Body
{
"sensorName": "<sensor name>",
"sensorType": "Qualys Network",
"sensorConfig": {
"url": "<qualys api url>",
"username": "<qualys username>",
"password": "<qualys password>",
"report_title": "agilesec"
},
"callbackId": "<callback id>",
"labels": [
{
"<label name>": "<label value>"
}
],
"priority": "<priority>"
}
Remote Scan Execution
Scans may be run on remote host machines with the AgileSec Remote Sensor Package.
Download Remote Sensor Package
-
Open your browser and navigate to the Keyfactor AgileSec Platform Web URL
-
Log in with your credentials
-
Click on "Sensors" in the left navigation menu under Scan
-
Click Remote Scan.
-
Click + Download Remote Sensor.
-
Download the sensor binary for your remote machine’s operating system
Generate Platform Token
-
In the Download Remote UI, click "Generate Token"
-
Copy the generated token
-
Store securely in an environment variable such as
SENSOR_TOKEN:export SENSOR_TOKEN="your-generated-token"
Create Configuration File
Create a YAML configuration file (e.g., qualys-config.yml) with your scan settings. An example configuration can be found in config/sample-configs/qualys.yml.
Step 4: Run the Connector
Execute the Connector with your configuration file:
-
Linux/macOS
Bash# Set environment variables export SENSOR_TOKEN="your-sensor-token" # Run Connector ./unified_sensor_linux -c qualys-config.yml -
Windows (PowerShell)
PowerShell# Set environment variables $env:SENSOR_TOKEN = "your-sensor-token" # Run Connector .\\unified_sensor_windows.exe -c .\\qualys-config.yml
Remote Scan Execution Configuration Examples
-
Basic Configuration
YAMLscan_config: plugins: - qualys - export config: qualys: name: qualys plugin_config: url: "<https://qualysguard.qg3.apps.qualys.com/>" username: "${env:QUALYS_USER}" password: "${env:QUALYS_PASS}" -
With Custom Report Title Filter
YAMLscan_config: plugins: - qualys - export config: qualys: name: qualys plugin_config: url: "<https://qualysguard.qg3.apps.qualys.com/>" username: "${env:QUALYS_USER}" password: "${env:QUALYS_PASS}" report_title: "crypto-scan"
Known Limitations
Report Format
Only XML-format reports are supported. Reports in other formats (PDF, CSV) are ignored.
Report Title Matching
Reports are selected based on a case-insensitive title keyword match. If no reports match, no findings are produced.
Troubleshooting Common Errors
-
CONFIG-404– Unable to read/parse configuration file-
Cause: The configuration file path is incorrect or the file is malformed.
-
Fix: Verify the config file path and validate JSON syntax.
-
-
CONFIG-422– Required attribute not found-
Cause: A required configuration field is missing.
-
Fix: Ensure
url,username, andpasswordare present in the configuration.
-
-
401 Unauthorized-
Cause: Invalid Qualys credentials.
-
Fix: Verify the username and password are correct and have API access enabled.
-
-
No reports found
-
Cause: No reports match the configured title keyword, or no reports are in XML format with "Finished" status.
-
Fix: Verify reports exist in Qualys. Verify the report title contains
report_title, report status isFinished, and report has not expired or been removed from Qualys history. Defaultreport_titleisagilesec.
-
Getting Support
Collect diagnostic information:
-
Connector version
-
Configuration file (redact passwords)
-
Log output
-
Qualys platform details (URL, API version)
Contact Support
-
Portal: https://support.keyfactor.com