Cloud news · 27 November 2026

AWS WAF AI Security: Protect LLM, MCP and A2A Endpoints

AWS WAF can now discover and protect LLM, MCP and A2A endpoints using Amazon Bedrock Guardrails. How it works, pricing, regions, limits and how to try it.

Cover image: AWS WAF AI Security now discovers and protects LLM, MCP and A2A endpoints

On 23 November 2026 AWS made automated AI endpoint discovery and protection generally available in AWS WAF, its web application firewall. It does two things. It finds the AI endpoints your teams have exposed, including large language model (LLM) APIs, MCP servers and A2A agents. And it inspects traffic to them for prompt injection, jailbreak attempts, harmful content and leaked sensitive data, using Amazon Bedrock Guardrails.

MCP (Model Context Protocol) lets AI assistants call tools and data sources; A2A (Agent2Agent) lets AI agents talk to each other. Both are spreading quickly, often faster than security teams can track. If you run AI agents or LLM proxies behind CloudFront, an Application Load Balancer or API Gateway, or you look after AWS accounts for clients, this launch is worth a look.

What was launched

There are two parts, plus a companion launch for ordinary APIs.

Discovery in API Gateway API Portal

Discovery lives in the new API Gateway API Portal. According to AWS, the portal builds its list of APIs automatically from traffic logs and service configuration records, with no agents to deploy or logs to forward. It then picks out the AI endpoints: LLM, MCP and A2A endpoints behind API Gateway, ALB and CloudFront across your AWS Organization. An undocumented public MCP server shows up as a "shadow API". API Portal is available in 32 AWS Regions.

Protection with the AI Security rule group

Protection comes from a new AWS managed rule group, AWSManagedRulesAISecurityRuleSet (vendor AWS, version 1.0, 400 web ACL capacity units). The AWS WAF documentation describes two layers:

  • Protocol recognition and compliance, inside WAF. It recognises MCP versions 2025-06-18, 2025-11-25 and 2026-07-28, A2A 1.0, and LLM traffic for OpenAI, Anthropic, Google Gemini and Ollama operations. It checks messages for malformed structure at a Baseline or Strict level. Bedrock's own Converse and InvokeModel calls are not recognised; AWS says to use Guardrails directly for those.
  • Content assessment, which sends readable text to Amazon Bedrock Guardrails. Only certain messages are sent: MCP tool calls, A2A messages, and recognised LLM operations.

Guardrails scores text in three groups, listed in the rule group reference: prompt attacks (jailbreak, prompt injection, prompt leakage), content filters (violence, hate, sexual, misconduct, insults), and sensitive information in responses (for example AWS access keys, passwords, email addresses, card numbers and IBANs).

The companion API Security rule group

AWS also launched automated API discovery and protection the same day. Its rule group, AWSManagedRulesAPISecurityRuleSet, targets broken object level authorization, credential stuffing and API reconnaissance. It is a separate rule group you can add alongside the AI one.

Who it helps

  • Security and platform teams who need to know which AI endpoints exist before they can protect them.
  • Developers shipping agents who want a network-level check for prompt injection in front of tools and models, in addition to checks in the application.
  • MSPs managing several AWS accounts, since discovery works across an AWS Organization.

Default behaviour and limits

Read these before you switch anything to Block:

  • Only four rules block by default: baseline MCP compliance, baseline A2A compliance, and high-severity prompt attacks in requests and in responses. Everything else only counts.
  • Failed Guardrails calls pass through by default and get a label. You can override that rule to Block if you prefer to fail closed.
  • Supported resources: Amazon CloudFront distributions, Application Load Balancers and API Gateway REST APIs only.
  • Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (London), Europe (Stockholm), Asia Pacific (Tokyo) and Asia Pacific (Sydney), plus CloudFront. Not GovCloud or China.
  • Where text is assessed: for ALB and API Gateway, text goes to the web ACL's Region. For CloudFront you cannot choose: each edge location sends text to the nearest supported Region, which may be outside your users' or origin's country. Teams in Europe or India with data-residency rules should check this.
  • Body size: requests are inspected up to 8 KB for ALB and 16 KB for CloudFront and API Gateway by default, adjustable to 64 KB. Text beyond the limit is not assessed.
  • No Firewall Manager: the AI Security rule group cannot be deployed through AWS Firewall Manager.
  • It is probabilistic. AWS recommends running the rule group in Count mode first.

