openai-image-gen-hardened
Pass
Audited by Gen Agent Trust Hub on Apr 21, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PROMPT_INJECTION]: The
scripts/gen.pyscript is vulnerable to indirect prompt injection via a Cross-Site Scripting (XSS) vulnerability. User-controlled prompts are interpolated directly into the<figcaption>tags of the generatedindex.htmlgallery without any sanitization.- Ingestion points:
args.promptargument inscripts/gen.py - Boundary markers: None present in the
write_galleryHTML template - Capability inventory: File-write (
index.html) and network-read (urllib.request) - Sanitization: No HTML escaping or sanitization is applied to the prompt string before output.
- Ingestion points:
- [PROMPT_INJECTION]: The skill uses
SKILL.mdmetadata and a separateSAFETY.mdfile to make self-referential claims about its own safety ('Armored by Faberlens', 'Verdict: PASS'). This is a deceptive pattern intended to influence the safety evaluation of the agent or analyzer (Category 8e). - [COMMAND_EXECUTION]: Executes the local Python script
scripts/gen.pyto orchestrate the image generation and gallery creation workflow. - [EXTERNAL_DOWNLOADS]: Fetches generated image content from OpenAI's official API endpoints using the
urllib.request.urlretrievemethod to save them to the local filesystem.
Audit Metadata