Skip to content
Back to skills

Security Review

ASecurity

Produce a PR-style security review of a diff (HEAD vs. base) inside target/, emitting findings in the Anthropic claude-code-security-review JSON schema. Use when the analyst only cares about what changed, not the whole repo.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 18, 2026
securitygobashsqlawsgitsecurity

Works with

  • cli

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add rasata/coldvault.dev --skill security-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rasata-security-review/badge)](https://www.skillsdirectory.com/skills/rasata-security-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-review
description: Produce a PR-style security review of a diff (HEAD vs. base) inside target/, emitting findings in the Anthropic claude-code-security-review JSON schema. Use when the analyst only cares about what changed, not the whole repo.
license: MIT (ZONOVA RESEARCH — coldvault.dev)
source_inspiration: anthropics/claude-code-security-review
---

# security-review (PR-mode)

## When to invoke

- The user supplies a base ref: `/security-review <base-ref>`.
- Default base: `origin/main` (inside `target/`).

## Pipeline

```bash
BASE="${1:-origin/main}"

# 1. Diff
git -C target diff --unified=0 "$BASE"...HEAD > reports/pr-diff.patch
git -C target diff --name-only "$BASE"...HEAD > reports/pr-files.txt

# 2. Scope scanners to changed files
mapfile -t CHANGED < reports/pr-files.txt

semgrep --config p/security-audit --config p/owasp-top-ten --sarif \
    --output reports/pr-semgrep.sarif \
    $(printf 'target/%s\n' "${CHANGED[@]}") 2>/dev/null || true

# 3. Narrow secret / dep checks
gitleaks detect --source target --no-git --report-format sarif \
    --report-path reports/pr-gitleaks.sarif

# 4. Manual review loop — Claude reads each changed hunk and applies the
#    taxonomy below.
```

## Review taxonomy (Anthropic convention)

Focus **only on security implications introduced by the diff**. Do not flag
pre-existing issues unless they're on the changed path.

- **Input validation**: SQLi, command injection, XXE, SSTI, NoSQLi, path traversal
- **Authn / authz**: bypass, privilege escalation, session flaws, JWT, authz logic
- **Crypto / secrets**: hardcoded creds, weak algos, improper key storage, RNG
- **Code execution**: deserialization, pickle, YAML, `eval`, XSS (reflected/stored/DOM)
- **Data exposure**: PII handling, logging of sensitive data, debug leakage

## Exclusions (do NOT report)

- DoS / resource exhaustion
- Rate-limiting absence
- "Secrets at rest on disk"
- Style / lint / missing input validation without proven impact

## Confidence & severity

- HIGH — direct exploit → RCE / data breach / authn bypass
- MEDIUM — exploitable under realistic conditions
- LOW — defense-in-depth only

**Do not report below 0.7 confidence.**

## Output

`reports/pr-findings.json` — matches the schema in `CLAUDE.md §4`:

```json
{
  "findings": [
    {
      "file": "target/src/auth.ts",
      "line": 42,
      "severity": "HIGH",
      "category": "authn_bypass",
      "description": "New isAdmin() checks cookie 'role' directly without signature verification.",
      "exploit_scenario": "Client sets Cookie: role=admin to bypass authz.",
      "recommendation": "Verify JWT signature; read role from verified claims.",
      "confidence": 0.95
    }
  ],
  "analysis_summary": {
    "files_reviewed": 12,
    "high_severity": 1,
    "medium_severity": 0,
    "low_severity": 0,
    "review_completed": true
  }
}
```

End by writing the JSON to `reports/pr-findings.json` and a Markdown comment-
ready summary to `reports/pr-review.md`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.