AWS now sells a managed edge filter for your MCP servers, A2A agents and LLM proxies, and it is worth turning on. Its defaults, though, let a message through uninspected whenever the Bedrock check behind it fails, and it does not see MCP traffic on the two oldest protocol versions. On November 23, 2026, AWS made two things generally available: AI endpoint discovery in the new API Gateway API Portal, and the AWS WAF AI Security managed rule group (AWSManagedRulesAISecurityRuleSet), which uses Amazon Bedrock Guardrails to score prompts, tool calls and agent messages for prompt attacks. Run it in Count mode first, override the fail-open rule if your risk posture requires it, and decide whether CloudFront's cross-Region inspection is acceptable before any regulated traffic touches it.
The rule group is available in seven Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (London), Europe (Stockholm), Asia Pacific (Tokyo) and Asia Pacific (Sydney), per the launch announcement. It is not available in GovCloud (US) or the China Regions.
What AWS Shipped and Who It Is For
AWS shipped a discovery tool and a filter, sold separately. The API Portal builds an inventory of APIs and AI endpoints from traffic logs and service configuration records, with "no agents to deploy or logs to forward," and the announcement gives an undocumented public MCP server as the example of a "shadow API" it would surface. The API Gateway FAQ says discovery covers REST APIs, Application Load Balancers and CloudFront distributions and is billed per discovered API per month.
The AI Security rule group is the enforcement half. A managed rule group is a set of WAF rules AWS writes and maintains, which you attach to a web ACL and tune with overrides. This one attaches only to web ACLs protecting CloudFront distributions, Application Load Balancers and API Gateway REST APIs, according to the rule group reference. AppSync, Cognito, App Runner, Amplify and Bedrock AgentCore Gateways are all rejected. It costs 400 WCUs and has no learning period.
The audience is any team that exposes an agent, an MCP server or an OpenAI-compatible proxy over HTTP behind those three front doors. If your agents run behind an AgentCore Gateway, this product does not cover them today.
Which Traffic the Rule Group Actually Inspects
The rule group inspects three kinds of traffic, and each one has a version or API gap you need to know about. The overview page and the reference break it down:
- LLM APIs. It recognizes OpenAI chat completions, responses, completions, image and speech calls, Anthropic
messagesandcomplete, Google GeminigenerateContent, and Ollama. It matches on URI path and body shape, not hostname, so a self-hosted OpenAI-compatible gateway is recognized the same way as the vendor endpoint. Embeddings and audio transcription are recognized but not assessed. - MCP. It recognizes protocol versions
2025-06-18,2025-11-25and2026-07-28. Messages declaring2024-11-05or2025-03-26fall through asNot_Recognizedand get no content check. Onlytools/callis scored. - A2A. Version 1.0 only. A2A 0.3 is not recognized. Only
SendMessageandSendStreamingMessageare scored.
Amazon Bedrock's own Converse and InvokeModel APIs are not recognized either. AWS's answer is to attach a guardrail natively through the guardrailConfig field or the guardrail header on those calls.
The MCP gap is the one that will bite. The MCP specification lists 2026-07-28 as the current version, but servers built in early 2025 and never upgraded still speak the older revisions, and those are exactly the forgotten servers discovery is meant to find. An attacker who knows the filter's version list can also declare an old version on purpose. AWS documents a rule pattern for blocking unsupported MCP versions; use it, or accept that version-skew traffic is unfiltered.
What It Blocks by Default, and What It Only Counts
Out of the box, the rule group blocks four things: malformed MCP messages and malformed A2A messages at the baseline compliance level, and high-severity prompt attacks in a request or a response. That is the full list of default Block actions in the rule table. The other 19 of its 23 rules are set to Count.
That includes rules you might assume are protective:
- Medium and low prompt attacks are counted. Bedrock's scores map to fixed tiers: High at 0.8 and above, Medium from 0.6 up to 0.8, Low above 0 and below 0.6.
- Sensitive information in responses is counted, at every confidence level. An MCP tool that returns an AWS secret key or a card number will pass unless you override the rule to Block. The detector looks for only nine entity types, including AWS access and secret keys, passwords, email addresses, card numbers and US Social Security numbers.
- Content filters (violence, hate, sexual, misconduct, insults) are counted on LLM and A2A requests and never applied to MCP requests.
Response-side prompt attack scoring covers MCP tool results and A2A replies, not LLM completions. That fits the threat model: indirect prompt injection arrives in what a tool returns, and that is where you want the filter. Google's semantic governance policies target the same problem one layer further in, at the agent gateway.
Where It Fails Open
When the Bedrock call fails, the message goes through. The Guardrails_CallFailed rule defaults to Count, and the components page lists three reasons it fires: access_denied (the IAM role cannot be assumed, lacks permission, or STS is off in the Region), throttling (your Bedrock quota is exhausted) and service_unavailable (everything else). After repeated failures, AWS WAF pauses calls for up to a minute.
Read that list as an attacker would. Your Bedrock quota is shared with whatever else your account does in that Region, and a burst of large requests that drives it into throttling turns the content check off for everyone. A misconfigured role after a permissions cleanup does the same thing silently.
The default is defensible on availability grounds: a security filter that takes your agent down whenever Bedrock hiccups would get ripped out within a week. The fix is to decide deliberately: override Guardrails_CallFailed to Block on endpoints where an uninspected tool call is worse than a failed one, and alarm on the guardrails:call_failed label everywhere else.
Responses behave the other way. If an internal error stops AWS WAF from evaluating the response rules, the client gets an error, and rule overrides do not change it. Response-phase labels also appear only in CloudWatch label metrics, not in WAF logs, so you cannot write your own rules against them or review individual response findings in your log pipeline.
Where Your Prompts Go
On CloudFront, your users' message text goes to Bedrock in whichever of the seven Regions is nearest the edge location, and you cannot choose. The overview page says that can include "Regions outside the country of your viewers or your origin." For ALB and API Gateway REST, inspection happens in the web ACL's own Region.
For a European bank fronting an agent with CloudFront, that means a prompt from a Frankfurt user could be inspected in London or Stockholm, and one from a user in Singapore could go to Tokyo or Sydney. Check that against your data processing agreements before you enable it. Bedrock's data protection page states that model providers have no access to customer prompts and completions; it does not settle where a processing record must show the data went. If residency is binding, put the rule group on a regional ALB or API Gateway web ACL instead of CloudFront.
The Inspection Window Is 8 to 16 KB
The filter reads the first 8 KB of a request body on ALB and the first 16 KB on CloudFront and API Gateway REST, and nothing past that goes to Bedrock. Requests can be raised to 64 KB at extra cost; response limits are fixed at 8 KB and 16 KB, per the rule group reference.
AWS's own docs flag the consequence: in a long chat completion, the newest message sits at the end of the messages array and can land past the limit. The turn most likely to carry an injected instruction is the one least likely to be read. Agent traffic with long histories or large tool results will hit this constantly.
What It Costs
AWS WAF charges $5.00 per million requests for API and AI security inspection, on top of the standard $0.60 per million request fee, per the WAF pricing page. You pay the fee once per request even if both the API and AI security rule groups inspect it. Bedrock bills each Guardrails check separately to your account, and the rule group makes up to three checks per message.
For an endpoint taking 100 million requests a month, that is $560 in WAF request fees before Bedrock. Raising CloudFront request inspection from 16 KB to 64 KB adds three 16 KB increments at $0.30 per million each, or another $90. A web ACL that goes over 1,500 WCUs, which a 400-WCU rule group makes more likely, adds $0.20 per million for each extra 500. AWS WAF pricing changes again on February 1, 2027, when web ACL, rule and body inspection charges are removed, a protected-resource charge of $0.01 per hour (about $7.30 a month) is added, and the AI fee becomes a $5.00-per-million "premium request."
A configuration that turns content assessment off runs only the protocol compliance checks, with no Bedrock calls. The WAF fee still applies.
How It Compares to Cloudflare and Dedicated AI Firewalls
AWS is not first here. Cloudflare's AI Security for Apps (formerly Firewall for AI) offers LLM endpoint discovery on every plan, including Free, but its prompt injection, PII and topic detections are a paid Enterprise add-on and only handle application/json requests. Neither replaces a dedicated runtime detector for agents that never cross an edge you control.
The strongest case for the AWS product is that it needs no new infrastructure if you already front your agents with CloudFront or ALB, and the protocol compliance rules catch malformed MCP and A2A messages that a generic prompt classifier ignores. The case against is that the detection categories, the severity cut points and the entity list are fixed, raw scores are hidden, and it does not work with Firewall Manager, so a multi-account rollout is manual per account. If you already run a dedicated detector like Lakera (see our Lakera tool page), keep it and treat the WAF rules as a cheap outer layer in front of it.
What to Do Before You Turn It On
This Week:
- Turn on API Portal discovery in the accounts that front customer-facing traffic and export the list of MCP, A2A and LLM endpoints it marks as shadow APIs. Cross-check it against your MCP allowlist; anything on one list and not the other needs an owner.
- For every MCP server it finds, record the protocol version it declares. Anything on
2024-11-05or2025-03-26is invisible to the filter and goes on an upgrade-or-block list. - Ask your privacy lead to rule on CloudFront's cross-Region inspection before anyone attaches the rule group to a CloudFront distribution.
This Month:
- Attach the rule group to one non-critical ALB or API Gateway web ACL with every rule overridden to Count, and leave it for two weeks. Use CloudWatch label metrics to see how often each prompt attack tier and the sensitive information rules fire on your real traffic.
- Set a CloudWatch alarm on
guardrails:call_failedand check the reason labels. Raise your Bedrock Guardrails quota in that Region ifthrottlingshows up. - Decide, per endpoint, whether
Guardrails_CallFailedshould Block, and whetherResponse_GuardrailsSensitiveInformationHighConfidenceshould Block on MCP servers that touch credentials.
Before Renewal of Any Third-Party AI Firewall:
- Compare its coverage against this list: MCP versions, A2A versions, Bedrock-native APIs, body size, response scanning and fail behaviour. If your incumbent covers what AWS skips, keep it, and use the WAF rules as the outer layer.
The Bottom Line
Edge filtering for LLM and agent traffic is going the way WAF managed rules went for SQL injection: a cheap default layer that catches the obvious attacks and gets turned on everywhere, while the serious defences live closer to the application. The AWS version is useful today for discovery alone, and its MCP and A2A compliance checks are something most prompt classifiers lack. It also has defaults, a fixed inspection window and a Region choice for CloudFront that AWS made on your behalf. Gateway compromises like the LiteLLM CVE-2026-40217 chain show what is at stake when the layer in front of your models gets a setting wrong.
Run it in Count on one ALB this month, and get the CloudFront residency answer in writing before it goes further.
Continue Reading
- MCP vs A2A vs OpenAPI: Which Agent Integration Standard to Use
- Google's AgentDojo Test Cuts Prompt-Injection Success to 0.9%
- NeMo Guardrails vs Guardrails AI vs Lakera: Buy the Detector
- MCP Server Governance: Enforce at the Client, Not the Registry
- Your Shadow AI Inventory Needs OAuth Logs, Then Endpoint Coverage
- Rotate OpenRouter Secrets After Dragos Finds Prompt Leaks
- Canada Expands AI Compute Access Fund to C$1B, Pays Up to 80%
