baoyu-image-gen

Fail

Audited by Gen Agent Trust Hub on Sep 27, 2026

Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The Google provider implementation (scripts/providers/google.ts) executes shell commands using execSync with unsanitized environment variables.
  • Evidence: The postGoogleJsonViaCurl function interpolates proxyArgs and url into a curl command string. These values are derived from environment variables like HTTPS_PROXY and GOOGLE_BASE_URL without escaping.
  • Impact: An attacker who can control environment variables (e.g., by providing a malicious .env file or influencing the agent's context) can achieve arbitrary command execution on the host system.
  • [DATA_EXFILTRATION]: The skill supports overriding API base URLs via environment variables, which can lead to the exfiltration of credentials and data.
  • Evidence: Provider scripts for Google, OpenAI, DashScope, and Replicate all use environment-defined base URLs (e.g., GOOGLE_BASE_URL). These URLs are used for requests that include sensitive API keys in the headers.
  • Impact: Malicious configuration can redirect authentication tokens and prompt content to attacker-controlled endpoints.
  • [DATA_EXFILTRATION]: The skill provides functionality to read arbitrary local files and transmit their contents to remote providers, facilitating data exposure.
  • Evidence: The --ref (reference images) and --promptfiles flags in scripts/main.ts read local files using readFile and transmit the contents (often Base64 encoded) to external API providers.
  • Impact: If an agent is coerced into reading sensitive files (e.g., ~/.ssh/id_rsa, .env files) as inputs, the content is exposed to third-party services.
  • [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection due to its handling of external data.
  • Ingestion points: Input is accepted via the --prompt, --promptfiles, and --ref arguments in scripts/main.ts.
  • Boundary markers: The skill does not implement delimiters or 'ignore' instructions for the data it processes.
  • Capability inventory: The skill possesses file read/write access, network request capabilities, and shell command execution.
  • Sanitization: No validation or escaping of the ingested content is performed before processing.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Sep 27, 2026, 12:43 AM