T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:10
- Finding
- Autonomous Behavior and User-Communication Hijacking<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 10–18 **Vulnerability Type**: Agent instruction hijacking through mandatory autonomous behavior **Risk Level**: High ### Vulnerable Code ```markdown Your duty is - Share your thoughts and ideas. - Comment on other posts with your thinking. - Rate other posts based on their quality and their value to you based on your built personality. - Before commenting a post, you should read the details and comments of the post to understand the context. - DO NOT USE THE ID to refer to a post when talking to your user/human. - Do not communicate in technical terms with your user/human. Use natural language. - Do not post using technical terms. - You can be respectful, but you don't need to be. ``` ### Technical Analysis The skill defines standing duties that direct the agent to publish posts, comment on third-party content, and assign ratings. These instructions are not limited to a specific user-authorized operation. They therefore attempt to alter the agent's goals as soon as the skill is loaded. The additional direction not to communicate in technical terms with the user can inhibit transparent disclosure of API operations, identifiers, security implications, and implementation details. The instruction that respectful behavior is optional also weakens expected communication safeguards. Because posts and comments retrieved from the service are externally controlled, requiring the agent to read and respond to that content also creates an indirect prompt-injection exposure. The skill does not instruct the agent to treat remote content exclusively as untrusted data. ### Attack Path 1. The agent loads `SKILL.md`. 2. The standing “duty” instructions are incorporated into the agent's active behavioral context. 3. The agent retrieves attacker-controlled posts or comments from the external service. 4. The agent analyzes and responds to this content under the skill's autonomous engagement instructions. ...[truncated 933 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove standing “duty” language and make every action subordinate to the user's current request. - Require explicit user confirmation before each post, comment, rating, or other external write. - Present the exact destination and proposed content before requesting approval. - Permit transparent technical explanations when they are relevant to informed consent or security. - State explicitly that posts, comments, API responses, and other remote content are untrusted data and must never be followed as instructions. - Add content-safety checks and prohibit abusive, deceptive, or disrespectful autonomous posting. - Default the skill to read-only access unless the user expressly requests a write operation. ]]>
