code-review
Pass
Audited by Gen Agent Trust Hub on Jun 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
autoreviewscript provides a--parallel-testsflag that allows the execution of arbitrary shell commands alongside the review process. It usessubprocess.Popenwithshell=Trueto execute these user-provided strings. While a standard feature for this tool, it represents a mechanism for command execution if the agent is directed to run malicious tests. - [COMMAND_EXECUTION]: The skill includes a sophisticated binary resolution mechanism (
find_command) that explicitly prevents the execution of binaries located within the repository being reviewed. This mitigates risks where an attacker might place a maliciousgitorghexecutable in the codebase to gain execution when the review tool is run. - [DATA_EXFILTRATION]: The tool is designed to collect git diffs, file contents, and untracked files into a 'bundle' which is then transmitted to external AI service providers (such as OpenAI/Codex, Anthropic/Claude, and others). This transmission of code is the intended primary function of the skill.
- [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface because it reads arbitrary code from the current repository and interpolates it directly into a prompt sent to an AI engine. Malicious instructions embedded in the code being reviewed could attempt to influence the AI's review verdict. The skill attempts to mitigate this using 'Hard rules' and instructional framing within the prompt template.
- Ingestion points: Untracked files and git diffs are read by the
local_bundle,branch_bundle, andcommit_bundlefunctions inscripts/autoreview. - Boundary markers: The bundle is delimited by a
# Change Bundleheader within the final prompt. - Capability inventory: The skill can execute shell commands via the
--parallel-testsfeature and can trigger external AI CLI tools. - Sanitization: Content is truncated to a length limit but is not sanitized for prompt injection keywords or escape sequences.
Audit Metadata