---
updatedAt: 2026-04-09T11:17:01.000Z
agentTools:
  projectIndex: https://docs.kondukto.io/llms.txt
---

# Veracode SCA

Veracode SCA (formerly Sourceclear) scans open-source dependencies in your application repositories to identify known vulnerabilities and outdated libraries. In Invicti ASPM, Veracode SCA is an **import-based** integration — scan results are generated by the Veracode SCA CLI (`srcclr`) and then imported into Invicti ASPM.

> **Important:** Veracode SCA is an **import-based** scanner. No connection credentials are required in Invicti ASPM. Scans are run locally using the Veracode SCA CLI (`srcclr`), and the resulting JSON report is imported into Invicti ASPM.

## Prerequisites

| Requirement                     | Description                                                                |
| ------------------------------- | -------------------------------------------------------------------------- |
| **Veracode SCA CLI** (`srcclr`) | Install the Veracode SCA CLI on your build server or developer machine     |
| **Veracode SCA Agent Token**    | Required by the `srcclr` CLI to authenticate with the Veracode SCA service |
| **JSON Export**                 | Generate a JSON report using `srcclr` and import it into Invicti ASPM      |

### How to Get a Veracode SCA Agent Token (on Veracode Side)

1. Log in to the Veracode Platform.
2. Navigate to **Veracode SCA** > **Agents**.
3. Click **Create Agent** or select an existing agent.
4. Copy the **Agent Token** from the agent details page.

> **Note:** The Agent Token is used only by the `srcclr` CLI — it is not entered in Invicti ASPM.

## Step 1: Navigate to Integrations

From the left sidebar menu, click on **Integrations**.

## Step 2: Select the SCA Tab

On the Integrations > Scanners page, click on the **SCA** tab.

<Image align="center" alt="SCA tab" border={true} src="https://files.readme.io/5c51d307db605c520dda810addc964061e09ccf6ad743c0192e8370b22875c4c-sca-tab_1.png" className="border" />

## Step 3: Find and Activate Veracode SCA

Scroll through the list of SCA scanners to find **Veracode SCA**.

* If Veracode SCA is **not activated**, click the **Activate** button to enable the integration.

> **Note:** The scan method badge on the Veracode SCA card is **Import**. No connection settings are required.

<Image align="center" alt="Veracode Sca settings" border={true} src="https://files.readme.io/dfcecf9346f25bdec783bbc462112a02a9059223e2fc82c4d812275fa3f0ff7f-veracode-sca-settings.png" className="border" />

## Step 4: Import Scan Results

Run the `srcclr` CLI scan and import the output file via KDT:

```bash
# Run Veracode SCA scan and generate JSON
SRCCLR_API_TOKEN=<your-agent-token> srcclr scan --json > results.json

# Import the results using KDT
kdt scan -p <project_name> -t veracodesca -b <branch_name> --file results.json
```

## Summary

| Step | Action                                              |
| ---- | --------------------------------------------------- |
| 1    | Navigate to Integrations from the sidebar           |
| 2    | Select the SCA tab                                  |
| 3    | Activate Veracode SCA                               |
| 4    | Run `srcclr` CLI and import the JSON report via KDT |

***

## How to Create a Scan

### KDT Command

```bash
kdt scan -p <project_name> -t veracodesca -b <branch_name>
```

***

## Generating the JSON Report with Veracode SCA CLI

### Installation

```bash
curl -sSL https://download.sourceclear.com/install | sh
```

### Running a Scan

```bash
# Set your agent token
export SRCCLR_API_TOKEN=<your-agent-token>

# Scan a project directory and export JSON
cd /path/to/your/project
srcclr scan --json > results.json
```

The `results.json` file is the report file to import into Invicti ASPM.

***

## Troubleshooting

### Import Issues

| Issue                             | Resolution                                                                                                          |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| **Invalid JSON format**           | Ensure the file was generated by `srcclr scan --json`. Other formats are not supported.                             |
| **Empty results after import**    | The project may have no open-source dependencies, or all detected vulnerabilities are below the severity threshold. |
| **Import fails with parse error** | The JSON file may be corrupted or truncated. Re-run the `srcclr` scan and regenerate the report.                    |
| **Duplicate findings**            | If the same report is imported multiple times, Invicti ASPM deduplicates based on vulnerability hashes.             |

### Scan Issues

| Issue                              | Resolution                                                                                                                    |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| **`srcclr` fails to authenticate** | Verify the `SRCCLR_API_TOKEN` environment variable is set correctly with a valid agent token.                                 |
| **No dependencies found**          | Ensure the project has a supported package manager manifest (e.g., `pom.xml`, `package.json`, `requirements.txt`).            |
| **Unsupported language**           | Check the [Veracode SCA supported languages list](https://docs.veracode.com/r/c_sc_supported_languages) for coverage details. |

***

## Best Practices

* Integrate the `srcclr scan` step into your CI/CD pipeline to generate fresh scan results on every build.
* Use a dedicated Veracode SCA agent token per environment (development, staging, production).
* Store the agent token in your CI/CD secrets manager rather than hardcoding it in pipeline scripts.
* Always use the `--json` flag to generate the machine-readable report format compatible with Invicti ASPM import.
* Periodically check for updates to the `srcclr` CLI to ensure compatibility with the latest dependency manifests.

***

## Limitations

* Veracode SCA in Invicti ASPM is import-only — no live API connection is established, and scans cannot be triggered from Invicti ASPM.
* Only the JSON output format from `srcclr scan --json` is supported; CSV or HTML exports are not importable.
* Reachability analysis and method-level vulnerability data from Veracode SCA are not currently surfaced in Invicti ASPM findings.
* The integration does not automatically pull new scan results from the Veracode Platform; each import is a manual or CI/CD-triggered action.