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.runto execute thegh(GitHub) CLI and internal scripts for fetching pull request data and posting review comments. - Evidence:
scripts/post-review.pyinvokescollect-pr-review-comments.shand variousgh apicommands. - 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_pathto load and share utility functions between co-located components in the skill package. - Evidence:
scripts/post-review.pydynamically loadsscripts/render-review.pyto 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.mdandsubagents/chunk-reviewer.mdread 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.pyperforms 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.mdcontains 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_pathfunction inscripts/render-review.pyenforces that all file operations are workspace-relative and explicitly rejects absolute paths, parent directory components (..), and symbolic links. It further usesos.O_NOFOLLOWwhen opening files to prevent symlink-based attacks.
Audit Metadata