diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index f101df8e..b82bd514 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -112,6 +112,7 @@ Every PR gets at least this sweep. - Injection: SQL via raw/concatenated queries, shell/command, XSS via unescaped output. - Does every new read and write path authorize access? - Secrets: none hardcoded; none leaked into logs, error responses, or stack traces; PII sanitized before logging. +- A new secret or token: the doc beside it states what the credential can reach, such as the other repositories or tenants its owning account can use, not only what the change uses it for. A doc that says "nothing wider" without naming the account's reach is 🟡. - Mass assignment/over-posting on model-bound input; uploaded files and paths validated (traversal); user-supplied URLs constrained (SSRF). - Crypto: vetted primitives only, constant-time comparison for secrets, CSPRNG for tokens. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 33a64fd9..82e0b88a 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -206,6 +206,8 @@ The comprehension check records how hard the project is for its contributor to r `/security-review` over the branch diff is the pass of record, except where the full scan runs on the same change and replaces it. Where the full scan fires but does not run — skipped on a precedent, declined at its cost prompt, or unavailable — `/security-review` runs. Launch a general-purpose subagent that invokes it through the Skill tool, doesn't edit anything, and replies with the skill's report, or that the skill is unavailable. Invoked in your own context, the skill ends your turn on that report. Open this subagent's prompt, and that of any subagent that runs the full scan, with `You are the security pass for this chunk.`: rule-hook reads that sentence as a security launch. +Where the diff adds a secret or a token, end the prompt by asking the subagent to also check that the doc beside it names what the credential can reach, such as the other repositories its account can use, not only what the change uses it for, and to report a gap as a finding beside the skill's report. + A verified HIGH inside this chunk's blast radius is fixed here, outside it on its own branch and PR with this chunk waiting behind it. Say which. Only the user may answer `claude-security`'s cost prompt. `/security-review` or `claude-security` unavailable, the plugin's cost prompt unanswered, or no file scanned → say so in the summary; never substitute a hand-rolled pass.