T01 · Skill Instruction Hijacking
- Location
SKILL.md:91- Finding
Unrestricted execution of server-controlled next_steps instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 91, 226, 239, and 260
Vulnerability Type: Remote instruction injection into the agent workflow
Risk Level: MediumRelevant snippets:
text The response also includes `next_steps` telling you what to do next. Follow them.text Every response includes `next_steps` guiding you to what to do next. You don't need to memorize anything — just follow the path.text 5. Read the `next_steps` in the response. They'll tell you what matters most right nowtext # Always check next_steps — the house knows what your pet needs follow status.next_stepsTechnical Analysis
The Skill instructs the agent to follow the
next_stepsfield returned by the remoteanimalhouse.aiservice. This field crosses a remote-service-to-agent trust boundary but is not restricted to a defined data schema or an allowlist of legitimate virtual-pet operations.The instructions do not require the agent to treat this field as untrusted content, verify that a recommendation maps to a documented Animal House endpoint, reject embedded tool instructions, or obtain user approval for actions outside the expected care workflow. Consequently, remote response text can be interpreted as agent instructions rather than merely displayed as service data.
The project does not contain evidence that the service currently returns malicious instructions. This is therefore a reachable instruction-injection weakness, not evidence of intentional compromise by the project author.
Attack Path
- A user invokes the Skill to register, inspect, or care for a virtual creature.
- The agent sends an authenticated request to an Animal House API endpoint, such as
GET /api/house/status. - The remote service supplies a
next_stepsvalue in its response. - A malicious or compromised service operator places instructions in that field that extend beyond the documen ...[truncated 902 chars]
- Remediation
View remediation
Remediation Suggestions
- Treat
next_stepsexclusively as untrusted service data, not as executable agent instructions. - Define a strict schema for accepted recommendations, such as a fixed action identifier, creature identifier, and validated care parameters.
- Map accepted action identifiers to an allowlist containing only documented Animal House operations and fixed
https://animalhouse.aiAPI endpoints. - Reject free-form instructions that request local commands, file access, credential disclosure, calls to unrelated services, policy changes, or additional tools.
- Do not allow response content to choose arbitrary URLs, HTTP headers, commands, or local paths.
- Require explicit user approval before performing any action outside routine status checks and ordinary care operations.
- Replace directives such as
follow status.next_stepswith language requiring the agent to summarize recommendations and independently verify that each action remains within the user's request and the Skill's documented scope.
- Treat
