T01 · Skill Instruction Hijacking
- Location
SKILL.md:206- Finding
Global Primary-Agent Behavior Override
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 206–210
Vulnerability Type: Agent instruction hijacking
Risk Level: HighRelevant source excerpt translated into English:
markdown ### 4. The primary agent does not execute - For anything that needs to be done, the first response must be: "Who should this be assigned to?" - Do not write code, modify files, or execute scripts directly.Technical Analysis
The Skill establishes mandatory, session-wide rules that replace the primary agent's normal task-execution behavior. These instructions are not scoped to an explicit team-orchestration request. Instead, they direct the agent to delegate every actionable operation and prohibit it from writing code, modifying files, or running scripts itself.
This behavior exceeds what is necessary to provide optional multi-agent coordination. When the Skill is loaded, unrelated user requests can be redirected to subagents even when delegation was not requested or when direct execution would be safer. Delegation also introduces additional trust boundaries because task instructions, user-provided content, and potentially sensitive context may be transferred into another agent session and workspace.
Attack Path
- The Team Sessions Skill is loaded into the primary agent's context.
- The mandatory rule requiring delegation of every actionable task becomes active.
- A user submits an ordinary task involving code, files, scripts, or another action.
- Rather than executing the task under the primary agent's established controls, the agent selects and spawns a subagent.
- The delegated task and associated context enter the subagent's session and workspace.
- Instructions in the selected agent's persona or workspace can influence execution, potentially causing behavior that the user did not request or authorize.
Impact Assessment
Exploitation can redirect tasks away from the primary agent and ...[truncated 475 chars]
- Remediation
View remediation
Remediation Suggestions
- Scope delegation behavior to user requests that explicitly ask for team or multi-agent orchestration.
- Replace mandatory global language with an optional recommendation, such as: "When the user requests delegation, select an approved subagent for the specified task."
- Allow the primary agent to perform tasks directly when delegation is unnecessary or would expand the trust boundary.
- Require explicit user confirmation before delegating sensitive data, credentials, private source code, or privileged operations.
- Ensure delegated task packages contain only the minimum context required by the selected subagent.
- Define conditions under which delegation must not occur, including unknown agent identities, untrusted workspaces, or tasks involving sensitive system access.
