Back to skill

Security audit

Architecture Diagram

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Mermaid diagram helper, but users should know that remote image rendering sends diagram content to Kroki URLs.

Install only if you are comfortable using Kroki/mermaid.live for rendering. Do not include confidential hostnames, internal network layouts, secrets, account IDs, or proprietary architecture details unless you accept that the diagram source may be sent to or embedded in third-party URLs. Prefer Mermaid code output or a local renderer for sensitive diagrams, and choose output paths carefully because existing files may be overwritten.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/generate_diagram.py:31
Finding

Mermaid Diagram Content Is Disclosed to Third-Party Rendering Services

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The code generally aligns with the broad theme of Mermaid/Kroki diagram creation, and it does use the Kroki API to generate image files plus optionally save Mermaid code. However, the declared description overstates the behavior. The implementation does not generate custom system, cloud, neural, graph, flowchart, ER, network, or Docker/K8s diagrams from user prompts in a meaningful way; instead it chooses one of several fixed templates using simple keyword matching. Most notably, ER diagram support is not actually implemented, since ER-related keywords are redirected to the graph_theory template. Therefore the description is materially more capable than the supplied code, so this is a mismatch.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The README provides example phrases such as "diagram neural network" and "mermaid flowchart" as apparent activation inputs, but it does not specify whether these are the only triggers, what context they apply in, or when the skill should not activate. Because these phrases are short and generic, they could overlap with ordinary requests about diagrams rather than a clearly scoped skill invocation.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill includes code patterns that perform outbound network access to kroki.io and write files locally, but it declares no tool scope or permission boundaries. In agent environments, this can cause the runtime to grant or infer broader capabilities than users expect, increasing the chance of unintended data egress or file modification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs sending Mermaid source derived from user prompts to a third-party service, kroki.io, without a clear disclosure or consent step. If users include internal architecture details, hostnames, network layouts, or proprietary system design information, that data is transmitted externally and may be logged or retained outside the user's trust boundary.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script sends Mermaid diagram content to the external kroki.io service without an explicit warning or consent prompt. In an agent skill context, users may include internal architecture, network topology, or system design details, so silent off-host transmission can expose sensitive operational information to a third party.

Content

No source excerpt is available for this finding.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The invocation format uses a generic single-word trigger, "architecture", followed by free-form text. Without stronger scoping, exclusions, or negative examples, this may ambiguously match normal user requests discussing architecture rather than intentionally invoking the skill.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

The script writes downloaded content directly to the specified output path, which could overwrite an existing file. While it prints after saving, there is no pre-write warning, confirmation, or documented notice about this behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The default description value is Chinese ("通用系统架构"), and the script’s built-in templates and examples are predominantly Chinese-language. For a general-purpose skill, this effectively imposes a specific language/locale by default rather than offering a user choice or documenting a justified regional constraint.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
72% confidence
Finding

When --code is used, the script writes Mermaid source to a user-specified file path. This is a file-creation/write operation, and the code does not provide an explicit warning or overwrite notice beyond printing after the fact.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.