baoyu-image-gen

Warn

Audited by Gen Agent Trust Hub on May 9, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATION
Full Analysis
  • [COMMAND_EXECUTION]: The scripts/providers/google.ts script uses child_process.execSync to run curl when a proxy is detected. It interpolates variables like proxyArgs and url directly into the shell command string without sanitization. This allows for arbitrary command injection if an attacker can control the --model CLI argument or influence environment variables such as HTTPS_PROXY.
  • [EXTERNAL_DOWNLOADS]: The skill interacts with multiple external AI services (Google Gemini, OpenAI, Alibaba DashScope, and Replicate) to generate images. It uses fetch and curl to send data to these APIs and downloads the resulting image files from URLs provided by these services.
  • [DATA_EXFILTRATION]: While intended for functionality, the skill reads sensitive API keys from the environment and local .env files, and transmits them to external provider endpoints. This is documented behavior but constitutes a transfer of credentials to third-party services.
  • [PROMPT_INJECTION]: The skill implements an attack surface for indirect prompt injection by reading content from user-specified files (via --promptfiles) and including them in the generation process. It lacks sanitization or boundary markers to prevent malicious instructions within these files from influencing the agent's behavior during the orchestration flow.
Audit Metadata
Risk Level
MEDIUM
Analyzed
May 9, 2026, 08:34 AM