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.tsscript useschild_process.execSyncto runcurlwhen a proxy is detected. It interpolates variables likeproxyArgsandurldirectly into the shell command string without sanitization. This allows for arbitrary command injection if an attacker can control the--modelCLI argument or influence environment variables such asHTTPS_PROXY. - [EXTERNAL_DOWNLOADS]: The skill interacts with multiple external AI services (Google Gemini, OpenAI, Alibaba DashScope, and Replicate) to generate images. It uses
fetchandcurlto 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
.envfiles, 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