agentleFS
Quality-MaxQuality-Max/free-qa-skills/skills/api-security-scan/SKILL.md

api-security-scan

Skill13 starsChanged 19 days agoApache-2.0View on GitHub

Review a REST/HTTP API — from its OpenAPI spec or route code — for security gaps like missing auth, broken object-level authorization, no rate limiting, and verbose errors. Reports file:line. Pure Claude Code, no signup.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

API Security Scan

Find the security holes in your API design before they ship. Read-only: it flags issues with file:line, it doesn't change your code.

Prerequisites

  • None. Pure Claude Code — reads your OpenAPI/Swagger spec or route/handler code directly, no MCP required.

Trigger

  • "Security review my API / OpenAPI spec"
  • "Check my endpoints for missing auth"
  • "API security scan"

Workflow

  1. Locate the API surface: an OpenAPI/Swagger file if present, otherwise the route definitions and handlers.
  2. Review each endpoint against the checks below; report path or file:line, severity, and the fix.

What to flag

RiskWhat to look for
Missing authenticationEndpoints with no auth requirement that expose data or actions
Broken object-level auth (IDOR/BOLA)Resources fetched by ID with no ownership/authorization check
Missing function-level authAdmin/privileged operations reachable by normal users
No rate limitingAuth, search, or expensive endpoints with no throttling (brute-force / DoS)
Verbose errorsStack traces, SQL, or internal details returned to clients
Sensitive data in URLsTokens, passwords, or PII in query strings (logged everywhere)
Mass assignmentRequest bodies bound to models without an allowlist of fields
CORS misconfigWildcard origin combined with credentials
Missing input validationBody/query/path params accepted without schema/type checks
No pagination limitsList endpoints that can return unbounded result sets
Secrets in examplesReal keys/tokens in spec examples or sample requests
  1. Output a severity-ranked report:
## API Security Scan

**2 high, 1 medium**

### HIGH
- GET /users/{id} — no ownership check; any authenticated user can read any
  record (BOLA). Enforce that the caller owns or may access {id}.
- POST /login — no rate limiting; vulnerable to credential brute-force. Add
  per-IP/per-account throttling and lockout.

### MEDIUM
- GET /search — returns full stack traces on error. Return a generic message;
  log details server-side.

Diagnostic only. Want API auth and BOLA scanning on every PR? See QualityMax — qualitymax.io

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.