exploring-designs-with-agents
Pass
Audited by Gen Agent Trust Hub on Nov 20, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The local comparator application is vulnerable to indirect prompt injection through the inlining of unsanitized SVG data.
- Ingestion points: The script
assets/comparator.htmlfetchesmanifest.jsonand SVG files (-iso.svg,-logo.svg,-mono.svg,-bg.svg) from agent-controlled subdirectories. - Boundary markers: The system expects a specific directory structure and JSON schema but lacks delimiters or validation to prevent malicious code within the SVG files themselves.
- Capability inventory: The application uses
fetch()to retrieve local files andinnerHTML/insertAdjacentHTMLto render the SVG content directly into the document. - Sanitization: The comparator includes an
escapeHtmlfunction for metadata (agent names, IDs, concepts), but the raw content of the SVG files is rendered without sanitization. An agent providing a specially crafted SVG with embedded scripts (e.g.,<svg onload="...">) could execute code in the user's browser context at127.0.0.1. - [COMMAND_EXECUTION]: The skill workflow involves executing a persistent local HTTP server.
- Evidence:
SKILL.mdcontains the commandnohup python3 -m http.server <port> --bind 127.0.0.1 --directory <work-dir> >/tmp/design-comparator.log 2>&1 &. - Context: While the server is restricted to the loopback interface (
127.0.0.1), the use ofnohupensures the process persists after the AI session ends. This is a standard requirement for the tool's functionality but increases the local attack surface if the workspace directory contains sensitive files.
Audit Metadata