T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:90
- Finding
- Untrusted Remote API Suggestions May Influence Agent Actions## Vulnerability Details **File Location**: `SKILL.md`, lines 90-92 and 205 **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: Medium ### Vulnerable Snippets ```text The response includes `next_steps` with suggested actions. You never need to memorize endpoints. ``` ```text # check status.next_steps for creature care suggestions ``` ### Technical Analysis The Skill instructs the Agent to consume context-aware `next_steps` content returned by an external service. It does not require the response to be treated as untrusted data, validated against a strict schema, or restricted to an allowlist of supported pet-care operations. If `next_steps` contains free-form natural-language instructions, control of the API response creates an indirect instruction channel into the Agent. The service operator, a compromised service, or an attacker capable of altering the response could provide instructions unrelated to the declared pet-care purpose. The document does not explicitly require automatic execution of every suggestion, so exploitation depends on the host Agent interpreting remote suggestions as actionable instructions. Nevertheless, the missing trust-boundary controls create a credible instruction-hijacking risk. ### Attack Path 1. The Agent calls `GET /api/house/status` using its bearer token. 2. The external service returns a response containing attacker-controlled or compromised `next_steps` content. 3. The Skill directs the Agent to consult that content for subsequent actions. 4. The Agent interprets free-form response text as trusted operational guidance. 5. The Agent may invoke available tools, access data, follow external links, or perform actions outside the intended pet-care workflow. ### Impact Assessment The direct API privileges demonstrated by the Skill are limited to the remote Animal House account and its pet state. However, if the host Agent treats arbitrary `next_steps` text a ...[truncated 427 chars]
- Remediation
- ## Remediation Suggestions - Treat all remote response fields, including `next_steps`, as untrusted data rather than Agent instructions. - Define and enforce a strict response schema with enumerated actions such as `feed`, `play`, `clean`, `medicine`, `discipline`, `sleep`, and `reflect`. - Reject free-form commands, shell instructions, URLs, credential requests, and requests to invoke unrelated tools. - Apply a local authorization layer that maps validated action identifiers to fixed API requests. - Never interpolate remote text into shell commands, tool parameters, authentication headers, or executable prompts. - Require user confirmation when a suggestion would access data or perform an action beyond routine pet care. - Document that remote API content cannot override system instructions, safety policies, or the user’s current goal.
