GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.datadoghq.com — Getting Started with Code Security For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/getting_started/code_security.md.
A documentation index is available at /llms.txt.
Getting Started with Code SecurityThis product is not supported for your selected Datadog site. (). OverviewDatadog Code Security helps you secure and maintain your applications’ first-party code and open source libraries from development to production. It offers a suite of tools to help you secure your code throughout the software development lifecycle:
Set up Code SecurityOpen source librariesDatadog Software Composition Analysis detects library vulnerabilities and catalogs dependencies within your codebase and running services. See Software Composition Analysis to set up static and/or runtime library vulnerability detection. First-party codeThere are two ways to secure and maintain your first-party code with Datadog: Developer tool integrationsEnable pull request commentsDatadog can act as an automatic code reviewer to flag vulnerabilities and quality violations in GitHub pull requests. For more information, see GitHub Pull Requests. Install IDE integrationsInstall the Datadog IDE plugins to identify Code Security issues directly in your code editor. Depending on your IDE, the plugins support the following capabilities:
For setup instructions and details about supported capabilities, see the documentation for your code editor of choice: Customize your repository settingsIn Code Security Settings, you can manage which repositories have PR comments enabled, as well as customize the configuration of which Static Code Analysis (SAST) rules are applied across or within repositories. For all the default rules provided by Datadog, see the SAST Rules. Set up PR GatesDatadog provides PR Gates as a platform capability to help you maintain and enforce security and quality standards for changes introduced to your codebase. For more information, see PR Gate setup. Prioritize vulnerabilities with runtime contextCode Security offers vulnerability-centric views of all library and code vulnerabilities detected from both static repository scanning and runtime service detection. Explore vulnerabilitiesFor library vulnerabilities, each row in the table represents a specific vulnerability affecting a library version. Based on if you have static or runtime detection enabled, the Detected In column displays the specific repositories and/or services affected by this vulnerability. In the side panel for a single library vulnerability in SCA, in addition to details about the vulnerability, Datadog shows:
Severities are scored by the following:
Explore results per repositoryCode Security also offers repository-centric views of static scan results, supporting granular filtering across all branches and commits for scanned repositories. Click on a repository on the Repositories page to access a more detailed view where you can customize the search query by branch (with the default branch appearing first) and by commit (starting with the latest). You can use the following out-of-the-box facets to create a search query for identifying and resolving poor coding practices in the Code Quality tab or security risks in the Code Vulnerabilities tab.
You can access suggested fixes directly from the results to address security vulnerabilities or improve code quality practices. You can use the following out-of-the-box facets to create a search query for identifying and addressing security risks in third-party libraries in the Library Vulnerabilities tab or reviewing your library inventory in the Library Catalog tab.
You can access vulnerability reports and locate the source files where the vulnerability was discovered in your projects, along with information about the file’s code owners. Notify, remediate, and reportCode Security helps you set up workflows to track and manage remediation of findings:
Link findings to Datadog services and teamsDatadog associates code and library scan results with Datadog services and teams to automatically route findings to the appropriate owners. This enables service-level visibility, ownership-based workflows, and faster remediation. For Static Code Analysis, Software Composition Analysis, Secret Scanning, and IaC Security findings, mapped services also provide runtime context. To determine the services that a finding belongs to, Datadog combines the results of several mapping sources. Each source can map a finding to one or more services, and Datadog keeps every valid mapping instead of selecting a single source or service:
A mapping means that the finding’s file is related to the service. It does not confirm that the file is part of the deployed version of the service. Mappings apply at the directory level, so files in the same directory map to the same services. For repositories that Datadog identifies as forks, Datadog uses only Software Catalog code locations. Using service definitions that include code locations in the Software Catalog is the only way to explicitly control how findings are mapped to services. Code locations add mappings; they do not remove mappings from the other sources. The other sources are not user-configurable and depend on data from other Datadog products, such as APM and Source Code Integration. Mapping using the Software Catalog (recommended)Services in the Software Catalog identify their codebase content using the
If you want all the files in a repository to be associated with a service, you can use the glob The schema for this field is described in the [Software Catalog entity model][102]. Datadog goes through all Software Catalog definitions and checks whether the finding’s file path matches. For a finding to be mapped to a service through Some findings might not contain a file path. In those cases, Datadog cannot evaluate Services defined with a Software Catalog schema v2.x do not support codeLocations. Existing definitions can be upgraded to the v3 schema in the Software Catalog. After migration is completed, changes might take up to 24 hours to apply to findings. If you are unable to upgrade to v3, Datadog maps findings with the other sources described in this section. These rely on less precise heuristics, so accuracy might vary depending on the Code Security product and your use of other Datadog features. Example (v3 schema)SAST findingIf a vulnerability appeared in SCA findingIf a library was declared in Instead, if it was declared in Datadog maps a finding to every service whose code locations match the finding's file path. Service inference from file paths or repository namesWhen none of the other mapping sources returns a service, Datadog inspects naming patterns in the repository and file paths. Datadog evaluates whether:
When using the finding’s file path, Datadog performs a reverse search on each path segment until it finds a matching service or exhausts all options. For example, if a finding occurs in When all options have been tried, Datadog checks whether the repository name, This mechanism helps findings receive a service attribution when no other mapping source applies. Link findings to teams through Code OwnersIf Datadog links your finding to a service, then the team that owns that service (if defined) is associated with that finding automatically. Regardless of whether Datadog successfully links a finding to a service (and a Datadog team), Datadog uses the You must accurately map your Git provider teams to your Datadog Teams for team attribution to function properly. Further readingAdditional helpful documentation, links, and articles: | ||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |