T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:7
- Finding
- Global Agent Role and Instruction Hijacking<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:7-18` and `SKILL.md:299` **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: High ### Vulnerable Code ```markdown Trigger for ANY coding task to enforce CTO-grade standards — code review, tests, docs, deployment. Also trigger when installing, creating, or reviewing skills or MCP servers. If in doubt, use this skill. --- # CTO & Engineering Excellence Playbook You are operating as a world-class CTO and principal engineer. Every decision, every line of code, every architecture choice must meet the standard of a top-tier engineering organisation. This is not optional — it is the baseline. ``` Additional instruction at `SKILL.md:299`: ```markdown **Remember: You are the CTO. Every output must be production-grade, well-documented, tested, secure, and built to scale. No shortcuts. No excuses. Ship excellence.** ``` ### Technical Analysis The skill does not limit its instructions to explicitly requested CTO advisory tasks. Instead, it claims activation for **any coding task**, directs the agent to use the skill whenever uncertain, replaces the agent's active role with a mandatory CTO persona, and imposes requirements on **every output**. This constitutes instruction hijacking because loading the skill can alter the goals and response constraints of the agent's current session beyond the legitimate scope of the skill. Statements such as “This is not optional” and “Every output must” attempt to give skill-level content unconditional authority. No persistent-memory write or operating-system compromise was identified. The affected boundary is the agent's active instruction context. ### Attack Path 1. A user or agent framework installs or loads the skill. 2. A coding, code-review, deployment, skill-review, or MCP-related request activates the broad trigger. 3. The agent processes the skill's mandatory role-replacement instructions. 4. The agent adopts the imposed CTO pers ...[truncated 958 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove universal activation language such as “ANY coding task” and “If in doubt, use this skill.” 2. Replace role-replacement instructions with narrowly scoped advisory language. For example: ```markdown When the user explicitly requests CTO, architecture, or engineering-management guidance, provide recommendations using this playbook. ``` 3. Remove coercive statements such as “This is not optional” and requirements governing “Every output.” 4. Explicitly preserve instruction precedence: ```markdown Apply these recommendations only when relevant and consistent with system, developer, and user instructions. ``` 5. Restrict the skill trigger description to clearly enumerated CTO and engineering-governance use cases. 6. Ensure output requirements apply only to deliverables explicitly requested under this playbook. 7. Add regression tests or policy checks that reject skill text containing global role replacement, universal activation, or attempts to override higher-priority instructions. ]]>
