AGENT
AgentUse when designing a new HTTP/GraphQL API or changing an existing one โ modeling resources, defining endpoint contracts, choosingโฆ
A finding is only useful if its severity is trustworthy and its report is actionable. This reference defines how to assign severity and how to structure the audit report.
Claude Code
$ npx -y skills add vanara-agents/skills --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
A finding is only useful if its severity is trustworthy and its report is actionable. This reference defines how to assign severity and how to structure the audit report.
| Severity | Definition | Examples | Action | |---|---|---|---| | **CRITICAL** | Directly exploitable for RCE, full auth bypass, or mass data exposure, often pre-auth | SQL injection on a public endpoint, `pickle.loads` on request body, hardcoded live cloud key, path traversal reading arbitrary files | **Block merge.** Fix immediately; rotate secrets if exposed. | | **HIGH** | Real vulnerability requiring a condition (authentication, a specific input, or chaining) | IDOR readable by any logged-in user, stored XSS, SSRF to internal hosts, weak password hashing | Fix before merge. | | **MEDIUM** | Genuine weakness with limited impact or a defense-in-depth gap | Missing rate limit on login, verbose error leaking stack traces, permissive but credential-less CORS, reflected XSS needing user interaction in a low-value flow | Should fix; document if deferred. | | **LOW** | Hardening or best-practice nit with no direct exploit | Missing `X-Content-Type-Options` header, cookie without `SameSite`, overly long session TTL | Optional. |
1. **No exploit, no HIGH+.** If you cannot state the input, path, and impact, it is at most MEDIUM. 2. **Reachability matters.** A SQL injection behind an admin-only, MFA-gated route is HIGH, not CRITICAL โ note the mitigating control explicitly. 3. **Data sensitivity scales severity.** IDOR on public profile data is MEDIUM; IDOR on financial or PII records is HIGH/CRITICAL. 4. **Don't inflate to seem thorough.** A missing header is never CRITICAL. Miscalibration makes the whole report ignorable. 5. **Don't deflate to avoid blocking.** A real injection is CRITICAL even if "it's just an internal tool". Internal tools get breached too. 6. **Defense-in-depth gaps are real but lower.** A second control missing where a first still holds is typically MEDIUM/LOW โ say "the primary control holds; this is hardening".
Every finding cites its OWASP Top 10 (2021) category so readers can group and prioritize. See the mapping table in `vuln-classes.md`. If a finding spans two (e.g. SSRF enabling secret theft), list the primary and mention the chain.
The audit report MUST contain, in order:
1. **Title line** โ `## Security Audit โ <component / branch>`. 2. **Findings grouped by severity**, highest first. Each finding includes:
3. **Verdict** โ exactly one of **Go** / **Go-with-fixes** / **No-go (block)**, with the count of blocking findings. 4. **Remediation notes** โ any cross-cutting action (e.g. "rotate the leaked DB credential; the value remains in git history").
is a valid, valuable result โ do not invent findings to justify the effort.
๐ Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code โ free, Apache-2.0, install with one command.
Use when designing a new HTTP/GraphQL API or changing an existing one โ modeling resources, defining endpoint contracts, choosingโฆ
This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes theโฆ
The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. Thisโฆ
Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cuttingโฆ
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add withoutโฆ
Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hardโฆ