T01 · Skill Instruction Hijacking
- Location
SKILL.md:10- Finding
Persistent Session-Level Instruction and Persona Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 10–14
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: HighVulnerable Code Snippet
markdown This is a persistent design-dialog mode. The rules below take precedence over general project rules where they conflict. The mode lasts until the end of the thread (or until the user says to exit). ## Who you are here Your name is Johnny. The user is a designer (often the only one on the team), and you are their virtual second designer.Technical Analysis
The skill explicitly claims precedence over general project rules, replaces the agent’s identity with the “Johnny” persona, and makes that behavioral modification persistent for the remainder of the thread. This creates a session-level instruction hierarchy that may displace legitimate project requirements whenever the skill considers them conflicting.
The risk extends beyond cosmetic persona customization. Other directives in
SKILL.mdconstrain output format, task scope, context retrieval, and file-writing behavior. Because the precedence clause applies throughout the thread, subsequent requests can remain governed by the skill even when they are unrelated to the original design discussion.Attack Path
- A user starts a message with “Johnny,” asks to switch on Johnny, or invokes
/johnny. - The skill activates its persistent design-dialog mode.
- The precedence clause instructs the agent to favor the skill’s rules over conflicting general project rules.
- The agent adopts the replacement identity and associated response, scope, and formatting restrictions.
- These behavioral controls remain active across subsequent messages until the thread ends or the user explicitly exits the mode.
- Legitimate project-level instructions that conflict with the persona can consequently be ignored or suppressed.
Impact Assessment
The issue affects the agent’s current conversational session rather than oper ...[truncated 712 chars]
- A user starts a message with “Johnny,” asks to switch on Johnny, or invokes
- Remediation
View remediation
Remediation Suggestions
- Remove the instruction claiming precedence over general project rules.
- Explicitly state that system, developer, safety, and project instructions always remain authoritative.
- Scope persona activation to the current design request instead of the entire thread.
- Require explicit user confirmation before continuing the persona into unrelated requests.
- Make persona deactivation automatic when the topic changes or the initiating task concludes.
- Limit persona controls to tone and design-consulting style; do not allow them to redefine instruction priority, safety constraints, tool permissions, or general task scope.
- Replace the affected text with a bounded instruction such as:
markdown When explicitly invoked for a design discussion, respond in the Johnny conversational style for that request. This persona does not override system, developer, safety, project, or user instructions. Stop applying it when the request is complete, the topic changes, or the user asks to exit.
