# security-review

security-review scans code changes for security flaws using STRIDE threat modeling, validates exploitability, and outputs structured reports for downstream patching.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 168 installs · ★ 129 repo stars
- Author: Factory-AI
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Factory-AI/factory-plugins/tree/HEAD/plugins/security-engineer/skills/security-review/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/factory-ai-security-review

## What it does

The skill detects SQL injection, XSS, IDOR, command injection, hardcoded secrets, and other vulnerabilities in commits, pull requests, or entire repositories. Runs in four modes: PR review before merge, weekly scan of the last seven days, full repository audit, and manual trigger via `@droid security` in PR comments. For each finding, it assigns a STRIDE category (spoofing, tampering, information disclosure, denial of service, elevation of privilege), pinpoints the file and line range, describes an exploit scenario, and suggests a fix. It also checks dependencies for known CVEs and evaluates whether vulnerable code paths are reachable.

Requires a `.factory/threat-model.md` file with a STRIDE threat model — if missing, the skill generates one automatically on first run. If the model is older than 90 days, PR mode warns and proceeds with the existing model, while weekly and full modes regenerate it before scanning. Results are saved to `security-findings.json` and `validated-findings.json`, which the `security-patch-generation` skill then uses to create fixes automatically.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Factory-AI/factory-plugins --skill security-review -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Factory-AI/factory-plugins --skill security-review -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Factory-AI/factory-plugins --skill security-review -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Factory-AI/factory-plugins plugins/security-engineer/skills/security-review
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Factory-AI/factory-plugins --skill security-review -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Factory-AI/factory-plugins --path plugins/security-engineer/skills/security-review
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Factory-AI/factory-plugins --skill security-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/Factory-AI/factory-plugins/tree/HEAD/plugins/security-engineer/skills/security-review/SKILL.md

## When to use it
- check a pull request for SQL injection, XSS, and leaked secrets
- find vulnerabilities in commits from the past week
- run a full security audit of a repository
- assess exploitability of dependency CVEs in the project
- produce a structured report for automated patch generation

## Example prompts
- Check this PR for security vulnerabilities
- Scan all commits from the last seven days for SQL injection and XSS
- Run a full STRIDE security audit on the repository

## Similar
- [security-engineer](https://affpapa.org/en/nevibecode/agents/josstei-security-engineer.md) — subagent · ★ 489 repo stars
- [review-security](https://affpapa.org/en/nevibecode/agents/review-security.md) — subagent · ★ 587 repo stars
- [sparkfinderoven-security-compliance-suite](https://affpapa.org/en/nevibecode/skills/sparkfinderoven-security-compliance-suite.md) — skill · 725 installs
- [cve-mcp-server-security-intelligence](https://affpapa.org/en/nevibecode/skills/cve-mcp-server-security-intelligence.md) — skill · 229 installs
- [dependency-check](https://affpapa.org/en/nevibecode/skills/dependency-check.md) — skill · 749 installs
- [absolute-audit](https://affpapa.org/en/nevibecode/skills/absolute-audit.md) — skill · 592 installs

## Other versions with the same name
- [security-review · github](https://affpapa.org/en/nevibecode/skills/security-review.md) — 5500 installs
- [security-review · getsentry](https://affpapa.org/en/nevibecode/skills/getsentry-security-review.md) — 23800 installs
- [security-review · waybarrios](https://affpapa.org/en/nevibecode/skills/waybarrios-security-review.md) — 760 installs
- [security-review · kklimuk](https://affpapa.org/en/nevibecode/skills/kklimuk-security-review.md) — ★ 251 repo stars
- [security-review · relatedb](https://affpapa.org/en/nevibecode/skills/relatedb-security-review.md) — ★ 423 repo stars

From the same set: [factory-ai/factory-plugins](https://affpapa.org/en/nevibecode/by/factory-ai/factory-plugins.md) — 17 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
