codex-review-fix-loop
Pass
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a workflow where the agent ingests findings from the
codex reviewCLI tool and uses them to automatically modify source code in theFixphase. This creates a surface where malicious code within a repository could potentially influence the reviewer's output to induce the agent to perform harmful edits. - Ingestion points: The agent parses the standard output of the
codex reviewcommand (SKILL.md, 'Codex 输出判断' section). - Boundary markers: The instructions recommend identifying the 'last complete reviewer conclusion' but do not define strict delimiters or 'ignore embedded instructions' warnings for the tool output.
- Capability inventory: The agent has the ability to execute
gitandcodexcommands and perform arbitrary file writes in the target repository path. - Sanitization: No explicit sanitization or content filtering of the review findings is described before the agent acts on them.
- [COMMAND_EXECUTION]: The skill generates shell commands by interpolating user-provided inputs such as project paths, branch names, and commit SHAs.
- Evidence: Commands like
codex -C <project-path> review --uncommitted,codex review --base <branch>, andcodex review --commit <sha>are used (SKILL.md, '原生 CLI 命令' section). - Mitigation: The skill includes pre-flight check instructions to verify that the project path is a valid Git repository and that branches/SHAs are resolvable, which reduces the risk of accidental or malicious command injection.
Audit Metadata