review-merge-readiness
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The template file
code-reviewer.mdcontains shell command blocks that directly interpolate placeholders such as{BASE_SHA}and{HEAD_SHA}. If these variables are populated with unvalidated or malicious input (e.g., from a compromised plan file or branch name), it could lead to arbitrary command execution on the host system. - [INDIRECT_PROMPT_INJECTION]: The skill is inherently exposed to indirect prompt injection because it processes untrusted data.
- Ingestion points: The agent reads external content via
git diffand plan/requirement files specified in{PLAN_OR_REQUIREMENTS}. - Boundary markers: The
code-reviewer.mdtemplate does not utilize clear boundary markers or safety instructions to distinguish between the agent's instructions and the content being reviewed (the code diff). - Capability inventory: The skill executes
gitcommands and provides a merge readiness assessment, which could be manipulated by hidden instructions in the code changes. - Sanitization: The skill lacks any mechanism to sanitize or escape the content retrieved from the repository before it is processed by the LLM.
- [DYNAMIC_EXECUTION]: The sub-agent template mechanism in
code-reviewer.mdrelies on the runtime assembly of executable bash commands through string interpolation of placeholders. This pattern facilitates the execution of dynamically generated scripts without sufficient validation of the injected components.
Audit Metadata