Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 2 min read

WAF API Security and AI Security: Finding Shadow APIs and MCP Endpoints

Two WAF launches landed on 23 November that belong together: API Security and AI Security. Both sit on top of a new API Gateway feature called API Portal, and both are aimed at the same problem, which is that you cannot

Two WAF launches landed on 23 November that belong together: API Security and AI Security. Both sit on top of a new API Gateway feature called API Portal, and both are aimed at the same problem, which is that you cannot protect endpoints you do not know exist.

Everything below is from the two launch posts. I have not tried either yet.

Step one is discovery, not blocking

The API Portal finds APIs automatically from traffic logs and service configuration records. The posts say there are no agents to deploy and no logs to forward. It covers endpoints behind API Gateway, Application Load Balancers and CloudFront, across an AWS Organization.

It classifies what it finds, flags zombie and shadow APIs, assesses security posture and reports APIs missing WAF protection. You can then attach WAF protection to the unprotected ones.

That discovery piece is the part I find most useful. Every organisation I can think of has an endpoint nobody remembers launching.

API Security rule group

The new managed rule group targets three things:

  • Broken Object Level Authorization, where someone changes record IDs to read other users' data.
  • Broken authentication and credential stuffing, such as forged tokens or stolen passwords tried at scale.
  • API reconnaissance and enumeration, such as guessing hidden routes or probing for exposed docs.

Events WAF detects are fed back into the API Portal findings, so you see posture and attacks in one place. It works alongside other AWS Managed Rules and your own rules.

Availability: all Regions where WAF is available, except GovCloud (US), the China Regions and the AWS European Sovereign Cloud. Pricing is not stated in the post.

AI Security: LLM, MCP and A2A endpoints

This one extends discovery to endpoints that serve language models, Model Context Protocol servers and Agent2Agent endpoints. An undocumented public MCP server shows up as a shadow API, which is a nice way to put it.

Protection comes from a new AI Security managed rule group:

  • Protocol checks that block malformed MCP and A2A messages.
  • Optional content inspection, where the rule group calls the Amazon Bedrock Guardrails InvokeGuardrailsCheck API to look for prompt injection, jailbreak attempts, harmful content in requests and sensitive information in responses.

Limits worth knowing:

  • AI Security is only in seven Regions: N. Virginia, Ohio, Oregon, London, Stockholm, Tokyo and Sydney.
  • The post says additional fees apply and Bedrock charges separately for inspection calls. No rates are given.
  • How you configure the guardrail used for inspection is not stated.

What I'd do first

Turn on discovery before anything else and look at the list. If it finds MCP servers that nobody on the team claims, that is the finding. Then roll out the API Security rule group in count mode on one API and watch what it flags before blocking.

For AI Security, I would wait for the developer guide detail on guardrail setup and the cost per inspected request. Content inspection on every call to a chatty agent endpoint could add up quickly.

Are you running MCP servers on public endpoints today? I suspect more of us are than admit it.

Sources

Drafted with AI assistance. I review and edit every post.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.