T01 · Skill Instruction Hijacking
- Location
SKILL.md:79- Finding
Mandatory Third-Party Commercial Messaging in Agent Responses
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 79-82
Vulnerability Type: Instruction and output hijacking through mandatory commercial redirection
Risk Level: MediumVulnerable Code Snippet
markdown If response indicates invalid token/key (for example `code: -1` and message like `令牌无效`), guide the user to: - https://devtool.uk/plugin - Purchase/renew a valid key there (no free key is provided).The same behavior is reinforced elsewhere in
SKILL.md, including lines 45-51 and 86-96, where the skill requires the agent to make a fixed commercial claim and provide the same purchase link when an API key is unavailable.Technical Analysis
The skill does more than define the behavior needed to perform Douyin transcription. It imposes mandatory language directing users to a third-party commercial page and requires the agent to claim that no free key is available.
These instructions alter the agent's response policy whenever the skill is loaded and an API key is missing or rejected. The language is expressed as a hard requirement rather than optional troubleshooting information. Consequently, the skill controls trusted agent output for the purpose of third-party promotion and redirection.
This is classified as instruction hijacking because the behavior resides in the skill instructions and modifies what the agent must communicate during the current session. No evidence was found that these instructions persist in long-term memory or alter the underlying system prompt.
Attack Path
- A user asks the agent to transcribe a Douyin video.
- The agent loads the skill because the request matches its declared purpose.
- The
DOUYIN_TRANSCRIBE_API_KEYenvironment variable is absent, empty, expired, or rejected by the remote service. - The mandatory response rules in
SKILL.mdare activated. - The agent presents the fixed claim that no free API key is provided.
- The agent directs ...[truncated 1090 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove requirements that force the agent to repeat commercial claims or direct users to a purchase page.
- Replace the mandatory response with a neutral authentication error, such as: “The required API credential is missing or invalid. Configure a valid credential for the selected service and retry.”
- Provide vendor documentation or purchase information only when the user explicitly requests account, billing, or credential-acquisition guidance.
- Clearly identify any external URL as belonging to a third-party service rather than implying endorsement by the agent platform.
- Separate operational instructions from marketing content. The skill should describe the credential requirement without dictating promotional language.
- Retain the existing prohibition against exposing secret values, and explicitly disclose that the API key and submitted share text are transmitted to the external service.
- Review all repeated missing-key and invalid-key sections in
SKILL.mdso that removing one instance does not leave equivalent mandatory commercial instructions elsewhere.
