rules-review
Warn
Audited by Gen Agent Trust Hub on May 30, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill extracts a commit SHA from the
$ARGUMENTSvariable and interpolates it directly into shell commands, specificallygit diff --name-only <base-commit>. If the platform's shell execution environment does not strictly prevent command chaining (e.g., via;,&&, or||), a malicious user could provide a crafted argument to execute arbitrary code. Although theallowed-toolsfrontmatter attempts to restrict the command prefix, it may not be sufficient to block sophisticated shell-based attacks. - [PROMPT_INJECTION]: The skill is subject to indirect prompt injection risks (Category 8). It ingests untrusted data from the repository, including contents of
.claude/rules/**/*.mdand the output ofgit diff. This data is then interpolated into prompts for sub-agent reviewers using headers like## Rules to Checkand## Diff to Review. A malicious actor could commit files to the repository containing hidden instructions designed to override the reviewer's safety guidelines or manipulate its findings. No sanitization or escaping is performed on the ingested content before it is passed to the sub-agent.
Audit Metadata