baoyu-image-gen
Fail
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/providers/google.tsfile executes shell commands usingchild_process.execSyncto perform image generation requests viacurlwhen a proxy is detected. The command string directly interpolates theurlvariable, which is constructed from a user-provided model identifier (--modelor-mflag). Since this input is not sanitized or escaped before being placed inside a double-quoted shell string, an attacker can perform command injection by providing a model ID containing shell metacharacters (e.g., "; <malicious_command>; #). This allows for arbitrary code execution on the host machine.\n- [DATA_EXFILTRATION]: The skill facilitates and recommends the use of a third-party proxy service,xheai.cc. When thexheaiprovider is used, the script sends the user'sOPENAI_API_KEYtoapi.xheai.cc. This practice exposes sensitive authentication credentials to an unverified third party, significantly increasing the risk of API key theft and unauthorized usage of the user's accounts.\n- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted input from prompts and external files that can influence command-line arguments. An attacker could craft a malicious input that tricks the agent into selecting the Google provider and passing a malicious payload to the--modelparameter, triggering the shell command injection vulnerability described in the [COMMAND_EXECUTION] finding.\n- [CREDENTIALS_UNSAFE]: Thescripts/main.tsfile loads environment variables from a.envfile located in the current working directory (.baoyu-skills/.env). This behavior allows for configuration poisoning; if a user is tricked into running the skill within a directory containing a malicious.envfile, an attacker could override API keys, base URLs, or proxy settings to intercept or manipulate credentials and network traffic.
Recommendations
- AI detected serious security threats
Audit Metadata