App and API Protection
A product that detects attacks on the request path already observed by the APM tracer and goes as far as blocking them; its former name is ASM. Where a perimeter WAF looks at the shape of the request, this product decides after seeing what the application actually executed.
What it does
Using the same tracing library as Datadog APM, it detects attack patterns inside HTTP requests and generates security signals. It automatically inventories the APIs you expose and evaluates their posture, and with In-App WAF and Exploit Prevention it can block malicious requests and attackers (as of September 2026).
When to use it
The first product to consider when you want to add attack visibility to web apps and APIs that already have APM, without distributing an additional library. It suits questions such as "we have a perimeter WAF, but we do not know whether that request actually reached vulnerable code," or wanting to see abuse by authenticated users and credential stuffing.
An everyday analogy
It is closer to the teller at the counter than to the guard at the bank entrance (the WAF). At the entrance only appearance and belongings can be checked, but at the counter the procedure can be stopped after seeing what is written on the slip and which account was given which instruction (the processing the application actually executed).
The APM tracer doubles as the attack detector
App and API Protection (AAP) is a product that detects, investigates, and defends against attacks targeting applications and APIs; its former name is Application Security Monitoring (ASM) (as of September 2026; source: App and API Protection). At its core it uses the same tracing library as APM, so there is no need to distribute and maintain a separate library. It matches known attack patterns against the distributed traces the library generates, flags traces that contain attack attempts, and generates security signals from their correlation with the execution context. Because it uses processing already present in the Agent and APM, Datadog officially explains that the performance impact is negligible (source: How App and API Protection Works). Services under attack are highlighted in APM screens such as the Catalog and the Service page, so the information appears where developers already look every day.
How it differs from a perimeter WAF - In-App WAF and Exploit Prevention
Datadog officially positions it this way: a perimeter WAF inspects with a broad set of rules, whereas AAP narrows down to only the rules needed in the application's context (as of September 2026; source: How App and API Protection Works). Defense has two layers. In-App WAF inspects all incoming traffic by pattern matching and blocks malicious traffic by attributes such as IP, user agent, and headers. Exploit Prevention is its extension: using RASP techniques, it determines whether a request touched a vulnerable code path and protects against SQL injection, SSRF, LFI, and command injection (source: App and API Protection). The difference is that it follows the actions the application executed (the SQL it issued, the files it opened); for SQL injection, it interprets the query before execution, checks whether user input changed the meaning of the SQL, and stops it.
| Layer | What it looks at | Basis of the decision |
|---|---|---|
| Perimeter WAF (general) | The shape of the arriving request | Match against a broad set of rules |
| In-App WAF | All traffic that entered the application | Attack pattern matching and IP / UA / header attributes |
| Exploit Prevention | The code path the request touched and the actions executed | Whether the meaning of the SQL changed, whether a file restriction was broken |
Attack attempts are sorted into three levels: safe, unknown, and harmful
Detection draws on multiple pattern sources including the OWASP ModSecurity Core Rule Set, with more than 100 attack signatures detecting SQL, code, shell, and NoSQL injection, XSS, SSRF, and more (as of September 2026; source: How App and API Protection Works). The distinctive part is the sorting after detection: using information from the distributed trace, it classifies attack attempts into three levels, safe, unknown, and harmful. In the official example, a PHP injection against a service written in Java cannot succeed and so becomes "safe," and "harmful" is assigned only when there is evidence that the attacker found a code-level vulnerability. With this sorting, you can move from an operation that chases every one of the tens of thousands of "attack-like" entries in perimeter WAF logs to one that looks only at harmful and unknown. Attack patterns are updated automatically for combinations of an Agent with Remote Configuration enabled and a supported SDK.
An inventory of the APIs you expose emerges from monitoring data
In addition to runtime threat detection, AAP's scope includes API discovery and posture management. It automatically discovers the APIs a service exposes, identifies unprotected, undocumented, and over-permissioned endpoints, and evaluates API configuration with posture rules based on frameworks such as the OWASP API Top 10 (as of September 2026; source: App and API Protection). The list of APIs can be viewed from the Endpoints list in the Software Catalog, and the official how-it-works page lists API security as Preview (source: How App and API Protection Works). The value is that the inventory comes not from design documents but from the traces that actually flowed. Because you can discover with data the fact that an old endpoint nobody documented is responding in production, it also serves as material for deciding on API retirement.
If APM is already in place, enabling it is one environment variable - supported languages and the OTel situation
On a host where Datadog APM is already configured, all that is needed to enable AAP is a single environment variable (as of September 2026; source: App and API Protection). Seven languages are supported: Python, Node.js, Java, Go, Ruby, .NET, and PHP, and there are also procedures for proxies, Kubernetes ingress, AWS Lambda, and Fargate (source: Enabling App and API Protection). The point to note is the instrumentation approach: in the official OpenTelemetry compatibility table, the only configuration marked as supporting AAP is "Datadog SDK + DDOT," so services that use AAP are instrumented with Datadog's libraries (source: OpenTelemetry Compatibility; see also the explanation of OpenTelemetry).
Where blocking is decided, and how to undo it
With an Agent that has Remote Configuration enabled and a supported version of the tracing library, you can block attacks and attackers from the Datadog UI without additional configuration of the Agent or the library (as of September 2026; source: How App and API Protection Works). Blocking settings are stored on the Datadog side, and the Agent fetches them automatically and applies them to the service. Because the source of truth for the settings is on the Datadog side, neither adding nor removing them requires redeploying the library, and rolling back when you notice a false block goes through the same path. The means are blocking through In-App WAF, blocking the source IP of the attack, and blocking authenticated users, and there is also an official procedure for disabling AAP itself. Security-related traces are retained in full by the default retention filter, with a retention period of 90 days for security traces and 15 days for the original traces, so the evidence needed for post-blocking investigation remains.
Pricing is a per-host price on top of APM hosts, plus a per-invocation price for Lambda
App and API Protection is billed as a monthly price per host, with three contract forms, annual commitment, monthly commitment, and on-demand, and the annual commitment carries the lowest unit price (source: Datadog Pricing). Serverless is a separate line, Serverless Application Security, billed monthly per unit of 1 million traced invocations. Here too the unit price rises in the order annual commitment, monthly commitment, on-demand. Check the public pricing table for the Fargate unit price. The key point about counting is that AAP hosts are counted the same way as hosts instrumented with APM, so the picture is the AAP per-host price added directly on top of APM billing. In other words, the estimating formula is "the number of APM hosts with AAP enabled × the AAP per-host price," and because estimating on the assumption of enabling it on every service easily comes out larger than expected, calculate on the premise of narrowing the targets in the order given in the next section. How Lambda is counted is left to Serverless Monitoring, and the overall picture to the pricing guide.
| Item | Billing unit | Contract forms | Main caveats |
|---|---|---|---|
| App and API Protection | Per host / month | Annual commitment / monthly commitment / on-demand (annual is the lowest) | Counted the same way as APM-instrumented hosts. Added on top of the APM per-host price |
| Serverless Application Security | Per 1 million traced invocations / month | Annual commitment / monthly commitment / on-demand (the unit price rises in this order) | Invocation counts follow the Serverless Monitoring counting rules |
| For Fargate | Check the public pricing table | ||
This article explains how billing works. For current unit prices and plans, refer to Datadog's official pricing page.
Decide which services to enable first by their level of exposure
Because APM collects a sample of traffic, Datadog officially writes that AAP must be enabled in the SDK for monitoring and protection to take effect (as of September 2026; source: How App and API Protection Works). Once enabled, all traces containing security data are collected, so choosing targets in descending order of exposure is rational in terms of both cost and effect. As a rule of thumb: APIs directly facing the internet and services that handle authentication first, then internal APIs that return personal data, and finally everything else. Services under attack are highlighted in the Catalog, so that list becomes the roster of first candidates. AAP looks at the contents of requests and the processing executed, while Workload Protection looks at what happened to processes and files inside the host. For wide-reaching vulnerabilities like Log4Shell, Datadog itself shows the usage of identifying vulnerable applications with AAP and following the traces on the log side with Cloud SIEM.
Things to watch out for
- This article is based on the official documentation and pricing page as of September 2026. Supported languages, enablement procedures, and OpenTelemetry compatibility 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.
- Before enabling blocking, we recommend a detection-only period to check the tendency toward false positives. Blocking settings are stored on the Datadog side and distributed via the Agent, so adding and removing them can be done through the same path (as of September 2026).