Code Security
A product that finds and fixes vulnerabilities in repository code and libraries and in the code of running services. It consists of five features, SAST / SCA / IAST / Secret Scanning / IaC, and is billed on two axes: committers and hosts.
What it does
It provides static analysis of your own code (SAST), vulnerability detection in open source libraries (SCA), runtime detection of code vulnerabilities in running services (IAST), detection of leaked secrets (Secret Scanning), and detection of IaC misconfigurations (IaC Security). Findings appear in the IDE, pull requests, CI, and the Datadog UI, and are prioritized using the production runtime context (as of September 2026).
When to use it
The starting point is bringing order to teams whose repository-side scans produce a list of vulnerabilities but who cannot prioritize because they do not know which libraries are actually loaded in production. It also suits cases where you want to confirm code vulnerabilities at runtime in services that have APM, or stop commits of secrets at the PR stage.
An everyday analogy
It is close to hygiene management at a restaurant. Inspecting purchase slips (static analysis of the repository) stops problematic ingredients at the door, while the hygiene manager standing in the kitchen (runtime analysis) looks only at the ingredients actually used in today's dishes and decides the order in which to discard them.
Two lineages: features that look at the repository, and features that look at running services
Code Security is a product that scans both the code you write yourself and the open source libraries your applications use, in both the repository and running services, providing continuous visibility from development to production (as of September 2026; source: Code Security). The key point is that scanning happens in two places. The features that look at the repository (SAST, static SCA, Secret Scanning, IaC Security) are triggered by commits and PRs, while the features that look at running services (IAST, Runtime SCA) use APM instrumentation and are triggered by production traffic and the libraries actually loaded. These two lineages also correspond to the billing axes: the former is counted per committer, the latter per host. Findings management is shared: display in the IDE and as PR comments, two-way sync with Jira and Case Management, notifications, and an automation pipeline that automatically mutes findings or assigns deadlines according to severity.
What the five features SAST / SCA / IAST / Secret Scanning / IaC look at
The official documentation lists five features, followed by two in Preview (as of September 2026; source: Code Security). SAST analyzes pre-production code to find security and quality issues, SCA identifies open source dependencies in repositories and running services, and IAST confirms at runtime the vulnerabilities lurking in your own code in running services. Secret Scanning detects leaked credentials and goes as far as verifying whether they are still valid, and IaC Security finds misconfigurations in Terraform, CloudFormation, Kubernetes, and GitHub Actions definitions in the repository. In Preview, Supply Chain Security stops the introduction of malicious packages when package manager commands such as npm and pip run, and the Code Security MCP Server invokes scans from AI coding assistants.
| Feature | Input | Where it runs | Billing axis |
|---|---|---|---|
| SAST | Your own code | Repository (CI / hosted scanning / IDE) | Committer |
| SCA (static) | Lock files and manifests | Repository | Committer |
| SCA (runtime) | Libraries loaded by the service | Running service (APM instrumentation) | Host |
| IAST | Code paths traversed by legitimate traffic | Running service (APM instrumentation) | Host |
| Secret Scanning | Contents of commits and PRs | Repository (pre-commit / PR) | Committer |
| IaC Security | Terraform / CloudFormation and other definitions | Repository (PR) | Committer |
Fix starting from the libraries actually loaded in production
SCA has two detection methods: static and runtime. Static detection analyzes lock files and manifests and by default runs on every commit that updates dependency files. Runtime detection (Runtime SCA) uses APM instrumentation to identify the libraries a service actually loads and uses at runtime (as of September 2026; source: Software Composition Analysis). Prioritization uses the Datadog Severity Score, which layers factors such as whether the vulnerable function is referenced from code (reachability) and whether the service is running in a production environment on top of the base CVSS, separating theoretical risk from vulnerabilities that are actually easy to exploit. Static SCA findings are tied to the repository, Runtime SCA findings to the service. Being able to defer "libraries that are declared but not loaded" comes from cross-referencing with monitoring data, and that is the difference from an operation based on static scans alone.
IAST turns production traffic itself into the test
Runtime Code Analysis (IAST) finds code-level vulnerabilities using legitimate application traffic rather than external tests or periodic scans. The tracing library marks and tracks data that enters from the request URL, body, and headers, and reports a vulnerability only when it can confirm that the data reached a dangerous use such as a SQL query, dynamic code execution, or HTML rendering (as of September 2026; source: Runtime Code Analysis (IAST)). This decision is the design that suppresses false positives, and Datadog officially claims 100% coverage of the OWASP Top 10. The supported languages listed in the detection rule table are Java, .NET, Node.js, and Python, and you enable it on services already instrumented with APM. Whereas App and API Protection, which shares the tracer, looks at attacks (what comes from outside), IAST looks at vulnerabilities (what is inside).
How far to block at the three touchpoints: IDE, PR, and CI
There are three places where findings appear. The IDE integration shows violations and suggested fixes while you are writing. PR comments attach violations to lines through incremental scanning of the diff only, and you can also open a fix PR from Datadog. Scans run in the CI/CD pipeline or as hosted scanning on the Datadog side (as of September 2026; source: Code Security). A "blocking" stage is provided per feature: Secret Scanning blocks at the local stage with a pre-commit hook, blocks arrival at the default branch with a PR gate, and checks with third-party verification whether a detected secret is valid to reduce noise from already-revoked ones. SCA's PR Gates stop libraries with CVEs or license violations above configured thresholds, but they fail only violations newly introduced in that PR, and by default they operate in informational mode only (source: Software Composition Analysis). The adoption pattern is to observe trends in informational mode first, then switch to blocking.
Pricing mixes committer billing and host billing - the fork between bundle and individual items
Code Security pricing mixes two billing units: the static features that look at the repository are billed per committer, and the runtime features that look at running services are billed per host. The SKUs split into a "bundle" and "individual items." The bundle is billed per committer and packages four elements: SAST / static SCA / IAST / Runtime SCA. The individual items are four billed per committer (SAST, static SCA, IaC Security, Secret Scanning) and two billed per host (IAST, Runtime SCA) (SKU breakdown as of September 2026; source: Datadog Pricing). There are three commitment columns, annual, monthly, and on-demand, and for the same SKU the annual commitment has the lowest unit price while on-demand has the highest. The definition of a committer is in the FAQ on the same pricing page: an active committer identified by Git author email address, and those who committed 3 or more times in a month are billable (as stated in the FAQ under the Code Security section). For the actual unit prices, check Datadog's official pricing page. The overall picture of pricing is covered in the pricing guide.
| Item | Billing unit | Commitment | Relation to the bundle / main caveats |
|---|---|---|---|
| Code Security bundle | Committer | Annual / monthly / on-demand | Packages the four elements SAST, static SCA, IAST, and Runtime SCA. Does not include Secret Scanning or IaC Security |
| SAST | Committer | Annual / monthly / on-demand | Included in the bundle. Can also be contracted individually |
| Static SCA | Committer | Annual / monthly / on-demand | Included in the bundle. Can also be contracted individually |
| IaC Security | Committer | Annual / monthly / on-demand | Not included in the bundle. Estimated separately |
| Secret Scanning | Committer | Annual / monthly / on-demand | Not included in the bundle. Estimated separately |
| IAST | Host | Annual / monthly / on-demand | Included in the bundle. Base count is hosts instrumented with APM |
| Runtime SCA | Host | Annual / monthly / on-demand | Included in the bundle. Base count is hosts instrumented with APM |
How committers are counted, and where the bundle becomes the better deal
The first task is to measure your committer count: count "author email addresses with 3 or more commits in a month" month by month from the last few months of commit history, and you can produce the figure yourself before signing. The variable that decides between the bundle and individual items is "how many features you apply to the same headcount." The comparison is simple: add up the unit prices of the individual items you want and compare the total with the bundle's unit price. If you only use SAST, an individual item tends to be cheaper; apply both SAST and static SCA to the same headcount and the total approaches the bundle; and if you also use the runtime features IAST or Runtime SCA, the structure favors the bundle that packages all four elements. Per the pricing page FAQ, the bundle covers four elements, SAST / IAST / SCA (static and runtime), while Secret Scanning and IaC Security are estimated separately whichever you choose (as of September 2026; source: Datadog Pricing). The host-billing side is counted the same way as monitored hosts: Runtime SCA and IAST use the number of hosts instrumented with APM and with these features enabled as the base. Vulnerabilities in hosts and container images are the domain of Cloud Security; vulnerabilities in application libraries and code are the domain of this product.
Where to start - if you already have APM, start with Runtime SCA
The deciding factor is "where you already have instrumentation." If you have services with APM, simply enabling Runtime SCA produces a list of vulnerabilities in the libraries loaded in production and gives you your first result (as of September 2026; source: Software Composition Analysis). Next, enable static SCA and SAST and cross-reference them with the runtime findings. Introduce Secret Scanning and IaC Security after agreeing on how the PR gates will block. Supply Chain Security, in Preview, is positioned to stop malicious packages at package installation time (source: Code Security). The Code Security MCP Server is a Preview entry point for invoking scans from AI coding assistants; the mechanism is left to MCP Server. The ledger that ties findings to the owners of services is the Software Catalog.
Things to watch out for
- This article is based on the official documentation and pricing page as of September 2026. Feature groupings, Preview status, and supported languages can change, so when in doubt, defer to the official documentation.
- This article explains how billing works. For current unit prices and plans, refer to Datadog's official pricing page.
- The definition of a committer (a Git author with 3 or more commits in a month) is as stated in the FAQ under the Code Security section of the pricing page as of September 2026. Check the features included in the bundle (SAST / IAST / SCA, static and runtime) in the same FAQ.