code-review-bot
Pass
Audited by Gen Agent Trust Hub on Nov 4, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted pull request data, including titles, bodies, and code diffs. It implements strong mitigations such as forcing configuration to be read from the base branch (preventing PR authors from disabling the bot), explicitly instructing the agent to treat all input as data rather than instructions, and forbidding the execution of any code from the pull request. Findings are summarized below according to the mandatory evidence chain:
- Ingestion points: Untrusted data enters via
gh pr viewand GitHub API calls for diffs, comments, and files (documented inSKILL.md). - Boundary markers: The skill uses
<!-- ai-review -->markers for its own content and contains explicit rules inreferences/automation-contract.mdto treat PR data solely as untrusted input. - Capability inventory: The skill can write review comments and check runs to GitHub via the
ghCLI. It does not possess capabilities to execute shell commands or code derived from the PR content. - Sanitization: The skill explicitly requires redaction of secrets and tokens before publishing any output to GitHub.
- [COMMAND_EXECUTION]: To perform its logic, the skill executes its own local Python scripts (
assets/prepare_review.pyandassets/validate_review_report.py). These scripts are part of the skill's assets and are used for data validation and payload preparation without interacting with the network or executing user-provided code.
Audit Metadata