Back to skill

Security audit

Diagram

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a normal diagram helper, but its image-rendering instruction can download and run an unpinned third-party CLI without confirmation.

Install only if you are comfortable with the agent potentially running a package fetched from the npm registry when rendering images. Prefer pinning `@mermaid-js/mermaid-cli` to a reviewed version, installing it through a lockfile, and running the renderer with limited filesystem and environment access.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:43
Finding

Unpinned Third-Party Package Download and Execution

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Rp1

Medium
Category
MCP Rug Pull
Confidence
94% confidence
Finding

The skill instructs use of npx -y @mermaid-js/mermaid-cli without pinning a specific version, which causes execution of whatever package version is current at runtime. Because this is a CLI fetched from the registry and executed immediately, a compromised upstream release or unexpected breaking update could lead to arbitrary code execution on the user's machine or CI environment.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.