codex-gateway-imagegen

Fail

Audited by Gen Agent Trust Hub on Jun 22, 2026

Risk Level: HIGHCREDENTIALS_UNSAFEDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
  • [CREDENTIALS_UNSAFE]: The script scripts/generate_gateway_image.py programmatically reads sensitive authentication data from ~/.codex/auth.json and configuration settings from ~/.codex/config.toml.
  • [DATA_EXFILTRATION]: Authentication tokens, including OPENAI_API_KEY and access_token, are extracted from local files and transmitted in the HTTP Authorization header to a remote endpoint (base_url) defined in the configuration.
  • [COMMAND_EXECUTION]: Instructions in SKILL.md and references/troubleshooting.md advise the agent to bypass sandbox security controls by rerunning commands with "escalated host-network access" when network errors are encountered.
  • [DATA_EXFILTRATION]: The skill exhibits an attack surface for indirect prompt injection by processing untrusted user prompts and remote image URLs.
  • Ingestion points: User-provided prompt text and image URLs via CLI arguments in scripts/generate_gateway_image.py.
  • Boundary markers: None. The prompt and URLs are interpolated directly into the JSON request payload.
  • Capability inventory: The script performs outbound network POST requests and writes binary image data to the local file system.
  • Sanitization: No validation or escaping of the prompt or remote URLs is implemented before processing.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Jun 22, 2026, 04:06 PM