review-pr
Fail
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The shell scripts provided for the orchestrator to execute contain command injection vulnerabilities due to unquoted variable expansion.
- Evidence: In
stages/00-context/CONTEXT.mdandstages/02-post/CONTEXT.md, variables$PRand$REPOare used without quotes in commands such asgh pr view $PR --repo $REPOandgh pr comment $PR --repo $REPO. A malicious input for these parameters could terminate the intended command and execute arbitrary shell instructions in the agent's environment. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted data from pull requests, creating a surface for indirect prompt injection where adversarial instructions could influence the review subagent.
- Ingestion points: PR metadata, body, comments, and the repository's
CLAUDE.mdfile are fetched instages/00-context/CONTEXT.mdand passed to the analysis stage. - Boundary markers: The subagent instructions in
stages/01-cohesive-review/CONTEXT.mddo not include protective delimiters or specific safety instructions to disregard instructions embedded within the PR diff, comments, or body content. - Capability inventory: The skill possesses the ability to interact with GitHub APIs to post comments and update labels based on the subagent's analysis.
- Sanitization: Untrusted content fetched from the pull request is not sanitized, escaped, or filtered before being presented to the subagent for review.
- [EXTERNAL_DOWNLOADS]: The skill fetches data and configuration from external GitHub repositories using the
ghtool. - Evidence:
stages/00-context/CONTEXT.mdusesgh apiandgh pr diffto retrieve content from the target repository, which is a well-known service but can host untrusted user content.
Recommendations
- AI detected serious security threats
Audit Metadata