--- name: security-review description: Use when asked to assess code or configuration changes for exploitable security weaknesses, trust boundaries, authorization flaws, unsafe input handling, or sensitive-data exposure. --- # Security Review Use when asked to review a change for exploitable security weaknesses. Load `rules-security` and follow its index to the topic skills the diff touches, such as `rules-security-auth`, `rules-security-api`, `rules-security-data`, `rules-security-files`, `rules-security-network`, `rules-security-logging`, `rules-security-ai`, `rules-security-clients`, `rules-security-crypto`, and `rules-security-supply-chain`. Check the change against those rules instead of a separate list. ## Review 1. Map inputs crossing a trust boundary and identify the principals, permissions, and resources involved. 2. Trace each control the rules require through the actual code path. 3. Build a plausible attack path: attacker capability, triggering input or state, missing control, and resulting impact. 4. Verify proposed mitigations preserve normal behavior and fail closed where the boundary requires it. Report only evidence-backed findings in the `review-pull-request` finding schema and severity scale. Put preconditions in the condition field. Mark defense-in-depth suggestions as minor or optional; do not invent attack scenarios unsupported by the code.