# secure-code-review

secure-code-review — a skill that audits code for vulnerabilities using vulnerability-class checklists — traces inputs to SQL and commands, checks access control and trust boundaries.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1900 installs
- Author: securityskills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/securityskills/skills/tree/HEAD/secure-code-review/secure-code-review/SKILL.md
- Updated: 2026-08-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/secure-code-review

## What it does

The skill teaches the agent to find vulnerabilities structurally, not line-by-line. First, it identifies entry points, trust boundaries, data stores, and privileged operations. Then it traces untrusted data to SQL, command shells, HTML rendering, file paths, deserialization, and redirects — checking for parameterized queries, escaping, path validation.

For authorization, it verifies that each endpoint filters queries by the caller's user or tenant ID, rotates sessions, and sets secure cookie flags. For cryptography, it confirms the use of library primitives instead of hand-rolled implementations and random numbers from CSPRNG. The agent reports findings with severity, exploitation path, and a suggested fix.

Install via `npx skills add` in Claude Code, Codex, Cursor, OpenCode, and Gemini CLI; in GitHub Copilot via `gh skill install`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add securityskills/skills --skill secure-code-review -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/secure-code-review/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/secure-code-review/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add securityskills/skills --skill secure-code-review -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/secure-code-review/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add securityskills/skills --skill secure-code-review -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/secure-code-review/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install securityskills/skills secure-code-review/secure-code-review/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/secure-code-review/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add securityskills/skills --skill secure-code-review -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/securityskills/skills --path secure-code-review/secure-code-review
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/secure-code-review/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add securityskills/skills --skill secure-code-review -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/securityskills/skills/tree/HEAD/secure-code-review/secure-code-review/SKILL.md

## When to use it
- audit a PR or codebase for SQL injection and command injection
- find IDOR and object-level authorization issues
- detect hardcoded API keys, tokens, and passwords
- check file path handling for path traversal
- identify race conditions and TOCTOU in concurrent code

## Example prompts
- Review this pull request for vulnerabilities — trace inputs to SQL and shell commands, check authorization
- Find access control issues in `api/users.py` — especially IDOR and tenant ID filtering
- Audit cryptography in `auth/` — check algorithms, modes, and randomness sources

## Similar
- [vuln-scan](https://affpapa.org/en/nevibecode/skills/vuln-scan.md) — skill · 1200 installs
- [security-review](https://affpapa.org/en/nevibecode/skills/getsentry-security-review.md) — skill · 23800 installs
- [cc-skill-security-review](https://affpapa.org/en/nevibecode/skills/sickn33-cc-skill-security-review.md) — skill · 2200 installs
- [Security Code Review](https://affpapa.org/en/nevibecode/skills/security-code-review.md) — skill · 4 installs
- [secure](https://affpapa.org/en/nevibecode/skills/secure.md) — skill · 234 installs
- [review-security](https://affpapa.org/en/nevibecode/agents/review-security.md) — subagent · ★ 587 repo stars

## Other versions with the same name
- [secure-code-review · zebbern](https://affpapa.org/en/nevibecode/skills/zebbern-secure-code-review.md) — ★ 4719 repo stars

From the same set: [securityskills/skills](https://affpapa.org/en/nevibecode/by/securityskills/skills.md) — 21 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
