Skip to main content
Semgrep Connection

This article walks through the details of configuring Semgrep to connect to Drata.

Updated over 2 months ago

Connecting Semgrep to Drata allows for the automated, continuous monitoring of SLA due dates and evidence collection of vulnerabilities issues required for compliance.

This integration automates evidence collection for the Vulnerability Scanning test, which is mapped to DCF-18 by default. You can view findings by selecting the View Findings button after connecting or navigating directly to the Vulnerabilities page through the left-side navigation menu.

Prerequisite

  • Create a Semgrep API token with the following scopes enabled: Agent CI and Web API. Copy and store the token securely; you will need it to connect Semgrep to Drata.

Note: Drata will pull up to 1,000 new or updated vulnerabilities for each connection daily, ordered by severity from critical to low. You can select what kind of vulnerabilities will be synced based on the severity when connecting.

Connect Semgrep to Drata

  1. Select Connections from the left-side navigation menu.

  2. Go to the Available Connections tab and search for "Semgrep".

    • Alternatively, you can select Vulnerability Scanning under the Types section of the connections to search for the connection.

  3. In the connection drawer, you can select the severity and the date of the vulnerabilities you want to sync. These selections will also be included in the test result report for visibility.

    • Severity of vulnerabilities: Select the severity level of the vulnerabilities that you want to sync into Drata for compliance monitoring. Critical and High are auto-selected. Drata will bring up to 1000 new vulnerabilities or updates to vulnerabilities, sorted by severity.

    • First seen on: Select the date when the vulnerabilities you want to sync were first created. All vulnerabilities detected on and after this date will be synced.

  4. Select the connect button to proceed.

  5. Enter the newly created web API token.

Once the connection is successfully created, you can select the View Findings button on the connection card or navigate to the Vulnerabilities page to review and manage the synced vulnerabilities for compliance monitoring. Learn more at Vulnerabilities help article.

Did this answer your question?