generate-image
Pass
Audited by Gen Agent Trust Hub on Sep 24, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The script
scripts/generate_image.pyperforms network requests toopenrouter.aito retrieve model metadata and submit image generation tasks. It also contains functionality to download images from URLs provided in the API response, with security measures such as HTTPS enforcement and a maximum download size limit of 64MB. - [DATA_EXFILTRATION]: The skill reads local images specified by the user, encodes them as base64, and transmits them along with the user's prompt to the OpenRouter API endpoint. This is the core functional behavior of the skill for image-to-image and editing tasks but involves sending local data to an external provider.
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted user prompts and external reference images, creating a potential surface for indirect prompt injection.
- Ingestion points: The
promptargument and image reference paths/URLs processed inscripts/generate_image.py. - Boundary markers: No specific delimiters or "ignore" instructions are used when constructing the prompt for the downstream API.
- Capability inventory: The script has the ability to read local files (references), write files to the local system (generated images), and perform network operations via
urllib. - Sanitization: The script uses
json.dumpsfor safe payload construction and performs path checks for output files. - [COMMAND_EXECUTION]: The skill documentation provides examples for executing the bundled Python script, which interacts with the file system and network to fulfill its purpose.
Audit Metadata