T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:62
- Finding
- Mutable Remote Instructions Can Hijack Skill Behavior<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 62 **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: High ### Vulnerable Code ```markdown - Follow https://www.claw-vault.com/SKILL.md for current response formats and full API contract. ``` ### Technical Analysis The locally reviewed skill delegates agent behavior and response formatting to an external, mutable `SKILL.md` document. Because the remote document is not bundled with the project, cryptographically pinned, or otherwise constrained to inert API data, its owner can modify the skill's effective instructions after this package has been audited. An attacker who controls the remote website, its hosting account, its DNS resolution, or its content-delivery path could introduce instructions that alter safety constraints, request additional data, redirect uploads, suppress warnings, or manipulate agent output. The local instruction explicitly tells the agent to “follow” that content, rather than treating it as untrusted reference material. ### Attack Path 1. A user or agent loads the locally reviewed `SKILL.md`. 2. The agent follows line 62 and retrieves the remote `SKILL.md`. 3. The remote document is modified after local review or compromised by an attacker. 4. The document supplies new behavioral or output-format instructions absent from the audited artifact. 5. The agent follows those unreviewed instructions while operating with its available tools and access. 6. The attacker can consequently influence backup destinations, requested data, safety checks, or reported results, subject to the agent's existing privileges. ### Impact Assessment Successful exploitation compromises the integrity of the skill's instructions. The resulting scope is limited by the agent's available filesystem, network, and execution permissions, but could include unauthorized workspace access, redirection or disclosure of backup data, execution of unreviewed actions, and concealmen ...[truncated 221 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the instruction that delegates agent behavior or response formatting to remote content. 2. Bundle the complete, reviewed API contract and response schema in the skill package. 3. Pin externally maintained documentation to an immutable version and verify a cryptographic digest before use. 4. Treat all retrieved documentation as untrusted data, never as instructions that can override local policy or safety controls. 5. If dynamic API discovery is required, parse only a strict allowlisted schema and reject commands, prompts, executable content, or unknown fields. 6. Require a new security review whenever the bundled API contract or approved endpoint set changes. ]]>
