openai-image-gen
Pass
Audited by Gen Agent Trust Hub on Mar 30, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill interacts with the official OpenAI API endpoint for image generation. Communication is performed over HTTPS using standard authorization headers.
- [SAFE]: Data handled from the API (image URLs and prompts) is properly sanitized. The
slugifyfunction ensures filenames are safe, and thewrite_galleryfunction useshtml_escapeto prevent Cross-Site Scripting (XSS) when generating the thumbnail gallery. - [SAFE]: The skill includes comprehensive unit tests (
scripts/test_gen.py) specifically designed to verify that HTML escaping and sanitization logic correctly mitigate injection risks. - [SAFE]: Credential management follows best practices by retrieving the
OPENAI_API_KEYfrom environment variables rather than hardcoding or storing it unsafely.
Audit Metadata