generate-image
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes user-provided prompts and images which are sent to external AI models. This creates a surface for indirect prompt injection, although the risk is limited to the resulting image output.
- Ingestion points:
promptandinput_imageparameters inscripts/generate_image.py. - Boundary markers: None; inputs are passed directly to the API request body.
- Capability inventory: Performs network requests and file system operations (read/write) in
scripts/generate_image.py. - Sanitization: No sanitization or filtering is applied to the input strings or image buffers.
- [DATA_EXFILTRATION]: The skill communicates with the well-known AI service OpenRouter to perform its core functions.
- Evidence:
requests.postcalls tohttps://openrouter.ai/api/v1/chat/completionsinscripts/generate_image.py. - [DATA_EXFILTRATION]: The skill accesses local
.envfiles to retrieve API credentials, which is a standard method for secret management. - Evidence: The
check_env_filefunction inscripts/generate_image.pyidentifies and readsOPENROUTER_API_KEYfrom environment files.
Audit Metadata