Skip to main content
availability

Package: Invicti AppSec Enterprise (on-premise, on-demand)

Veracode SAST

Invicti AppSec supports Veracode as a SAST (Static Application Security Testing) scanner. This guide explains how to activate and configure the Veracode integration.

Veracode provides cloud-based application security testing including static analysis, dynamic analysis, and software composition analysis.

Prerequisites

Before starting the integration, ensure you have the following information from your Veracode account:

FieldDescriptionRequired
IDAPI ID from your Veracode accountYes
Secret KeyAPI Secret Key from your Veracode accountYes
RegionYour Veracode region (e.g., Commercial, Europe, US Federal)Yes

Get API Credentials (on Veracode Side)

  1. Log in to the Veracode Platform at https://analysiscenter.veracode.com.
  2. Click on your username (upper right-hand corner).
  3. Select API Credentials from the dropdown menu.
  4. Click Generate API Credentials.
  5. Copy both the API ID and API Key immediately (they won't be shown again).
  6. Save these credentials securely.

Step 1: Navigate to Integrations

From the left sidebar menu, click on Integrations.

Step 2: Select the SAST Tab

On the Integrations page, you will see the Scanners section with multiple tabs. Click on the SAST tab (it is selected by default).

  Select the SAST Tab   Select the SAST Tab

Step 3: Find and Activate Veracode

Scroll through the list of SAST scanners to find Veracode.

  • If Veracode is not activated, you will see an "Activate" button. Click it to enable the integration.
  • If Veracode is already activated, you will see a toggle switch in the ON position and a "Deactivate" button, along with a gear icon for configuration.
info

The scan method badge on the Veracode card shows KDT, which means scans are triggered through the Kondukto CLI tool (KDT).

Step 4: Configure Connection Settings

Click on the gear icon on the Veracode card to open the configuration panel. Fill in the required fields:

  1. ID: Enter your Veracode API ID.
  2. Secret Key: Enter your Veracode API Secret Key.
  3. Region: Select your Veracode region from the dropdown (e.g., Commercial (api.veracode.com), Europe, or US Federal).
Integration setup

Step 5: Test the Connection

Click the "Test Connection" button at the bottom of the configuration panel to verify that the provided credentials and URL are correct.

  • If the connection is successful, the integration is ready to use.
  • If the connection fails, verify your API ID and Secret Key values.
  • For existing integrations, you can use the "Retest Connection" button at the top of the panel.

Step 6: Advanced Settings (Optional)

Click on "Advanced Settings" to expand additional options:

SettingDescriptionDefault
Allow team leads to scan this instancePermits team leads to trigger scans using this Veracode instanceOff
Allow team leads to create new instancesPermits team leads to create additional Veracode instancesOff

After modifying advanced settings, click "Save Advanced Settings" to apply changes.

Summary

StepAction
1Navigate to Integrations from the sidebar
2Select the SAST tab under Scanners
3Find Veracode and click Activate (if not already active)
4Click the gear icon and fill in ID, Secret Key, and Region
5Click Test Connection to verify
6(Optional) Configure Advanced Settings for team lead permissions

Create a Scan

After activating and configuring Veracode, you can create scans from your project's scanner settings.

  1. Go to your Project page.
  2. Click on the Settings tab.
  3. Select Scanners from the left sidebar.

Add Veracode Scanner

  1. In the scanner type dropdown, select SAST.
  2. In the scanner dropdown, search for and select Veracode.
  3. Click the Add button to open the scan configuration drawer.
Integration setup

Scan Configuration Fields

FieldDescriptionRequired
EnvironmentSelect the environment for the scan (optional)No
Bind toSelect the Veracode application/project to bind toYes
SandboxSelect a Veracode sandbox for the scan (appears after selecting a project)No
BranchSpecify the branch to scanNo
Meta DataAdditional metadata for the scan (optional)No
Scan TagTag to identify the scan (optional)No
Start ScanToggle to start the scan immediately on Veracode sideNo
Fork Default BranchEnable to fork the default branch before scanningNo

Scheduler

  • Now: Run the scan immediately after saving.
  • Custom Date: Schedule the scan for a specific date and time.

Webhook (Optional)

Enable webhook to trigger scans via actions taken on your application lifecycle management tool:

  1. Check the Trigger scans via actions checkbox.
  2. Select the Platform (e.g., GitHub, GitLab, Bitbucket).
  3. Click Generate to create a Secret Key for webhook authentication.

KDT Command

You can also trigger Veracode scans from your CI/CD pipeline using KDT:

kdt scan -p <project_name> -t veracode -b <branch_name>

Click Save to create the scan configuration.


Troubleshooting

Connection Fails

  • Invalid Credentials: Verify that both the API ID and Secret Key are correct and have not been regenerated.
  • Wrong Region: Ensure you selected the correct region (US or European) matching your Veracode account.
  • Expired Credentials: Veracode API credentials may expire. Regenerate them from the Veracode platform if needed.
  • Network/Firewall: Ensure the Invicti AppSec instance can reach the Veracode API endpoints (analysiscenter.veracode.com for US or analysiscenter.veracode.eu for EU).

Scan Issues

  • No Applications Found: Verify the API credentials have the Results API role assigned.
  • Scan Not Appearing: Veracode scans may take time to complete. Ensure the scan has finished on the Veracode side before importing.
  • Missing Findings: Check that the scan policy in Veracode includes the desired flaw categories.

Best Practices

  • Use API Service Accounts: Create dedicated API credentials for the Invicti AppSec integration instead of using personal credentials.
  • Rotate Credentials Regularly: Regenerate API ID and Secret Key periodically as part of your security hygiene.
  • Select Correct Region: Double-check your region selection; using the wrong region will result in authentication failures.
  • Assign Minimal Permissions: Grant only the necessary API roles (e.g., Results API) to the service account.

Limitations

  • API Rate Limits: Veracode enforces API rate limits. High-frequency scanning may be throttled.
  • Scan Binding: Each Invicti AppSec scan configuration is bound to a specific Veracode application and sandbox.
  • Region Lock: Credentials are region-specific; US credentials do not work with EU endpoints and vice versa.

Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?