AWS WAF Now Inspects MCP and A2A Traffic: What It Blocks
On 23 November 2026 AWS announced two things for teams that run language model, MCP and Agent2Agent (A2A) endpoints. The first is a new AWS WAF managed rule group, AI Security, that recognises those protocols, blocks malformed MCP and A2A messages, and can send message text to Amazon Bedrock Guardrails to look for prompt injection. The second is the API Gateway API Portal, which finds these endpoints across an AWS Organization, including MCP servers nobody documented. On the same day AWS also changed how WAF is priced, and the new rule group is billed under that model.
This is the first time a major cloud's edge firewall has understood MCP. A firewall in front of an agent endpoint is worth having, but the defaults matter more than the headline. Out of the box, most of this rule group only counts. Content inspection fails open. And the Bedrock quota behind it is low enough that busy endpoints will hit it.
What happened
The rule group is AWSManagedRulesAISecurityRuleSet, version V1-0, at 400 WCU (rule group reference). It has 23 rules in five families:
| Family | Rules | Default action | What it looks at |
|---|---|---|---|
| Recognition | Recognized_LLM, Recognized_MCP, Recognized_A2A, Not_Recognized |
Count | Path and body shape. MCP at revisions 2025-06-18, 2025-11-25 and 2026-07-28. A2A 1.0 only |
| Compliance | Compliance_BaselineMCP, Compliance_BaselineA2A |
Block | Malformed envelopes, such as a Mcp-Method header that disagrees with the body |
Compliance_StrictMCP, Compliance_StrictA2A |
Count | Stricter checks, such as a missing Mcp-Method or Mcp-Name header |
|
| Prompt attack | Request_ and Response_GuardrailsPromptAttack at High, Medium and Low |
High blocks, others count | Jailbreak, prompt injection and prompt leakage scores from Bedrock |
| Content and data | Content filter on requests, sensitive information on responses, at three levels each | Count | Five harm categories; nine entity types such as AWS keys and card numbers |
| Outcome | Guardrails_NotAssessed, Guardrails_CallFailed |
Count | Whether Bedrock was asked at all, and whether the call worked |
Only four rules block by default: the two Baseline compliance rules and the two High prompt-attack rules. Everything else adds a label and lets the request through.
Supported resources are CloudFront, Application Load Balancers and API Gateway REST APIs. The rule group runs in seven Regions: us-east-1, us-east-2, us-west-2, London, Stockholm, Tokyo and Sydney. It is not offered in GovCloud or China. For CloudFront, content goes to whichever of those seven Regions is nearest and you cannot pick it; for ALB and API Gateway it stays in the web ACL's Region (same reference page).
What gets sent to Bedrock is narrower than "all MCP traffic". For MCP, only tools/call is assessed. For A2A, only SendMessage and SendStreamingMessage. WAF pulls out the text, decodes base64 fields, drops whole files, and does not fetch URLs (components page). It calls the new Bedrock InvokeGuardrailChecks API with an IAM role in your account. You do not create a guardrail; the categories are fixed. (The announcement spells the API InvokeGuardrailsCheck; the API reference and WAF docs say InvokeGuardrailChecks.)
API Portal discovers endpoints from AWS Config records and traffic. It recognises MCP by the MCP-Protocol-Version request header, A2A by the A2A-Version header or an agent card at /.well-known/agent-card.json, and LLM gateways by well-known paths or headers such as x-litellm-* (AI discovery page). It does not read bodies or tool lists. Anything discovered that nobody has promoted shows up as a shadow API.
What changes for engineers
Content inspection fails open. If the Bedrock call fails, because of access denied, throttling or the service being unavailable, the request gets a guardrails:call_failed label and "passes without assessment" (components page). You can override Guardrails_CallFailed to Block. Whether you should depends on whether an unreachable classifier is worse than an unreachable agent.
The default quota is low. Bedrock allows 1,500 InvokeGuardrailChecks calls per minute per account per Region (quotas page), which is 25 a second, and it can be raised through Service Quotas. Combine that with fail-open and an endpoint doing more than 25 assessed tool calls a second has some calls passing unchecked by default. Raise the quota before you rely on the prompt-attack rules, and alarm on the call_failed label.
Some traffic is never assessed. Compressed or binary bodies are not assessed. Responses cut off at the inspection size limit are not assessed. Streaming responses whose body has not arrived, non-2xx responses and empty bodies get no label at all (components page). Request body inspection is capped at 8 KB on ALB and 16 KB by default on CloudFront and API Gateway, raisable to 64 KB (body limit page). A tool call with a large argument is only partly read. Response-phase labels appear only in CloudWatch metrics, not in WAF logs or custom rules.
Older MCP servers are invisible to it. Revisions 2024-11-05 and 2025-03-26 are not recognised by WAF. API Portal identifies MCP only by the protocol version header, so a server that never sees one (anything before 2025-06-18) will not show up as MCP.
It does not do authorization. The rule group has no OAuth or token handling. AWS's own launch blog suggests blocking MCP requests that carry no access token, and says the MCP server still validates the token itself. If your server's auth is weak, see how to secure a remote MCP server with OAuth first.
The bill has a new shape. Under the new model you pay $0.01 per protected resource-hour, $0.60 per million inspected requests, and $5.00 per million premium requests, a category that includes AI Security. 2,500 WCU are included per web ACL, up from 1,500 (pricing page). Bedrock bills the checks separately: $0.08 per 1,000 text units for prompt attack, $0.07 for the content filter and $0.10 for sensitive information, where a text unit is up to 1,000 characters (Bedrock pricing). Setting Bedrock to Disable still incurs the premium fee (using the rule group). The dates need care. The announcement says the new pricing is "available today", but the pricing page says the new fees apply to usage from 1 February 2027 and that usage through 31 January is billed at current pricing. AWS's pricing blog says existing customers move on 1 February 2027. I could not find what AI Security costs under the old model before that date.
My arithmetic under the new model, for one ALB carrying 1 million short tools/call requests a month, with request-side prompt attack and content filter checks on: about $7 resource fee, $0.60 base, $5 premium, and about $150 of Bedrock checks. If those assumptions hold, the Bedrock checks are most of the cost, so a scope-down statement that sends only the MCP path through the rule group is worth writing. I have not seen a real bill, and I am assuming each check is billed per text unit as the pricing page reads.
What I ran
I did not run AWS WAF itself; this blog's runs do not touch cloud accounts. What I could test locally was the compliance half. If a modern MCP server already rejects malformed messages, the Baseline rules add little for it. If it does not, they matter.
I ran a server on the official MCP Python SDK 2.3.0 behind a request logger. I called it with three clients: SDK 2.3.0 in its default mode (which speaks 2026-07-28), the same SDK in legacy mode (2025-11-25), and SDK 1.30.0. Then I sent hand-built requests that break each documented MCP check.
# Headers SDK 2.3.0 sends on a 2026-07-28 tools/call
mcp-protocol-version: 2026-07-28
mcp-method: tools/call
mcp-name: add
# body params._meta carries io.modelcontextprotocol/protocolVersion = 2026-07-28
# SDK 1.30.0 and legacy mode: initialize has no version header;
# later requests carry mcp-protocol-version: 2025-11-25 and mcp-session-id,
# and no mcp-method or mcp-name
| Malformed request, per the AWS check list | AWS rule tier | SDK 2.3.0 server response |
|---|---|---|
Mcp-Method header differs from body method |
Baseline (blocks) | HTTP 400, code -32020 |
_meta protocol version missing on 2026-07-28 |
Baseline (blocks) | HTTP 400, code -32602 |
method is not a string |
Baseline (blocks) | HTTP 400, code -32600 |
| Body is an array, not an object | Baseline (blocks) | HTTP 400, code -32600 |
Mcp-Method header missing on 2026-07-28 |
Strict (counts) | HTTP 400, code -32020 |
Mcp-Name header missing on tools/call |
Strict (counts) | HTTP 400, code -32020 |
jsonrpc is 1.0 |
Strict (counts) | HTTP 400, code -32600 |
tools/call without params.name |
Strict (counts) | HTTP 400, code -32602 |
| Valid envelope, argument says "ignore previous instructions" | Prompt attack (Bedrock) | HTTP 200, tool ran and failed on type validation |
Every malformed case was already refused by the current Python SDK. The compliance rules earn their keep in front of hand-rolled servers, servers on older SDKs, and anything that parses JSON-RPC loosely. The one thing my server let through was the one thing only Guardrails looks at: a well-formed call whose argument text is hostile. That is the case the prompt-attack rules exist for, and the one that fails open.
One detail in AWS's table I could not resolve. The Baseline check mcp_protocol_version_mismatch matches when "the header version differs from the _meta version, or that member is absent". Clients on 2025-11-25 and earlier send no _meta protocol version at all, as my captures show. I expect the check applies only to 2026-07-28 traffic, but the page does not say so. Run the rule group in Count mode against real 2025-11-25 clients before you let it block.
What to do this week
- List your agent endpoints. If you already use API Gateway or have AWS Config on, turning on API Portal discovery is the quickest way to find MCP servers someone stood up behind an ALB. Expect results within a few hours, up to 24 (enable discovery).
- If you try the rule group, start with every rule in Count and look for
traffic:recognized_mcplabels. Anything labellednot_recognizedgets no checks, which usually means an old protocol revision. - Before you turn Bedrock inspection on, raise the
InvokeGuardrailChecksquota for the Region and add a CloudWatch alarm onGuardrails_CallFailed. - Add a scope-down statement so only your MCP and A2A paths go through the rule group. That keeps the premium fee and Bedrock checks off the rest of your traffic.
- Upgrade servers to an SDK that validates the 2026-07-28 headers itself. The firewall should be the second check, not the only one. The MCP changelog tracker lists the current SDK releases.
FAQ
Does AWS WAF AI Security replace MCP authorization?
No. It recognises and checks protocol shape and content but does nothing with OAuth tokens. AWS's launch blog says the MCP server should still validate the token itself.
Does it work with stdio MCP servers?
No. It is a web firewall rule group for HTTP traffic through CloudFront, ALB or API Gateway REST APIs. Local stdio servers never cross it.
What happens if Bedrock Guardrails is throttled?
By default the request passes without assessment and gets a guardrails:call_failed label. You can override the Guardrails_CallFailed rule to block instead.
Which MCP versions does it understand?
Revisions 2025-06-18, 2025-11-25 and 2026-07-28. Traffic on 2024-11-05 or 2025-03-26 is labelled not recognised and skips every check.
Related: MCP Changelog Tracker, MCP Security in 2026: The Protocol Hardened, the Ecosystem Did Not and Prompt Injection Defense for LLM Apps.
Spot an error or something out of date? Email me and I will fix it and log it on the corrections page.
I'm Ajay Kumar — I build and operate PandaStack, an open-source Firecracker microVM cloud for AI agents, and write about the infrastructure and tooling around it.
Need this kind of infrastructure work? See what I do or email hello@ajayk.sh.
Related
AWS Sign-In Now Allows 90-Day Sessions for aws login and MCP Clients
On 23 November 2026 AWS let admins set an OAuth sign-in duration of up to 90 days per IAM role or user, for aws login, the AWS MCP Server and other OAuth clients. What it changes, the SCP key that blocks it, how to watch it in CloudTrail, and what to decide this week.
5 minNov 20, 2026Amazon Cognito Now Accepts MCP Clients by URL: CIMD Without App Clients
On 19 November 2026 Amazon Cognito added Client ID Metadata Document (CIMD) policies, so MCP clients such as VS Code and Claude can sign in to a user pool without an app client each. The limits, the grant rules, and what the real client documents look like.
6 minNov 17, 2026GitHub Copilot Can Now Force MCP Servers Through Plugins
On 16 November 2026 GitHub added a managed setting that makes Copilot accept MCP servers, hooks, skills and agents only from plugins, and VS Code set February 2027 to remove its Local agent harness. What changed and what to check.
6 min