Back to skill

Security audit

上市策略工具

Security checks for vulnerabilities and agentic risk

Overview

This GTM planning skill is mostly a Markdown template, but it asks for command and file authority that does not fit its stated purpose.

Review before installing. The skill does not contain executable payloads or persistence, but only install it in a sandbox that denies command execution and broad file writes unless the publisher narrows the tool permissions and removes the unrelated coding/deployment triggers.

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

Excessive Tool Permissions for a Markdown-Only GTM Planning Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 6 and 14-17
Vulnerability Type: Excessive read, write, and command-execution permissions
Risk Level: Medium

Relevant Code:

yaml
allowed-tools: read exec

tools:
  - exec
  - read
  - write

Technical Analysis

The skill describes itself as a Markdown-based tool that generates go-to-market strategy documents through natural-language interaction. Its documented core functionality does not require arbitrary command execution or broad filesystem access.

Nevertheless, the configuration requests exec and read access through allowed-tools, while the separate tools section additionally requests write. Granting these capabilities violates the principle of least privilege:

  • read may expose files outside the information required to prepare a marketing plan.
  • write may allow modification of local files despite no demonstrated need for filesystem persistence.
  • exec may allow arbitrary processes or shell commands to run with the hosting agent's operating-system privileges.
  • The discrepancy between allowed-tools and tools creates ambiguous enforcement behavior. A platform that trusts the broader tools declaration may grant write access even though it is absent from allowed-tools.

The file contains no explicit malicious command or direct instruction to exploit these permissions. The risk arises because unnecessary high-impact capabilities are exposed to any instructions or untrusted content processed in the skill's execution context.

Attack Path

  1. A user supplies attacker-controlled product details, imported content, or other untrusted text while the skill is active.
  2. That content attempts to induce the agent to invoke one of the declared tools.
  3. If the agent or hosting platform does not strictly isolate untrusted data from instructions, the agent may use read to access unrelated local data, write to al ...[truncated 1188 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the skill because the documented GTM-planning workflow can be performed without operating-system tools.
  2. If tool use is genuinely required, declare only the minimum capability in one authoritative configuration field and eliminate the conflict between allowed-tools and tools.
  3. Replace broad filesystem permissions with access limited to an explicit workspace directory and approved output filename.
  4. Replace arbitrary command execution with narrowly scoped, parameterized operations that do not invoke a shell.
  5. Require explicit user confirmation before reading files, overwriting data, or executing commands.
  6. Treat product descriptions and imported marketing content strictly as untrusted data, not executable instructions.
  7. Run the skill in a sandbox with restricted filesystem access, no unnecessary credentials, no elevated operating-system privileges, and network access disabled unless specifically required.
  8. Add automated validation that rejects contradictory or undeclared tool permissions during skill installation.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest and trigger text describe a GTM strategy tool, but the same description repurposes it for code generation, debugging, testing, and deployment. This scope mismatch can cause the agent to invoke a business-planning skill in sensitive development contexts, increasing the chance of inappropriate tool use or unsafe execution paths.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger condition says to use the skill for code generation, programming assistance, debugging, testing, and deployment, which is far broader than GTM planning. Such overbroad triggers increase unintended invocation in high-impact engineering workflows where the skill's mismatched instructions and permissions could lead to unsafe actions or user confusion.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

A GTM strategy generator has no clear need for command execution or network diagnostics, yet the documentation authorizes exec usage and suggests running ping for connectivity testing. In this context, unnecessary command capability is dangerous because it normalizes shell access and may enable arbitrary local command execution unrelated to the skill's business function.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The top-level description uses broad invocation language and mixes GTM planning with developer-assistance scenarios without clear boundaries. Ambiguous routing criteria can cause accidental activation in unrelated contexts, making the skill more dangerous because it also advertises unnecessary execution-oriented capabilities.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description states '支持中文交互', and the skill content is written as if Chinese is the expected interaction mode, without offering opt-in or alternative language support. This can violate language-choice policy when a skill imposes a locale or language preference without explicit user selection.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation advertises generic CRUD, import/export, save, and conversion operations that do not correspond to a Markdown GTM-planning skill. Overstating capabilities can mislead the agent into attempting file or state-changing actions beyond the tool's legitimate purpose, which widens the operational attack surface.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill advertises write/modify/delete/save-style operations and exec usage, but does not provide a clear warning about possible system or data impact before those actions occur. In an agent setting, missing user-facing guardrails can lead to silent state changes or riskier tool execution than users expect from a simple Markdown planning skill.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The file claims no extra API key is required, but the security section discusses managing API keys via environment variables. This inconsistency can confuse operators about whether secrets are expected, leading to unnecessary secret provisioning or unsafe handling practices in an otherwise keyless skill.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.