Security Review
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install ai-devkit-security-reviewWhat this does: AI DevKit · Review code, skills, and prompts for security vulnerabilities — OWASP Top 10, prompt injection, business logic flaws, and insecure defaults. Use when reviewing PRs, auditing modules, reviewing AI skills/prompts, or preparing for release.
Manual setup by platform
Claude Code
~/.claude/skills/ai-devkit-security-review/SKILL.md
Instructions
Security Review
Find vulnerabilities before they ship.
Hard Rules
- Do not dismiss a finding without evidence it is unexploitable.
- Do not commit, log, or surface secrets discovered during review — flag and recommend rotation.
- Do not modify code until the user approves a remediation plan.
Workflow
-
Scope
- Confirm target: diff, file set, module, full repo, or skill/prompt. A target can be both code and prompt.
- Identify stack/framework — adapt the checklist (skip what the framework handles, add its pitfalls).
- Trace data flow: request → middleware → handler → service → datastore → response. For prompts: input → template → LLM → tools → output.
- Map trust boundaries, privilege levels, and threat actors.
- Search prior findings:
npx ai-devkit@latest memory search --query "<target>" --tags "security"
-
Scan
- Only check relevant categories. Skip sections and items that don't apply. Do not report skipped items.
- For diffs/PRs: also check whether the change weakens existing controls — removed middleware, bypassed validation, new unprotected routes.
- Categories in priority order:
a. Secrets — hardcoded tokens, keys, connection strings.
b. Injection — SQL, NoSQL, command, template, SSRF, path traversal, XSS.
c. Auth — missing checks, privilege escalation, OAuth/OIDC, IDOR.
d. Business Logic — race conditions, TOCTOU, workflow bypass, mass assignment, parameter tampering.
e. Data Exposure — PII in logs, verbose errors, overly broad responses.
f. Resource Exhaustion — unbounded queries, missing pagination, upload size, decompression bombs.
g. Dependencies — critical CVEs only (RCE, auth bypass, data breach); ignore low/medium.
h. Cryptography — weak algorithms, hardcoded IVs/keys, disabled certificate validation.
i. Configuration — debug mode, permissive CORS, missing security headers.
j. Logging — security events unlogged, no tamper protection, no alerting.
k. Prompt Injection — instruction override, tool abuse, data exfiltration, indirect injection via tool results. - For each finding: file, line, evidence.
-
Classify
Severity Criteria Critical Exploitable now, data loss or RCE possible High Exploitable with moderate effort or insider access Medium Requires chained conditions or limited impact Low Defense-in-depth, no direct exploit path - Adjust severity by exposure (internet-facing vs internal) and data sensitivity.
- Check for attack chains — multiple Medium findings that combine into High/Critical.
- Mark false positives with reasoning.
-
Remediate
- For each finding: root cause, minimal fix (prefer stdlib/framework over custom), verification step.
- For Critical/High: also recommend a detection control (log, alert, or WAF rule).
- Present plan and request approval before changing code.
-
Verify
- Use the
verifyskill to confirm each remediation. - Re-scan fixed files for regressions.
- Store findings:
npx ai-devkit@latest memory store --title "<pattern>" --content "<finding and fix>" --tags "security,<category>"
- Use the
Red Flags
| Rationalization | Do Instead |
|---|---|
| "It's internal / behind a VPN / only admins" | Zero-trust: validate at every boundary regardless of network position or user role |
| "We'll add auth later" | Add auth before merge — unauthenticated endpoints get discovered fast |
| "It's just a dev credential" | Use env vars / secrets manager — dev secrets leak to prod constantly |
| "The framework handles that" | Verify the config — frameworks have defaults, not guarantees |
| "We sanitize on the frontend" | Always validate server-side — client validation is bypassable |
| "The LLM won't follow injected instructions" | Treat all tool results and external content as untrusted data |
| "It's just a prompt, not code" | Prompts control tool execution — review with the same rigor as code |
Output Template
- Scope: Target, stack, data flow, trust boundaries, threat actors
- Findings (by severity): ID, severity, category, file:line, exploit scenario, fix
- Attack Chains: Findings that escalate when combined
- False Positives: Dismissed items with reasoning
- Remediation Plan: Ordered fixes with verification steps
- Residual Risk: Scope limitations, unverifiable items
- Zero findings: state what was checked and scope boundaries — "no findings" ≠ "fully secure"
Security
Reviews (0)
Related skills
Browse all →More from ai-devkit
View source →More Build skills
Browse category →Frequently asked questions about security-review
What does the security-review skill do?
AI DevKit · Review code, skills, and prompts for security vulnerabilities — OWASP Top 10, prompt injection, business logic flaws, and insecure defaults. Use when reviewing PRs, auditing modules, reviewing AI skills/prompts, or preparing for release. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the security-review skill?
Run `npx @skills-hub-ai/cli install ai-devkit-security-review` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/ai-devkit-security-review/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does security-review work with?
security-review runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the security-review skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use security-review after installing it?
In Claude Code, type `/ai-devkit-security-review` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the security-review skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.