codex-gateway-imagegen

Fail

Audited by Gen Agent Trust Hub on Jul 8, 2026

Risk Level: HIGHCREDENTIALS_UNSAFECOMMAND_EXECUTIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADS
Full Analysis
  • [CREDENTIALS_UNSAFE]: The script scripts/generate_gateway_image.py reads sensitive credential files from the user's home directory, specifically ~/.codex/auth.json. It extracts the OPENAI_API_KEY and access_token to use in API requests.
  • [COMMAND_EXECUTION]: Both SKILL.md and references/troubleshooting.md contain instructions directing the agent to bypass security restrictions by rerunning commands with "escalated host-network access" if standard sandboxed networking fails. This is a deliberate attempt to circumvent platform security controls.
  • [DATA_EXFILTRATION]: The skill reads local images and sensitive API credentials, then transmits them to a remote URL. While the default points to a known service, the destination is dynamically loaded from ~/.codex/config.toml, allowing data to be sent to arbitrary attacker-controlled endpoints.
  • [EXTERNAL_DOWNLOADS]: The script supports fetching remote image data via the --image-url parameter, which results in the agent making outbound requests to unverified external sources.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Jul 8, 2026, 01:38 PM