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.pyprogrammatically reads sensitive authentication data from~/.codex/auth.jsonand configuration settings from~/.codex/config.toml. - [DATA_EXFILTRATION]: Authentication tokens, including
OPENAI_API_KEYandaccess_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.mdandreferences/troubleshooting.mdadvise 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