codex-image
Pass
Audited by Gen Agent Trust Hub on Aug 25, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection due to insecure interpolation of user-provided data into tool instructions.
- Ingestion points: Prompts and filenames are ingested from user input as documented in
SKILL.mdand as command-line arguments inscripts/codex_imagegen_batch.sh. - Boundary markers: The skill uses simple single-quote delimiters (
') to wrap inputs within the instruction string. These are insufficient as they can be bypassed if the input contains a single quote. - Capability inventory: The skill uses
codex execwith theworkspace-writesandbox, which permits file system modifications. - Sanitization: No escaping, filtering, or validation is performed on the
$promptor$outputvariables before they are interpolated into the command string. - [COMMAND_EXECUTION]: The helper script
scripts/codex_imagegen_batch.shconstructs shell commands for thecodexCLI using unvalidated variables. While variables are double-quoted in the Bash script to prevent shell word splitting, the resulting string is passed to a secondary execution context (the Codex tool) that interprets the instructions, creating a risk if the input is maliciously crafted to break the instruction context.
Audit Metadata