pr-review
Pass
Audited by Gen Agent Trust Hub on Nov 20, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The bash script
pr-review.shsources a local configuration file from~/.config/pr-review/config.shor an environment-defined path (PR_REVIEW_CONFIG), which allows for the execution of arbitrary commands within the user's shell environment when the script is run. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process code from external GitHub Pull Requests. Maliciously crafted code, comments, or documentation within these PRs could attempt to influence the agent's behavior or override review instructions.
- Ingestion points: GitHub Pull Request diffs, repository files (e.g.,
REVIEW.md), and branch content are read into the model's context via theclaudeCLI. - Boundary markers: The script uses a highly structured instruction prompt with specific output requirements (e.g., Markdown tables, specific prose styles) to help isolate findings from potentially malicious PR content.
- Capability inventory: The AI agent is restricted to a read-only toolset defined in the
CLAUDE_PERMvariable, which includesRead,Grep,Glob, and read-onlygitsubcommands (diff, log, show, status, branch). - Sanitization: While the script uses a
substfunction to perform token replacement in the prompt, there is no explicit sanitization of the untrusted code content itself before it is passed to the LLM. - [DYNAMIC_EXECUTION]: The script dynamically constructs the instructions for the AI by substituting runtime variables (like repository name, branch, and SHAs) and external rule files (panels and lenses) into a quoted heredoc template before executing the
claudeCLI. - [EXTERNAL_DOWNLOADS]: The script uses
gh repo cloneandgit fetchto download external code from GitHub repositories to a local cache directory (~/pr-reviews/repos/) for analysis.
Audit Metadata