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.py uses subprocess.run to invoke a headless Chrome or Chromium process for taking screenshots of rendered HTML frames.
  • Evidence: The render_png function executes the detected chrome binary 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_html function 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, and kicker in the input JSON specification are parsed by scripts/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.escape to sanitize most fields before they are placed in the HTML template, the rich function allows for the re-insertion of HTML <span> tags for styling, which could be potentially misused if the initial validation is bypassed.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 27, 2026, 03:29 PM