Skip to content
audiotale.net
Sign in
NewsNews

AWS WAF AI Security: new rule group guards MCP, A2A and LLM endpoints, with Bedrock checks

AWS WAF AI Security, API Portal and API Security are generally available: what the rule group blocks by default, the seven Regions, the extra costs and the limits AWS documents.

audiotale.net team

· 8 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background
  5. How it works
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

AWS has made AWS WAF AI Security generally available: a new managed rule group, AWSManagedRulesAISecurityRuleSet, that recognises traffic to large language model (LLM) endpoints, Model Context Protocol (MCP) servers and Agent2Agent (A2A) servers, checks MCP and A2A messages against their protocols, and sends message text to Amazon Bedrock Guardrails to look for prompt attacks, harmful content and sensitive information. Alongside it AWS launched API Portal in Amazon API Gateway, which finds AI endpoints, including undocumented "shadow" ones, behind API Gateway, Application Load Balancers and CloudFront. The documentation also shows where its protection stops.

Key points

  • AWS announced on 23 November 2026 that API Portal (Amazon API Gateway), API Security and AI Security (both AWS WAF managed rule groups) are generally available.
  • The AI Security rule group recognises LLM, MCP and A2A traffic and by default blocks malformed MCP and A2A messages and high-severity prompt attacks (Bedrock score of 0.8 or more).
  • AI Security is available in seven AWS Regions (US East N. Virginia and Ohio, US West Oregon, Europe London and Stockholm, Asia Pacific Tokyo and Sydney); API Portal is in 32 Regions.
  • Content inspection costs extra: an AWS WAF fee per request evaluated, plus separate Amazon Bedrock charges, with up to three Bedrock checks per message.
  • AWS itself says the Guardrails assessments are probabilistic and recommends running the blocking rules in Count mode first.

What to do

If you run LLM gateways, MCP servers or A2A agents on AWS, this is a checklist you can act on this week:

  1. Find what you have. Enable discovery in API Portal (in the Amazon API Gateway console) for one account or for your whole AWS Organization. AWS says it reads service logs and configuration records, so there is nothing to attach and no logs to forward. Every endpoint it finds starts as a "shadow API" until you promote it.
  2. Check your protocol versions. The rule group recognises MCP protocol versions 2025-06-18, 2025-11-25 and 2026-07-28, and A2A version 1.0 only. Older versions (MCP 2024-11-05 and 2025-03-26, A2A 0.3) are not recognised, so those servers get no AI-specific checks.
  3. Start in Count. AWS recommends overriding the blocking rules to Count and confirming the results on your own traffic before enforcing.
  4. Set up the IAM role. Content assessment needs an IAM role that AWS WAF assumes to call Bedrock. Anyone who creates or updates a protection pack (web ACL) naming that role needs iam:PassRole, even for updates that do not touch AI Security.
  5. Decide on data location. For CloudFront, message text can be assessed in several of the seven Regions, including outside your viewers' country. Read the data-protection note before enabling content inspection on regulated traffic.

What happened

On 23 November 2026 AWS posted its "What's New" announcement, titled "AWS WAF announces automated discovery and protection for LLM, MCP, and A2A endpoints using Amazon Bedrock Guardrails". A longer AWS Security Blog post, "Introducing API and AI security on AWS, from discovery to protection", says three capabilities are "generally available today": API Portal, API Security and AI Security.

The pieces fit together like this:

  • API Portal builds an inventory of APIs from their configuration and live traffic across CloudFront, Application Load Balancer and API Gateway. It reports each AI endpoint's type (LLM inference, MCP server or A2A server). For APIs you manage it also flags "zombie" APIs, which have no traffic and no configuration change for a set period, and "orphaned" ones whose owning account was closed or left the organisation.
  • API Security is a separate managed rule group for ordinary API abuse: broken object level authorization (BOLA), authentication attacks such as tampered tokens and credential stuffing, and reconnaissance. It combines single-request rules (for example, blocking a JWT that declares alg: none) with behavioural detections that learn a baseline from your traffic.
  • AI Security is the part aimed at agent traffic. It works in two layers. The first, protocol recognition and compliance, runs inside AWS WAF. The second, content assessment, sends extracted text to Bedrock Guardrails and turns the findings into labels.

The AWS blog quotes Mike Hasani, a senior software engineer at Principal Financial Group, on API Portal: it gives "visibility without requiring teams to change how they deploy APIs or route traffic".

Background

Agent infrastructure has spread quickly: an MCP server or an LLM endpoint takes minutes to stand up, and as the AWS blog puts it, it can sit behind a load balancer or a CloudFront distribution without ever passing through the API gateway, which leaves it missing from the API registry and the security review. The blog's example is "the MCP server that a team set up for a hackathon" that is "not in the registry" but still answers requests.

