Security review

From codeaholicguy/ai-devkit · View interactive version

Security review is an AI agent skill from the GitHub repository codeaholicguy/ai-devkit. 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.

How to use this skill

Skill file

Security Review

Find vulnerabilities before they ship.

Hard Rules

Workflow

  1. Scope
  1. Scan

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.

  1. 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 |

  1. Remediate
  1. Verify

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.