T01 · Skill Instruction Hijacking
- Location
SKILL.md:62- Finding
Untrusted book content is embedded into executable skill instructions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a coherent book-to-agent purpose, but it turns untrusted book text into persistent agent instructions and filesystem paths without enough safeguards.
Review this carefully before installing. Use it only with trusted books or in a sandbox, inspect every generated SKILL.md before adding it to a real skill library, replace book-derived directory names with safe slugs, and pin dependencies in a virtual environment. Do not let generated skills auto-install or auto-activate without human approval.
SKILL.md:62Untrusted book content is embedded into executable skill instructions
SKILL.md:281Path traversal through an unvalidated book-derived agent name
SKILL.md:374Unpinned third-party dependency installation
Referenced artifact was not completely inspected
output = sys.argv[2] if len(sys.argv) > 2 else 'SKILL.md'
The skill description and generated prompts are written as if the skill operates in Chinese by default, and later generated activation phrases and outputs are also hard-coded in Chinese. There is no indication that users can opt into another language or that the locale restriction is required for a region-specific purpose.
The activation phrase is a natural-language template ('请作为《{book_title}》专家帮助我...') that is broad enough to overlap with ordinary conversation and can trigger unintentionally. In multi-skill environments, ambiguous invocation increases the chance of accidental activation of a generated expert persona, leading to unintended behavior or unsafe delegation.
The documented activation method tells users to invoke the skill with a common conversational phrase, without any delimiter, namespace, or trigger constraints. That makes accidental invocation and cross-skill collisions more likely, especially because the generated agent names are based on arbitrary book-derived text.
The advertised example trigger is overly generic and encourages deployment with a phrase that could appear in normal user requests. This is risky because the skill generates new agents dynamically, so ambiguous examples normalize unsafe invocation patterns at scale.
The Windows example repeats the same broad natural-language activation guidance, reinforcing an unsafe invocation pattern across platforms. Repetition in examples increases the likelihood that users and downstream tool builders adopt ambiguous triggers unchanged.
The documentation states generated agents will not exceed the book's knowledge scope, but the implementation always adds generic capabilities such as '提供专业咨询和建议' and '制定行动计划' regardless of extracted source content. This creates a trust mismatch: users may rely on the generated agent as if it were strictly grounded in the uploaded book when it is actually granted broader advisory framing.
No suspicious patterns detected.