Shield overlaid with interconnected protocol nodes and cyan data streams on deep navy background, representing API gateway protection layers.

AWS WAF Adds Native MCP and A2A Protocol Inspection for Agentic AI Traffic

Amazon Web Services has made the AWS WAF AI Security managed rule group and a new Amazon API Gateway API Portal generally available. Together, they discover and protect large language model (LLM), Model Context Protocol (MCP), and Agent2Agent (A2A) endpoints behind API Gateway, Application Load Balancers, and Amazon CloudFront across an AWS Organization.

Discovery runs through the API Portal, which recognizes AI endpoints from traffic logs and service configuration records, with no agents to deploy and no logs to forward, according to the AWS announcement. An endpoint nobody registered surfaces as a finding: “An undocumented, public-facing MCP server appears as a shadow API,” AWS says.

Protection sits in the new managed rule group. It performs protocol recognition and compliance checks to block malformed MCP and A2A messages, and it can be layered with other AWS managed rules or custom rules. When content inspection is enabled, the rule group calls the Amazon Bedrock Guardrails InvokeGuardrailsCheck API to detect prompt injection, jailbreak attempts, harmful content in requests, and sensitive data in responses. AWS notes additional WAF fees apply and that Bedrock bills content-inspection calls separately.

Coverage is uneven. The API Portal spans 32 AWS Regions, but the AI Security rule group runs in only seven: US East (N. Virginia and Ohio), US West (Oregon), Europe (London and Stockholm), and Asia Pacific (Tokyo and Sydney). It does not run in AWS GovCloud (US); AWS’s rule group documentation says other Regions, including GovCloud and China, return an error. Federal workloads in GovCloud cannot use it yet.

The AWS WAF developer guide adds detail the announcement leaves out. The rule group does not assess Amazon Bedrock’s own runtime APIs, such as Converse and InvokeModel, or older MCP versions and A2A 0.3. Only four of its 23 rules block by default, and one message can trigger up to three billed Bedrock Guardrails checks.

Three limits deserve attention before rollout. The rule group fails open: if the Bedrock call fails, the message passes unassessed unless the Guardrails_CallFailed rule is overridden to “Block.” On CloudFront, AWS WAF sends message text to the closest Region where the rule group runs, and customers cannot choose which, so content may be assessed outside the viewer’s or origin’s country. And the rule group cannot currently be deployed through AWS Firewall Manager, which complicates organization-wide rollout.

Prompt injection is also a poor fit for signature matching, because the attack usually arrives as a valid request carrying ordinary-looking text. That matters for how teams scope the control. A WAF inspects protocol conformance and request and response content. It does not replace in-harness tool authorization or least-privilege agent identity, and it does not decide whether an agent should be allowed to call a given tool.

Security architects standing up agentic AI should treat this as an edge layer, not a complete perimeter. Map actual agentic traffic paths first: agents that call Bedrock Converse or InvokeModel directly need a guardrail on the Bedrock request, because the rule group will not assess that traffic. Validate Region availability against where workloads run. For initial testing, override the four blocking rules to “Count,” then promote rules to “Block” once the logs show how they behave on real traffic. Document in the control inventory, for FedRAMP and federal reviewers, that this covers protocol conformance and content inspection, with authorization and agent identity handled separately.

Source: AWS


Leave a Reply