AWS WAF AI Security: what to check before you enable it
AWS WAF can now spot and screen LLM, MCP and A2A traffic with Bedrock Guardrails. What it covers, how it is billed, and how to roll it out in Count mode.
On November 23, 2026, AWS announced automated discovery and protection for LLM, MCP and A2A endpoints. Discovery comes from a new API Gateway feature called API Portal. Protection comes from a new AWS WAF managed rule group, AWSManagedRulesAISecurityRuleSet, which sends message text to Amazon Bedrock Guardrails. If you run an AI feature behind CloudFront, an Application Load Balancer or an API Gateway REST API, it is worth a trial, but not a flip of the switch. It covers fewer protocol versions than you might assume, it can fail open, and it adds two bills.
What did AWS announce?
The announcement, posted November 23, 2026, has two parts:
- Discovery. API Portal finds AI endpoints behind API Gateway, Application Load Balancers and CloudFront across your AWS Organization. AWS says it is available in 32 Regions.
- Protection. The new AWS WAF AI Security rule group recognizes LLM, MCP and A2A traffic. When content inspection is on, it calls Bedrock Guardrails to look for prompt attacks, harmful content and sensitive information. AWS lists seven Regions for it: US East (N. Virginia and Ohio), US West (Oregon), Europe (London and Stockholm), Asia Pacific (Tokyo and Sydney). As of November 2026, Canada is not on that list.
The announcement says additional fees apply and that Bedrock bills the inspection calls separately. It gives no rates. The AWS WAF AI Security documentation is where the detail lives.
What actually changed compared with a normal WAF rule?
A classic WAF rule looks for an exploit signature. A prompt injection is a well-formed request whose text tells the model to ignore its instructions, so a signature rarely matches. The docs make the same point. This rule group works in two layers:
- Request arrivesCloudFront, ALB or API Gateway REST API
- Protocol recognitionLLM, MCP or A2A, checked inside AWS WAF
- Content assessmentmessage text sent to Bedrock Guardrails
- Labels and actionsCount by default; Block malformed MCP/A2A, high prompt attacks
Protocol recognition has real limits. Per the documentation (as of November 2026):
- MCP is recognized at protocol versions
2025-06-18,2025-11-25and2026-07-28. Older versions, such as2024-11-05and2025-03-26, are not. - A2A is recognized at version 1.0 only.
- LLM traffic is recognized for OpenAI, Anthropic, Google Gemini and Ollama operations. Bedrock's own runtime APIs, such as
ConverseandInvokeModel, are not recognized.
Traffic that is not recognized is labeled traffic:not_recognized and is not checked or assessed.
Content assessment applies only to some messages: MCP tools/call, A2A SendMessage and SendStreamingMessage, and most recognized LLM operations. Prompt attack is also checked on MCP tool results and A2A replies, which is where indirect prompt injection shows up: a tool returns text, and the model follows it.
By default, four rules block: the baseline MCP and A2A compliance rules, and the high-severity prompt attack rules for requests and responses. Everything else counts.
Who should care, and who can ignore it?
Care if you:
- Expose an MCP server or an agent-to-agent endpoint to the internet or to partners.
- Proxy LLM calls from a browser or mobile app through your own API.
- Do not know how many AI endpoints your teams have shipped. API Portal discovery is aimed at that.
You can probably ignore it for now if:
- Your model calls only leave your private network, from a backend, with no user-controlled text in the prompt.
- You call Bedrock directly. The rule group does not recognize
ConverseorInvokeModel. Guardrails applied in your own code, or on the Bedrock side, is a separate decision. - You run in a Region the rule group does not support.
What does it cost, and what are the limits?
Two meters run, and the docs say so plainly:
- An AWS WAF fee for each request the rule group evaluates. AI Security and API Security share it, and AWS charges it once per request. Requests excluded by a scope-down statement, or ended by an earlier rule, are not evaluated and not charged. Rates are on the AWS WAF pricing page.
- Amazon Bedrock charges for the Guardrails calls, made with an IAM role you supply. Bedrock reports usage per check, and AWS WAF requests up to three checks for one message, so one message can count as several checks. Your Bedrock quotas apply too.
If you set the rule group configuration to Disable, protocol recognition runs with no Bedrock calls and no Bedrock charge. You still pay the WAF fee for each evaluated request.
Other limits worth knowing before you plan:
- The cut points between finding tiers are fixed (high is a score of 0.8 or more). There are no sensitivity settings.
- Findings are probabilistic. AWS itself recommends overriding the blocking rules to Count and checking results on your own traffic first.
- You cannot deploy this rule group through AWS Firewall Manager today.
- For a CloudFront distribution, message text goes to Bedrock in one of the supported Regions, and you cannot choose which. Content from one distribution can be assessed in more than one Region. For an ALB or API Gateway, the Region of the web ACL is used. If you have data residency commitments, read this before anything else, and see the Bedrock data protection page.
The failure mode to know about
If the Bedrock call fails, the message is labeled guardrails:call_failed and, by default, passes without assessment. A broken IAM role or an exhausted Bedrock quota will not change how your application responds. AWS WAF just stops assessing. AWS recommends a CloudWatch alarm on that label. You can override Guardrails_CallFailed to Block, but then your traffic is blocked whenever calls fail, including during a pause of up to a minute after repeated failures. That is a trade-off between safety and availability that your team should choose on purpose. A second case: if response inspection fails internally, the client gets an error response instead of your application's, and overrides do not change that.
How can a team try it safely this week?
The AWS testing guide lays out a sequence. Here is our adapted version of it, with scoping added as our own first step:
- 1Count mode
- 2Confirm recognition
- 3Check Bedrock calls
- 4Rank findings
- 5Review logs
- 6Enforce one rule
Adapted from the AWS testing guide.
- Pick one endpoint and scope down to it. Use a scope-down statement so only your agentic paths are evaluated. That limits both meters.
- Override every blocking rule to Count. Use rule action overrides on each rule, not a group-level override, so you can enforce rules one at a time later.
- Confirm recognition. Look for
traffic:recognized_llm,traffic:recognized_mcpandtraffic:recognized_a2aon the endpoints you expect. If you seetraffic:not_recognized, check protocol versions and any gateway that rewrites requests. - Confirm Bedrock calls work. Watch for
guardrails:call_failedand its reason:access_denied,throttlingorservice_unavailable. Create the alarm. - Rank findings with metrics, then read logs. A finding that matches a steady share of traffic usually describes your own users. A finding near zero that spikes briefly looks more like an attack. Use logs to see which clients produce findings.
- Enforce one rule at a time, starting with rules that have a low match rate. Watch the rule's metric and your application's error rate after each change.
Response-phase labels appear only in CloudWatch metrics, not in logs, so plan your dashboards for both phases.
What would we check first?
We would start with the boring questions, not the rule group:
- Inventory. Which AI endpoints exist, who owns them, and which protocol versions they speak. If your MCP servers are on an older version, recognition will not help you.
- Data path. Whether prompts and tool results may leave the Region of your web ACL, and what that means for your privacy commitments.
- Failure policy. Fail open or fail closed when Bedrock calls break, and who gets paged.
- Cost envelope. Expected request volume on the scoped paths, times the WAF fee and up to three Guardrails checks per message, so nobody is surprised by the first bill.
- Defense in depth. WAF screening is one layer. Least-privilege tool permissions and output handling in your own code still matter, because the docs say these assessments are probabilistic.
If you want a second pair of senior eyes on how AI features are exposed and protected, see our services.
This article is general information based on AWS documentation as of November 2026. It is not security, legal or financial advice: check current AWS pricing and documentation, and consult a qualified professional for your own situation.