Pricing

The AWS WAF pricing page lists two schedules:

PeriodAPI and AI security charge
Until 31 January 2027$5.00 per 1 million requests, on top of the $0.60 per million request fee. No subscription fee. Same in all Regions.
From 1 February 2027$5.00 per 1 million "premium requests" plus $0.60 per million, with new base pricing of $0.01 per hour per protected resource (about $7.30 a month).

The fee is charged once per request even if both the API and AI rule groups inspect it. Requests already allowed or blocked by an earlier rule, or excluded by a scope-down statement, are not charged it. Bedrock Guardrails is billed separately for each content check, and WAF can request up to three checks for one message. AWS's WAF pages do not list the Guardrails price, so check Bedrock pricing before turning content assessment on for busy endpoints.

How to try it

The AWS guide to adding the rule group describes these steps in the console:

  1. Open the API Gateway API Portal and review the AI endpoints and shadow APIs it has found, and any APIs without WAF protection.
  2. In the AWS WAF console, open the protection pack (web ACL) in front of the endpoint and add AWSManagedRulesAISecurityRuleSet.
  3. In the AI Security configuration pane, turn on Send inspected traffic to Amazon Bedrock Guardrails and choose a service role. The IAM role must be in the same account as the web ACL, and you need iam:PassRole permission for it. The console does not create the role for you.
  4. Optionally select Inspect responses to check replies for sensitive data.
  5. Add a scope-down statement so only your agent and model paths are inspected. This limits both false positives and cost.
  6. Override the four blocking rules to Count, save, and watch CloudWatch metrics for a while before switching rules to Block.

What this means for your organisation

Most companies now have AI endpoints nobody inventoried: a test MCP server, an LLM proxy for an internal tool, a vendor's agent connector. Discovery is the most useful part of this launch, because you cannot protect what you cannot see.

The protection layer is a sensible extra check, not a replacement for good agent design. Prompt injection is still best handled by limiting what an agent's tools can do. Start in Count mode, scope it tightly, and watch the Guardrails bill.

Quick checklist

  • Review API Portal findings for AI endpoints and shadow APIs.
  • Confirm your endpoints use CloudFront, ALB or API Gateway REST in a supported Region.
  • Check data-residency needs before inspecting CloudFront traffic.
  • Create the IAM service role for Guardrails.
  • Deploy in Count mode with a scope-down statement, then tune.
  • Budget for the WAF fee and separate Bedrock Guardrails charges.

Frequently asked questions

What does the AWS WAF AI Security rule group protect against?

It checks LLM, MCP and A2A traffic for protocol problems and, using Amazon Bedrock Guardrails, for prompt injection, jailbreaks, harmful content in requests and sensitive information in responses. By default only four rules block; the rest count.

How much does AWS WAF AI Security cost?

Until 31 January 2027 it is $5.00 per million requests on top of the $0.60 per million WAF request fee, with no subscription fee. Amazon Bedrock Guardrails charges separately for content checks.

Which AWS resources does AI Security support?

Amazon CloudFront distributions, Application Load Balancers and API Gateway REST APIs. Other resource types such as AppSync or Cognito are not supported.

In which regions is AWS WAF AI Security available?

US East (N. Virginia and Ohio), US West (Oregon), Europe (London and Stockholm), Asia Pacific (Tokyo and Sydney), plus CloudFront. It is not available in GovCloud or China.

Run your organisation's email without the upkeep. Mailflew is an open-source-based workspace: mail, chat, calendar, drive and meetings on your own domain, as a managed cloud or an on-premise edition on your own servers, with migration from Zimbra, Microsoft 365 or Google included. See why teams switch or talk to us.

Sources

Keep reading

← All posts

Take control of your communication

Get started with Mailflew today. We'll set it up on your servers, under your domain, with your rules.