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…
от briiirussell★ 541 звезда на GitHubОб этом скилле
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 machineryweb-pentest"Combined white-box + black-box mode" — pair this source-side audit with live testing of a running instancebusiness-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 misconfigurationfinding-triage— consumes thefindings.jsonthis 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.
- Scope — auth model, tenancy, sensitive resources, run profile (full vs. diff).
- Recon / inventory — enumerate every entry surface and write the coverage ledger (
coverage.json). See references/recon-and-coverage.md. - Checks — walk the API1–API10 checklist per surface, recording each check in its coverage unit.
- Verify every finding — a per-candidate refutation pass that assigns one verdict:
confirmed|needs_validation|rejected. See references/verification.md. No finding reaches the report unverified. - Coverage critic — before writing anything, look for surfaces nobody mapped, parallel paths nobody checked, and unjustified exclusions.
- 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.
- Report — render from the validated JSON and coverage ledger.
Scope the Audit
- 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
- 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_scopeand 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 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/Subscriptionfield, each type resolver, plusnode/_entities/_service(see 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 likefindFirst({ where: { id, userId } })runs before any data access — notfindById(id)then a separate check - ORM relation traversal:
posts.find(id).user.creditCardreturns another tenant's card if the relation isn't guarded. Audit every `.incl
Установить api-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobВложенные файлы
FAQ
Что делает скилл 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 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.
Как установить скилл api-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-audit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic