diagramming-code
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes the
trailmarkcommand-line tool and a bundled Python script (scripts/diagram.py) viauv runto process source code and output diagram syntax.\n- [EXTERNAL_DOWNLOADS]: The skill installs and uses thetrailmarkpackage as its primary analysis engine. This is a recognized tool from the skill author (trailofbits).\n- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted source code to generate diagrams, creating an attack surface for indirect prompt injection. This risk is mitigated through documented practices:\n - Ingestion points: Source code from the user-specified
{targetDir}(as seen inSKILL.md).\n - Boundary markers: The agent is instructed in
SKILL.mdto wrap all generated diagrams in```mermaidcode fences.\n - Capability inventory: The skill performs file analysis and shell execution via
uv run.\n - Sanitization: The
references/mermaid-syntax.mdfile specifies mandatory sanitization of node IDs and label escaping to prevent malformed or malicious output.
Audit Metadata