Live
K2 Stream Observability: New Dashboard Metrics and GraphQL API AccessGitHub Issue Statuses and Repository Boards Enter Public Preview – What Engineers Need to KnowAgentic SOC in Google Cloud SIEM: Practical Implications for EngineersSlack webhook secret scanning tightened to cut false positivesClaude Ship PR automation: AI agents now review and approve pull requestsProfiling Worker Previews: On‑Demand CPU and Heap Insights for Faster IterationPredictable costs with the new AWS WAF pricing modelProtecting AI‑augmented APIs on AWS with API Portal and WAF rule groupsK2 Stream Observability: New Dashboard Metrics and GraphQL API AccessGitHub Issue Statuses and Repository Boards Enter Public Preview – What Engineers Need to KnowAgentic SOC in Google Cloud SIEM: Practical Implications for EngineersSlack webhook secret scanning tightened to cut false positivesClaude Ship PR automation: AI agents now review and approve pull requestsProfiling Worker Previews: On‑Demand CPU and Heap Insights for Faster IterationPredictable costs with the new AWS WAF pricing modelProtecting AI‑augmented APIs on AWS with API Portal and WAF rule groups
AWS

Protecting AI‑augmented APIs on AWS with API Portal and WAF rule groups

AI SummaryPowered by AI

AWS added discovery (API Portal) and dedicated WAF rule groups for API and AI endpoint protection, extending the security model to AI‑driven callers. Practitioners must incorporate these controls to keep the expanded attack surface visible and enforce rate‑based defenses.

In 2026 the API surface grew to include LLM inference services, Model Context Protocol (MCP) servers, and Agent‑to‑Agent (A2A) endpoints running on Amazon Bedrock, Bedrock AgentCore, and Amazon EKS. At the same time, autonomous AI agents began invoking those endpoints directly, creating a third class of caller beyond traditional services and human‑driven apps. AWS responded with three generally available features: API Portal in Amazon API Gateway for automated discovery, and two managed rule groups—API Security and AI Security—in AWS WAF for runtime protection.

New API landscape and its implications

Existing REST APIs remain unchanged, but their exposure patterns have diversified. An MCP or LLM endpoint can be placed behind a CloudFront distribution or an Application Load Balancer without ever passing through an API gateway, which means it may be absent from any existing API inventory. AI agents can self‑describe their capabilities (for example, via tools/list) and start chaining calls without human interaction. This expands the attack surface: stolen keys, over‑scraping partners, or compromised agents can now target both traditional APIs and AI services.

Discovery with API Portal

API Portal, a new capability of Amazon API Gateway, scans an AWS account—or an entire AWS Organization—to locate both classic APIs and AI endpoints. The service builds a catalog that feeds directly into AWS WAF, allowing security teams to see which resources are covered by the rule groups. Enabling discovery is a one‑click setting in the portal and can be scoped per account or rolled out organization‑wide via AWS Organizations.

Protection via AWS WAF rule groups

Two managed rule groups are now available in AWS WAF:

  • API Security – applies rate‑limiting, anomaly detection, and known‑bad‑pattern filters to traditional API traffic.
  • AI Security – provides analogous protections tuned for AI endpoint characteristics, such as bursty inference requests.

Both groups are attached to a web ACL (the WAF protection pack). When an endpoint appears in the API Portal catalog, the corresponding rule group can be associated automatically, and any security events generated by WAF are displayed on the endpoint’s detail page in the portal. This tight feedback loop makes it possible to correlate discovery data with runtime alerts.

Operational considerations

Adopting these controls introduces several practical steps:

  • Enable API Portal discovery early in the CI/CD pipeline to keep the catalog up to date as new Bedrock or EKS services are provisioned.
  • Review the web ACL composition and ensure both API Security and AI Security rule groups are attached to every ACL that protects public‑facing endpoints.
  • Monitor the portal’s event view for anomalies such as unexpected request spikes from a newly discovered AI endpoint.
  • When deploying an AI service behind CloudFront or an ALB, verify that the endpoint is reachable by the discovery process; otherwise, manually add it to the catalog.
  • Consider organization‑wide rollout via AWS Organizations to maintain a single source of truth for all accounts in a multi‑account environment.

Related CloudNinjas coverage: AWS.

What This Means For Practitioners

Practitioners should treat AI endpoints as first‑class API assets: discover them with API Portal, protect them with the AI Security rule group, and integrate the resulting alerts into existing monitoring dashboards. The new workflow reduces blind spots introduced by rapid AI service deployment and autonomous agents, but it also requires disciplined catalog maintenance and consistent WAF policy application across accounts.

Originally published atAWS Security Blog