diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index b82bd514..ac004e67 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -112,7 +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 🟡. +- A new secret or token: the doc beside it names what the credential can reach, such as the other repositories or tenants its owning account can use, and not only what the change uses it for. A doc that names only the use, or claims "nothing wider" without the account's reach, is 🟡: someone grants the token on that claim. That the doc is missing counts only where this holds. - 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 82e0b88a..63a2d54d 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -206,7 +206,7 @@ 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. +Where the diff adds a secret or a token, end the prompt of each such subagent, the full scan's included, by asking it to check that the doc beside the secret names what the credential can reach, such as the other repositories or tenants its owning account can use, and not only what the change uses it for. A gap is a MEDIUM finding. 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.