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_KEY from 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/tmp or a local ./tmp folder). 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_escape to prevent potential injection issues in the generated HTML gallery and slugify to 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
Risk Level
SAFE
Analyzed
Mar 30, 2026, 01:08 AM
Security Audit — agent-trust-hub — openai-image-gen