This product is not supported for your selected Datadog site. ().
Static scans report issues anywhere in your repositories, including test code and modules that never run in production. Runtime context shows the services that each finding maps to and the runtime risks those services carry, so you can fix findings in live, exposed services first.
Runtime context comes from the services that each finding maps to. Findings from repository scans in all four products share one service mapping. Runtime SCA findings are detected in a running service, so they map to that service directly. For details, see the How findings are mapped to services section.
Findings mapped to one service: Each finding inherits the runtime risks of its service.
Findings mapped to more than one service: A runtime risk applies if any of the mapped services has it.
Unmapped findings: Findings show no risk badges and keep their current severity. Datadog never treats unmapped findings as low risk.
For SCA findings, runtime risks adjust the Datadog Severity Score. For details, see how SCA calculates the Datadog Severity Score. For SAST, Secret Scanning, and IaC Security findings, runtime risks are informational: they don’t change the Datadog Severity Score.
Runtime risks
Runtime risks help you decide which findings to fix first, based on how the mapped services run. Not every risk is available for every product.
Runtime risk
How it is evaluated
SAST
SCA
Secret Scanning
IaC Security
Service in Production
The service runs in a production environment.
Yes
Yes
Yes
Yes
Service Exposed to Attacks
The service has received attacks in the last 15 days.
Yes
Yes
No
Yes
Access to Sensitive Data
The service runs on infrastructure that has access to sensitive data.
Yes
Yes
No
Yes
Privileged Access
The service runs with elevated privileges or can assume a privileged role.
Yes
Yes
Yes
Yes
Publicly Accessible
The service is reachable from the internet.
Yes
Yes
Yes
Yes
SCA findings also carry signals about the vulnerability itself, such as reachability, exploit availability, and Exploit Prediction Scoring System (EPSS) scores. For details, see how SCA calculates the Datadog Severity Score.
Use runtime context
Runtime context appears wherever you work with findings, from filtering lists to inspecting a single finding to tracking risk on the Summary page.
In the explorers
In Code Security > Vulnerabilities, use the Static Code (SAST), Libraries (SCA), Secret Scanning (Secrets), and Infrastructure as Code (IaC) explorers to filter findings in production and exposed services, so you can triage those findings first.
In the Risks facet group, filter by each runtime risk that applies to the product, such as Service in Production and Service Exposed to Attacks. In the IaC explorer, these facets are In Production and Exposed to Attacks.
Each finding shows risk badges under its title, such as Service In Production or Exposed to attacks. IaC Security findings show In production instead of Service In Production. Hover over a badge to see what it means.
Unmapped findings never match a runtime risk filter. If a risk filter returns no results, clear it to see more findings.
In the finding side panel
The finding side panel shows the services that a finding maps to and the runtime risks those services carry, so you can judge how urgent the finding is.
Related To: For SAST, Secret Scanning, and IaC Security findings, the services that the finding maps to. Hover over the label to see how Datadog maps findings to services and how to fix an incorrect mapping. If a finding maps to no service, SAST and Secret Scanning findings show Missing Service, and IaC Security findings hide this row.
Repositories and Impacted services: For SCA findings, the Repositories section shows the services mapped to each finding from a repository scan, and the Impacted services section lists the services where Runtime SCA detected the library. For details, see View vulnerability details.
Risk badges: For SAST, Secret Scanning, and IaC Security findings, the panel header shows the runtime risks that apply to the product.
Severity Breakdown: The base score, followed by one sentence for each runtime risk, for example: “This vulnerability has associated service(s) running in a production environment.” For SCA findings, expand a row in the Repositories section to see its severity breakdown.
On the Summary page
On the Code Security Summary page, runtime context shows how many SAST and SCA findings are in production services and in services exposed to attacks, so you can track risk across repositories and teams.
In the Code vulnerabilities section, select Static (SAST) to see a funnel of SAST findings: Default branch, In your services, In Production, and Exposed to Attacks.
In the Library vulnerabilities section, a funnel shows SCA findings: Default branch, In Production, Exploit Available, and Exposed to Attacks.
Below each funnel, counts appear for the runtime risks that aren’t funnel stages, such as Publicly Accessible, Access to Sensitive Data, and Privileged Access. Risks with no matching findings are hidden.
In the Code vulnerabilities grouped section, select Static (SAST) to group SAST findings by repository and team.
Click a funnel stage or a risk count to open the explorer filtered to those findings.
How findings are mapped to services
Datadog combines several sources to map findings to services, including Software Catalog code locations, runtime data from your services, analysis of your repositories, Error Tracking, and service names. A finding can map to more than one service. For details on each source and how to control the mapping with Software Catalog code locations, see Link findings to Datadog services and teams.
A mapping means that the finding’s file is related to the service. It does not confirm that the file is part of the version of the service that is deployed.
For IaC Security findings, a mapped service means that the IaC file is in that service’s repository or deployment files. It does not confirm that the misconfiguration is present in the running service.
Map more findings to services
Findings without a mapped service get no runtime context, so mapping more of your code to services gives you more findings you can prioritize by risk. Use one or both of these methods:
Add code locations in the Software Catalog (recommended): Add codeLocations to the service’s definition in the Software Catalog. This is the only way to control the mapping explicitly, and it doesn’t require a redeploy.
Report Git metadata from your services: Configure each service built from the repository to report Git metadata, so Datadog can link the service to its repository and map findings automatically. For example, set DD_GIT_REPOSITORY_URL=github.com/<org>/<repo> and DD_GIT_COMMIT_SHA=$(git rev-parse HEAD), then redeploy the service so it reports the new values. See Datadog Source Code Integration.
Mapping changes can take up to 24 hours to apply to your findings.
Further reading
Additional helpful documentation, links, and articles: