scibox-diagram
Pass
Audited by Gen Agent Trust Hub on Aug 18, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/export_figure.pyscript executes thedrawiocommand-line utility viasubprocess.runto convert diagram files into PNG or PDF formats. The implementation uses a list of arguments, which is the recommended method to prevent shell-based command injection.- [DATA_EXPOSURE]: Thescripts/preview_html.pyutility launches a temporary local web server using Python'shttp.servermodule to allow users to preview diagrams in their browser. The server is restricted to the local loopback interface (127.0.0.1), ensuring the content is not exposed to the network.- [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied research data to populate diagram templates. The documentation inreferences/authoring.mdexplicitly instructs the agent to usehtml.escapefor user-provided text, which demonstrates a defensive approach against content-based structural injection in the generated XML files.
Audit Metadata