T01 · Skill Instruction Hijacking
- Location
SKILL.md:159- Finding
Untrusted API Responses Can Hijack Agent Instructions
- Content
View full analysis
**`agentHint`** — Every API response includes an `agentHint` field with step-by-step instructions for what to do next. Always read and follow the `agentHint`. ``` ### Technical Analysis The skill explicitly instructs the agent to follow behavioral directions contained in the remote API's `agentHint` field. API response fields must be treated as untrusted data rather than authoritative instructions. No validation, action allowlist, or restriction confines `agentHint` to the documented mint workflow. Consequently, control of `www.bobsmint.xyz`, its API infrastructure, or an upstream component would allow an attacker to change agent behavior after the skill has been reviewed. This is an instruction/data boundary violation: remote data is elevated to the same authority as the skill's static instructions. ### Attack Path 1. The agent sends a request to a documented BOB API endpoint. 2. An attacker controls or compromises the API, hosting account, deployment pipeline, or another component capable of changing its response. 3. The API returns a legitimate-looking response containing a malicious `agentHint`. 4. The skill requires the agent to “Always read and follow” that value. 5. The agent follows the injected directions, potentially disclosing sensitive information, invoking additional tools, contacting attacker-controlled endpoints, or deviating from the approved mint workflow. ### Impact Assessment Successful exploitation can alter the active agent workflow and influence any tools or data available to the agent session. Because the intended workflow handles a wallet private key and transaction signing, instruction hijacking could target highly sensitive wallet material or induce unauthorized blockchain operations. The exact scope depends on the tools, credentials, f ...[truncated 69 chars]- Remediation
View remediation
