一键导入
audit-api
API endpoint security surface scan — auth gates, data exposure, rate limiting, input validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
API endpoint security surface scan — auth gates, data exposure, rate limiting, input validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scan for PII exposure in API responses, committed files, grimoires, and data flow paths.
Scan for secret leakage in env files, client code, git history, and build artifacts.
Audit authentication flow completeness — login, refresh, logout, session, RBAC, middleware.
Map impact surface of a change or regression by tracing data flow through every consumer.
Generate defensive measure specifications from a PMR — test specs, types, error boundaries, checklists.
Create a structured Postmortem Record from an incident, mining git history and issues for timeline and blast radius.
| name | audit-api |
| description | API endpoint security surface scan — auth gates, data exposure, rate limiting, input validation. |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Bash, Agent |
| triggers | ["audit api","security scan api","check api endpoints"] |
| capabilities | {"model_tier":"opus","danger_level":"safe","effort_hint":"medium"} |
Scan every API route for auth gaps, data exposure, rate limiting, and input validation.
Find all route files. For each framework:
**/routes/*.ts, search for .get(, .post(, .put(, .patch(, .delete(router.**/app/api/**/route.tsBuild a route table: [method, path, auth_middleware, rate_limit, input_validation]
For each route, check:
requireAuth() or equivalentoptionalAuth() that behave differently when authed — does the unauthed path expose anything it shouldn't?Severity: CRITICAL if write endpoint has no auth, HIGH if role check is wrong
For each endpoint response, check:
Severity: MEDIUM for user IDs, HIGH for emails/wallets, CRITICAL for tokens/keys
For each write endpoint:
For each endpoint accepting user input:
success_url, callback_url, redirect without origin validation — open redirect vectors## API Security Surface Audit
### Route Table
| Method | Path | Auth | Rate Limit | Validation | Findings |
|--------|------|------|-----------|-----------|----------|
### Findings
| ID | Severity | File:Line | Issue | Fix |
|----|----------|-----------|-------|-----|
### Summary
- N routes scanned
- N auth gaps
- N data exposure issues
- N rate limit gaps
- N validation gaps