legal-risk-visualization
Pass
Audited by Gen Agent Trust Hub on Oct 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/render_mermaid.pyusessubprocess.runto invoke themmdc(Mermaid CLI) tool. This is used to convert Mermaid diagram code into PNG images. The script executes the command withshell=Falseand builds the argument list programmatically, minimizing risks associated with shell injection. - [EXTERNAL_DOWNLOADS]: The skill requires the installation of several external dependencies, including
matplotlibandnumpyfrom the Python Package Index (PyPI), and@mermaid-js/mermaid-clifrom the Node Package Manager (NPM) registry. These are well-established, trusted tools from official package repositories. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted legal analysis text from users to extract risk nodes and causal relationships (Step 1). While this creates an attack surface for indirect prompt injection, the agent serves as a structured parser, and the generated content is rendered into static images or Markdown reports, limiting the potential impact of adversarial content within the input data.
Audit Metadata