diagram
Pass
Audited by Gen Agent Trust Hub on Aug 25, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill documentation (specifically
evals.md) contains known prompt injection strings such as 'ignore previous instructions'. These strings are explicitly part of security test scenarios designed to verify that the agent treats such text as inert data rather than instructions when encountered in diagram labels. The core instructions inSKILL.mdandreferences/import-mermaid.mdmandate that labels are treated as untrusted data. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted Mermaid syntax provided by users. It mitigates potential injection attacks by using a local Python-based extractor (
mermaid_extract.py) to parse content into an Intermediate Representation (IR), which strips metadata and treats all text labels as inert strings. A post-generation script (self_check.py) further validates that the output does not contain scripts or unsafe HTML attributes. - Ingestion points: External Mermaid source files (.mmd, .mermaid) and Markdown code blocks.
- Boundary markers: The system uses a 'fidelity ledger' to track content transformation and explicitly defines node labels as inert data in its instructions.
- Capability inventory: The skill uses
Bashto execute local Python scripts andWriteto produce self-contained HTML files. - Sanitization: The
mermaid_extract.pyscript includes aclean_labelfunction that flattens markup and unescapes HTML to prevent the injection of malicious formatting or instructions into the diagram. - [COMMAND_EXECUTION]: The workflow relies on executing local Python scripts (
mermaid_extract.py,self_check.py, andverify_geometry.py) included within the skill package. These scripts utilize standard libraries and are used for parsing and safety verification of the output diagrams. They do not perform network operations or execute arbitrary user-provided code.
Audit Metadata