sec-review

sec-review is a skill for Claude Code from akashsebastian333/peephole. It costs 52 tokens per session (620 once invoked), scanned A, original, MIT.

A security review checklist for recent code changes. It covers common weaknesses such as injection, unsafe data handling, cross-site scripting, exposed secrets, and missing access checks.

In plain words
What is it for?
Use it before committing changes to check the current diff for security problems, including authorization failures, insecure object access, unsafe queries, command execution, path traversal, and weak cryptography.
Why use it?
Automated pattern checks can find some unsafe code but cannot prove that important protections are present. This review asks a person or agent to inspect the missing guards as well.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the peephole plugin — 4 skills, 8 hooks shipped together

Good fit Use it before committing changes to check the current diff for security problems, including authorization failures, insecure object access, unsafe queries, command execution, path traversal, and weak cryptography.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/akashsebastian333/peephole/sec-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add akashsebastian333/peephole --skill sec-review
Clone the repo
git clone --depth 1 https://github.com/akashsebastian333/peephole

Made for: Claude Code.

Or install peephole, the plugin that ships this one along with the rest of its 4 skills, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sec-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/akashsebastian333/peephole/sec-review/github.svg)](https://agentmods.dev/skills/akashsebastian333/peephole/sec-review)
Your own site
<a href="https://agentmods.dev/skills/akashsebastian333/peephole/sec-review"><img src="https://agentmods.dev/badge/skills/akashsebastian333/peephole/sec-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sec-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashsebastian333/peephole/sec-review"><img src="https://agentmods.dev/badge/skills/akashsebastian333/peephole/sec-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 620 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00620
Opus 5 $0.00026 $0.00310
Sonnet 5 $0.00010 $0.00124
Haiku 4.5 $0.00005 $0.00062

Measured 12d ago against content hash f049e636641a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sec-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sec-review/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Peephole security review

Peephole's write-time gate catches present insecure patterns. This review adds the part a regex cannot prove: missing guards. Review the current diff against this checklist and report concrete findings with file:line.

Present (Peephole enforces these at write time — verify none slipped through in audit mode):

  • CWE-89 SQL injection — string-built queries instead of parameters
  • CWE-94 code injection — eval/exec/new Function on dynamic input
  • CWE-502 unsafe deserialization — pickle/yaml.load/node-serialize on untrusted data
  • CWE-79 XSS — unescaped output, dangerouslySetInnerHTML, | safe
  • CWE-78 command injection — shell=True / exec with interpolation
  • CWE-22 path traversal — join(base, user_input) without containment check
  • CWE-798 hardcoded secrets
  • CWE-327 weak crypto — fast/unsalted password hashes, ECB, non-CSPRNG for secrets
  • CWE-1188 disabled controls — verify=False, DEBUG=True, csrf_exempt, wildcard CORS+credentials

Absence — cannot be regex-proven; check by reading (this is where real bugs hide):

  • CWE-862/863 missing/incorrect authorization on state-changing or cross-user routes
  • CWE-639 IDOR — object lookups keyed on a client-supplied id without ownership scoping
  • CWE-352 CSRF on state-changing endpoints
  • CWE-306 missing authentication on a sensitive endpoint
  • CWE-770 missing rate limiting on expensive or auth endpoints

For each finding: state the CWE, the file:line, the exploit in one sentence, and the fix.

Challenge every finding before reporting it (3 lenses)

A finding survives only if you fail to disprove it. Before reporting each one, try to refute it from all three angles — report only the ones that survive:

  • REACHABILITY — can an attacker actually reach the sink? Is the source genuinely attacker-controlled? Is the path reachable in a default deployment, or is there a guard on every route (not just the one you first looked at)?
  • IMPACT — if they reach it, does it matter? Is the claimed consequence the real one? Is the data actually sensitive, the write actually dangerous?
  • DEFENSES — is something already stopping it — a framework default, middleware, a type, an escape, a prepared statement, a check one frame up?

Read the full file on GitHub · 48 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 48 lines · 52 tokens per session scan A f049e636641a

Subscribe to this mod's changes

sec-review is a skill published in the GitHub repository akashsebastian333/peephole (5 stars, last pushed 13d ago), licensed MIT. It adds 52 tokens to every session and 620 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.