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.pyreads sensitive credential files from the user's home directory, specifically~/.codex/auth.json. It extracts theOPENAI_API_KEYandaccess_tokento use in API requests. - [COMMAND_EXECUTION]: Both
SKILL.mdandreferences/troubleshooting.mdcontain 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-urlparameter, which results in the agent making outbound requests to unverified external sources.
Recommendations
- AI detected serious security threats
Audit Metadata