Skip to content
Back to skills

Secure Review

ASecurity

Security review of the current change (diff, branch or PR) that reports only verified, exploitable findings. Use when the user asks to review a change for security, check a PR before merging, or "is this safe", and before opening a PR that touches auth, input handling, file or network access, crypto, dependencies, CI, or LLM/agent code.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythonrustgoshellsqlgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Pierry/harness --skill secure-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secure Review?

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

Security grade badge for Secure Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pierry-secure-review/badge)](https://www.skillsdirectory.com/skills/pierry-secure-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: secure-review
description: Security review of the current change (diff, branch or PR) that reports only verified, exploitable findings. Use when the user asks to review a change for security, check a PR before merging, or "is this safe", and before opening a PR that touches auth, input handling, file or network access, crypto, dependencies, CI, or LLM/agent code.
---

# Secure review of a change

Goal: few findings, each one real. A false positive costs the reader more than a missed
nit. Scope is the change and what it reaches, not the whole repository; for a full audit,
use the `security-audit` skill (Cloudflare) if it is installed.

## 1. Collect the change

- Uncommitted: `git diff HEAD`. Branch: `git diff $(git merge-base origin/HEAD HEAD)`.
  PR: `gh pr diff <n>`.
- If `.harness/graph.db` exists, run `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/graph.py" impact`
  (add `--diff <base>` for a branch) to see which callers inherit the change.
  Otherwise trace callers with grep.

## 2. Run the deterministic tools first

Run whichever are installed, scoped to the changed files, and read their output before
reading the code yourself:

- `gitleaks detect --no-banner --log-opts="<base>..HEAD"` (secrets in history)
- `semgrep scan --metrics off --config p/default <files>`
- `osv-scanner scan source -r .` when a manifest or lockfile changed
- `zizmor .github/workflows` when a workflow changed

Tool output is a lead, not a finding. Confirm or drop each one in step 4.

## 3. Read the change against these questions

For each changed entry point, follow untrusted input to where it is used.

- **Injection**: does input reach SQL, a shell, a template, a path, a regex, a deserializer,
  or an HTML sink without a parameterized API or an allow-list?
- **Access control**: is every new route, handler, job and RPC authorized, and does it check
  that the object belongs to the caller (IDOR), not only that the caller is logged in?
- **Secrets and data**: are secrets read from the environment and kept out of logs, errors,
  URLs and client bundles? Is personal data minimized?
- **Outbound requests**: can input pick a URL or host (SSRF)? Are redirects followed blindly?
- **Crypto**: library defaults, no home-made schemes, constant-time comparison for tokens.
- **Supply chain**: new dependency? Check its age, maintainers, install scripts and download
  count. Lockfile updated? Version pinned? Actions pinned to a SHA?
- **CI**: `pull_request_target` or `workflow_run` with checkout of PR code, `${{ }}` of
  untrusted input inside `run:`, broad `permissions`, secrets exposed to forks.
- **LLM and agent code**: can text the model reads (web pages, issues, files, tool results)
  make it call a tool with side effects? Are tool permissions the minimum? Is model output
  used as code, SQL, a shell command, or a URL without validation? Are secrets in the
  context window?

## 4. Verify each candidate before reporting

For every candidate, write down: the input the attacker controls, the path from that input to
the sink with file:line for each hop, and what stops it (validation, framework escaping, auth
middleware, type). Open the callee; a function named `sanitize` is not evidence. If you cannot
show attacker control and a reachable path, drop it or label it "needs confirmation" with the
missing piece. For a high-stakes finding, the `fp-check` skill (Trail of Bits) runs a stricter
version of this gate.

## 5. Report

Most severe first. For each finding:

```
[severity] title
where: path:line (and the entry point)
how: the attacker input and the path to the sink, in two or three sentences
fix: the smallest change that closes it
```

Severity: critical (remote, no auth, data or code execution), high, medium, low. Then one line
listing what was checked and found clean, so the reader knows the coverage. If nothing
survived, say so plainly.

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 ai-agents →

Comments

Loading comments…

Newsletter

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