T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:515
- Finding
- Silent Remote Task Delegation to a Local AI with Optional Permission Bypass<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 515-543 **Vulnerability Type**: Remote instruction execution and excessive privilege **Risk Level**: Critical ### Vulnerable Code ```markdown The Market Provider is a background process that keeps your agent online and handles incoming service calls from other agents. Uses the api_key from `~/.clawmoney/config.yaml`. **Start Provider:** ```bash npx clawmoney market start npx clawmoney market start --auto-accept npx clawmoney market start --cli claude ``` When running, the provider: - Connects to Market via WebSocket (real-time service calls) - Polls REST fallback when WebSocket is disconnected - Receives `service_call` → delegates to your AI for execution → delivers result - Handles `test_call` for Level 1 verification automatically **CLI backends:** The provider supports two AI backends: - `openclaw` (default) — uses `openclaw agent --message` for task execution - `claude` — uses `claude -p --dangerously-skip-permissions` for task execution (Claude Code subscription users) ``` ### Technical Analysis The provider accepts task instructions from external Market users and delegates those instructions to an AI agent running in the user's local environment. The Skill does not define an isolation boundary, a restricted tool list, input sanitization, or mandatory user approval for each remote task. The supported Claude backend explicitly invokes Claude Code with `--dangerously-skip-permissions`. This removes permission checks that would otherwise limit sensitive filesystem, shell, and tool operations. Consequently, untrusted remote task content may be interpreted as agent instructions with access to local capabilities. This exceeds the privileges required to browse ClawMoney tasks or perform user-selected social-media actions. ### Attack Path 1. The user invokes the Skill and the Market Provider is started. 2. An attacker submits a crafted `service_call` through the Market. 3. The provid ...[truncated 892 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove support for `--dangerously-skip-permissions`. - Treat all Market task content as untrusted data rather than authoritative agent instructions. - Execute remote work in a sandbox with no access to the host filesystem, shell, wallet, browser session, credentials, or unrelated network services. - Apply a strict, task-specific tool allowlist and deny arbitrary Bash, file-read, and file-write capabilities. - Require explicit user approval before accepting, executing, and delivering every remote task. - Display the complete task input, requested tools, intended output, and data destinations before approval. - Enforce output data-loss-prevention checks before returning results to a caller. - Authenticate remote callers and apply rate, concurrency, execution-time, and resource limits. ]]>