AWS had already moved in this direction before today. In June 2026 it added AWS WAF support for Amazon Bedrock AgentCore Gateway (see AWS's June announcement, "AWS WAF adds support for Amazon Bedrock AgentCore Gateway"), which let teams attach a web ACL to that managed gateway. What is new now is protection for endpoints you run yourself, wherever they sit, plus discovery of the ones you forgot. If you want the broader picture of why agents need containment, our guide on sandboxing an AI coding agent covers the host side of the same problem; the WAF is the network edge.

How it works

The documentation separates what happens locally in AWS WAF from what is delegated to Bedrock.

Protocol compliance (local). For recognised MCP and A2A messages the rule group applies two levels of checks. Baseline violations are malformed messages. Strict violations add constructs that the protocol permits but that are uncommon; Strict includes Baseline. Two rules block by default: Compliance_BaselineMCP and Compliance_BaselineA2A. LLM traffic is recognised for operations from OpenAI, Anthropic, Google Gemini and Ollama. Bedrock's own runtime APIs such as Converse and InvokeModel are not recognised.

Content assessment (Bedrock). AWS WAF extracts readable text and asks Bedrock Guardrails for up to three safeguards: prompt attack, content filter and sensitive information. Only some messages are assessed: MCP tools/call messages, A2A SendMessage and SendStreamingMessage posts, and most LLM operations (OpenAI embeddings, image variations and audio transcription or translation are recognised but not assessed). Which safeguard runs depends on protocol and direction:

Traffic Direction Prompt attack Content filter Sensitive information
LLM request Yes Yes No
LLM response No No Yes
MCP tools/call request Yes No No
MCP tools/call response Yes No Yes
A2A send operations request Yes Yes No
A2A send operations response Yes No Yes

The MCP and A2A response rows matter most. Tool results and agent replies carry third-party text that your agent reads and might act on, so AWS checks them for prompt attack. That targets indirect prompt injection, where a tool returns text that instructs the model. A model's own completion, by contrast, is not checked for prompt attack.

Scoring. Bedrock returns a score per category and AWS WAF puts it in a fixed tier you cannot change: High (0.8 and above), Medium (0.6 to below 0.8), Low (above 0 to below 0.6) or no finding. By default only high prompt-attack findings block (Request_GuardrailsPromptAttackHighSeverity and Response_GuardrailsPromptAttackHighSeverity); everything else counts. There is no learning period, because neither layer builds a baseline from your traffic.

AWS Regions where each new capability is availableRegions
AWS Regions where each new capability is available (Regions)
Regions
API Portal32
AI Security7

Source: AWS What's New announcement, 23 November 2026

What it means

For platform and security teams, discovery is arguably the bigger win. You cannot attach a rule group to an endpoint you do not know exists, and the "shadow MCP server" is now a first-class inventory row. The cost is that AI Security covers CloudFront distributions, Application Load Balancers and API Gateway REST APIs only. Endpoints fronted by other things are outside it.

For regulated workloads, the data path needs a decision. For an ALB or API Gateway REST API, text goes to Bedrock in the Region of the protection pack. For CloudFront, each edge location sends content to the closest of the seven Regions, and you cannot choose, so one distribution's content may be assessed in more than one Region.

For budgets, two bills apply. AWS charges an additional WAF fee per request the rule group evaluates (shared with API Security, charged once per request), and Bedrock bills the Guardrails calls to your account, with up to three checks per assessed message. The announcement says "additional fees apply" and does not list rates; see the AWS WAF pricing page. A scope-down statement limits evaluation to the paths that serve agent traffic and so limits the bill.

For attackers and defenders alike, the limits are the story. The assessments are probabilistic and AWS says they "might not identify or categorize all abuse correctly". A failed Bedrock call does not block by default: the message is labelled guardrails:call_failed, counted, and passes unassessed, so an exhausted Bedrock quota or a broken role silently turns content inspection off unless you override Guardrails_CallFailed to Block. The default favours availability, and it is the setting to revisit if you treat the rule group as a hard control. Response-phase labels also appear only in CloudWatch metrics, not in WAF logs, and your own rules cannot match them. The rule group cannot currently be deployed through AWS Firewall Manager.

What we don't know yet

  • The per-request price. Neither the announcement nor the developer guide gives it; both point to the pricing page.
  • How well the Guardrails scoring catches real attacks on MCP tool calls. AWS publishes no detection rates, and we found no independent test yet.
  • How the rule group treats MCP traffic on the newest protocol version in real deployments, since it recognises exactly three versions.
  • What share of AI endpoints in typical accounts sits behind the three supported entry points.

All the facts above come from AWS's own announcement, blog and documentation; we found no independent testing or reporting by another outlet when we checked, so treat performance claims as the vendor's.

What to watch next

Watch for the published AWS WAF pricing for AI Security and for first independent write-ups of false-positive rates in Count mode, which is the real test. Also watch whether AWS adds Region coverage (seven today against 32 for discovery), widens support to older MCP versions, and adds Firewall Manager deployment, which large organisations will need before they can roll it out centrally.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.