imagegen
Pass
Audited by Gen Agent Trust Hub on Apr 12, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [SAFE]: The skill is well-structured and follows a least-privilege approach by defaulting to built-in tools and requiring explicit user consent before utilizing the local CLI fallback. It provides clear guidance on secure management of API keys via environment variables.\n- [COMMAND_EXECUTION]: The skill includes a local script,
scripts/image_gen.py, which is used for advanced image generation and editing tasks via the command line. This script is well-documented, avoids dangerous functions likeeval()orexec(), and performs thorough validation on user-provided arguments.\n- [EXTERNAL_DOWNLOADS]: The skill references standard Python dependencies includingopenaiandpillow. These are well-known, reputable libraries from established organizations and are used appropriately for interacting with the OpenAI API and performing image downscaling.\n- [PROMPT_INJECTION]: The static analysis identified prompt injection patterns inreferences/evals.yaml. However, these are strictly test cases used to evaluate the agent's robustness against injection attacks and do not represent malicious instructions for the agent to execute during normal operation.\n- [INDIRECT_PROMPT_INJECTION]: Thegenerate-batchfeature in the fallback CLI script represents a potential ingestion point for untrusted data if used with third-party JSONL files.\n - Ingestion points:
scripts/image_gen.pyprocesses prompts and configuration from JSONL files provided via the--inputflag.\n - Boundary markers: None present; prompts are treated as raw input for the image model.\n
- Capability inventory: The script can write to the local filesystem and make network requests to the OpenAI API.\n
- Sanitization: The script validates structured API parameters (size, quality, etc.) but does not sanitize the content of the prompt strings themselves, as they are intended to be processed by the image generation model.
Audit Metadata