Back to skill

Security audit

上市策略

Security checks for vulnerabilities and agentic risk

Overview

This GTM planning skill is mostly a Markdown strategy guide, but it asks for broad file and command authority that is not clearly needed or well scoped.

Review before installing. Use this only in a sandboxed agent environment with approval prompts for file reads, file writes, API calls, and command execution. Avoid giving it credentials or sensitive business documents unless you can restrict what it may access and where it may send data.

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

Excessive Tool Permissions for a Strategy-Generation Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 11–14
Vulnerability Type: T05: Unauthorized Access and Privilege Escalation
Risk Level: Medium

Vulnerable Code

yaml
tools:
- read
- exec
- write

Technical Analysis

The skill declares unrestricted file-reading, file-writing, and command-execution capabilities even though its primary function is to generate go-to-market strategies through language-model reasoning. The document later advertises generic file processing, API integration, command execution, and information retrieval, but it does not establish a concrete operational requirement for privileged system access.

This configuration violates the principle of least privilege. In an Agent platform that grants the declared tools without strict path, command, and network restrictions, untrusted task content or prompt injection embedded in user-supplied market data could cause the Agent to invoke capabilities unrelated to go-to-market analysis.

No explicitly malicious command, credential-access instruction, persistence mechanism, remote payload, or data-exfiltration routine was found. The vulnerability arises from excessive capability exposure rather than a hardcoded malicious payload.

Attack Path

  1. A user or automated workflow loads the skill, making the declared read, write, and exec tools available to the Agent.
  2. The workflow supplies attacker-controlled input as a product description, market document, customer dataset, or other GTM material.
  3. The input contains instructions directing the Agent to perform an unrelated local action, such as reading a sensitive file, modifying a workspace file, or executing a system command.
  4. Because these tools are declared by the skill despite not being required for strategy generation, the Agent may treat the requested operation as authorized.
  5. If the hosting platform lacks independent sandboxing and approval controls, the oper ...[truncated 801 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the default tool declaration because the documented GTM-planning workflow can operate using language-model reasoning alone.
  2. If file input is necessary, replace unrestricted reading with a read-only interface limited to explicitly selected files inside a dedicated workspace.
  3. If report export is required, permit writes only to a designated output directory using fixed filenames or validated relative paths. Reject absolute paths and path traversal sequences.
  4. Do not grant general command execution. Implement any indispensable operation as a narrowly scoped, parameterized tool with a fixed executable and strict argument validation.
  5. Require explicit user approval before reading files, writing output, invoking external services, or executing processes.
  6. Isolate the Agent in a sandbox with minimal filesystem access, no inherited secrets, restricted environment variables, disabled outbound networking by default, and resource limits.
  7. Treat all user-provided documents and market data as untrusted content. Ensure instructions embedded in those inputs cannot authorize tool use or override system-level policy.
  8. Add automated policy tests that fail packaging or publication when a reasoning-only skill declares filesystem or process-execution permissions.
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 (8)

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The invocation language is overly broad and overlaps with generic productivity and automation requests, making it easier for the skill to be triggered outside its intended GTM scope. In agent systems, overly broad triggers are dangerous because they can capture unrelated user tasks and then apply unnecessarily powerful tools like read/write/exec.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The description explicitly says the skill is 'not suitable for tasks requiring human creative judgment,' yet the rest of the document defines the skill as producing ICPs, positioning statements, channel choices, pricing, and GTM plans. Those outputs are strategic and creative in nature, so the documentation contradicts the actual intended behavior described elsewhere in the file.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The repeated 'core function' text describes generic automation behavior rather than a tightly scoped GTM function, increasing the chance of accidental or overly permissive invocation. Because the skill also advertises impactful capabilities elsewhere, vague scope raises the likelihood of misuse and tool overreach.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill declares file writing, external API use, and command execution without prominently warning users that these actions can affect the local system or transmit data externally. In a tool-enabled agent, lack of explicit disclosure and confirmation is dangerous because users may invoke a seemingly harmless strategy skill without understanding its operational side effects.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

Broad read/write capabilities are unrelated to core GTM planning and create unnecessary access to local data and file modification surfaces. In an agent environment, this increases the risk of sensitive file disclosure, prompt-context contamination, or unauthorized overwrites if the skill is invoked too broadly.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

External API integration is declared without a GTM-specific justification or clear boundaries, which creates an unnecessary outbound data path. This can enable data exfiltration, unintended transmission of sensitive business inputs, or misuse of configured credentials in environments where the skill has access to secrets.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill is for GTM strategy generation, yet it advertises command execution capability with no clear functional necessity. Unneeded exec permissions expand the attack surface significantly because prompt injection or misuse could turn a planning skill into one that runs host commands.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

Line L065 classifies the skill as 'MD+EXEC', implying executable-command capability, but L357-L358 describe it as 'MD(纯Markdown指令,通过自然语言驱动Agent完成操作)'. These statements actively conflict about whether the skill executes commands or is documentation-only.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.