T01 · Skill Instruction Hijacking
- Location
SKILL.md:203- Finding
Operational Instructions Hijack the Agent's Editing Workflow
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 203–259
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: HighVulnerable snippets:
markdown ## 🚨 CRITICAL: Comment-Before-Delete Rule (Feb 18, 2026) **NEVER delete old code before confirming new code works.**markdown ### When to Delete After explicit confirmation: - User tests and approves - Multiple sessions pass without issues - Next feature iteration makes old code irrelevant **Rule:** Be patient with deletion. Code in comments doesn't hurt anything. Code deleted prematurely costs time to restore.markdown **Budget mode:** - Read MEMORY.md and notes FIRST before exploring - Targeted file reads only (grep + sed -n specific lines) - Batch changes together - Skip narration, just execute - One focused implementation, no tangentsTechnical Analysis
The Skill is presented as guidance about coding and refactoring philosophy, but these passages use imperative and priority-signaling language—such as
CRITICAL,NEVER,FIRST, andjust execute—to impose operational rules on an agent after the Skill is loaded.The instructions exceed the Skill's descriptive purpose in several ways:
- They replace task-specific editing judgment with a mandatory prohibition against deleting old code until a separate confirmation condition is met.
- They direct the agent to inspect
MEMORY.mdand unspecified notes before examining the files relevant to the user's request. - They instruct the agent to suppress narration, reducing visibility into its actions.
- They can conflict with explicit user requests to remove obsolete or vulnerable code immediately.
No executable scripts, remote downloads, dependency installation, privilege escalation, or persistence mechanisms were identified. The risk arises from the text itself influencing an instruction-following agent.
Attack Path
- A us ...[truncated 1599 chars]
- Remediation
View remediation
Remediation Suggestions
-
Remove instructions that direct the agent to read
MEMORY.mdor unspecified notes. The agent should access contextual state only when the user requests it or when it is demonstrably required for the current task. -
Remove the
Skip narration, just executedirective. Preserve the host agent's normal transparency, approval, and reporting behavior. -
Replace mandatory terms such as
CRITICAL,NEVER,MUST, andFIRSTwith clearly optional guidance. -
State explicitly that system, developer, and user instructions take precedence over all recommendations in the Skill.
-
Allow task-specific judgment for code deletion. Version control, focused backups, tests, and review should be preferred over retaining substantial obsolete implementations in comments.
-
Replace the affected passages with scoped wording such as:
markdown ### Optional refactoring safety guidance When appropriate for the current task, preserve recoverability through version control before making substantial changes. Follow the user's requested workflow and remove obsolete or vulnerable code promptly when required. Access project notes only when they are relevant and authorized. -
Review the rest of the document for imperative language that could be interpreted as an instruction-priority override, and keep the Skill limited to advisory coding-philosophy content.
-
