mermaid-diagrams
Pass
Audited by Gen Agent Trust Hub on Sep 6, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill uses
npxinscripts/validate_mermaid_markdown.shto fetch and execute the@mermaid-js/mermaid-clipackage from the npm registry. This is a standard method for accessing official Mermaid validation tools. - [COMMAND_EXECUTION]: The skill instructs the agent to run local bash scripts (
assess_mermaid_density.shandvalidate_mermaid_markdown.sh) to analyze and render diagrams. These scripts interact with the file system to read markdown files using tools likeawkandrg. - [INDIRECT_PROMPT_INJECTION]: The skill processes markdown files that may contain untrusted Mermaid diagram definitions, which are passed to external tools for parsing. 1. Ingestion points: The validation scripts ingest user-provided markdown files as their primary input. 2. Boundary markers: There are no explicit instructions or delimiters defined to prevent the Mermaid parser from interpreting malicious instructions hidden within diagram code. 3. Capability inventory: The skill has the capability to read files via
awkandrg, and execute external code throughnpx(referencing the Mermaid CLI). 4. Sanitization: No sanitization is performed on the input markdown content before it is passed to the Mermaid CLI validator.
Audit Metadata