codex-review
Warn
Audited by Gen Agent Trust Hub on May 19, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/codex-reviewscript executes arbitrary strings viabash -lcwhen the--parallel-testsargument is provided. If an agent populates this argument from untrusted data, it could lead to arbitrary command execution. - [COMMAND_EXECUTION]: The helper script defaults to 'YOLO' mode, which includes the
--dangerously-bypass-approvals-and-sandboxflag. This explicitly instructs the underlying tool to skip security boundaries and user approval prompts. - [PROMPT_INJECTION]: The
SKILL.mdinstructions contain directives that override standard agent behavior, such as 'Never switch or override the review model' and 'Keep going until Codex review returns no accepted/actionable findings,' which may lead to excessive execution cycles or refusal to use safer models. - [COMMAND_EXECUTION]: The tool allows overriding the path to the
codexbinary through theCODEX_BINenvironment variable or--codex-binflag, which could be leveraged to execute alternative malicious binaries if the environment is compromised.
Audit Metadata