baoyu-imagine
Pass
Audited by Gen Agent Trust Hub on Mar 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the system's
curlutility viaexecFileSyncwithin the Google provider implementation. This is a documented workaround for a socket handling limitation in the Bun runtime when using HTTP proxies. The implementation follows security best practices by passing arguments directly to the binary and piping sensitive payload data through standard input, which effectively prevents shell injection vulnerabilities. - [PROMPT_INJECTION]: The skill has an indirect prompt injection surface because it processes untrusted data from external files (
--promptfiles) and user input to generate images. - Ingestion points: CLI prompt arguments, STDIN, and user-specified prompt files (resolved in
scripts/main.ts). - Boundary markers: Absent; the skill concatenates file contents directly into the prompt string.
- Capability inventory: Local file system writes (for saving generated images), network communication (official provider APIs), and system command execution (
curlinscripts/providers/google.ts). - Sanitization: None for prompt content; however, execution parameters for shell commands are properly isolated from the command string.
- [SAFE]: All network operations are directed at well-known, legitimate AI service providers. Credential management relies on standard environment variables and local configuration files within the user's home or project directory, which is standard practice for developer-oriented tools.
Audit Metadata