Skip to content
Security
Skill

/api-audit

Audit REST, GraphQL, and RPC APIs against the OWASP API Security Top 10 (2023). Use when the user mentions 'API security,' 'API audit,' 'BOLA,' 'broken object level authorization,' 'BFLA,' 'function-level authorization,' 'mass assignment,' 'API rate limiting,' 'GraphQL

From plugin
cybersecurity-skills
53442 skills1 agent

Claude Code

$ npx -y skills add briiirussell/cybersecurity-skills --skill api-audit --agent claude-code

SKILL.md

api-audit.SKILL.md
name: api-audit
description: "Audit REST, GraphQL, and RPC APIs against the OWASP API Security Top 10 (2023). Use when the user mentions 'API security,' 'API audit,' 'BOLA,' 'broken object level authorization,' 'BFLA,' 'function-level authorization,' 'mass assignment,' 'API rate limiting,' 'GraphQL security,' 'REST security,' 'API authentication,' 'API authorization,' 'excessive data exposure,' 'redact the API transcript,' 'structured identities for a BOLA test,' or needs to review API endpoints for security weaknesses."
allowed-tools: Read, Grep, Glob

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.

Cross-references:

  • `owasp-audit` — the codebase-wide, category-driven audit; shares this release's verification, coverage, severity and findings machinery
  • `web-pentest` "Combined white-box + black-box mode" — pair this source-side audit with live testing of a running instance
  • `business-logic-testing` — invariant and race-condition testing of API flows (double-spend, TOCTOU on `/transfer`, coupon/quota races, out-of-order state machines). Hand off multi-step or concurrency-dependent flows there; this skill covers per-endpoint authz and misconfiguration
  • `finding-triage` — consumes the `findings.json` this skill emits

Authorization

Audit only APIs the user owns or has given you written permission to test; source review needs nothing more. For any live request, confirm the target is a test or staging instance, or that you have explicit authorization for production, and keep requests non-destructive: no writes to real tenants' data, no load. See Boundaries.

Workflow

Run in order. Do not skip to the checklist.

1. **Scope** — auth model, tenancy, sensitive resources, run profile (full vs. diff). 2. **Recon / inventory** — enumerate every entry surface and write the coverage ledger (`coverage.json`). See [references/recon-and-coverage.md](references/recon-and-coverage.md). 3. **Checks** — walk the API1–API10 checklist per surface, recording each check in its coverage unit. 4. **Verify every finding** — a per-candidate refutation pass that assigns one verdict: `confirmed` | `needs_validation` | `rejected`. See [references/verification.md](references/verification.md). No finding reaches the report unverified. 5. **Coverage critic** — before writing anything, look for surfaces nobody mapped, parallel paths nobody checked, and unjustified exclusions. 6. **findings.json** — write and validate the machine-readable findings file. The prose report is rendered from it; prose never changes a verdict, severity, or demonstrated impact. 7. **Report** — render from the validated JSON and coverage ledger.

Scope the Audit

1. Identify auth model — JWT, session cookies, API keys, mTLS, OAuth scopes 2. Identify the tenancy model — single-tenant, multi-tenant, row-level isolation 3. Map sensitive resources — user data, payments, files, admin functions 4. Pick a run profile — **full** (every surface) or **diff / PR-scoped** (see Diff / PR-scoped mode). A scoped run records everything else as `out_of_scope` and labels itself partial.

Recon and Inventory (before the checklist)

Produce a written recon artifact and a coverage ledger before running any check — a bare "A01 clean" line must never stand in for routes nobody read. Follow [references/recon-and-coverage.md](references/recon-and-coverage.md) for the shared recon/`architecture.md` and `coverage.json` format (one unit per **surface × trust boundary × attack class**, with control locations recorded as `file:line`; `covered` requires non-empty `reviewed_paths` + ≥1 check).

**What counts as an API entry surface** (enumerate each, with its `file:line`):

  • REST routes — `app.get/post/...`, `router.*`, `pages/api/**`, `app/api/**/route.ts`
  • GraphQL operations and resolvers — each `Query`/`Mutation`/`Subscription` field, each type resolver, plus `node`/`_entities`/`_service` (see [references/graphql.md](references/graphql.md))
  • RPC methods — tRPC procedures, gRPC service methods, JSON-RPC methods, Server Actions
  • Webhook handlers — inbound signed callbacks (Stripe, GitHub, Twilio, …)
  • WebSocket / SSE channels — subscription topics and message handlers
  • Background/async entrypoints reachable from user input — queue consumers, scheduled jobs that read user-written rows

For each surface, record the trust boundary it crosses (unauth → auth, tenant A → tenant B, user → admin, internet → internal) and where the control for that boundary lives. A surface with no reviewed path and no check is `planned`, never `covered`.

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.

  • For each route that takes an ID parameter (`/users/:id`, `/orders/:id`, `/projects/:id`), verify a query like `findFirst({ where: { id, userId } })` runs before any data access — not `findById(id)` then a separate check
  • ORM relation traversal: `posts.find(id).user.creditCard` returns another tenant's card if the relation isn't guarded. Audit every `.include`, `.with`, `includes`, eager-loaded relation
  • UUIDs are not access control. Sequential IDs make enumeration trivial; UUIDs only slow it down
  • Predictable surrogate keys (slugs, public_ids) used as if they were unguessable
  • Grep for: `params.id`, `req.params.<id>`, `formData.get("<id>")`, ORM `.findById(` / `.find(` without a `where` clause, GraphQL resolvers that take an `id` arg and call `.findUnique`

API2: Broken A

Read more
@briiirussell
Ships withcybersecurity-skills

A collection of cybersecurity skills for AI coding agents. The AI does the heavy lifting; you bring the context about your stack and your priorities.

53442 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
534
Star history of briiirussell/cybersecurity-skills on GitHub, a chart by star-history.com

Other skills on cybersecurity-skills.

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about api-audit.

Which coding agents can use api-audit?
api-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.