Cloud Servers

AWS API Portal and WAF AI Security: Find Shadow MCP Servers and Protect AI Endpoints

13 min read

AWS API Portal and WAF AI Security: Find Shadow MCP Servers and Protect AI Endpoints

The Short Answer

AWS now sells the two halves of API security that teams usually buy separately — or skip entirely. API Portal, a new feature in Amazon API Gateway, builds a continuously updated inventory of the APIs and AI endpoints behind your CloudFront distributions, Application Load Balancers and API Gateway APIs, using traffic logs and configuration records AWS already holds. AI Security, a new AWS WAF managed rule group, protects the AI endpoints in that inventory: it recognizes LLM inference, Model Context Protocol (MCP) and Agent2Agent (A2A) traffic, blocks malformed MCP and A2A messages against their protocol, and can send prompts and responses to Amazon Bedrock Guardrails to catch prompt injection, jailbreaks and leaked secrets. A companion API Security rule group covers the classic API attacks — broken object-level authorization, token tampering, credential stuffing and route probing.

All three became generally available on November 23, 2026, and every fact and price below was checked on AWS’s own pages today, November 28, 2026. Turn on discovery first, because most teams cannot protect endpoints they do not know exist — an undocumented MCP server now shows up as a shadow API instead of staying invisible. Add the rule groups in count mode second, scope them to your AI and API paths, and only then enforce. The catches are real: AI Security runs in just seven Regions plus CloudFront, it only recognizes recent MCP and A2A protocol versions, and its content checks fail open unless you change one default.

What AWS Launched on November 23

The launch bundles three capabilities designed to work as one system. API Portal lives in the API Gateway console but covers APIs behind CloudFront, Application Load Balancer and API Gateway alike — the console location is where you find it, not what it sees. The two rule groups live in the AWS WAF console and run inside the same protection pack (web ACL) as your existing rules, with no new service to deploy and no backend code changes. API Portal shows which discovered endpoints WAF protects, and WAF security events appear on each managed API’s detail page.

Why now? AWS’s argument is that APIs gained a third kind of caller in 2026. Services call APIs predictably, people call them through apps at human pace, and now AI agents call them directly — reading API descriptions, picking tools, and chaining calls with no person clicking through an interface. Meanwhile a new MCP server or LLM endpoint takes minutes to stand up behind a load balancer or CloudFront distribution without passing through an API gateway, so it never enters the API registry or the security review. Worse, these endpoints describe themselves: an MCP client asks for the tool list, an A2A client reads the published agent card. An attacker needs no documentation to find the doors.

That framing matters for server owners, not just enterprises. If you run an OpenAI-compatible gateway, a self-hosted model endpoint, or an MCP server on a VPS behind CloudFront or a load balancer, you run exactly the kind of endpoint this launch targets — and until now, WAF treated it as generic HTTP traffic.

API Portal: An Inventory Built From Traffic, Not Registries

Ask a platform team how many APIs they run and you get a number from a registry. Ask what is answering requests on the internet right now and the number changes. API Portal closes that gap by building its inventory from live traffic and API configuration across your entry points. Nothing to install, no logs to forward, no traffic to reroute: enable discovery for a single account or your whole AWS Organization, exclude resources you do not want inventoried, and it lists endpoints by host, path and HTTP method.

Every discovered endpoint starts as a shadow API — deployed and reachable, but not yet governed — until you promote it to a managed API. For managed APIs, Portal flags zombie APIs with no traffic and no configuration change for a set period, and orphaned APIs whose owning account was closed or removed from the organization. It labels each API public or private, evaluates posture against best practices such as authentication, throttling and WAF protection, and identifies which endpoints are AI endpoints — LLM inference, MCP servers and A2A servers — in the same inventory. One row can therefore show a shadow MCP server that nobody manages yet. You can also publish managed APIs in a documentation portal with your branding, Cognito access control and interactive Try it pages.

API Portal is available in 32 AWS Regions. That breadth is the point: discovery is useful even where the protection half is not yet available, because the inventory tells you what to fix first. Pair it with the identity work in our coverage of enterprise-managed authorization for MCP and narrower STS keys for AI agents — knowing your endpoints exist is step one; controlling who can call them is step two.

AI Security: Protocol Checks First, Content Checks Second

AI Security works in two layers, and the order is the design. First it labels each request as LLM, MCP, A2A or not recognized, so every later check fits the endpoint type. Labels follow the pattern awswaf:managed:aws:ai-security: and appear in WAF logs and CloudWatch metrics with no extra setup.

