# AWS WAF finds hidden AI APIs. No agents needed

> AWS WAF now offers an AI Security rule set that automatically discovers LLM, MCP and Agent‑to‑Agent endpoints on API Gateway, Load Balancers and CloudFront, and can block malformed traffic or malicious prompts.

Oossa · 2026-11-23 · https://oossa.com/en/aws-waf-finds-hidden-ai-apis-no-agents-needed

AWS WAF announced a new AI Security managed rule group that can automatically locate large‑language‑model (LLM), Model Context Protocol (MCP) and Agent‑to‑Agent (A2A) endpoints hidden behind Amazon API Gateway, Application Load Balancers and CloudFront.

The discovery runs through the API Gateway API Portal, which scans traffic logs and service configuration records and flags AI endpoints without requiring any agents or extra log forwarding.

## How discovery works

When the portal sees traffic that matches known LLM, MCP or A2A patterns, it tags the endpoint as an AI API and adds it to the list of assets managed by AWS WAF.

Customers can then view the discovered endpoints in the portal UI and decide whether to attach the AI Security rule group.

## How protection works

The AI Security rule group checks protocol compliance and blocks malformed MCP and A2A messages by default.

If content inspection is turned on, the rule group calls the Amazon Bedrock Guardrails InvokeGuardrailsCheck API to look for prompt‑injection attacks, harmful content, and accidental leakage of sensitive information in requests and responses.

## Regional availability

The API Portal is live in 32 AWS Regions worldwide.

AI Security is currently offered in seven regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (London), Europe (Stockholm), Asia Pacific (Tokyo) and Asia Pacific (Sydney).

## Pricing and limits

Using the AI Security rule set adds extra fees, and each Bedrock Guardrails inspection call is billed separately by Amazon Bedrock.

The rule group is not supported in AWS GovCloud, China Regions, or with AWS Firewall Manager, and attempts to add it in those places return a WAFNonexistentItemException.

## Getting started

To enable AI Security you must provide an IAM role that lets WAF invoke the Bedrock Guardrails API, and configure the managed rule group in a web ACL that protects your CloudFront distribution, ALB or API Gateway.

AWS supplies quick‑start guides on the WAF product page, the AI Security developer guide, and a blog post that walks through discovery to protection.

## The facts

- AWS WAF AI Security can automatically discover LLM, MCP and A2A endpoints via the API Gateway API Portal.
- The managed rule group inspects traffic with Amazon Bedrock Guardrails for prompt attacks, harmful content and sensitive information.
- AI Security is available in seven AWS Regions, while the API Portal is in 32 regions.
- Using the rule group incurs additional fees, and Bedrock content‑inspection calls are billed separately.

## Why it matters

Customers with web applications that expose AI models can now find hidden endpoints and protect them without deploying extra software, but they must budget for the additional Guardrails inspection charges.

## What it means for you

If you already run a WebACL on an Amazon CloudFront distribution, adding the AWSManagedRulesAISecurityRuleSet will automatically surface any hidden LLM, MCP or A2A endpoints and scan them for prompt attacks and harmful content, though you will see extra charges for those inspections.

**Our take:** The new rule group gives AWS customers a turnkey way to locate and shield AI‑powered APIs, but the added Bedrock fees and regional limits mean businesses must weigh the extra cost against the risk of unprotected endpoints.

## Sources & references

1. [AWS WAF announces automated discovery and protection for LLM, MCP, and A2A endpoints using Amazon Bedrock Guardrails](https://aws.amazon.com/about-aws/whats-new/2026/11/waf-ai-endpoint-discovery-protection/) – AWS, 2026-11-23
2. [Amazon Web Services (AWS)](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-ai-security.html?utm_source=openai) – Amazon Web Services (AWS)

Last updated: 2026-11-23
