# Veracode

Open Veracode static analysis flaws in the files your agent changes are judged on every turn, so real ones get fixed.

With Veracode connected, LeoPrevent judges the open static analysis flaws in the files your agent changes, on every turn. Real ones go to the agent as existing flaws, to fix in the same change when that is safe. Likely false positives are confirmed with the agent and listed in **Security tools**, where they can be proposed as mitigations in Veracode.

For flaws in files no agent is working on, a [sweep](https://help.leotrace.io/sweep-a-scanner-backlog/) does the same for the whole backlog, when you ask for it.

LeoPrevent reads static analysis findings only. Software composition analysis and dynamic analysis findings are not read.

Available to Admins and Owners.

## Before you start

In the Veracode Platform, open your profile menu, select **API Credentials** and generate them. Note the **API ID** and **API secret key**: Veracode shows the secret once.

The credentials act as your user, who needs to view the applications you want checked. To undo a mitigation LeoPrevent proposed, the user also needs the Mitigation Approver role. Veracode credentials expire after a year, and reviews stop checking Veracode when they do.

## Connect Veracode

1. Open **Integrations** and select **Veracode**.
2. Choose your **Region**: Commercial (analysiscenter.veracode.com) or European (analysiscenter.veracode.eu).
3. Enter the **API ID** and **API secret key**.
4. Select **Connect**.

If Veracode rejects the credentials, check them and the region. Once connected, reload the page: **Veracode** appears under **Security tools** in the sidebar.

## Link applications to repositories

Each Veracode application is matched to a repository automatically: by the repository URL on its profile, or else by an application name that matches the repository's name.

When an application's name differs from its repository's, open the Veracode drawer, pick the repository next to the application under **Applications**, and select **Save links**. Leave it on **Automatic** to keep the automatic match.

## What you get

- **Security tools > Veracode**: flaws as LeoPrevent judged them, and the likely false positives to **Confirm false positive** or **Mark as real**.
- A **Findings fixed** column on **Repositories** (**Veracode findings fixed** when Veracode is your only security tool): flaws flagged on a turn and confirmed fixed when the fix was checked again.
- `/leoprevent:sweep veracode` for the backlog.

LeoPrevent never closes a Veracode flaw. A confirmed false positive is proposed in Veracode as a false positive mitigation, with LeoPrevent's reason, and your Veracode reviewers approve or reject it there. With [Auto ignore false positives](https://help.leotrace.io/auto-ignore-false-positives/) on, one the agent confirms is proposed for you; otherwise a Member, Admin or Owner confirms it. Fixed flaws close in Veracode on its next scan. No code is sent to Veracode.

## Disconnect

Select **Disconnect** in the Veracode drawer. Reviews stop checking your Veracode flaws and the application links are forgotten. The API credentials stay valid until you revoke them in Veracode.

Source: https://help.leotrace.io/veracode/ (updated 2026-11-19)
