make-story-image
Warn
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/render_story.pyusessubprocess.runto invoke a headless Chrome or Chromium process for taking screenshots of rendered HTML frames. - Evidence: The
render_pngfunction executes the detectedchromebinary with flags such as--headless=new,--screenshot, and--user-data-dir. - [DYNAMIC_EXECUTION]: The skill dynamically generates HTML files at runtime by interpolating user-provided data from a JSON specification into a predefined template file (
templates/story.html). These generated files are then interpreted by a browser to produce final graphics. - Evidence: The
build_frame_htmlfunction performs string replacement of placeholders like{{TITLE}},{{BODY_BLOCK}}, and{{IMG_SRC}}using values parsed from the input specification. - [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it ingests untrusted data from a user-supplied JSON specification and uses it to construct rendering context that is processed by a browser engine.
- Ingestion points: Text fields such as
title,body, andkickerin the input JSON specification are parsed byscripts/render_story.py. - Boundary markers: The script implements basic input validation in
validate_spec, which checks for character limits and blocks specific patterns like URLs and click-action verbs to prevent unauthorized linking. - Capability inventory: The skill has the capability to write temporary files to disk, perform image manipulation using Pillow, and execute shell commands through the browser subprocess.
- Sanitization: While the script utilizes
html.escapeto sanitize most fields before they are placed in the HTML template, therichfunction allows for the re-insertion of HTML<span>tags for styling, which could be potentially misused if the initial validation is bypassed.
Audit Metadata