gh-pr-review
Pass
Audited by Gen Agent Trust Hub on Mar 5, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection attacks because it ingests and processes untrusted data from external GitHub Pull Requests.
- Ingestion points: The skill fetches Pull Request titles, descriptions, code diffs, and CI workflow logs in
scripts/gh_pr_review.shand stores them in.gh-pr-review/pr-<n>/. - Boundary markers: Content from these files is interpolated into the
review-<n>.mddocument using simple double-brace placeholders ({{VAR}}) defined inscripts/generate_review_md.py. There are no strong boundary markers or instructions to the agent to ignore embedded commands within this content. - Capability inventory: The agent reads the generated markdown and raw artifacts to produce a 'project owner' grade review. Malicious instructions hidden in PR titles or code comments could influence the agent's verdict or recommendations.
- Sanitization: No sanitization or escaping of the retrieved GitHub content is performed before it is presented to the agent.
- [COMMAND_EXECUTION]: The skill relies on the execution of local shell commands and scripts to perform its core functionality.
- The
scripts/gh_pr_review.shscript executes thegh(GitHub CLI) tool to retrieve data from GitHub. - The main shell script invokes local Python utilities
parse_unified_diff.pyandgenerate_review_md.pyusingpython3to process the data. - [EXTERNAL_DOWNLOADS]: The skill downloads data from external repositories on GitHub.
scripts/gh_pr_review.shusesgh pr view,gh pr diff, andgh run viewto download metadata, code, and logs fromgithub.com. These downloads target a well-known service and are consistent with the skill's stated purpose.
Audit Metadata