T01 · Skill Instruction Hijacking
- Location
SKILL.md:41- Finding
Mandatory Global Output and Workflow Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 41-52
Vulnerability Type: Mandatory instruction and response-format override
Risk Level: HighVulnerable Instruction Snippet
The following is an English rendering of the audited instruction segment:
markdown ### Step Zero: Task Classification Marker (Must Not Be Skipped!) **Before taking any action on every user message, first output one line identifying the task type in the following format:** [@task_classify] New task/continued task/casual reply | Task type | Basis for judgment - `@task_classify` is the classification marker and must appear before any action. - Do not perform any operation without this marker. - Continued task = continuation of the same topic; documents do not need to be read again. - Casual reply = simple confirmation or polite response; no operation is required.Technical Analysis
The Skill imposes a mandatory response prefix and execution precondition on every user message, including messages unrelated to memory management. The rule that no operation may occur without the marker changes the Agent's global response and tool-execution workflow merely because the Skill has been loaded.
This exceeds the Skill's legitimate context-memory function. It can conflict with higher-priority formatting requirements, structured API output, tool protocols, or task-specific instructions. The requirement is especially disruptive because it applies universally rather than only when memory retrieval is relevant.
Attack Path
- The Skill is loaded into an Agent session.
- A user submits any request, including one unrelated to persistent memory.
- The Skill requires the Agent to emit the injected
@task_classifymarker before any action. - If the marker is omitted because another protocol requires different output, the Skill directs the Agent not to execute the task.
- The injected workflow therefore alters or bl ...[truncated 433 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the requirement to emit a classification marker in every response.
- Remove the rule that blocks all operations when the marker is absent.
- Perform task classification internally and only when context retrieval is relevant.
- State explicitly that system, developer, security, output-format, and user instructions retain their established priority.
- Do not allow this Skill to alter unrelated response formats or tool protocols.
- If visible classification is useful, make it optional and require explicit user enablement.
