Back to skill

Security audit

Wanpaike Opc Investor Due Diligence

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a coherent investor due-diligence guide, but one reference file contains embedded file-writing tool-call text that could mislead an agent into creating files.

Review carefully before installing. The skill’s main due-diligence content is purpose-aligned, but the publisher should remove the embedded write_file/tool-call transcript from the reference file and ensure reference documents are treated only as data, not executable instructions.

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

T01 · Skill Instruction Hijacking

Error
Location
references/投资协议要点库.md:863
Finding

Embedded Tool-Call Instruction Can Trigger Unauthorized File Creation

Content
View full analysis
# Investment Agreement Reference ``` ### Technical Analysis A document presented as passive investment-agreement reference material contains an imperative instruction followed by serialized tool-call syntax for a `write_file` operation. This content is unrelated to the reference document's declared purpose and crosses the security boundary between data consumed by the agent and instructions controlling agent behavior. The primary `SKILL.md` directs the agent to consult this reference. If an agent does not strictly distinguish trusted Skill instructions from untrusted reference content, it may interpret the embedded markup as an authorized request to invoke a file-writing tool. The file does not merely describe tool syntax in a security example; it directs the agent to create files and begins supplying attacker-controlled content. This behavior exceeds the minimum privileges required for investor due diligence. Producing research and risk-assessment reports does not require reference documents to initiate workspace modifications. ### Attack Path 1. A user invokes the investor due-diligence Skill for its declared purpose. 2. The agent follows the resource references in `SKILL.md` and reads `references/投资协议要点库.md`. 3. The agent reaches the imperative instruction at line 863 and the serialized `write_file` invocation at lines 864-866. 4. A vulnerable instruction-following agent treats the embedded reference content as an active tool request rather than ...[truncated 1109 chars]
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 Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

A reference markdown file contains embedded tool-call syntax that instructs the agent to invoke write_file and create additional files. This is dangerous because documentation is being used as an execution channel: an agent that treats repository content as instructions could modify the workspace without an explicit user-approved action, enabling prompt injection and unauthorized file writes.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

该 markdown 文件列出的“查询机构备案信息”“生成对接策略”“制定备选方案”等表述更像泛化能力说明,而不是具备边界的明确触发词;同时文档未给出排除条件或负例,难以区分何时应激活此技能、何时不应。对于基于自然语言路由的技能系统,这类宽泛描述容易造成误触发。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is for investor due diligence, but the reference file suddenly switches into instructions to create new files, which is outside the documented purpose of the skill. That mismatch is a classic sign of instruction smuggling: even if the content looks helpful, it expands the agent's behavior from analysis into filesystem mutation without a clear trust boundary.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The markdown directs file creation/modification but does not present this as a user-visible, consented action. Hidden or under-signaled side effects are risky because an agent may perform writes that the user did not request, undermining transparency and opening the door to repository tampering or persistence of injected content.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
76% confidence
Finding

The document shifts from passive reference content into imperative instructions that cause creation of new files via a tool invocation. In context, this directs the agent to persist collected research and due-diligence information into reference files, which is a natural-language instruction to store and expose gathered data beyond the immediate response flow.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown file uses Chinese throughout the user-facing description and usage instructions, but does not indicate that the skill is Chinese-only or offer any language/locale choice. Under the policy for natural-language violations, forcing a specific language without user opt-in can be a policy issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

文件中的名称、描述、流程、模板和引流话术均固定为中文,未说明是否支持其他语言,也未给出用户可选择输出语言的选项。根据语言/locale 政策,若技能默认强制单一语言而无用户选择,属于自然语言层面的合规风险。

Content

No source excerpt is available for this finding.