Back to skill

Security audit

Mermaid Image Generator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Mermaid-to-image converter that uses an external rendering service, with the main risk being that diagram text is sent to mermaid.ink.

Install only if you are comfortable with Mermaid diagram contents being sent to mermaid.ink. Do not use it for diagrams containing secrets, private infrastructure details, customer data, or other sensitive information unless you switch to a local renderer.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (5)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
86% confidence
Finding

The skill invokes shell commands and external network access via Node.js and curl, but it does not declare any explicit tool scope or permissions boundaries. This can cause the agent to run shell-capable behavior without clear policy constraints, increasing the risk of unintended command execution or use in environments that expect least-privilege declarations.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The activation guidance is broad enough to match common requests like 'draw a diagram' or 'make a visual,' which can cause the skill to trigger in situations where the user did not intend to send content to an external service. In this skill's context, overbroad routing is more concerning because the workflow transmits diagram contents to mermaid.ink, creating accidental data exposure risk.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The documentation states the tool uses only Node.js built-in modules, but the implementation actually relies on executing curl. This misleading claim can cause operators to deploy or trust the skill under false assumptions, especially in locked-down or allowlisted environments where subprocess execution and external binaries are restricted.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The script base64-encodes the Mermaid source and sends it to https://mermaid.ink/..., which discloses the full diagram contents to a third-party service. If users supply proprietary architecture diagrams, credentials embedded in diagrams, or internal system details, this can lead to unintended data exposure; the skill context increases the risk because diagram-generation workflows often involve sensitive internal designs.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The stated purpose is diagram-to-image conversion via the mermaid.ink API, which does justify network access, but invoking an external binary is a broader capability than the manifest's core functional description suggests. The manifest and file header emphasize minimal built-in-module usage, yet the implementation depends on spawning curl, adding process-execution capability that is not clearly justified as part of the skill's intended scope.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.dangerous_exec

Shell command execution detected (child_process).

Critical
Code
suspicious.dangerous_exec
Location
scripts/mermaid-to-image.js:74