image-gen-router
Warn
Audited by Gen Agent Trust Hub on Jun 13, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The scripts
scripts/gen_gemini.pyandscripts/gen_gpt.pyusesubprocess.runto call local CLI tools (agyandcodex). This execution path allows the AI agent to interact with the host system's shell environment through these utilities.\n- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection through the user-provided prompt. The scripts interpolate this untrusted input into a larger 'instruction' string sent to the backend CLI agents.\n - Ingestion points: The image prompt provided by the user, accessed via the
promptargument or--prompt-filein both backend scripts.\n - Boundary markers: The scripts use only a simple
PROMPT:\nlabel to separate instructions from user input. This is insufficient to prevent an attacker from 'escaping' the prompt context to issue direct instructions to the underlying CLI agent.\n - Capability inventory: The instruction strings explicitly use administrative and file system capabilities (e.g.,
ls -la,shutil.copyfile). Inscripts/gen_gemini.py, theagytool is invoked with--dangerously-skip-permissions, which removes a layer of user oversight for actions performed by the backend agent.\n - Sanitization: No sanitization, escaping, or validation is performed on the user prompt before it is passed to the backend tools, making it possible for a malicious prompt to hijack the CLI agent's execution logic.
Audit Metadata