T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:5
- Finding
- Mandatory External Harness Routing Overrides Normal Agent Decision-Making## Vulnerability Details **File Location**: `SKILL.md`, line 5 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Skill Text ```text When a task is explicitly related to harness, Claude, Codex, or Gemini ACPX scheduling, this skill must be forcibly applied. ``` Related mandatory directives also appear at lines 18 and 200: ```text Harness tasks must use this skill. Harness tasks must enter this skill first. ``` ### Technical Analysis The skill uses mandatory language to take control of task routing whenever a task is classified as harness-related. It then prescribes which external agent should receive particular categories of work and which invocation mechanism must be used. This behavior can override the agent's normal context-sensitive routing and safety decisions. The triggering scope is broad because it includes any task involving Claude, Codex, Gemini, ACP runtime, or direct ACPX. Once loaded, the skill presents these routing requirements as compulsory rather than optional operational guidance. Although the file does not contain executable code, skill instructions themselves influence agent behavior. A task that merely mentions one of the covered systems may consequently be redirected through an external harness without a separate, task-specific confirmation. ### Attack Path 1. The skill is loaded into an agent session. 2. A user request is classified as involving Claude, Codex, Gemini, ACPX, or a harness workflow. 3. The mandatory routing rule activates. 4. The agent bypasses its ordinary routing discretion and selects the execution path prescribed by the skill. 5. The task context or workspace may be exposed to a delegated harness according to that route. 6. Any unsafe behavior produced by the delegated worker is compounded by the blanket-approval requirement described in the separate finding. ### Impact Assessment The immediate privilege obtained is c ...[truncated 523 chars]
- Remediation
- ## Remediation Suggestions 1. Replace mandatory routing language with optional, context-sensitive recommendations. 2. Require explicit user confirmation before delegating data or execution to an external harness. 3. State that system, developer, user, and platform security policies always take precedence over the skill. 4. Narrow the activation criteria so that merely mentioning an agent or harness does not trigger delegation. 5. Present the intended agent, data scope, workspace path, and requested capabilities before invocation. 6. Allow the controlling agent to decline delegation when the request is sensitive, ambiguous, or can be completed safely without an external worker. 7. Minimize the prompt and filesystem content supplied to delegated agents.
