review-pull-request

Pass

Audited by Gen Agent Trust Hub on Nov 17, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSPRIVILEGE_ESCALATION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses subprocess.run to execute the gh (GitHub) CLI and internal scripts for fetching pull request data and posting review comments.
  • Evidence: scripts/post-review.py invokes collect-pr-review-comments.sh and various gh api commands.
  • Mitigation: All external inputs, such as the repository owner, name, and pull request number, are validated against strict regular expressions before being passed to shell commands, preventing command injection.
  • [DYNAMIC_EXECUTION]: The Python scripts utilize runpy.run_path to load and share utility functions between co-located components in the skill package.
  • Evidence: scripts/post-review.py dynamically loads scripts/render-review.py to access shared loading and hashing logic.
  • Mitigation: The script path is computed relative to the executing file's directory, ensuring only local, verified skill components are loaded.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data from GitHub, such as pull request descriptions and code diffs, which could contain malicious instructions designed to influence the agent's behavior.
  • Evidence: subagents/pr-context-collector.md and subagents/chunk-reviewer.md read and analyze pull request content.
  • Mitigation: The skill implements a strict separation between instructions and evidence, directing the agent to treat all external content as non-authoritative data. Additionally, scripts/validate-output.py performs schema and prose validation on sub-agent outputs to detect and block non-compliant content.
  • [EXTERNAL_DOWNLOADS]: The skill references external guidelines and security checklists to inform the review process.
  • Evidence: references/external-review-resources.md contains links to Google's engineering practices, OWASP documentation, and GitHub's official API guides.
  • Mitigation: All referenced URLs point to trusted organizations and well-known technology services, following the established trust-scope rules.
  • [PRIVILEGE_ESCALATION]: The skill contains comprehensive file system protections to prevent unauthorized file access or path traversal.
  • Evidence: The safe_path function in scripts/render-review.py enforces that all file operations are workspace-relative and explicitly rejects absolute paths, parent directory components (..), and symbolic links. It further uses os.O_NOFOLLOW when opening files to prevent symlink-based attacks.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 17, 2026, 06:54 AM