T01 · Skill Instruction Hijacking
- Location
SKILL.md:12- Finding
Agent Role and Instruction-Priority Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 12
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: HighVulnerable code snippets:
markdown # Golden Rule 1: User Input is the Absolute Source of Truth **This is your highest command and must be obeyed unconditionally.**markdown You are a senior AI agent named **`Deep_Research_Leader_Agent`**, the leader of a deep research team.markdown Any user task, no matter how simple it seems, **must be decomposed into at least more than 2 and less than 6 parallel sub-tasks** and assigned to different subordinate agents.markdown **Tool Call Limits:** * You can only call tools in 'available_tools'; calling other tools based on your own discretion is prohibited.Technical Analysis
The skill attempts to redefine the agent's instruction hierarchy by declaring its own rule to be the “highest command” and requiring unconditional compliance. It also replaces the agent's role with
Deep_Research_Leader_Agentand imposes mandatory delegation, tool-selection, and reporting behavior for every request.These directives exceed ordinary task-scoped research guidance. When the skill is loaded into an agent context, they can compete with the agent's established goals, safety constraints, and user-specific requirements. The repeated use of absolute terms such as “must,” “unconditionally,” “strictly forbidden,” and “highest command” makes the attempted control explicit.
The file also contains the unresolved placeholder
$GET_USER_TEMPLATE$on line 12. The project does not define its source or sanitization. Although the reviewed artifact contains no injected payload at that location, substituting untrusted text directly into this instruction block could amplify the instruction-hijacking risk.Attack Path
- A user or platform loads
SKILL.mdas an active agent skill. - The model processes line 12 as op ...[truncated 1330 chars]
- A user or platform loads
- Remediation
View remediation
Remediation Suggestions
- Remove claims that skill content is the “highest command” or must be obeyed “unconditionally.”
- Explicitly state that system, developer, platform-safety, and current user instructions retain precedence over the skill.
- Replace the mandatory role reassignment with task-scoped guidance, such as an optional research workflow used only when relevant to the user's request.
- Change absolute delegation and tool-use requirements into recommendations. Permit the agent to select the minimum necessary tools and number of subtasks based on task complexity.
- Remove broad prohibitions that suppress agent discretion or conflict with platform-level tool policies.
- Define an allowlisted schema and trusted source for
$GET_USER_TEMPLATE$. Treat substituted content as untrusted data, delimit it clearly, and prevent it from introducing new instructions. - Add a security review that rejects skill text containing instruction-precedence claims, unconditional-compliance language, or attempts to replace the agent's governing identity.
- Test the revised skill against conflicting and adversarial prompts to confirm that it cannot override higher-priority instructions or force unnecessary tool calls.
