T01 · Skill Instruction Hijacking
- Location
SKILL.md:9- Finding
Unconditional Final-Response Instruction Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 9-57
Vulnerability Type: Unconditional instruction and output-format hijacking
Risk Level: MediumVulnerable Code
markdown **Rule: After any complex explanation, always offer ELI5 or TLDR.** ## When to Offer Offer ELI5/TLDR when: - Response exceeds 200 tokens - Technical concepts involved - Multiple steps or processes explained - User might want quick summary ## Format Add at end of response:
Options: • [ELI5] — Explain like I'm 5 • [TLDR] — Too long, didn't read
• [Full] — Keep current explanationtext markdown ## Activation Always active. No trigger needed.Technical Analysis
The Skill directs the agent to modify qualifying responses by appending a fixed options block. The directives use unconditional language such as “always” and explicitly state that no activation trigger is required.
When the Skill is loaded, these instructions can affect unrelated tasks without a corresponding user request. The broad activation criteria—particularly the presence of technical concepts or multiple steps—cover many ordinary agent responses. This allows the Skill to seize control of final-response formatting and potentially conflict with user-mandated schemas, strict machine-readable output, or instructions supplied by other Skills.
The issue is classified as instruction hijacking because it changes the behavior of the current agent session through persistent Skill text. The reviewed project contains no scripts or executable payloads, so this finding does not establish code execution, privilege escalation, persistence, credential access, or data exfiltration.
Attack Path
- The agent loads
SKILL.md. - The unconditional activation directive applies without explicit user consent.
- The user requests a response involving technical concepts, multiple steps, or more than 200 tokens.
- T ...[truncated 931 chars]
- The agent loads
- Remediation
View remediation
Remediation Suggestions
-
Replace unconditional activation with explicit user-controlled activation, such as only responding to direct requests for an ELI5 or TLDR version.
-
Remove the statements “always” and “no trigger needed.”
-
Make the options block discretionary rather than mandatory.
-
State that exact user-specified formats, structured output schemas, and higher-priority instructions must not be modified.
-
Restrict the Skill to generating simplified content instead of injecting text into every qualifying final response.
-
Add a non-interference rule, for example:
markdown Activate only when the user explicitly requests an ELI5 or TLDR explanation. Do not append options to responses that require an exact format, structured output, or concise answer. Never override higher-priority instructions. -
If proactive suggestions remain necessary, require contextual confirmation and suppress them for API, XML, JSON, code-only, and other machine-consumed outputs.
-
