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.py systematically searches for and reads sensitive OAuth refresh tokens from multiple locations in the user's home directory, including ~/.cli-proxy-api/antigravity-*.json and ~/.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 PROMPT variable in bin/imagegen.sh (sourced from user input) is the entry point for untrusted data.
  • Boundary markers: While the agy backend includes an 'ignore any instruction' warning, the codex backend 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 the requests library, 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.sh executes 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, and python3, through shell command strings.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 22, 2026, 04:55 PM