Back to skill

Security audit

仪表盘分析工具

Security checks for vulnerabilities and agentic risk

Overview

This skill appears to be a dashboard/API helper, but it asks for broad file and command powers that are not well scoped to that purpose.

Install only if you are comfortable granting this skill local file read/write and command execution authority. Prefer a version that removes exec/write, restricts file access to user-approved paths, defines exact allowed commands or avoids shell use, documents external API data sharing, and clarifies logging and retention.

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:13
Finding

Excessive Filesystem and Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 13–16; related capability declarations at lines 62, 342–344, and 357
Vulnerability Type: Excessive privileges and insufficiently constrained system access
Risk Level: Medium

Vulnerable Configuration

yaml
tools:
- read
- exec
- write

The skill additionally declares that it can perform CRUD operations, update system state, read and write files, and execute system commands. Its troubleshooting guidance also recommends running with administrator privileges when access is denied.

Technical Analysis

The skill is presented primarily as a wrapper for a dashboard analytics API. That purpose does not inherently require unrestricted local command execution or general filesystem write access. Nevertheless, the skill requests read, exec, and write capabilities without defining enforceable restrictions on:

  • Files and directories that may be accessed.
  • Commands and executable paths that may be invoked.
  • Arguments that may be supplied to commands.
  • Shell metacharacters or user-controlled command fragments.
  • Operations that may modify local system state.
  • Situations requiring explicit user approval.
  • The security properties of the claimed execution sandbox.

The document states that only allowlisted commands should be executed, but it does not provide or enforce such an allowlist. Documentation-level guidance alone does not prevent an agent from interpreting a crafted analytics request as authorization to perform unrelated file or command operations.

The recommendation to run with administrator privileges could further increase impact if followed. It is not itself an automatic privilege-escalation mechanism, but it encourages execution with privileges beyond those ordinarily required for an API analytics task.

Attack Path

  1. An attacker supplies a crafted dashboard, API, file-processing, or troubleshooting request containi ...[truncated 1714 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec and write from the declared tools unless a documented, essential workflow requires them.
  2. For API-only operations, use a dedicated HTTP/API tool rather than a general-purpose shell.
  3. Restrict filesystem reads and writes to explicit, user-approved paths under a dedicated workspace directory.
  4. Define and technically enforce a command allowlist containing exact executable paths and permitted arguments.
  5. Avoid invoking commands through a shell. Use structured process APIs with fixed argument arrays, and reject shell metacharacters or attacker-controlled command fragments.
  6. Require explicit user confirmation before file modification, deletion, command execution, or any system-state change.
  7. Run the skill under a dedicated, unprivileged account with minimal filesystem and network permissions.
  8. Remove the recommendation to run as administrator. Permission failures should be resolved by granting narrowly scoped access to the required resource.
  9. Document the sandbox boundary, permitted paths, allowed commands, network destinations, and denial behavior.
  10. Validate all API URLs, parameters, file paths, and formats against strict schemas before using them with privileged tools.
  11. Record security-relevant operations in an audit log while redacting API keys, tokens, and sensitive data.
  12. Add negative security tests covering path traversal, command injection, unauthorized file access, shell metacharacters, and privilege-boundary violations.
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 Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Vague Triggers

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The summary fields state 'Use when 用户说"Dashbo"', which is an incomplete and highly ambiguous trigger. A short fragment like this can easily collide with unrelated user text and does not provide enough specificity to safely determine invocation scope.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill declares exec capability even though its stated purpose is an API wrapper for dashboard analytics, creating unnecessary access to system command execution. Excess capability increases the blast radius of prompt injection, user confusion, or future implementation mistakes, especially when paired with external input handling and authentication flows.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documentation expands the skill from API analytics into broad file handling and system command execution, which are materially more dangerous capabilities than the declared use case requires. In the context of an agent skill, this can enable arbitrary local file access or command abuse if the model is induced to use those capabilities through crafted prompts or malicious external data.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description explicitly says the skill is '不适用于实时流数据处理'. However, later documentation lists '大数据集流式处理' and '实时监控' as supported capabilities and explains how they work, which is an active contradiction in the skill's stated intent. This is more than incomplete documentation because both positions are presented as definitive behavior claims.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The description says the skill should be used when there is a need for data analysis, report generation, statistical insights, or data visualization. These are very broad, common requests that overlap with everyday user intents and do not clearly distinguish when this specific skill should activate versus other analytics or reporting skills.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill describes external API usage and API-key-based authentication without a clear warning that user-provided data may be transmitted to third-party services. This can lead to unintended disclosure of sensitive business data, prompts, or identifiers, especially in analytics contexts where inputs may contain confidential datasets.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The description explicitly states '支持中文交互' and the document is written as if Chinese is the expected interaction mode, but it does not indicate that other languages are supported or that the user can opt in to Chinese. This can violate language/locale policy when a specific language is imposed without user choice or clear justification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill exposes command execution and file write capabilities without clearly warning users in the primary description, undermining informed consent for sensitive actions. In an agent environment, hidden or downplayed privileged capabilities increase the chance that users will provide data or approve use under false assumptions about what the skill can do.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

At L065 the usage guide says the tool '记录审计日志', and multiple later sections say it records logs for retries and system errors. But L136 states '工具不保留用户数据,所有数据在处理完成后将被销毁', which contradicts retaining operational or audit records derived from user activity. These statements cannot all be true as written.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.