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 usingexecSyncwith unsanitized environment variables. - Evidence: The
postGoogleJsonViaCurlfunction interpolatesproxyArgsandurlinto acurlcommand string. These values are derived from environment variables likeHTTPS_PROXYandGOOGLE_BASE_URLwithout escaping. - Impact: An attacker who can control environment variables (e.g., by providing a malicious
.envfile 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--promptfilesflags inscripts/main.tsread local files usingreadFileand 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,.envfiles) 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--refarguments inscripts/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