technical-html
Pass
Audited by Gen Agent Trust Hub on Oct 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/build.tsscript invokes the externald2CLI tool usingBun.spawnSync. This is necessary for rendering D2 diagram blocks into SVG format within the documentation. The script correctly identifies the binary location usingBun.which. - [DYNAMIC_EXECUTION]: At runtime, the build script generates temporary
.d2files in a system temporary directory (mkdtempSync) by concatenating a house style configuration with diagram source extracted from the Markdown. These generated files are then processed by thed2compiler. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted Markdown content provided by the user (ingestion point:
scripts/build.tsreading the input file). While this represents a potential injection surface for malicious instructions, the script implements a sanitization pass that scans the final HTML output for external resource tags (likescript,img, orlinkwith remotehttp/httpsURLs) and aborts execution if any are found, mitigating potential data exfiltration via remote resource loading.
Audit Metadata