---
title: "Snyk Code"
description: "Integrate StackHawk with Snyk Code to correlate DAST findings with SAST results and prioritize security issues."
url: https://docs.stackhawk.com/integrations/workflows/snyk/
---

# Snyk Code

![snyk](https://docs.stackhawk.com/images/integrations/logos/snyk.svg)

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

> **Warning:** Your Snyk account must include a valid Snyk Code project. See [Snyk Code](https://snyk.io/product/snyk-code/) for details.

Your Snyk account must have [Snyk REST API](https://docs.snyk.io/snyk-api) access enabled. Contact [Snyk support](https://support.snyk.io/hc/en-us) 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](https://docs.stackhawk.com/images/integrations/snyk/snyk-code-group-settings-id.png)

- **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](https://docs.stackhawk.com/images/integrations/snyk/snyk-code-group-service-account.png)

### 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](https://docs.stackhawk.com/images/integrations/snyk/snyk-code-org-settings-id.png)

- **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](https://docs.stackhawk.com/images/integrations/snyk/snyk-code-org-service-account.png)

## Setup

1. Log in to StackHawk and navigate to the [Snyk Integration page](https://app.stackhawk.com/integrations/snyk).

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](https://app.stackhawk.com/integrations/snyk) 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](https://docs.stackhawk.com/images/integrations/snyk/application-badging.png)

### 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](https://docs.stackhawk.com/images/integrations/snyk/scan-list-badging.png)

**Finding list:**

![Finding List Snyk Badging](https://docs.stackhawk.com/images/integrations/snyk/finding-list-badging.png)

### 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](https://docs.stackhawk.com/images/integrations/snyk/finding-details-tab.png)

## 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](https://docs.stackhawk.com/support/).