Layer one is deterministic protocol compliance, run entirely inside WAF. Each MCP and A2A request is checked against the version declared in its MCP-Protocol-Version or A2A-Version header. Supported at launch: MCP 2025-06-18, 2025-11-25 and 2026-07-28, plus A2A 1.0. Baseline checks cover violations that let a request slip past routing or inspection and block by default; Strict adds malformed requests that usually mean an outdated client and counts by default. AWS’s example shows why this layer earns its keep: a request whose headers claim it only lists tools while its body calls a tool that reads a file. A gateway that trusts the header treats it as read-only; the server runs the tool. WAF blocks it because header and body disagree — exactly the inspector-versus-server trick a protocol-aware filter exists to stop.

Layer two is content inspection through Amazon Bedrock Guardrails. You do not configure a guardrail; you enable the option and choose a service role WAF assumes to call Bedrock with your account’s identity. Guardrails scores each check, WAF groups scores into high, medium and low, and you choose the action per check and level. Prompt-attack checks (jailbreaks, prompt injection, system-prompt extraction) run on requests, and on responses for MCP and A2A. Sensitive-information checks — card numbers, Social Security numbers, passwords, AWS access keys — run on responses only when response inspection is on, covering the body up to the size WAF inspects for that resource. By default a high-severity prompt attack blocks; everything else counts and labels.

One default needs an explicit decision: if the Guardrails call fails — throttling included — WAF labels it guardrails:call_failed and lets the request through. To fail closed, set the Guardrails_CallFailed rule to block, accepting that Bedrock throttling then blocks your traffic too. Neither choice is wrong; choosing by accident is.

API Security: The Classic Attacks, Now Learned

The companion API Security rule group protects ordinary APIs, including paths AI endpoints share. Single-request rules catch token tampering from the first request — for example a JSON Web Token declaring alg: none, which asks your API to skip signature verification. AWS is clear about the boundary: these rules check token structure, not signatures, so your application still validates tokens itself.

Behavioral detections cover what no single request reveals. Broken object-level authorization — the top entry in the OWASP API Security Top 10 — looks like a valid request for someone else’s account. API Security learns your traffic baseline and reaches high confidence only when different signs agree and at least one is something your traffic never does; a caller known only by IP stays at medium confidence. The same learning flags credential stuffing and reconnaissance probing of routes your traffic never uses. Every detection is a label your own rules can combine — for instance, blocking an IP only after 50 reconnaissance-labeled requests in five minutes.

What It Costs

Each capability is priced by the service it runs in. All figures are from AWS’s pricing pages, checked today, November 28, 2026.

Capability Price (checked Nov 28, 2026) Notes
API Portal discovery $40/month per Region minimum (US East example), includes 400 APIs; $0.10 per additional discovered API An API is a unique method + path, counted once per account or organization
API Portal documentation portal $125/month, includes 400 APIs; $0.30 per additional API in the portal A portal covers at least 400 discovered APIs, so discovery and documentation are never billed twice
AWS WAF protected resource $0.01 per hour per resource (about $7.30/month) Charged for each resource associated with a web ACL
AWS WAF base request $0.60 per 1 million requests inspected Every inspected request is billed, including blocked ones
AWS WAF premium request $5.00 per 1 million requests, on top of the base fee Covers API Security and AI Security; once per request, only for requests a premium group actually inspects
Bedrock Guardrails content checks Billed separately under Amazon Bedrock pricing Only when you enable content inspection in AI Security

AWS’s own example: discovery that finds 300 APIs with no documentation portal costs $40 a month in US East (N. Virginia). Discover 600 APIs and publish 500 in one portal, and the total is $165 — $125 for the portal, $30 for the 100 APIs beyond its included 400, and $10 for the 100 discovered APIs the portal does not cover. On the WAF side, scope both premium groups to your API and AI paths and place them after your allow/block rules, so ordinary web traffic stays at the $0.60 base rate. Our breakdown of AWS WAF simplified pricing covers the resource-fee math behind every web ACL. Size the Bedrock line before enabling content inspection on high-volume endpoints — it is a separate meter, not bundled into the WAF request fee.

What It Does Not Do

Four limits should shape your rollout. Regions: AI Security runs in US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (London), Europe (Stockholm), Asia Pacific (Tokyo) and Asia Pacific (Sydney), plus CloudFront — seven Regions against API Portal’s 32. Protocol versions: older MCP clients and servers get no AI-specific checks at all. Fail-open default: a failed Guardrails call lets traffic through unless you change the rule. Scope: all three work with CloudFront, API Gateway REST APIs and Application Load Balancer, and protect endpoints you expose — not your outbound Bedrock calls. WAF still does not attach to a server: an MCP server on a VPS with no CloudFront distribution or load balancer in front gets none of this until you add that entry point, which is why AWS recommends putting CloudFront in front of every public 80/443 endpoint, including origins outside AWS.

