Back to skill

Security audit

图解

Security checks for vulnerabilities and agentic risk

Overview

This diagram skill is not clearly malicious, but it asks for broad read, write, and command execution authority without enough scope or consistency for a simple diagram generator.

Review this skill before installing in an environment that grants tools from metadata. It should be safe only if your agent keeps command execution and file read/write access under explicit user control, or if those tool permissions are removed or tightly scoped to user-selected diagram files and trusted renderer commands.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:19
Finding

Overprivileged Tool Declaration for a Diagram-Generation Skill

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The activation guidance is so broad that the skill could be invoked for generic project management, planning, tracking, or collaboration requests that do not actually require diagram generation. Over-broad routing increases the chance that the agent will hand unrelated user content to an exec-capable skill, expanding exposure of sensitive context and potentially enabling unnecessary tool use.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description explicitly states '支持中文交互,无需复杂配置即开即用', presenting Chinese interaction as a default behavior rather than an option selected by the user. The file does not clearly offer a language choice or explain a justified locale restriction, which can violate language/locale policy expectations.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is described throughout the manifest as generating Mermaid, PlantUML, or ASCII diagrams, but the output example shows a grading/scorecard JSON with fields like overall_grade, total_score, and security/style comments. This is not merely incomplete documentation; it actively describes a different kind of result than diagram generation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

One section classifies the skill as 'MD+execute()', implying command execution capability, while a later dependency section classifies it as pure 'MD' driven only by natural language. These are conflicting descriptions of what the skill actually does and materially affect user expectations about behavior and risk.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The FAQ states that no additional software is required because the skill is based on Mermaid, PlantUML, and ASCII, yet other sections mention execute() classification, command execution, API use, and environment configuration. That documentation creates a direct contradiction about operational requirements and execution model.

Content

No source excerpt is available for this finding.