Tutorial
Generative AI
8 min reading

AWS WAF AI Security: Which AI Traffic It Covers

A gatehouse checks three protocol streams while a wall map shows more paths than the gate covers, and an accepted stream splits toward two providers behind it.

Summarize this article with:

summary

On November 23, 2026, AWS launched API Portal to discover LLM, MCP, and A2A endpoints and the AWS WAF AI Security rule group to protect them. Discovery runs in 32 AWS Regions. The rule group covers CloudFront, ALB, and API Gateway REST APIs and recognizes specific API formats and protocol versions. AWS ties response inspection to web ACLs that protect CloudFront or an ALB. This guide turns those limits into an endpoint audit, explains the optional Bedrock Guardrails layer and its costs, and assigns the remaining controls to the gateway and the application.

On November 23, 2026, AWS made automated discovery and protection for LLM, MCP, and A2A endpoints generally available. A new API Gateway feature, API Portal, finds the endpoints. A new AWS WAF managed rule group, AI Security, protects them behind CloudFront, Application Load Balancers (ALB), and API Gateway REST APIs.

The problem it targets is common. In its launch post on the AWS Security Blog, AWS describes an MCP server set up for a hackathon. It sits behind a load balancer or CloudFront, never passes through the API gateway, and is missing from the registry and the security review. It still answers requests.

Finding that endpoint doesn't mean AI Security can protect it. Discovery launched in 32 AWS Regions. According to AWS's documentation, the rule group is available in seven Regions for ALB and API Gateway REST APIs. An endpoint in any Region can be protected behind CloudFront, but AWS WAF then sends its content to one of those seven Regions for assessment, and you can't choose which one. The rule group recognizes specific API formats and protocol versions. AWS's launch post ties response inspection to web ACLs that protect CloudFront or an Application Load Balancer. This guide turns those limits into a coverage audit, then assigns the remaining controls to your gateway and your application.

What AWS launched on November 23, 2026

LaunchedNovember 23, 2026, generally available
DiscoveryAPI Portal, in 32 AWS Regions
Front doorsCloudFront, ALB, API Gateway REST APIs
Layer 1Traffic recognition and MCP / A2A protocol checks
Layer 2Optional Amazon Bedrock Guardrails content checks
BillingAWS WAF, Amazon Bedrock, and API Gateway, each billed separately

Sources: AWS's launch announcement and the AWS Security Blog. Status as of November 23, 2026.

API Portal reads the service logs and configuration records of your entry points, for one account or a whole AWS Organization. AWS says there's nothing to attach, no logs to forward, and no traffic to reroute. It lists endpoints by host, path, and HTTP method, and tags AI ones as LLM inference, MCP, or A2A.

AI Security, documented as AWSManagedRulesAISecurityRuleSet, runs in the same web ACL (AWS now also calls it a protection pack) as Bot Control, the Core rule set, and your own rules. It works in two layers: recognition and protocol checks inside AWS WAF, then optional content checks through Amazon Bedrock Guardrails.

Step 1: audit formats, versions, regions, and front doors

Start by classifying every discovered endpoint. AI Security labels each request as LLM, MCP, A2A, or not recognized, and that label decides which checks apply.

According to AWS, Layer 1 recognizes LLM inference operations in the OpenAI, Anthropic, Google Gemini, and Ollama API formats. That is recognition of an API format, not a statement about which models are supported or safe. Native Amazon Bedrock Converse and InvokeModel operations were not recognized at launch.

According to AWS's documentation, AWS WAF matches an LLM route by the end of the URI path and by the format of the request body, not by the host. A gateway or a self-hosted model with an OpenAI-compatible endpoint is recognized the same way. Recognition doesn't mean assessment. OpenAI embeddings, image variations, audio transcriptions and audio translations are recognized, but they are never sent to Bedrock and get no outcome label. Protect those routes with other WAF rules and application checks.

Endpoint coverage audit

Identify ownership

Record the team, account, purpose, data type, and intended gateway path.

Map exposure

Note whether the endpoint is public, private, or reachable through another service.

Record the front door

CloudFront, ALB, API Gateway REST API, or something else.

Check the Region

Separate discovery availability from rule group availability.

Classify the traffic

Record the LLM API format, MCP version, or A2A version.

Map inspection needs

Request, response, streaming, and sensitive data.

The front door decides whether responses are checked. AWS's launch post says to turn on response inspection when the web ACL protects CloudFront or an Application Load Balancer. According to AWS's documentation, the response body is assessed up to 8 KB for an Application Load Balancer and 16 KB for a CloudFront distribution.

AWS's own best practice is to put CloudFront in front of API Gateway, ALBs, and any public endpoint, including ones outside AWS, and attach the web ACL there. Discovery has a similar boundary: API Portal reads traffic and configuration at CloudFront, ALB, and API Gateway, so an endpoint exposed another way is outside what it sees.

