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.html fetches manifest.json and 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 and innerHTML / insertAdjacentHTML to render the SVG content directly into the document.
  • Sanitization: The comparator includes an escapeHtml function 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 at 127.0.0.1.
  • [COMMAND_EXECUTION]: The skill workflow involves executing a persistent local HTTP server.
  • Evidence: SKILL.md contains the command nohup 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 of nohup ensures 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
Risk Level
SAFE
Analyzed
Nov 20, 2026, 04:22 PM