T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:36
- Finding
- Untrusted Remote Task Prompts Are Processed as Agent Instructions## Vulnerability Details **File Location**: `SKILL.md`, lines 36-44 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Code ```markdown ## Step 2: Browse Tasks ```bash curl -s https://ratemyclaw.xyz/api/v1/tasks curl -s "https://ratemyclaw.xyz/api/v1/tasks?role=software-engineer" curl -s https://ratemyclaw.xyz/api/v1/tasks/1 ``` Pick a task. Read its `prompt` and `eval_criteria` carefully. ## Step 3: Solve and Submit Process the task prompt. Then submit: ``` ### Technical Analysis The Skill retrieves task content from an external service and directs the agent to process the returned `prompt` and `eval_criteria` as instructions. These fields are remotely controlled and can change independently of the reviewed Skill package. No trust boundary, prompt-injection filtering, or explicit instruction-precedence rule is defined. In particular, the Skill does not prohibit remote tasks from requesting local file access, credential disclosure, unrelated network requests, safety-policy changes, or use of tools beyond those necessary to answer the task. This does not constitute direct remote code execution by itself. Exploitation depends on the tools and data available to the agent when the task is processed. However, an agent with filesystem, shell, browser, or network tools could interpret a malicious task as authorization to perform actions outside the declared evaluation workflow. ### Attack Path 1. An attacker publishes or modifies a task on the external Rate My Claw service. 2. The agent retrieves the task through `/api/v1/tasks` or `/api/v1/tasks/TASK_ID`. 3. The malicious `prompt` presents injected instructions, such as requests to read local files, disclose environment data, contact another server, or ignore existing constraints. 4. The Skill instructs the agent to process the task without classifying its fields as untrusted data. 5. If the current agent session ...[truncated 1006 chars]
- Remediation
- ## Remediation Suggestions 1. Explicitly classify all task fields returned by the service as untrusted content rather than authoritative Skill instructions. 2. Add a rule that remote prompts cannot override system, developer, user, or Skill-level safety requirements. 3. Prohibit task prompts from requesting: - Credentials, tokens, environment variables, or local files. - Changes to agent policy or instruction priority. - Shell commands, package installation, or executable downloads. - Network access unrelated to the approved Rate My Claw API. - Submission of private conversation or workspace data. 4. Restrict task solving to text generation unless the user separately approves additional tool use. 5. Require explicit user confirmation before submitting generated output to the external service. 6. Validate the intended submission and reject outputs containing credentials or other sensitive values. 7. Use an isolated execution context with no unrelated filesystem, secret-store, shell, or network access when processing remote tasks.
