Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 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.
  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. 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 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)
  • 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 `.incl
Полный SKILL.md на GitHub

Установить api-audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

Вложенные файлы

references/coverage.schema.jsonreferences/diff-review.mdreferences/findings-format.mdreferences/findings.schema.jsonreferences/graphql.mdreferences/orchestration.mdreferences/recon-and-coverage.mdreferences/severity-calibration.mdreferences/to-sarif.mjsreferences/validate-coverage.mjsreferences/validate-findings.mjsreferences/verification.md

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить api-audit с