The regional gap changes the rollout plan

Discovery and enforcement don't line up Region for Region, so treat this as a rollout decision, not a footnote.

Rollout decision

Group endpoints by the protection available

Enforce now

ALB and API Gateway in the seven launch Regions

N. Virginia, Ohio, Oregon, London, Stockholm, Tokyo, and Sydney. Add AI Security in count mode on matching traffic.

Other Regions

Endpoints elsewhere

Front them with CloudFront, or keep existing managed rules, custom WAF rules, and application checks, and track AWS's Region list for AI Security.

EU workloads

Stockholm is the only EU Region

London is the other European launch Region. For an ALB or REST API, content is assessed in the web ACL's own Region.

Step 2: enforce recognized protocol versions first

AI Security checks each MCP and A2A request against the version declared in its MCP-Protocol-Version or A2A-Version header. At launch it supported MCP 2025-06-18, 2025-11-25, and 2026-07-28, and A2A 1.0.

These checks are deterministic and run entirely in AWS WAF. Baseline checks catch violations that let a request slip past routing or inspection, and block by default. Strict checks flag malformed requests that usually come from an outdated client, and count by default.

AWS's example shows why Baseline matters. A request's Mcp-Method header says tools/list, but its body calls tools/call on a read_file tool. A gateway that trusts the header treats it as read-only. AWS WAF blocks it because the header and body disagree.

  • Inventory declared versions: record the version header each client sends to each MCP or A2A endpoint.
  • Plan for unlisted versions: move clients that declare a version outside the supported list to a recognized one, or keep custom WAF rules and application validation for that traffic.
  • Start in count mode: AWS advises adding AI Security with its four default blocking rules overridden to count, reviewing the results, then removing the overrides one rule at a time.
  • Read the labels: each failed check adds its own label, such as protocol_compliance_check:mcp_method_mismatch, in your WAF logs and CloudWatch metrics.

Step 3: scope Bedrock Guardrails by endpoint risk

Layer 2 is optional. You turn it on in the rule group and choose an IAM service role that AWS WAF assumes to call Amazon Bedrock Guardrails. AWS says you don't create or configure a guardrail for it. AWS WAF picks the checks by endpoint type and direction.

Guardrails checkLooks forOn requestsOn responses
Prompt attackJailbreaks, prompt injection, system prompt extractionYesMCP and A2A only
Content filterHate, insults, sexual content, violence, misconductLLM and A2A onlyNo
Sensitive informationPersonal data and credentials such as AWS access keysNoYes

Source: AWS Security Blog, November 23, 2026. Response checks run only when response inspection is on.

Read the table per endpoint. On an LLM chat endpoint, responses get only the sensitive-information check. On MCP and A2A endpoints, responses are also checked for prompt attacks. Response checks cover the body only up to the size AWS WAF inspects for that resource.

By default, a high-severity prompt attack is blocked, on the request or the response. Everything else is counted and labeled, and you can change the action of any rule.

Fails open by default

If Bedrock Guardrails can't check a request, AWS WAF lets it through with a guardrails:not_assessed or guardrails:call_failed label. To fail closed, set the Guardrails_CallFailed rule to block: throttling then blocks requests too.

Turn content checks on where exposure and data risk justify the extra calls: public chat, MCP and A2A endpoints, and anything that handles personal data. Amazon Bedrock bills content inspection calls separately. Test representative prompt sizes and streaming paths in count mode before you block.

The AWS WAF side is published. As of November 26, 2026, the AWS WAF pricing page lists AI Security at $5.00 per 1M inspected requests, on top of the $0.60 per 1M AWS WAF request fee. Both rates apply now and under the new pricing that starts February 1, 2027.

The fee is charged once per request, even if API Security also inspects it. Requests that an earlier rule allows or blocks, or that a scope-down statement excludes, don't pay it. Scoping the rule group to AI paths, as AWS suggests with /v1/chat/*, keeps it off the rest of your traffic. At these rates, 10 million AI requests cost $56 in AWS WAF request fees, before Bedrock and web ACL or protected-resource charges.

Assign each control to the layer with enough context

AI Security sees a request at the entry point. It doesn't know your user's permissions, which tools a tenant may call, or what state a workflow is in. Detecting suspicious text is not the same as deciding whether an agent may run a tool.

WAF perimeterAI gatewayApplication
Protocol complianceProvider and model allowlistsUser and service identity
Prompt and response checksRouting and fallbackLeast-privilege tool access
Rate limits and bot rulesTenant and budget policyMCP argument validation
General web threatsRequest normalizationState and approval checks
Traffic labelsAudit metadataOutput handling

Source: AWS Security Blog for the WAF column, November 23, 2026. The gateway and application columns are a recommended split.

