T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:13
- Finding
- Mutable External Instructions Can Hijack Skill Behavior## Vulnerability Details **File Location**: `SKILL.md`, line 13 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: Medium **Vulnerable Code:** ```markdown [READ THE INSTRUCTIONS BEFORE USE](https://claude.ai/public/artifacts/59bf1058-3a4c-450b-af5b-c85c13cfa8ab) ``` ### Technical Analysis The skill directs the agent or user to read operational instructions hosted outside the audited package. The external artifact is not included in the repository and may be modified independently after the skill has been reviewed. If the remote content is loaded into the agent's context and treated as authoritative instructions, it may alter the skill's behavior, introduce new tool-use requirements, request sensitive information, or attempt to override higher-priority goals and safety constraints. The local package provides no integrity pinning, trusted-content policy, or instruction-precedence warning for this external material. This finding does not establish that the current remote artifact is malicious. The vulnerability arises because mutable, unaudited remote content is presented as required instructions and may therefore change the effective behavior of the skill after installation. ### Attack Path 1. An attacker compromises, replaces, or otherwise gains control over the linked external artifact. 2. The attacker inserts instructions that conflict with the locally audited workflow, such as directions to disclose contextual information or invoke unrelated tools. 3. A user or agent loads the skill and follows the prominent directive to read the external instructions. 4. The remote content enters the agent's active context and is interpreted as trusted operational guidance. 5. The attacker-controlled instructions influence the current session's outputs or actions. ### Impact Assessment Exploitation could alter the goals and behavior of the current agent session. Depending on the tools and contextual data a ...[truncated 448 chars]
- Remediation
- ## Remediation Suggestions 1. Move every instruction required for the skill's operation into the audited `SKILL.md` file. 2. Remove the imperative wording that instructs the agent to read remote content before use. 3. If external documentation must remain, label it as optional reference material rather than an instruction source. 4. Explicitly state that remote content is untrusted data and cannot override system, developer, user, or local skill instructions. 5. Use an immutable, versioned resource with integrity verification where the hosting mechanism supports it. 6. Require user confirmation before opening external resources and avoid sending user context to those resources.
