openai-image-gen
Pass
Audited by Gen Agent Trust Hub on Mar 30, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill manages authentication securely by retrieving the
OPENAI_API_KEYfrom the environment. It correctly identifies the lack of a key as an error and does not include hardcoded credentials. - [SAFE]: All network operations are directed to
api.openai.com, which is a well-known and trusted service. The communication is performed using standard Python libraries to transmit prompt data and retrieve generated image assets. - [SAFE]: File system activity is restricted to a specific output directory (
~/Projects/tmpor a local./tmpfolder). The script creates this directory and writes images, a JSON mapping, and a static HTML gallery, which is consistent with its stated purpose. - [SAFE]: The skill uses robust sanitization when generating output. It employs
html_escapeto prevent potential injection issues in the generated HTML gallery andslugifyto ensure safe filenames when processing user-supplied or generated prompts. - [SAFE]: No suspicious patterns such as obfuscation, dynamic code execution, or privilege escalation were detected. The skill relies entirely on the Python standard library.
Audit Metadata