/review-beta:securityfrom review-beta
Reviews code changes for security defects across 24 dimensions including injection, path traversal, SSRF, deserialization, auth, crypto, secrets, and supply chain. Runs local scanners before analysis.
Ships in review-beta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Review the change at $ARGUMENTS for security defects and return the findings report defined in §5.
With no $ARGUMENTS, review the working-tree diff against the default branch.
This is one aspect subskill of a multi-aspect review. The parent orchestrator (review-beta:start)
collects this report alongside the other five aspects and synthesizes them, so the report is the
whole product: the parent sees only the return value, never any of this reasoning.
background: false is deliberate — the parent needs the findings inside its own turn, and a
backgrounded fork gets a narrower tool set than the Bash-plus-Read work below requires.
${CLAUDE_SKILL_DIR}/scripts/probe-security.sh [--base <ref>] [<repo-root>]
It runs the scanners this family is decided by — trufflehog, gitleaks, secretlint, Semgrep,
osv-scanner, grype, trivy, checkov, kics, zizmor, actionlint, syft — and emits
SEVERITY|FILE|LINE|DIMENSION|MESSAGE plus #-prefixed metadata for every tool that ran, was
missing, or is deferred. --list prints the tool table without running anything.
Fields are |-separated; a literal pipe inside FILE or MESSAGE arrives escaped as \|, so the field count is always five.
In CI these same scanners arrive from the org's composite actions
(nsheaps/github-actions/.github/actions/lint-{trufflehog,gitleaks,secretlint,checkov,kics,grype,trivy,syft}).
Do not reimplement them; the probe calls the local binaries the actions install.
| Rule | Consequence |
|---|---|
| Probe, then battery | If .review/battery.sarif exists, its partitioned results are authoritative — adjudicate those, re-run nothing |
| No tool, no finding | A dimension whose scanner is missing or deferred is unavailable and produces zero findings. List it in §5 |
| Verified beats found | trufflehog --results=verified findings are reported without adjudication — a live-verified credential is a blocker |
Output-format coverage. The probe parses each tool's own stdout, so a filter that does not match its tool is a silent zero-findings bug rather than a crash. The shapes emitted by semgrep (--vim), zizmor, actionlint and osv-scanner were verified against real output from those tools; the ones with a captured fixture are pinned and asserted in tests/run-probe-tests.sh. The shapes assumed for trufflehog, gitleaks, secretlint, grype, trivy, checkov, kics, syft are unverified — those tools could not be run here. Treat an unexpected zero from one of them as suspect, and confirm by running it directly before reporting the dimension clean.
Two rules earn their keep here specifically. A security reviewer with no scanner will confabulate an attacker path for any input-shaped variable it sees; and an unverified secret candidate that gets escalated to a blocker teaches the team to route around the review.
The dimension table — question, ceiling, tier, and the exact residual — is in references/dimensions.md. The residues that recur:
| Dimension | The tool decided | You decide |
|---|---|---|
sec-injection-interpreter | Source→sink taint with sanitizers modelled | Whether the flagged source is genuinely attacker-reachable |
sec-xss-render-sink | Data reaching an execution sink | The encoding context of that sink |
sec-path-traversal | Taint to filesystem sinks | Symlink and case-folding edge cases on the target platform |
sec-authz-enforcement | Route↔policy map, negative-authz test presence | Whether the object-ownership check matches the domain's rules |
sec-personal-data-handling | PII-named identifiers reaching sinks | Whether the field is genuinely subject data, and the lawful basis |
sec-credential-scope-and-rotation | Wildcard IAM actions, missing rotation metadata | Whether the widened scope is proportionate |
sec-model-input-trust-boundary | Untrusted source → prompt sink | Whether model output actually drives a privileged action |
sec-dep-vuln-maintenance | Advisory matches in the resolved graph | Whether the vulnerable path is reachable from this code |
sec-license-sbom and sec-ci-action-integrity are agent: skip: relay the tool's decision
verbatim. sec-secret-material-exposure is reported without adjudication when verified.
| Severity | Test |
|---|---|
| blocker | Would you page someone at 03:00 for this, or owe an external party notice? |
| major | More expensive to fix in three months than today, and you can name who pays? |
| minor | A tool output or counted metric backs it, and the fix is under ~15 minutes? |
| nit | A reasonable engineer could disagree and still be right? |
From the taxonomy's de-duplication ledger:
| Subject | Owner |
|---|---|
| Self-inflicted unbounded growth with no attacker path | review-beta:correctness (correctness-termination-bounds) |
| Whether the data survives a bad change | review-beta:correctness (correctness-data-loss) |
| Whether an operator can see an event | review-beta:process (process-telemetry-instrumentation) — this aspect owns whether an investigator can prove it |
| Whether a required check actually blocks merge | review-beta:process (process-merge-gating) |
| CI expression/template injection, dependency pinning | Hard gates — the run aborts, they are not findings |
| Third-party dependency worth its carrying cost | review-beta:design (design-third-party-dependency) — this aspect owns whether it is vulnerable, unmaintained or impostor |
Within this family, two seams are pinned: presence of a secret value is
sec-secret-material-exposure, while over-scope and rotation is sec-credential-scope-and-rotation;
may this principal touch this object is sec-authz-enforcement, while may they read or write
this field is sec-field-level-exposure.
Return this and nothing else. No preamble, no narration.
## review-beta:security
VERDICT: PASS | FAIL
SCOPE: <what was reviewed — diff range or paths>
COUNTS: blocker=<n> major=<n> minor=<n> nit=<n> (tool=<n> judged=<n>)
| Sev | Location | Dimension | Problem | Remedy | Confidence |
| :------ | :--------------- | :------------------------ | :------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------- | :--------- |
| blocker | api/report.py:41 | sec-injection-interpreter | Query built by f-string from `request.args['sort']`; taint reaches the SQL sink unsanitized | Bind `sort` as a parameter, or map it through an allowlist of column names | high |
UNAVAILABLE:
- <dimension> — <scanner that was missing or deferred>
VERDICT: FAIL iff at least one blocker survives.Location is file:line; line 0 only when a finding genuinely has no line.Confidence is high | medium | low; a low row states what would confirm it.file:line and the detector's verdict, nothing else.VERDICT: PASS, zeroed counts, and NO FINDINGS.UNAVAILABLE when every dimension had its scanner.AUTOMATION: <the rule to encode>.| Skill | Relationship |
|---|---|
review-beta:start | The orchestrator that invokes this aspect and merges its report |
review-beta:correctness | Owns the same mechanisms where no attacker path exists |
review-beta:process | Owns merge gating, rollout and telemetry; this aspect owns the audit trail |
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/agentic-configurationInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews whether agent configuration is well built — skills, plugin manifests, hook wiring, agents, commands and the MCP config they declare — covering frontmatter conformance, description trigger accuracy, length budgets, progressive-disclosure layout, fork return contracts, manifest required fields, and hook events that silently never fire. Runs scripts/check-skill.sh and scripts/check-plugin.sh for every mechanical check before spending any judgement. Returns a structured findings report with a pass/fail verdict. NOT for judging whether the subject matter a skill teaches is factually correct, and NOT for general code review of the scripts a plugin bundles (review-beta:correctness owns that)./best-practicesInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews whether code follows the idiomatic practice its own ecosystem publishes, running scripts/probe-best-practices.sh — golangci-lint, clippy, ruff, biome, rubocop, stylelint, swiftlint, ktlint, tflint, phpcs — and reporting only what those linters decide, so "unidiomatic" is settled by each community's rule catalogue rather than by taste. Returns a structured findings report with a verdict. NOT for whether the code is correct (review-beta:correctness), whether it is well factored (review-beta:design), or whether it matches this org's own declared conventions (review-beta:org-fit)./correctnessInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews a change for correctness defects and returns a structured findings report with a verdict, running scripts/probe-correctness.sh for every mechanically decidable dimension before spending any judgement. Covers the taxonomy's 19 correctness dimensions over a diff — boundary conditions, null and absent values, numeric precision, error propagation, resource lifecycle, concurrency, idempotency, transactional atomicity, data loss, algorithmic cost, termination bounds, and the tests that would have caught each. NOT for attacker-reachable vulnerabilities (review-beta:security), abstraction and coupling quality (review-beta:design), or whether tests are gated in CI (review-beta:process)./designInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews a change for design-health regressions and returns a structured findings report with a verdict, running scripts/probe-design.sh — clone detectors, architecture contracts, dead-export analysers, API-diff tools — before spending any judgement. Covers the taxonomy's 13 design dimensions — speculative generality, wrong abstraction, duplication, public surface minimality, backward and data-contract compatibility, deprecation and migration, layering and dependency direction, cohesion, hidden global state, testability seams, configuration surface, and new third-party dependencies. NOT for whether the code works (review-beta:correctness) or whether it matches house convention (review-beta:org-fit)./docsInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews documentation changes and returns a structured findings report with a verdict, running scripts/probe-docs.sh — lychee, markdownlint, Vale, cspell, doctest runners — before spending any judgement. Covers the taxonomy's 18 docs dimensions — entry-point completeness, executable quickstarts, example correctness, reference coverage, doc/code synchrony, link and URL integrity, version applicability, translation drift, ownership, presentation, terminology, claim substantiation, changelog quality, authored-source accessibility, message quality, and decision rationale. NOT for whether the described code is correct (review-beta:correctness) or whether agent configuration is well built (review-beta:agentic-configuration)./org-fitInvoked by review-beta:start, which routes every review request and decides which aspects apply — use that entry skill first; this is one of the aspects it delegates to. Reviews whether a change fits the organization it lands in, and returns a structured findings report with a verdict, running scripts/probe-org-fit.sh — the repo's own lint task, editorconfig-checker, shellcheck, syncpack, generation drift — before spending any judgement. Covers the taxonomy's 16 org-fit dimensions — reinvented shared capabilities, copy-pasted CI, golden-path divergence, generated-artifact drift, dependency version divergence, the repo's own written rules, interface conventions, the accessibility automated scanning cannot see, i18n, declared performance budgets, platform assumptions, portability gaps, and environment parity. NOT for intrinsic design quality (review-beta:design) or release process (review-beta:process).npx claudepluginhub nsheaps/ai-mktpl --plugin review-betaOther plugins' skills for the same job