Oossa

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.

By Published by Oossa: 2 min read

Growtika · Unsplash

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.

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.

Was this article useful?
Share

Read next

Oossa · Newsletter

The week in AI, explained

Every Monday: the stories worth knowing, in plain language. Free, no spam.