How To Use This Checklist
Most API security failures are not caused by one dramatic mistake. They usually come from small missing controls across authentication, authorization, validation, and observability.
This checklist is designed to be worked through by developers, security engineers, and reviewers before a release. The stages follow the order in which controls are usually built. Each check says how to verify it and which OWASP API Security Top 10 (2023) category it reduces. If you cannot verify a check, treat it as open risk.
Design and Inventory
You can only secure the endpoints you know about. Start every review by confirming what is exposed, where, and who owns it.
- 1
Every API, version, and environment is listed in an inventory with an owner.
How to verify: Compare the inventory with your gateway routes and with the routes found in source code. A route that appears in only one list needs an owner or removal.
- 2
Each API has an OpenAPI description that matches the deployed routes.
How to verify: Generate a route list from the code or from traffic and diff it against the spec. Undocumented routes and documented routes that no longer exist both count as drift.
- 3
Old API versions and non-production hosts are retired or protected like production.
How to verify: Call an older version prefix such as /v1/ and the staging host with a production token. Both should fail or apply the same controls as production.
OWASPAPI9:2023 - 4
The data each endpoint returns is classified as public, internal, personal, or payment data.
How to verify: List the endpoints that return personal or payment data and confirm each one has an owner, stricter authorization, and response filtering.
OWASPAPI3:2023 - 5
Trust boundaries between clients, the gateway, services, and third parties are written down.
How to verify: For each boundary, name the side that authenticates the caller and the side that authorizes the action. A boundary with no answer is a gap.
Authentication
Authentication is the first control that separates anonymous traffic from trusted callers. If identity is weak, every downstream authorization and audit decision is unreliable.
- 6
Every non-public route requires authentication.
How to verify: Call each route in the inventory with no credentials. Any response other than 401 on a non-public route is a finding.
- 7
Tokens are validated for signature, issuer, audience, and expiry on every request.
How to verify: Send an expired token, a token issued for another audience, and a token with alg set to none. Each one should be rejected.
- 8
Access tokens are short-lived, and refresh tokens can be rotated and revoked.
How to verify: Revoke a session, then try its refresh token again. The API should refuse to issue a new access token.
OWASPAPI2:2023 - 9
Login, token, and password reset endpoints have per-account and per-IP limits.
How to verify: Send repeated failed logins for one account from several IPs, then from one IP across several accounts. Both patterns should be throttled.
OWASPAPI2:2023API4:2023 - 10
API keys are scoped and rotatable, and never sent in URLs or shipped in client-side code.
How to verify: Search the frontend bundle and mobile app for key prefixes, and search access logs for keys in query strings.
OWASPAPI2:2023
- Treating possession of a token as proof of full trust.
- Allowing long-lived bearer tokens with no revocation story.
- Skipping signature or audience checks in internal environments.
Input, Output, and Errors
Strict request and response schemas reduce mass assignment, parser confusion, and hidden attack surface. They also keep your API definition aligned with reality.
- 17
Request schemas are enforced, and unknown fields are rejected on sensitive endpoints.
How to verify: Send wrong types, oversized strings, and an extra field to a sensitive endpoint. Expect a 400 response, not a 500 and not a success.
OWASPAPI3:2023 - 18
Database, NoSQL, and shell calls use parameterized queries or safe APIs.
How to verify: Search the code for queries and shell commands that are built by concatenating request values.
- 19
Error responses do not expose stack traces, SQL errors, or internal hostnames.
How to verify: Trigger errors with malformed JSON, a missing record, and a wrong type. Read the full response body and headers each time.
- 20
File uploads are limited by type and size before they are processed.
How to verify: Upload a file above the size limit and a file whose content does not match its declared type. Both should be rejected before processing.
OWASPAPI4:2023
- Accepting extra JSON properties by default.
- Trusting upstream services to validate inputs for you.
- Treating schema validation as documentation only.
Rate Limits and Resource Use
Rate limits protect both availability and business workflows. They reduce brute force attempts, abusive automation, and noisy retries before they become incidents.
- 21
Limits apply per user, token, and IP, with tighter limits on expensive endpoints.
How to verify: Script a burst against a search or export endpoint with one token. The API should start returning 429 responses.
- 22
List endpoints enforce a maximum page size.
How to verify: Request a list with limit=100000. The response should be capped or rejected.
OWASPAPI4:2023 - 23
Payload size, timeouts, and GraphQL query depth and complexity are capped.
How to verify: Send an oversized JSON body and, if you run GraphQL, a deeply nested query. Both should be rejected quickly.
OWASPAPI4:2023 - 24
Business flows that can be abused, such as signup, checkout, or reservations, have flow-specific limits.
How to verify: Run the flow end to end in a loop, first with one account and then with many. Decide whether the business would accept the result.
- Using one global limit for every route.
- Ignoring expensive read operations and batch endpoints.
- Forgetting background jobs and partner integrations when designing policies.
Outbound Calls and Third Parties
Endpoints that fetch remote URLs can be turned into a bridge to internal services, metadata endpoints, and cloud management interfaces. Data from third-party APIs deserves the same suspicion as user input.
- 25
Features that fetch URLs use an allowlist of destinations.
How to verify: Submit internal addresses such as 127.0.0.1, 169.254.169.254, and a private 10.x address. All of them should be refused.
- 26
The destination is checked again after DNS resolution and after every redirect.
How to verify: Point a URL at a host that redirects to an internal address. The second hop should be blocked.
OWASPAPI7:2023 - 27
Fetch workers run without broad access to internal networks.
How to verify: From the worker's network, try to reach internal admin services and the cloud metadata endpoint.
OWASPAPI7:2023 - 28
Data from third-party APIs is validated like user input, sent over TLS, and fetched with timeouts.
How to verify: For each integration, check whether the response schema is validated, whether TLS is required, and what happens when the provider is slow or returns unexpected data.
- Validating only the string form of a URL.
- Following redirects without re-checking the destination.
- Running fetch-capable services with broad internal network access.
Transport and Configuration
Most misconfigurations are not code bugs. They are defaults that nobody changed before release.
- 29
TLS 1.2 or later is enforced on every endpoint, with HSTS on public hosts.
How to verify: Request the API over plain HTTP, and list the TLS versions the host accepts.
OWASPAPI8:2023 - 30
CORS allows only known origins, and the request Origin is never reflected back with credentials.
How to verify: Send a request with Origin: https://evil.example and check whether it comes back in Access-Control-Allow-Origin together with Access-Control-Allow-Credentials: true.
- 31
Debug endpoints, admin consoles, default credentials, and verbose headers are turned off in production.
How to verify: Probe common paths such as /debug and /actuator on production, and review response headers for framework and version details.
OWASPAPI8:2023 - 32
Secrets live in a secret manager, not in the repository or images, and can be rotated.
How to verify: Scan the repository history and container images for keys, and confirm that each secret has a documented rotation path.
OWASPNot a separate 2023 category
Testing Before Release
A checklist only helps if it runs every time the API changes. Turn the checks you repeat into tests.
- 33
Authorization tests run with at least two users and two roles on every data endpoint.
How to verify: For each endpoint, the test suite should include a cross-user request and a lower-role request, both expected to fail.
- 34
Security tests run in CI whenever API code or the API spec changes.
How to verify: Open a pull request that changes an endpoint, and confirm that the security job runs and can block the merge.
- 35
New and changed endpoints are reviewed against the previous release.
How to verify: Diff the route list or the OpenAPI spec between releases, and review every added route and changed method.
OWASPAPI9:2023 - 36
Every finding has an owner and a fix date, and fixes are tested again.
How to verify: Pick a closed finding and re-run the request that exposed it.
Logging, Monitoring, and Response
Detection closes the gap between prevention and response. Good API telemetry shows who did what, to which object, from where, and whether the pattern is normal. Logging is not a separate category in the 2023 edition; it was API10 in the 2019 edition.
- 37
Logs record the actor, route, method, tenant, object ID, and authorization decision.
How to verify: Pick a recent request and reconstruct, from the logs alone, who accessed which object and whether it was allowed.
OWASPNot a separate 2023 category - 38
Alerts fire on repeated 401 and 403 responses, ID enumeration, and unusual volume.
How to verify: Replay an enumeration pattern in staging and confirm that an alert reaches a person.
- 39
Tokens, secrets, and personal data are masked before logs are stored.
How to verify: Search a day of logs for Authorization headers, key prefixes, and email addresses.
OWASPNot a separate 2023 category - 40
A runbook explains how to revoke tokens and keys and how to disable an endpoint quickly.
How to verify: Run the runbook as a drill and time it.
OWASPNot a separate 2023 category
- Logging too little to investigate incidents.
- Logging full secrets or personal data.
- Looking only at infrastructure metrics and ignoring API behavior patterns.
Minimum Baseline Before Production
Release only when you can confirm:
- Every protected route has strong authentication.
- High-risk workflows have explicit rate limits.
- Object ownership and tenant checks are enforced server-side.
- Outbound fetches cannot reach internal or cloud metadata services.
- Strict request validation is active for sensitive endpoints.
- Audit logs are useful for investigation without leaking secrets.
Treat these as unresolved risk signals:
- Auth logic differs across services or environments.
- Business-critical routes rely on frontend checks.
- Specs and runtime behavior no longer match.
- Monitoring exists, but no one can explain what abnormal looks like.
- Security reviews happen once instead of continuously.
How This Checklist Relates to the OWASP API Top 10
The OWASP API Security Top 10 (2023) ranks the most important categories of API risk. The OWASP API Security Top 10 guide explains each category with attack examples and a checklist per category.
This page is ordered differently: by the stage of work where each control is built or checked, from design to production. Some checks reduce more than one category, and a few, such as injection, secrets handling, and logging, are not separate categories in the 2023 edition.
Automate the Checks You Repeat
ApyGuard tests your API for BOLA, BFLA, and BOPLA, starting from an imported OpenAPI or Swagger spec. If you do not have a spec, APIScout lists the routes in your source code in VS Code and exports one. Scans can run in GitHub Actions, GitLab CI, and Bitbucket Pipelines, so the authorization checks in this list run on every change. See how automated API security testing works.
Frequently Asked Questions
What should an API security checklist include?
At minimum: an inventory of your APIs, authentication, object- and function-level authorization, input validation, rate limits, protection for outbound calls, secure configuration, testing before release, and logging. This checklist covers those areas in 40 checks.
How often should you run an API security checklist?
Before every release that adds or changes endpoints, and on a schedule for APIs that rarely change. The checks that can be scripted, such as cross-user requests, belong in CI so they run on every change.
Is this the same as the OWASP API Security Top 10?
No. The OWASP API Security Top 10 is a list of risk categories. This checklist is a list of controls to verify, ordered by when you build them. Each check shows which category it reduces.
Can an API security checklist be automated?
Partly. Authentication, authorization, rate-limit, and schema checks can be scripted or run by a scanner in CI. Inventory ownership, data classification, and runbooks still need a person.