T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:26
- Finding
- Mutable Remote Specification Is Treated as Authoritative Agent Instruction<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 26–31 **Vulnerability Type**: Remote instruction trust and post-review instruction mutability **Risk Level**: Medium ### Vulnerable Code ```markdown ## Canonical Reference The live, always-current specification is: ``` https://hup.social/miniapp-skill.md ``` Fetch it before building — it is the source of truth for the SDK surface and wallet policy. ``` ### Technical Analysis The Skill explicitly instructs the Agent to retrieve a mutable remote document before performing its task and declares that document to be the authoritative source of truth. Because the remote document is not included in the audited package and is not pinned to a version or cryptographic digest, its effective instructions can change after the Skill has been reviewed. This creates an instruction trust boundary that is controlled by the operator of `hup.social` or by anyone who compromises the hosting infrastructure. A modified document could introduce instructions unrelated to the declared mini-app development purpose, request unsafe wallet behavior, redirect the Agent to additional untrusted resources, or attempt to override the Agent's existing goals and safety constraints. The audited repository does not contain evidence that the current remote document is malicious. The vulnerability is the unconditional delegation of authority to unaudited, mutable remote instructions. ### Attack Path 1. An attacker compromises the server, deployment pipeline, DNS resolution, or account responsible for `https://hup.social/miniapp-skill.md`. 2. The attacker modifies the remote specification to include hostile Agent instructions. 3. A user invokes the installed Skill for a Hup mini-app task. 4. Following `SKILL.md`, the Agent fetches the remote document before building. 5. The Agent treats the attacker-controlled document as the source of truth. 6. The injected instructions influence generated code or subsequent Agent actio ...[truncated 677 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Make the bundled `references/miniapp-guide.md` snapshot the authoritative specification for audited Skill behavior. 2. If remote updates are required, reference an immutable versioned URL and verify the downloaded document against a pinned cryptographic digest. 3. Treat remote documentation as untrusted reference material rather than executable or authoritative Agent instruction. 4. Explicitly state that remote content must not override system instructions, user requirements, safety controls, or the Skill's reviewed scope. 5. Compare remote updates against the bundled version and require user approval before applying material behavioral changes. 6. Re-audit and release a new Skill version whenever the authoritative SDK or wallet policy changes. ]]>
