gpt-image-2
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
bashandpython3to execute a local workflow that invokes thecodexCLI. This is the primary mechanism for generating images and is performed using standard subprocess execution methods without shell injection vulnerabilities. - [DATA_EXPOSURE]: The skill accesses local session files located in
~/.codex/sessions/to retrieve generated image data. Access is specifically restricted to files matching thethread_idof the current invocation to prevent unauthorized access to unrelated session history. - [INDIRECT_PROMPT_INJECTION]: User-provided prompts are passed directly to the image generation tool. The skill instructs the agent to pass these prompts raw and includes specific requirements for the underlying model to handle refusals without silently rewriting instructions. This ingestion of untrusted data represents a standard attack surface for prompt injection, though mitigated by model-level controls and the skill's own logic.
- [SAFE_PRACTICE]: The
extract_image.pyscript implementsvalidate_output_path, which restricts file writing to allowed image extensions (.png, .jpg, .webp, etc.) and explicitly forbids writing to system directories, protecting the integrity of the host filesystem.
Audit Metadata