API security
Protecting application programming interfaces, the endpoints through which software calls other software, with authentication, object-level authorisation, input validation and rate limiting.
API security is the protection of application programming interfaces: the endpoints through which one program requests data or actions from another, commonly over HTTP. APIs expose logic and data directly to callers, so each request needs to be authenticated, authorised and validated on the server. The OWASP API Security Top 10 (the 2023 edition) catalogues the common failures, headed by broken object level authorisation, where a caller changes an object identifier in a request and reaches another user’s record.
Common controls are authentication of the calling client or user, often with OAuth 2.0 access tokens; an authorisation check on every object and function; input validation; rate limiting and quotas; encryption in transit with TLS; and an inventory, so that old or undocumented endpoints are not left exposed. An API key on its own identifies a calling application and is weak evidence of who the user is. A web application firewall can help but is no substitute for authorisation inside the service.
Exam relevance: the ISC2 outline lists security of application programming interfaces under secure coding guidelines and standards (8.5). A scenario in which a user reads another customer’s data by changing an ID in a request is likely to be pointing at missing object-level authorisation. Candidates are expected to keep authentication apart from authorisation.