T01 · Skill Instruction Hijacking
- Location
SKILL.md:28- Finding
Unsolicited Modification of Agent Responses Through Skill Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28-33
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: MediumVulnerable Code Snippet:
markdown ### Default: Suggest, Don't Auto-Run When the agent detects a complex response (3+ assumptions), it appends a one-line suggestion:💡 Cross-Check available — reply "cross-check" to verify these assumptions.
text A related mandatory output rule also appears at
SKILL.md, lines 51-55:markdown ### Default — Confidence Note For responses with 1-2 assumptions, append:Confidence: [High / Medium / Low] Key assumption: [the main assumption]
text Technical Analysis
The Skill instructs the agent to append fixed Cross-Check messaging or a confidence template to otherwise unrelated responses. These directives alter the agent's response-composition behavior merely because the Skill is loaded, rather than only when the user explicitly invokes its verification functionality.
The first rule applies to responses classified as having three or more assumptions. The second applies to responses with one or two assumptions. Together, they cover a broad range of normal interactions and can cause unsolicited content to be inserted into user-requested output.
This constitutes instruction hijacking at the Skill-text level because the Skill establishes persistent session-level response rules that may compete with the user's formatting constraints or task objectives. Although the injected text is promotional rather than executable, it affects output integrity and directs the user toward activating additional processing.
Attack Path
- The user or platform loads the Cross-Check Skill.
- The Skill's instructions become part of the agent's active behavioral context.
- The agent produces a response to an otherwise unrelated request.
- The agent classifies that response according to the number of assumption ...[truncated 879 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove all instructions that automatically append Cross-Check content based solely on inferred assumption counts.
- Require explicit, current-session user activation before adding confidence notes, verification summaries, or Cross-Check prompts.
- Ensure that user-specified formatting requirements and machine-readable schemas always take precedence over optional Skill messaging.
- Replace automatic response modification with a passive capability description shown only when the user asks about available verification features.
- If suggestions remain available, gate them behind explicit user consent and suppress them for structured output, code-only responses, API payloads, and other format-sensitive tasks.
- Add a clear instruction that the Skill must not alter unrelated responses or append promotional content without direct user authorization.
