T09 · Insecure Skill Coding Practices
- Location
genart.py:660- Finding
Untrusted SVG Content Is Automatically Passed to a Native Renderer
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a local generative-art tool with some under-documented SVG handling and resource-risk edges, but no evidence of deception, persistence, exfiltration, or privilege escalation.
Install only if you are comfortable running a local Python art generator that writes files and may call the system SVG renderer for PNGs. Avoid feeding it untrusted SVGs, avoid extreme size/count/layer arguments, and choose output paths carefully because it can overwrite files at paths the current user can write.
genart.py:660Untrusted SVG Content Is Automatically Passed to a Native Renderer
genart.py:384Unbounded Generation Parameters Permit Resource Exhaustion
The documented purpose does not fully disclose behavior: the skill reportedly reads and modifies input SVGs for glitch art, exposes undeclared modes, and invokes an external binary for rendering. This mismatch is dangerous because hidden file-processing and shell-adjacent behavior can surprise reviewers and users, increasing the risk of unsafe file access, command execution pathways, or abuse through crafted inputs.
The skill advertises code-capable behavior including file read, file write, and shell execution, but does not declare any explicit tool scope or permissions. This weakens containment and reviewability, making it easier for the skill to access files or invoke commands beyond what a user would reasonably expect from the manifest alone.
The glitch mode reads an arbitrary local file path supplied by the user and parses its contents as SVG, which expands the skill from art generation into local file access and transformation. In an agent context, this can be abused to read sensitive local files or probe file existence, and if the selected file is later written back or converted, it may also propagate untrusted content through downstream processors.
The manifest says the skill generates algorithmic visual art with SVG and PNG output, but does not disclose that PNG output depends on spawning an external executable. Executing a host binary is a stronger capability than plain image generation and is context-sensitive because it reaches beyond in-process rendering into system-level command execution.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
rsvg = "/usr/bin/rsvg-convert"
if os.path.exists(rsvg):
try:
subprocess.run([rsvg, svg_path_out, "-o", png_path],
check=True, capture_output=True, timeout=30)
files.append(png_path)
except (subprocess.CalledProcessError, subprocess.TimeoutExpired, OSError):