api-audit
Installation
SKILL.md
API Audit — REST / GraphQL / RPC Security Review
Perform a systematic security audit of API endpoints against the OWASP API Security Top 10 (2023). Distinct from owasp-audit — that's category-driven over a whole codebase, this is surface-driven over the API contract.
Use owasp-audit for the codebase as a whole. Use this when you need a focused pass over every endpoint with API-specific bypass patterns. They cross-reference each other where categories overlap.
Scope the Audit
- Inventory every API surface — REST routes, GraphQL resolvers, tRPC procedures, gRPC services, Server Actions, webhook handlers, internal RPC
- Identify auth model — JWT, session cookies, API keys, mTLS, OAuth scopes
- Identify the tenancy model — single-tenant, multi-tenant, row-level isolation
- Map sensitive resources — user data, payments, files, admin functions
Audit Checklist
API1: Broken Object Level Authorization (BOLA)
The #1 API vulnerability by exploitation frequency. Every endpoint that accepts an object ID needs an explicit ownership check before reading or mutating.