cc-pr-review-ci
Warn
Audited by Gen Agent Trust Hub on Jul 21, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
post-review.jsutilizesexecSyncwith template literals to construct and execute shell commands (e.g.,gh api repos/${owner}/${repo}/pulls/${PR_NUMBER}/reviews/${reviewId}). This pattern is highly susceptible to command injection if environment variables or data returned from previous API calls contain shell metacharacters. - [PROMPT_INJECTION]: The skill processes untrusted input in the form of PR diffs and source code, creating an indirect prompt injection surface.
- Ingestion points: The agent ingests PR diffs (
SKILL.md) and reads entire source files for context (references/bug.md). - Boundary markers: None identified; the agent lacks instructions to isolate untrusted code from its own operational logic.
- Capability inventory: The agent is authorized to execute
ghandgitcommands as part of the review workflow. - Sanitization: No validation or escaping of the diff content is performed before processing.
- [DATA_EXFILTRATION]: The
post-review.jsscript is designed to print the fullreview.jsonpayload tostderrif the GitHub API call fails. This behavior could inadvertently expose sensitive findings or repository metadata in CI/CD logs. - [COMMAND_EXECUTION]: Instructions in
SKILL.mddirect the agent to execute shell commands using the$PR_NUMBERvariable. If this variable is not strictly sanitized by the host platform, it presents a risk of arbitrary command execution when the skill is loaded or run.
Audit Metadata