gpt-image-generation
Warn
Audited by Gen Agent Trust Hub on Jun 19, 2026
Risk Level: MEDIUMDATA_EXFILTRATIONPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: The script
scripts/cli.jsreads the sensitive local credential file~/.codex/auth.jsonto retrieve anaccess_token. This token is then transmitted to the external endpointhttps://chatgpt.com/backend-api/codex/responsesin the Authorization header. While this is for the intended functionality of the tool, it involves harvesting local authentication secrets.\n- [PROMPT_INJECTION]: The skill implements an indirect prompt injection surface by reading the contents of a local file (specified by the--prompt-fileargument) and using it as the input prompt for the image generation model. This allows untrusted data to influence the image generation request.\n - Ingestion points:
scripts/cli.jsreads file content from the path provided to--prompt-file.\n - Boundary markers: None. The file content is interpolated directly into the JSON request body.\n
- Capability inventory: Network operations via
fetchand file system writes viawriteFileSync.\n - Sanitization: No sanitization or validation of the prompt file content is performed before processing.\n- [COMMAND_EXECUTION]: The skill requires the agent to execute a local Node.js CLI script (
node ./scripts/cli.js) which performs file system access and network operations based on command-line arguments.
Audit Metadata