generate-image
Pass
Audited by Gen Agent Trust Hub on Oct 31, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill represents a surface for indirect prompt injection as it ingests untrusted data from external URLs via the
-i/--inputparameter and writes model-generated binary data to the local filesystem. - Ingestion points: Reference images can be fetched from arbitrary HTTP(S) URLs provided by the user or an external source (e.g., in
scripts/generate_image.pyviaurllib.request). - Boundary markers: The skill uses structured JSON payloads (
json.dumps) to communicate with the API, preventing accidental command injection into the request body. - Capability inventory: The skill possesses network-read (fetching URLs), network-write (OpenRouter API), and file-system-write (saving generated images) capabilities.
- Sanitization: The script performs base64 encoding on local files and validates that remote URLs used for fetches are HTTPS and do not exceed 64MB, providing basic resource protection.
- [CREDENTIALS_UNSAFE]: The skill implements a robust secret management strategy. The
find_api_keyfunction correctly prioritizes environment variables and CLI arguments over local.envfiles, and it explicitly instructions users to ignore.envfiles in version control. No hardcoded keys are present. - [EXTERNAL_DOWNLOADS]: The skill communicates with
openrouter.ai, which is recognized as a well-known service for LLM and image model aggregation. These operations are essential to the skill's primary function and are documented neutrally.
Audit Metadata