· AI dev tools
AWS releases API Portal, API Security, AI Security for API and AI endpoint protection
The detection of malicious activity can manifest in a single network request, or it might only surface over an extended period; this dual nature underscores why safeguarding an API requires two…
The detection of malicious activity can manifest in a single network request, or it might only surface over an extended period; this dual nature underscores why safeguarding an API requires two distinct forms of threat identification.
Digital enterprises have relied upon APIs for over a decade, a technology that, for a time, seemed to have reached a plateau in terms of novel developments. This landscape shifted dramatically in 2026 with the integration of artificial intelligence endpoints. Now, development teams are operating large language model (LLM) inference endpoints, alongside Model Context Protocol (MCP) servers and Agent2Agent (A2A) servers, right next to their established REST APIs. This evolution is occurring on platforms such as Amazon Bedrock, Amazon Bedrock AgentCore, and Amazon Elastic Kubernetes Service (Amazon EKS), and many firms are now selling their APIs as the core product itself. Furthermore, AI agents are capable of reading API descriptions, selecting necessary tools, and chaining calls without any human intervention through an application interface. Historically, APIs had two types of interacting parties: other software services and end-users interacting with an application. A third category has emerged: AI agents acting on behalf of individuals, leading to a feeling that nearly everyone possesses a personal AI agent capable of invoking APIs for them.
To address this expanding perimeter, capabilities are being introduced across AWS WAF, Amazon CloudFront, Application Load Balancer, and Amazon API Gateway to facilitate the discovery and defense of the APIs and AI endpoints utilized by services, applications, and these new AI agents. Specifically, a new feature in Amazon API Gateway, named API Portal, allows for the discovery of both your APIs and your AI endpoints. Additionally, AWS WAF gains two new managed rule groups: API Security, designed to shield your APIs, and AI Security, intended for protecting your AI endpoints. All three of these features are currently available to use. You possess the option to activate discovery within API Portal either for a single account or across your entire organization via AWS Organizations. The two security rule groups function by safeguarding the resources linked to your protection pack (web ACL). A crucial element of their synergy is that API Portal displays which endpoints AWS WAF is protecting from its discovered list, and any security incidents flagged by AWS WAF appear directly on the detail page for each managed API.
The fundamental APIs remain unchanged; what has shifted is the manner in which they are exposed, the entities that invoke them, and the nature of the threats they face. Consider how you expose them: a fresh MCP server or LLM endpoint can be provisioned in mere minutes. Such an endpoint can be positioned behind a load balancer or a CloudFront distribution without ever traversing your API gateway, meaning it bypasses the API registry and security vetting process. Moreover, an agent capable of accessing it does not require your documentation, since the endpoint describes its own functions—an MCP client requests its available tools via `tools/list`, and an A2A client reads the agent card published by the server.
The identities calling these endpoints are also diversifying. A comparative overview of the three calling types reaching your APIs today reveals distinct patterns. For service-to-service interactions, the normal pattern involves predictable, authenticated calls that repeat a consistent sequence. Abuse in this scenario might involve a compromised API key or a partner exceeding the scope of their contractual agreement. For person-to-service calls mediated by an application, the expected behavior involves sessions and interactions paced by a human. Abuse here could manifest as account takeover or automated checkout processes, detectable through browser signals like CAPTCHA or unique browser fingerprints. The newest caller, the AI agent to service for a person, presents a unique profile: human intent executed through machine behavior originating from an HTTP client or an automated browser. The danger here arises from an agent utilizing stolen credentials or a bot masquerading as such an agent.
Browser signals alone are insufficient for comprehensive defense, necessitating deep visibility into the API itself regarding what threatens it. APIs built to serve web and mobile applications were originally designed for a single client: your application. That application interacts with them in a prescribed sequence, at a human pace, using inputs that have already undergone validation. However, legitimate agents now access these same APIs directly, and attackers and fraudsters employ the same pathways. Crucially, none of these actors are bound by the usage rules established for your application.
This is how the platform responds to these evolving dynamics, as illustrated in the accompanying diagram. In that depiction, services, individuals, and AI agents communicate with your APIs through their respective ingress points. At these points, API Portal maps out your endpoints, while AWS WAF applies API Security and AI Security to the same traffic flow to neutralize threats. API Portal constructs an inventory of your APIs by analyzing both their configuration and the live traffic hitting your API entry points: API Gateway, Application Load Balancer, and CloudFront. API Security defends against three categories of API misuse: broken object level authorization, authentication assaults such as credential stuffing and tampered tokens, and reconnaissance activities like probing for unlisted routes. It achieves this using rules that operate on a per-request basis, supplemented by behavioral detections that learn from your traffic patterns. AI Security is responsible for identifying AI traffic (LLM inference, MCP, and A2A), verifying MCP and A2A requests against their specific protocol, and inspecting prompts and responses using Amazon Bedrock Guardrails to counter prompt attacks, harmful content, and the exposure of sensitive data. All three components operate in conjunction with Amazon CloudFront, Application Load Balancer, and Amazon API Gateway REST APIs. For the most current details regarding supported protocols, endpoint types, and resources, please consult the AWS WAF Developer Guide for the API Security and AI Security rule groups.
These three capabilities reside in two distinct locations. API Portal can be located within the Amazon API Gateway console, though it encompasses discovery across CloudFront, Application Load Balancer, and API Gateway. Conversely, API Security and AI Security are managed within the AWS WAF console.
Discovery is paramount because you cannot secure an endpoint that remains unseen. If you inquire with a platform team, you might receive a count of APIs registered in a formal registry. However, asking what is currently responding to requests across the internet yields a fluctuating number. An MCP server set up for a short-term hackathon, or an older v1 endpoint that was never deactivated, may not appear in that registry, yet both continue to respond to network requests. API Portal builds its inventory by examining both the live traffic and the configuration data of your API entry points. You initiate discovery in API Portal either for a single account or across your organization using AWS Organizations, and you maintain the ability to exclude any resources you wish from this inventory. It achieves this by reviewing the service logs and configuration records held by your API entry points. There is no requirement to attach anything, forward logs, or reroute traffic. It provides a listing of endpoints receiving traffic, categorized by host, path, and HTTP method. Initially, every discovered endpoint is considered a shadow API—meaning it is deployed and reachable but not yet subject to governance. Once you advance it, it becomes a managed API. For the APIs you do manage, API Portal also flags "zombie APIs," those lacking any traffic or configuration changes over a defined duration, alongside "orphaned APIs," whose owning account has been closed or removed from your organization. You can then retire a zombie API that serves no purpose, or you can resolve the ownership of an orphaned one. Refer to the API Portal Developer Guide for the specific criteria used for classification rules.
API Portal also identifies your AI endpoints, reporting the specific nature of each, such as an LLM inference endpoint, an MCP server, or an A2A server. It locates these within the same traffic streams as your other APIs—via CloudFront, Application Load Balancer, and API Gateway—and includes them in the same inventory view, preventing the need to maintain a separate listing for them. Consequently, a single entry in the inventory might represent a shadow MCP server that has yet to be managed. The diagram (Figure 2) illustrates this inventory.
"We can manage our API environment more effectively when we have a clear picture of what’s running across AWS. API Portal gives us that visibility without requiring teams to change how they deploy APIs or route traffic, helping us create a more complete view across the enterprise," noted Mike Hasani, Senior Software Engineer at Principal Financial Group.
Some security threats are visible within a single request, while others only become apparent over time; two requests illustrate why protecting an API requires two types of detection. The first example involves a request like: `GET /v1/orders/48213 HTTP/1.1 Host: orders.example.com Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiJ9.` This JSON Web Token (JWT) declares `alg: none`, instructing the API to bypass signature verification, a behavior that a properly constructed client would not exhibit. The API Security managed rule group blocks this request before it reaches your origin, doing so from the very first attempt without needing any learning period. These same rules are equipped to catch other forms of token manipulation, such as directing the token toward a signing key controlled by the attacker. These rules examine the structure of a token found in the Authorization header; they do not validate its signature, meaning your application must still perform that validation. For a complete rundown of the rules and their default functions, consult the API Security managed rule group documentation in the AWS WAF Developer Guide.
The second scenario involves a request such as: `GET /accounts/1337 HTTP/1.1`. Nothing inherently wrong with this request exists, and the caller’s token is valid. However, it constitutes abuse if the caller does not possess ownership of account 1337, a detail no single request can reveal. This situation





