T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:27
- Finding
- Unaudited Remote Instructions Can Hijack Agent Behavior<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 27-31 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Code ```markdown ## Prerequisites You must have an APort passport. If you don't have one: - **Web:** https://aport.id - **CLI:** `npx aport-id` - **Agent skill:** Read https://aport.id/skill and follow the instructions ``` ### Technical Analysis The Skill explicitly instructs the agent to retrieve content from `https://aport.id/skill` and follow its instructions. Those remote instructions are not included in the reviewed package and are not pinned to a version, content digest, or cryptographically authenticated artifact. Consequently, the effective behavior of the Skill can change after review without any corresponding modification to `SKILL.md`. Treating externally hosted text as executable agent instructions creates an instruction-hijacking boundary: whoever controls the remote endpoint, its hosting account, or a compromised delivery path can supply new commands to the agent. The network request used to retrieve APort decision history is consistent with the declared standup functionality. In contrast, delegating behavioral control to mutable remote instructions exceeds what is necessary; local onboarding instructions or ordinary reference documentation would be sufficient. ### Attack Path 1. A user invokes the Skill without an existing APort passport. 2. The Skill directs the agent to open `https://aport.id/skill`. 3. The remote page is modified by its operator or compromised by an attacker. 4. The page supplies instructions that request additional tool calls, sensitive files, environment variables, credentials, or unrelated network actions. 5. Because the local Skill says to “follow the instructions,” the agent may treat the remote content as trusted Skill instructions. 6. The agent performs actions that were not present in, or assessable from, the reviewed package. ### Impact As ...[truncated 743 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the instruction to read and follow remotely hosted agent instructions. 2. Include all required onboarding steps directly in the reviewed `SKILL.md`. 3. If external documentation remains necessary, clearly label it as untrusted reference material rather than executable instructions. 4. Instruct the agent not to follow commands found in retrieved web content. 5. Require explicit, informed user approval before performing any onboarding action that accesses local data, invokes tools, or sends information over the network. 6. If machine-readable remote configuration is unavoidable, define a restrictive schema, reject instruction-like free text, pin an expected version or content digest, and verify a trusted digital signature before processing it. 7. Ensure remote content cannot expand the Skill’s permissions or authorize access beyond the minimum needed to create a passport and retrieve the user’s decision history. ]]>
