GASP AICF

Search controls and profiles

Search by control ID, name, domain or profile

APP-011 API Security

Tier 2+ProviderDeployerGPAI Model ProviderManaged Service Provider

Description

All externally-exposed and internally significant APIs are inventoried and subject to defined security controls. Controls include authentication and authorisation on every endpoint, rate limiting, input validation, and prohibition of sensitive data in query parameters or error responses. API security is included in the development security testing scope.

Rationale

APIs are the primary attack surface for AI products and the services that deliver them. Unauthenticated or improperly authorised APIs are among the most commonly exploited vulnerabilities in cloud-native systems.

Applicability (9 profiles)

SaaS AI Providerstablerequiredcore
Enterprise AI Deployerstablerequiredcore
GPAI Model Providerstablerequiredcore
High-Risk Provider (EU)stablerequiredcore
Public Body Deployer (EU)stablerequiredcore
DORA ICT Provider (EU)stablerequiredcore
NIS2 Cloud Provider (EU)stablerequiredcore

Framework Mappings (13)

AIS-08API Securityfull
AIS-09Input Validationpartial
AIS-08API Securityfull
8.26Application security requirementsinformative
AML.M0004Limit AI Service Query Volume and Rateinformative
AML.M0019Control Access to AI Models and Data in Productioninformative
AC-14Permitted Actions Without Identification or Authenticationpartial
SC-6Resource Availabilityinformative
SI-10Information Input Validationpartial
SI-11Error Handlingfull
ASI07Insecure Inter-Agent Communicationpartial
LLM10Improper Output Handlingpartial
CC6.6Security Measures Against Threats Outside System Boundariesinformative

Evidence (2)

configurationtechnicalautomated

API gateway or application configuration showing that authentication, authorisation, and rate limiting are enforced on all externally-exposed API endpoints.

Example: AWS API Gateway authoriser configuration, Kong API Gateway policy export, or application-level middleware configuration showing: authentication type (OAuth 2.0, API key, JWT) required on every route, rate limit settings (requests per second/minute), and input validation middleware enabled.

Test: Review the API gateway or application routing configuration. Verify: (1) every external-facing endpoint has an authentication requirement, and no unauthenticated routes exist except for explicitly public endpoints with documented justification, (2) rate limiting is configured at the gateway or application layer with specific thresholds, (3) sensitive data fields (passwords, tokens, PII) are absent from query parameters and are not reflected in error responses, confirmed by reviewing a sample of API specifications (OpenAPI/Swagger).

tool_outputtechnicalautomated

API security scan or DAST report confirming that the API inventory is complete and that common API vulnerabilities (OWASP API Security Top 10) are addressed.

Example: OWASP ZAP, Burp Suite, or 42Crunch API security audit report for the production or pre-production API, run within the last 90 days, showing: API endpoints discovered, test coverage, and finding list with no open high/critical items from the OWASP API Security Top 10.

Test: Review the most recent API security scan report. Verify: (1) the scan covers all endpoints in the API inventory, cross-referencing the discovered endpoint count against the OpenAPI specification, (2) no open high/critical findings relating to OWASP API Top 10 categories (Broken Object Level Authorisation, Broken Authentication, Excessive Data Exposure, etc.) remain unresolved, (3) the scan was run on the current production version or a staging environment built from the same artefact.

Questions (2)

boolean

Are all externally exposed and internally significant APIs subject to a defined set of security controls?

Authentication and authorisation must be enforced on every endpoint. Unauthenticated routes should be the exception with documented justification, not the default. Sensitive data must not appear in query parameters or error responses.

multi

Which API security controls are implemented in your production environment?

Authentication required on all external endpoints (OAuth 2.0, API key, JWT, or equivalent)Authorisation enforced at the object/resource level (not just at the route level)Rate limiting enforced at the API gateway or application layerInput validation applied on all endpointsSensitive data excluded from query parameters and error responsesAPI inventory is maintained and kept current (e.g. via OpenAPI specification)API security is included in the security testing scope (DAST, API scanning)None of the above

Authentication, object-level authorisation, and rate limiting are the three most impactful controls for preventing the most common API vulnerabilities (OWASP API Top 10).