AWS points the same way. In its MCP example, your ALB JWT verification, edge function, or MCP server still validates the access token itself. AWS WAF can also forward its labels to your origin in custom request headers, so the application can act on what WAF saw.

Two actions follow. Keep policies that need routing context, such as model allowlists and budgets, in an AI gateway; our guide on how to build an AI backend shows where it sits. Then authorize every MCP tool call and A2A action in the application, with least-privilege permissions and approvals for consequential actions. For content controls beyond the edge, see this overview of LLM guardrail tools.

Where Eden AI fits behind the protected endpoint

AWS WAF inspects inbound traffic to your own endpoint. Once a request is accepted, your application makes its own calls to model providers. That outbound side is where Eden AI fits: one API key and one OpenAI-compatible endpoint, with more than 1,000 models from more than 80 providers.

Eden AI's API is OpenAI-compatible, so an endpoint of yours that exposes the OpenAI format and sends its calls to Eden AI is recognized by AI Security as LLM traffic, whichever provider serves the model behind it.

With provider routing, you choose the order of providers, or sort them by price, speed, or latency. Eden AI also offers automatic fallback to backup models. The example below calls gpt-5.6-sol and asks for OpenAI first, then Azure.

Python

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_EDENAI_API_KEY",
    base_url="https://api.edenai.run/v3",
)

response = client.chat.completions.create(
    model="gpt-5.6-sol",
    messages=[
        {"role": "user", "content": "Summarize this approved request."}
    ],
    extra_body={
        "routing": {
            "order": ["openai", "azure"]
        }
    },
)

print(response.choices[0].message.content)

Provider fallback answers a different failure than cloud-Region failover, as our comparison of SageMaker cross-Region routing and cross-provider fallback explains.

For agent workflows, Eden AI's MCP server gives agents the expert models as tools. The catalog goes from LLMs to OCR and document parsing, speech, translation, image, and web search.

For European data residency, Eden AI has an EU endpoint. Separately, zero data retention is set for one request with routing.zero_data_retention: true or for the whole organization, on both endpoints, the global one and the EU one. Our guide to keeping AI requests and data in Europe covers the setup.

What to keep in mind

  • Discovery isn't enforcement: an endpoint in the inventory may use an unrecognized format or protocol version, or sit outside the rule group's Regions.
  • Native Bedrock traffic is separate: Converse and InvokeModel weren't recognized at launch.
  • Guardrails fails open: decide how to handle Guardrails_CallFailed.
  • Authorization stays in the application: tool permissions, workflow state, and business-logic abuse need application context.

FAQ

Does AWS WAF AI Security recognize native Amazon Bedrock APIs?
No. As of November 23, 2026, it didn't recognize native Amazon Bedrock Converse or InvokeModel operations. Protect that traffic with other WAF rules and application controls.
Which MCP and A2A versions does AWS WAF AI Security recognize?
As of November 23, 2026, MCP 2025-06-18, 2025-11-25, and 2026-07-28, plus A2A 1.0. Clients on other versions need an upgrade or separate controls.
What should teams do outside the seven AI Security launch Regions?
Front the endpoint with CloudFront, or keep existing managed rules, custom WAF rules, and application checks until AWS lists the Region.
Does Bedrock Guardrails in AWS WAF block every prompt injection?
No. By default, AWS WAF blocks only high-severity prompt attacks and counts other findings. If Guardrails can't check a request, it passes with a label unless you set the call-failed rule to block.
Can AWS WAF AI Security inspect responses?
Yes, when response inspection is on. AWS's launch post ties that option to web ACLs that protect CloudFront or an Application Load Balancer. The response body is assessed up to 8 KB on an ALB and 16 KB on CloudFront.
How much does AWS WAF AI Security cost?
As of November 26, 2026, $5.00 per 1M inspected requests on top of the $0.60 per 1M AWS WAF request fee. Amazon Bedrock bills content inspection separately, and API Portal is priced under Amazon API Gateway.

Further reading

Similar articles

A letter marked ZDR passes through a chain of sorting stations, where a hidden figure copies it at one station while a canary on the wire sounds an alert.
Tutorial
Generative AI
OpenRouter's ZDR Incident: What Failed and How to Check
11/23/2026
·
Written byClément Moreau
An operator steers a thread of prompt blocks toward the GPU tower whose cache blocks are still lit, away from a tower where they have faded.
Tutorial
Generative AI
Should You Switch to SageMaker KV Cache-Aware Routing?
11/17/2026
·
Written byClément Moreau
Fireworks AI and Notion logos connected by a simple data path, representing third-party AI data exposure.
Tutorial
Generative AI
Fireworks AI Breach: How to Limit Third-Party AI Data Exposure
11/12/2026
·
Written byClément Moreau
let’s start

Start building with Eden AI

A single interface to integrate the best AI technologies into your products.