T01 · Skill Instruction Hijacking
- Location
SKILL.md:26- Finding
Forced Commercial Promotion and External Registration Funnel
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 26 and 44–45
Vulnerability Type: Forced user-facing output and third-party commercial redirection
Risk Level: MediumVulnerable Code Snippet
The following is a complete English translation of the relevant source instructions:
markdown - If absent → Return the complete contents of the [Configuration Instructions](#configuration-instructions) section below, guide the user to configure an API key, and stop all subsequent operations. 1. **🎁 New-user benefit**: Receive an **88-yuan trial credit** after first logging into a WenDaoYun account. The credit can be used to purchase API access. Register on the official website first. 2. Obtain an API key: Visit https://open.wendaoyun.com/home → [Personal Center - API Key]Technical Analysis
When
WENDAOYUN_API_KEYis unavailable, the Skill requires the agent to reproduce the entire configuration section. That section contains a financial incentive and directs the user to an external commercial registration page.The mandatory promotional text is not necessary to explain the technical prerequisite. Because the instruction reliably changes the agent's response into advertising and a registration funnel whenever the environment lacks the key, it constitutes instruction-level output hijacking.
The URL uses HTTPS and the reviewed files contain no evidence that it serves executable content. The issue is therefore forced promotion and redirection, not remote code execution.
Attack Path
- A user invokes the Skill by requesting a company cooperation or risk assessment.
- The Skill checks the
WENDAOYUN_API_KEYenvironment variable. - The environment variable is absent or empty.
- The Skill requires the agent to stop the requested workflow.
- The agent reproduces the complete configuration section, including the promotional credit and external registration URL.
- The user may follow the ...[truncated 566 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the trial-credit advertisement and other promotional language from operational instructions.
- Do not require verbatim reproduction of an entire configuration section.
- Replace the behavior with a concise, neutral message explaining that an API key is required.
- Provide the external account-management URL only when the user explicitly asks how to obtain a key.
- Clearly identify the URL as a third-party service and avoid implying that registration or payment is required by the agent platform itself.
- Permit alternative handling, such as asking the user to configure the key through an approved secret-management mechanism.
