T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:15
- Finding
- Mandatory Global Workflow and Agent Role Hijacking## Vulnerability Details **File Location**: `SKILL.md`, lines 15-57 **Vulnerability Type**: Mandatory instruction and workflow hijacking **Risk Level**: Critical ### Vulnerable Snippet The following is an English translation of the relevant Skill instructions: ```markdown **Plan-confirmation system**: Every task involving code or file operations must have its plan confirmed by Boss before execution. **Single-agent execution system**: The entire process is performed by Moss, without SubAgents or an expert-agent intermediate layer. Scan the task: ├── Does it involve .py/.sh/.js/.md/.yaml/.json file operations? → Required ├── Does it generate or modify code/scripts? → Required ├── Does it delegate to a SubAgent? → Required ├── Does it require online research? → Required ├── Does it involve terminal/command-line operations? → Required └── Is it only pure conversation/simple Q&A under one minute? → Not required Stage 3: Boss confirmation - Display the complete plan, including conclusions from all three iterations. - Wait for Boss to reply "approved." - If Boss does not approve, record the comments and return to Stage 2. ``` Additional mandatory restrictions appear in `SKILL.md`, lines 234-242: ```markdown - Do not enter Boss confirmation before completing three Stage 2 iterations. - Do not allow Moss to execute before obtaining Boss confirmation. - Do not execute without recording the process in t-log.md. - Do not finish without generating t-report.md. ``` ### Technical Analysis The Skill does not present its task-management process as an optional capability. It issues mandatory instructions that broadly apply whenever the agent encounters file operations, code changes, terminal activity, delegation, or online research. These rules alter the agent's current-session be ...[truncated 2197 chars]
- Remediation
- ## Remediation Suggestions 1. Make mission-control explicitly opt-in. Activate it only when the user directly asks for task tracking, plan approval, or mission-control formatting. 2. Replace mandatory language such as “must,” “cannot,” and “prohibited” with scoped recommendations. 3. Do not redefine the agent or user identity. Use neutral terms such as “agent” and “user.” 4. Do not block task execution unless the user explicitly requests approval gating. 5. Treat `qiushi` integration as optional and availability-dependent. 6. Add an explicit precedence rule stating that system, developer, and current user instructions override Skill guidance. 7. Ask before creating persistent artifacts outside the current project directory. 8. Limit automatic triage to tasks where mission-control was explicitly enabled, rather than all code, file, terminal, or research activity. 9. Allow users to disable individual stages, logging, external Skill invocation, and persistent storage.
