OWASP API security checklist
Enforce OWASP API Top 10 checks with --preset owasp-api-top10 and tenant scoping.
Automated OWASP OpenAPI checks
Enforced on server URLs, security schemes, query parameters, and schema bounds.
| Rule | OWASP risk | What the OpenAPI validator checks | Remediation |
|---|---|---|---|
ADP-014 | API8:2023 Misconfiguration | Rejects non-local http:// servers | Use https:// with TLS 1.2+ |
ADP-015 | API2:2023 Broken Auth | Flags missing components.securitySchemes or unprotected routes | Declare Bearer JWT / OAuth 2.1 security |
ADP-016 | API2:2023 Broken Auth | Flags api_key, token, or secret in query params | Pass credentials via Authorization header |
ADP-021 | API4:2023 Resource Consumption | Flags unbounded strings and arrays | Set maxLength, maxItems, and maximum |
ADP-010 | API4:2023 Resource Consumption | Flags unpaginated collection GET routes | Require bounded cursor + limit |
Prevent BOLA / IDOR (ADP-023) and ID enumeration (ADP-024)
Scope every single-record database query by the authenticated tenant (WHERE id = $1 AND tenant_id = $2) and use prefixed ULID or UUIDv7 identifiers such as ord_01J9Z4K8M2 instead of sequential integers.