Semgrep
Connect Semgrep to Safeguard: what it provides, how to set it up, and the frameworks it provides evidence for.
Connect Semgrep to collect vulnerability scanning evidence with automated compliance tests, switched on per workspace.
| Category | Vulnerability Scanning |
| Connect with | API token |
| What a connection produces | Automated compliance tests |
| Semgrep's guide | semgrep.dev |
Connect with an API token
-
In Semgrep:
- Sign in to Semgrep AppSec Platform (https://semgrep.dev/login) as an admin.
- Go to Settings › Tokens › API tokens (https://semgrep.dev/orgs/-/settings/tokens/api).
- Click Create new token.
- Copy the Secrets name and the Secrets value. The Secrets value is your token and is only shown at this time.
- Under Token scopes, select Read-only (read APIs only; a subset of Web API). Select Web API only if Safeguard needs an endpoint the read-only scope does not cover.
- Optionally change the Name of the token, then click Save.
Semgrep shows the secret only once, so copy it before you leave the page.
Source: docs.semgrep.dev, docs.semgrep.dev, checked 2026-10-07.
The permissions Safeguard needs:
Web API. Safeguard's compliance tests for Semgrep need the credential on the API token tab: an OAuth connection cannot read everything they check. -
On Compliance › Connectors, open Semgrep, click Connect, choose API token and fill in:
Field What to enter API token Required. Stored encrypted and never shown again. -
Click Connect with token.
Frameworks
Safeguard's automated tests read Semgrep and map to the controls below. When a test passes, the result is evidence toward each control it maps to, in every framework listed. It is evidence toward a control, not proof that the control is met on its own.
| Framework | Evidence | Controls | Tests |
|---|---|---|---|
| SOC2 | Automated tests | CC7.1 | 4 |
| ISO/IEC 27001 | Automated tests | A.8.8 | 4 |
| HIPAA Security Rule | Automated tests | 164.308(a)(1) | 4 |
| PCI DSS | Automated tests | 6.3.3, 11.3.1 | 4 |
| NIST CSF 2.0 | Automated tests | ID.RA-01, ID.RA-06 | 4 |
These tests are switched on per workspace by the Safeguard team.
Related
- Vulnerability Scanning connectors
- Compliance connectors: how connecting works, card statuses and multiple accounts
- Connector setup reference: every connector in one table
- Frameworks and connectors: how connectors provide evidence for frameworks