AWS WAF AI Security GA: Discover Shadow MCP & Block Prompt Attacks
How AWS API Portal and WAF AI Security (GA Nov 23, 2026) discover Shadow MCP/A2A endpoints, enforce protocols, and inspect prompts via Bedrock Guardrails.

Q. Can you discover undocumented public MCP servers or AI agent endpoints and block attacks without changing application code? Yes. With API Gateway API Portal and the AWS WAF AI Security managed rule group—both generally available as of November 23, 2026—you can go from automated discovery to inline blocking without deploying agents or SDKs. Note that the AI Security rule group is currently available in 7 AWS Regions.
⚠️ Accuracy guardrail: This article was verified on November 30, 2026 against the official AWS announcement (
aws.amazon.com/about-aws/whats-new/2026/11/waf-ai-endpoint-discovery-protection/) and the AWS WAF AI Security product page (aws.amazon.com/waf/features/ai-security/), both published on November 23, 2026. Exact pricing for the AI Security managed rule group, per-call Amazon Bedrock Guardrails inspection rates, and the full list of 32 Regions supported by API Portal were not disclosed in these pages and remain unverified.
30-second summary
- Automated discovery (API Portal): Scans traffic logs and service configuration records to identify LLM, MCP, and A2A endpoints behind API Gateway, ALB, and CloudFront, flagging undocumented public MCP servers as Shadow APIs (available in 32 AWS Regions).
- Protocol enforcement: The AWS WAF AI Security rule group validates MCP and A2A protocol compliance inline without calling Amazon Bedrock.
- Content inspection: When enabled with an IAM role, WAF invokes Amazon Bedrock Guardrails (
InvokeGuardrailChecks/InvokeGuardrailsCheckAPI) to detect prompt injection, jailbreaks, harmful requests, and sensitive data in responses. - Regional limit: AI Security is available in 7 AWS Regions (N. Virginia, Ohio, Oregon, London, Stockholm, Tokyo, and Sydney), with additional WAF and Bedrock fees applying separately.

Why did AWS launch a dedicated WAF for MCP and A2A now?
As AI agents and MCP servers proliferate, traditional web firewalls cannot even tell teams where AI endpoints are exposed. Classic REST APIs are protected by path and parameter rules, whereas MCP (Model Context Protocol) and A2A (Agent2Agent) carry prompt injection or jailbreak payloads inside syntactically valid JSON requests.
When a developer leaves a test MCP server publicly reachable without documentation, it becomes a blind-spot Shadow API. AWS addresses this by pairing automated discovery (API Portal) with inline protection (AWS WAF AI Security) so teams do not have to modify model or application code.
For isolating coding agents and MCP credentials earlier in local development, see our AWS Strands Box CLI guide.
Step 1: Automated discovery via API Gateway API Portal
API Portal identifies AI endpoints across your AWS Organization from existing traffic logs and service configuration records—no agents to deploy and no logs to forward. It inspects APIs behind Amazon API Gateway, Application Load Balancers (ALB), and Amazon CloudFront to classify LLM, MCP, and A2A endpoints.
Any undocumented, public-facing MCP server appears as a Shadow API. For endpoints lacking protection, teams can enable AWS WAF directly from the findings. API Portal is available across 32 AWS Regions.

Step 2: WAF protocol enforcement vs. Bedrock Guardrails content inspection
The AI Security managed rule group separates deterministic, Bedrock-free protocol checks from optional content inspection powered by Amazon Bedrock Guardrails.
| Category | Protocol enforcement | Content inspection |
|---|---|---|
| Engine | AWS WAF inline (no Bedrock call) | Amazon Bedrock Guardrails (InvokeGuardrailChecks) |
| Target | LLM, MCP, A2A traffic classification and protocol conformance | Prompt injection, jailbreaks, harmful requests, sensitive data in responses |
| Rule levels | Baseline (safe to enforce) / Strict (starts in Count mode) | High-severity prompt attacks blocked by default; response data labeled/blocked |
| On failure | Labeled and handled by WAF rules | Labeled and counted so traffic flows (can override to block) |
| Extra cost | Additional AWS WAF AI Security fees | Separate Amazon Bedrock charges per content inspection call |
Every detection attaches structured labels to requests and responses, surfacing directly in AWS WAF logs, sampled requests, and Amazon CloudWatch metrics alongside existing web telemetry.
Regions, pricing, and operational caveats before adopting
The main constraint for regional workloads is that AWS WAF AI Security is initially limited to 7 AWS Regions. As of November 23, 2026, the supported Regions are:
- US: US East (N. Virginia), US East (Ohio), US West (Oregon)
- Europe: Europe (London), Europe (Stockholm)
- Asia Pacific: Asia Pacific (Tokyo), Asia Pacific (Sydney)
Workloads running behind CloudFront or in Tokyo/US Regions can attach the rule group to a web ACL immediately. Keep in mind that enabling response inspection triggers Bedrock Guardrails calls on outbound model or MCP responses as well, so scoping down which endpoints are evaluated helps keep inspection costs predictable. For another look at cloud free-tier and cost trade-offs, see Cloudflare Email Sending opens to Workers Free plan.

Toris's take
If you run MCP servers or LLM APIs behind API Gateway, ALB, or CloudFront, start by using API Portal to check for undocumented Shadow APIs.
- Adopt right away if: Your endpoints sit in one of the 7 supported Regions (or behind CloudFront) and you want inline protection against malformed MCP/A2A traffic and prompt injection without code changes. Start Strict rules and content inspection in Count mode to verify false positives before blocking.
- Wait or combine alternatives if: Your traffic is strictly confined to an unsupported Region such as Seoul (
ap-northeast-2) without CloudFront. In that case, use API Portal for discovery and pair custom WAF rules with in-app Guardrails checks until regional support expands.
Sources
Advertisement