StackHawk Documentation StackHawk Logo HawkDocs

No results found

Try different keywords or check your spelling

Search documentation

Find guides, API references, and more

esc

Snyk Code

snyk

StackHawk’s official Snyk Code integration.

Overview

StackHawk with Snyk Code helps teams identify and prioritize security issues by correlating static analysis (SAST) results with dynamic testing (DAST) findings.

With this integration you can:

  • View Snyk Code results alongside HawkScan findings
  • See the exact line of code associated with vulnerabilities
  • Confirm whether SAST-detected vulnerabilities are exploitable through DAST validation
  • Prioritize remediation based on correlated results

Features

  • Automatically link HawkScan findings with Snyk Code issues during scan runs
  • View Snyk Code issue details in the Finding Details view with direct links to Snyk

Requirements

StackHawk

You must have one of the following StackHawk account types:

  • Pro
  • Enterprise
  • Enterprise Trial

Snyk

Your Snyk account must have Snyk REST API access enabled. Contact Snyk support if you need to enable API access.

You can integrate with either a Snyk Group or a Snyk Organization.

Snyk Group integration

To integrate with a Snyk Group, you need:

  • Snyk Group ID: Navigate to Group > Settings > General > Group ID in Snyk.

Snyk Group ID

  • Snyk API Key from a Snyk Group Service Account: Navigate to Group > Settings > General > Manage Service Accounts in Snyk to create a Group Service Account and API Key.

Snyk Group Service Account

Snyk Organization integration

To integrate with a Snyk Organization, you need:

  • Snyk Organization ID: Navigate to Organization > Settings > General > Organization ID in Snyk.

Snyk Organization ID

  • Snyk API Key: Use either an Organization Service Account API Key (recommended) or a Personal API Key. Navigate to Organization > Settings > General > Manage Service Accounts in Snyk to create an Organization Service Account.

Snyk Organization Service Account

Setup

  1. Log in to StackHawk and navigate to the Snyk Integration page.
  2. Click Enable Snyk.
  3. In the Connect To Snyk modal:
    1. Select your Snyk Account Type: Group or Organization. If you are using a Personal Snyk API Key, select Organization.
    2. Enter your Snyk Organization ID or Snyk Group ID.
    3. Enter your Snyk API Key and click Next.
  4. In the Connect Snyk Project modal, select the Snyk Project and StackHawk Application you want to connect, then click Finish.

After setup, the Connected Projects list on the Snyk Code Integration page displays your connected Snyk Project and Application.

Configuration

You can add and delete connected projects on the Snyk Code Integration page.

Usage

Once the Snyk Code integration is enabled, the Snyk logo appears throughout StackHawk when there is a Snyk connection. When a StackHawk Application and a Snyk Code Project are connected, HawkScan links its findings with correlated Snyk Code issues for all environments in that application.

Application badging

Applications mapped to a Snyk project display the Snyk logo under the application name.

Application Snyk Badging

Scan and finding list badging

When viewing the scan list or the list of findings for a specific scan, a SAST column is present. If this column displays the Snyk logo, the scan or finding has a linked Snyk Code issue.

Scan list:

Scan List Snyk Badging

Finding list:

Finding List Snyk Badging

Finding details Snyk Code tab

When viewing a finding that has a linked Snyk Code issue, the Snyk Code tab displays issue details with links to Snyk for more information.

The Snyk Code tab shows at most 15 instances of the found Snyk issue.

Finding Details Snyk Tab

Troubleshooting

Setup issues: Verify that your Snyk account has REST API access (also referred to as V3 API access).

No linked Snyk Code issues: Ensure you have connected a StackHawk Application and Snyk Code Project in the integration settings.

Past scans not showing Snyk issues: Snyk issues are only linked for scans run after the Application and Project are connected. Past scans cannot be retroactively linked.

Environment-level mapping: Mappings are configured at the Application level. All scans for all environments in an application will have findings linked with Snyk Code issues. It is not currently possible to map a single environment to a Snyk Code project.

Feedback

Have suggestions, feature requests, or feedback? Contact StackHawk Support.

Your privacy settings

We use first and third party cookies to ensure that we give you the best experience on our website and in our products.