Who Should Turn It On, and in What Order

If you run any public LLM, MCP or A2A endpoint behind CloudFront, a load balancer or API Gateway, this launch is aimed at you. If you run only classic APIs, discovery plus API Security is still the cheapest shadow-API audit AWS has offered. Follow this order:

  1. Enable API Portal discovery for your account or organization. No WAF required. Investigate the endpoints you did not expect — shadow APIs and shadow MCP servers first.
  2. Add API Security in count mode, review what it finds on real traffic, then remove the override. Behavioral detections need a learning period before high-confidence blocking means anything.
  3. Add AI Security the same way: start with the default-blocking rules overridden to count, enable Guardrails checks with a service role, decide explicitly whether response inspection is on, and remove overrides one rule at a time.
  4. Decide your failure posture in writing — fail open or fail closed when Guardrails is unreachable — and scope both premium groups to the paths they protect.
  5. Use the labels: rate-limit reconnaissance, require tokens or verified bot signatures on private MCP servers, and alarm on label spikes in CloudWatch.

FAQ

What is AWS API Portal?

A feature in Amazon API Gateway, generally available since November 23, 2026, that discovers, governs and documents APIs and AI endpoints behind API Gateway, Application Load Balancer and CloudFront. It builds a continuously updated inventory from AWS-side traffic logs and configuration records — nothing to install — for one account or a whole organization, across 32 Regions. Every endpoint starts as a shadow API until you manage it, and Portal identifies LLM, MCP and A2A endpoints in the same inventory.

What does AWS WAF AI Security block?

Malformed MCP and A2A messages that violate their declared protocol (Baseline blocks by default; Strict counts), plus — with content inspection on — prompt injection, jailbreak attempts and harmful content in requests, and sensitive information in responses, scored by Amazon Bedrock Guardrails. A high-severity prompt attack blocks by default; other findings count and label until you change the actions.

Which Regions and protocol versions are supported?

AI Security: US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (London), Europe (Stockholm), Asia Pacific (Tokyo) and Asia Pacific (Sydney), plus CloudFront. API Portal discovery covers 32 Regions. Recognized protocols: MCP 2025-06-18, 2025-11-25 and 2026-07-28, and A2A 1.0. Older versions receive no AI-specific checks, though API Security still inspects them as ordinary API traffic.

How much do API Portal and AI Security cost?

Checked November 28, 2026: discovery starts at $40 a month per Region (US East example) including 400 APIs, plus $0.10 per additional discovered API; a documentation portal is $125 a month including 400 APIs. In WAF, both rule groups are premium protections at $5.00 per million inspected requests on top of the $0.60 base fee and $0.01-per-hour resource fee, charged once per request and only for requests they inspect. Guardrails checks bill separately under Bedrock pricing.

Does AI Security replace authentication on my MCP server?

No. It validates protocol shape and screens content; it does not authenticate callers or verify token signatures, so your application still validates tokens. Use WAF labels to require tokens or verified bot signatures at the edge, and keep real authorization — with scoped credentials for agents — in your server.

The Bottom Line

The most important sentence in this launch is not about blocking anything. It is that an undocumented, public-facing MCP server now appears as a shadow API. For years, knowing your attack surface required agents, log pipelines or registries that drifted out of date the week they were written. API Portal builds the inventory from traffic AWS already sees, and AI Security gives it teeth: deterministic protocol checks that catch header-versus-body tricks no generic WAF rule would see, plus Guardrails screening for the prompt attacks that define this threat class.

Turn discovery on this week, even if you change nothing else; the endpoints you did not expect are the finding. Then add the rule groups in count mode, scope them to your API and AI paths, decide fail-open versus fail-closed before an incident decides for you, and watch the labels. If your AI endpoints live outside the seven launch Regions or speak older MCP versions, put CloudFront in front and upgrade the protocol — the protection only exists where the traffic is recognized.

Sources: AWS What’s New, “AWS WAF announces automated discovery and protection for LLM, MCP, and A2A endpoints using Amazon Bedrock Guardrails” and “Amazon API Gateway announces API Portal” (November 2026); AWS Security Blog, “Introducing API and AI security on AWS, from discovery to protection”; AWS WAF pricing page and Amazon API Gateway pricing page — all checked on aws.amazon.com today, November 28, 2026. All prices are USD before tax; API Portal examples reflect US East (N. Virginia) pricing as shown on the pricing page.

One response to “AWS API Portal and WAF AI Security: Find Shadow MCP Servers and Protect AI Endpoints”

Leave a Reply

Your email address will not be published. Required fields are marked *