imagegen
Fail
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
bin/generate_image.pysystematically searches for and reads sensitive OAuth refresh tokens from multiple locations in the user's home directory, including~/.cli-proxy-api/antigravity-*.jsonand~/.openclaw/auth-profiles.json. It iterates through these paths to collect and rotate through all available authentication credentials found on the system. - [DATA_EXFILTRATION]: Harvested OAuth tokens are transmitted to remote endpoints (
oauth2.googleapis.com) for refreshing and used to interact with CloudCode API services. This behavior involves the extraction of private authentication material from the local filesystem and its transmission over the network. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection via the user-supplied prompt interpolated into instructions for sub-agents.
- Ingestion points: The
PROMPTvariable inbin/imagegen.sh(sourced from user input) is the entry point for untrusted data. - Boundary markers: While the
agybackend includes an 'ignore any instruction' warning, thecodexbackend lacks delimiters or specific instructions to ignore embedded commands within the prompt. - Capability inventory: The skill's environment includes capabilities for subprocess execution (
codex,agy,uv), network operations via therequestslibrary, and arbitrary file writes. - Sanitization: No escaping, validation, or sanitization is applied to the prompt text before it is interpolated into the final instruction string passed to the CLI tools.
- [DYNAMIC_EXECUTION]: The wrapper script
bin/imagegen.shexecutes a Python script provided via a shell heredoc at runtime. This dynamically executed code is used to perform integrity checks on the generated image, including verifying file types and preventing symlink attacks. - [COMMAND_EXECUTION]: The skill coordinates its functionality by executing several external binaries and CLI tools, including
codex,agy,uv, andpython3, through shell command strings.
Recommendations
- AI detected serious security threats
Audit Metadata