security

security is a command for Claude Code from smrafiz/claude-supercharger. It costs 0 tokens per session (1,824 once invoked), scanned B, original, MIT.

A structured command for reviewing code changes against the OWASP Top 10, a widely used list of common web-security risks. It can review uncommitted work, staged changes, branches, pull requests, commits, or selected files.

In plain words
What is it for?
Use it to inspect changes for security problems and report findings tied to the relevant code and review scope.
Why use it?
It turns a broad security check into a defined review scope with specific evidence such as file paths and line numbers.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the supercharger plugin — 35 commands, 10 agents, 28 hooks shipped together

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.

agentmods
npx agentmods add commands/smrafiz/claude-supercharger/security
Clone the repo
git clone --depth 1 https://github.com/smrafiz/claude-supercharger

Made for: Claude Code.

Or install supercharger, the plugin that ships this one along with the rest of its 35 commands, 10 agents, 28 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 security

README.md
[![agentmods](https://agentmods.dev/badge/commands/smrafiz/claude-supercharger/security.svg)](https://agentmods.dev/commands/smrafiz/claude-supercharger/security)
Your own site
<a href="https://agentmods.dev/commands/smrafiz/claude-supercharger/security"><img src="https://agentmods.dev/badge/commands/smrafiz/claude-supercharger/security.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,824 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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.00000 $0.01824
Opus 5 $0.00000 $0.00912
Sonnet 5 $0.00000 $0.00365
Haiku 4.5 $0.00000 $0.00182

Measured yesterday against content hash 0218398ef042, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

security scanned grade B with 2 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 yesterday.

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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

7. **Supply chain** — run `npm audit` / `pip-audit` / `cargo audit` if applicable and flag known CVEs, but also check beyond known-CVE matching: unpinned/floating dependency versions, missing lockfile commit, unsigned or

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

7. **Supply chain** — run `npm audit` / `pip-audit` / `cargo audit` if applicable and flag known CVEs, but also check beyond known-CVE matching: unpinned/floating dependency versions, missing lockfile commit, unsigned or
commands/security.md · 125 lines

How it starts

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

Run a structured security review of: $ARGUMENTS

Anchor to OWASP Top 10. Be specific — file paths, line numbers, evidence. No generic advice.

Step 0 — Resolve scope from $ARGUMENTS (diff-scoped review, mirrors /security-review). Pick the first that matches:

$ARGUMENTS Scope How to get the diff
(empty) uncommitted changes (default) git diff HEAD plus staged (git diff --cached); if the tree is clean, fall back to the last commit git show HEAD
staged staged changes only git diff --cached
branch / main.. / a base ref branch diff vs the base git merge-base then git diff <base>...HEAD
pr <N> / #<N> pull-request diff gh pr diff <N> (read-only; if gh is absent, say so and stop)
commit <sha> / a 7–40 hex sha single commit git show <sha>
file/dir paths those files (whole-file review) read the files directly

For a diff scope, review only the changed/added lines and the functions that contain them — not the whole repo. State the resolved scope in the output header. If $ARGUMENTS is ambiguous, ask once, then proceed.

Before starting: read the files (or diff hunks) in scope. Do not review code you haven't read. All git/gh commands here are read-only — never modify the tree, stage, or commit.

Before reporting anything, confirm reachability. A pattern match is not a finding — the most common failure mode in an automated security pass is reporting unreachable or already-mitigated code, which buries the real issues. Before writing up a finding, confirm:

  1. Is the input actually attacker-controlled? Trace it to a real entry point — a request parameter, header, cookie, upload, webhook, queue message, or third-party API response. A value that only ever comes from a constant, an enum, or trusted internal config is not an injection source.
  2. Is the sink reachable with that input? Check for validation, an allowlist, an ORM, or a framework control sitting between them — auth middleware, a base controller, a decorator — before flagging a route as unprotected; enforcement is often centralized rather than per-route.
  3. What is the blast radius? Who can trigger it, what do they get, does it cross a trust boundary? SSRF reaching cloud metadata is not the same finding as one reaching localhost only.

State the concrete path — this input reaches this sink — for every finding. If reachability can't be determined from the code in scope, say that explicitly rather than asserting either way.

Dimensions to check (in order):

  1. Injection — SQL, command, LDAP, XPath, template injection. Check string concatenation in queries, shell commands, eval/exec.
  2. Authentication — hardcoded credentials, weak password rules, missing rate limits, session fixation.
  3. Sensitive data exposure — secrets in code/config/logs, missing encryption at rest or in transit, PII in error messages.
  4. Access control — missing authorization checks, IDOR, privilege escalation, default-allow patterns.
  5. Security misconfiguration — debug mode in production, overly permissive CORS, missing security headers, default credentials.
  6. Supply chain — run npm audit / pip-audit / cargo audit if applicable and flag known CVEs, but also check beyond known-CVE matching: unpinned/floating dependency versions, missing lockfile commit, unsigned or unverified packages, curl | sh install scripts in the build pipeline.
  7. Cryptography — MD5/SHA1 for security, hardcoded IVs/keys, custom crypto implementations.
  8. Insecure design — missing rate limiting or abuse controls, security decisions left to the client, no threat model for a sensitive flow (payments, auth, data export).
  9. Integrity failures — insecure deserialization of untrusted data, missing Subresource Integrity on CDN-loaded scripts, auto-update or plugin mechanisms that don't verify signatures.
  10. Logging & alerting — security-relevant events (auth failures, access-control denials, admin actions) that aren't logged at all, or logged without enough context to investigate later.

Read the full file on GitHub · 125 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. yesterday Changed · +53 lines 0218398ef042
  2. 6d ago First seen · 72 lines · 0 tokens per session scan B 0d6ab83515bd

Subscribe to this mod's changes

security is a command published in the GitHub repository smrafiz/claude-supercharger (11 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,824 tokens. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.