Added

PCI ASV: Finding Exports

Tenable has added a finding export workflow to the Tenable PCI ASV API, enabling you to retrieve findings in bulk rather than paging through them one attestation at a time. You can submit an export request, monitor its progress, and download the results in chunks sized to suit your integration. Export requests can be filtered by attestation, asset, and severity level.

📘

Note

You must request access to these endpoints through Tenable Support, even if you have a valid Tenable PCI ASV license.

Benefits

  • Retrieve findings across all your attestations in a single export request
  • Choose a chunk size of 50 to 2,000 findings to accommodate the memory and timeout constraints of your integration
  • Filter exports by attestation, asset, or severity level to retrieve only the findings you need
  • Monitor export progress and download chunks as soon as they become available, without waiting for the entire export to complete
  • Cancel exports you no longer need while retaining access to chunks that have already been prepared

New Endpoints

The following endpoints are now available:

API EndpointNameDescription
POST /pci-asv/finding/exportExport findingsCreates an export of your PCI ASV findings and returns an identifier used to track the export.
GET /pci-asv/finding/export/listList findings export jobsReturns the status of the 100 most recent finding exports created in your container.
GET /pci-asv/finding/export/{export_uuid}/statusGet findings export statusReturns the status of a finding export, including which chunks are available for download.
GET /pci-asv/finding/export/{export_uuid}/chunk/{chunk_id}Download findings export chunkReturns the findings contained in a specific export chunk.
POST /pci-asv/finding/export/{export_uuid}/cancelCancel findings exportCancels a finding export and sets its status to CANCELLED.

Request Body Parameters

The Export findings endpoint accepts the following request body parameters:

ParameterData TypeDescription
chunk_sizeIntegerRequired. Specifies the number of findings to include in each export chunk. Supported values are 50 through 2000.
attestationsArrayFilters the export to findings associated with the specified attestations. If omitted, the export includes findings from all attestations.
assetsArrayFilters the export to findings associated with the specified assets. If omitted, the export includes findings for all assets.
severityArrayFilters the export to findings with the specified severity levels. Supported values are INFO, LOW, MEDIUM, HIGH, and CRITICAL. If omitted, findings at all severity levels are included.
🛑

Caution

You can create a maximum of three exports within a 60-second period. Additional requests return a 429 response.

Exported Finding Properties

Each finding in an export chunk identifies the associated asset, attestation, and plugin, and includes CVSS version 2 and version 3 scores. The following additional response properties are available:

Response PropertyData TypeDescription
cvesArrayLists the Common Vulnerabilities and Exposures (CVE) identifiers associated with the finding. Tenable returns an empty list or omits this property when the plugin is not associated with any CVE.
solutionStringProvides the recommended remediation for the finding. This property is returned only when the plugin provides a solution.
scan_dateStringSpecifies the date and time when the scan that identified the finding ran, in YYYY-MM-DD HH:MM:SS UTC format.
scan_expiration_dateStringSpecifies the date and time when the scan expires, in YYYY-MM-DD HH:MM:SS UTC format.

For the complete list of response properties, see Download findings export chunk.

Export Workflow

The export workflow follows these steps:

  1. Submit an export request. Use the Export findings endpoint. Tenable returns an export_uuid that identifies the export.
  2. Check the export status. Poll the Get findings export status endpoint to monitor progress. While the export is processing, the chunks_available response property lists the chunks ready for download.
  3. Download available chunks. Use the Download findings export chunk endpoint to download each chunk as it becomes available. You do not need to wait for the entire export to complete.
  4. Cancel an export if needed. If you no longer need an export, use the Cancel findings export endpoint. Any chunks Tenable has already prepared remain available for download.

To review previously created exports, use the List findings export jobs endpoint, which returns the 100 most recent export jobs created in your container.

📘

Note

Tenable removes export chunks after the export expires. The expired response property indicates whether the chunks have been removed.

Example: Export High and Critical Findings for an Attestation

For example, to export high and critical findings for a single attestation in chunks of 500 findings, use the following cURL request:

curl --request POST \
     --url https://cloud.tenable.com/pci-asv/finding/export \
     --header 'X-ApiKeys: accessKey=<YOURACCESSKEY>;secretKey=<YOURSECRETKEY>' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "chunk_size": 500,
  "attestations": [
    "a1b2c3d4-0000-4000-8000-000000000001"
  ],
  "severity": [
    "HIGH",
    "CRITICAL"
  ]
}
'

Tenable returns the identifier for the export:

{
  "export_uuid": "a1b2c3d4-0000-4000-8000-000000000003",
  "resource": "finding"
}
📘

Note

The severity request body parameter uses severity level names, while the severity response property of an exported finding uses numeric values: 0 (Info), 1 (Low), 2 (Medium), 3 (High), and 4 (Critical).