data-viz-gen
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted JSON data to generate visualizations and perform file system writes. A malicious input could specify an arbitrary file path in the 'output' field, potentially leading to the overwriting of sensitive system or user configuration files.
- Ingestion points:
scripts/build_infographic.pyreads JSON configuration from stdin or a file path. - Boundary markers: No explicit boundary markers or instructions to ignore embedded commands are used during input parsing.
- Capability inventory: The script uses
open(output_path, 'w')andos.makedirs()to write files and create directories based on theoutputfield in the JSON configuration inscripts/build_infographic.py. - Sanitization: The script uses
html.escapeto sanitize many text fields but fails to sanitize thecolorfield in thebreakdowndata section, which can be controlled via the input JSON. - [DATA_EXFILTRATION]: The generated HTML output is vulnerable to Cross-Site Scripting (XSS) and CSS injection. The
colorproperty in the JSONbreakdowndata is directly interpolated into SVG attributes without escaping in the_svg_donut_chartfunction and with insufficient escaping in_svg_icon. An attacker could inject malicious scripts or CSS properties (such asbackground-image: url(...)) that trigger external network requests or execute code when a user views the generated file.
Audit Metadata