T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:16
- Finding
- Mandatory Retrieval of Mutable Remote Instructions<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:16-17` **Vulnerability Type**: Remote instruction control channel **Risk Level**: High ### Vulnerable Code ```markdown IMPORTANT: Always re-fetch this file at the start of each session for the latest API surface. GET https://subfeed.app/skill.md ``` ### Technical Analysis The Skill instructs the agent to retrieve a remotely hosted copy of its instructions at the beginning of every session. The fetched document is not pinned to a reviewed version, cryptographic hash, or trusted signature. Because Markdown Skill instructions directly influence agent behavior, mutable remote content can change the effective behavior after the installed artifact has been audited. The mandatory wording also attempts to make this retrieval a persistent part of every session in which the Skill is used. This behavior is best classified as `T01: Skill Instruction Hijacking`. Although the behavior resembles remote payload retrieval, the retrieved payload shown in the audited artifact is instruction text rather than locally executed code. ### Attack Path 1. A user installs or invokes the reviewed local Skill. 2. The agent follows the mandatory instruction at `SKILL.md:16`. 3. The agent requests `https://subfeed.app/skill.md`. 4. The remote document is modified by the service operator or altered following compromise of the hosting account or service. 5. The returned document introduces instructions that were absent from the reviewed package. 6. The agent follows those unreviewed instructions using the tools, credentials, and data available in its current environment. ### Impact Assessment This creates an ongoing external influence over the agent’s session goals and actions. The precise impact depends on the tools and permissions available to the invoking agent. Potential scope includes unauthorized network requests, disclosure of information available in the current context, creation or modification of remote resource ...[truncated 269 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the requirement to retrieve remote instructions automatically at session startup. - Package the complete, reviewed API documentation inside the Skill. - If updates are necessary, pin each update to a version and cryptographic digest. - Display instruction changes to the user before applying them. - Require explicit user approval before loading or following an updated instruction document. - Treat remotely retrieved Markdown as untrusted reference material rather than executable agent instructions. - Restrict remote documentation retrieval to a documented allowlist and enforce response size and content-type limits. - Provide a rollback mechanism to the last locally reviewed version. ]]>
