skills/samzong/samzong/gh-pr-review/Gen Agent Trust Hub

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.sh and stores them in .gh-pr-review/pr-<n>/.
  • Boundary markers: Content from these files is interpolated into the review-<n>.md document using simple double-brace placeholders ({{VAR}}) defined in scripts/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.sh script executes the gh (GitHub CLI) tool to retrieve data from GitHub.
  • The main shell script invokes local Python utilities parse_unified_diff.py and generate_review_md.py using python3 to process the data.
  • [EXTERNAL_DOWNLOADS]: The skill downloads data from external repositories on GitHub.
  • scripts/gh_pr_review.sh uses gh pr view, gh pr diff, and gh run view to download metadata, code, and logs from github.com. These downloads target a well-known service and are consistent with the skill's stated purpose.
Audit Metadata
Risk Level
SAFE
Analyzed
Mar 5, 2026, 03:34 PM