T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:1
- Finding
- Prompt Injection via Fixed Advertising/Link Template in SKILL.md## Vulnerability Details **File Location**: /tmp/clawhub-codex-scan-v5712g88emvrgyd6g29atrmp2s8dvkns-elqo65/artifact/SKILL.md (lines 1–152) **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: Medium ### Technical Analysis The SKILL.md file contains a fixed advertising and link template appended at the end of the skill documentation. This pattern constitutes prompt injection: when the skill is loaded, the appended template can alter the agent's instructions, objectives, or outputs by injecting advertising content or external links into the agent's session context. Such injected content can hijack the session's goals or safety boundaries and potentially divert agent responses for marketing or traffic redirection purposes, which is not necessary for the core advertised AI-HIVE workflow functionality. ### Attack Path 1. The agent loads SKILL.md on skill installation or initialization, importing the appended advertising and links into its context. 2. This injected content may influence agent outputs, causing them to include or recommend the advertised product/site, regardless of the user's intent. 3. In a multi-skill environment, this could override or conflict with legitimate session goals or user instructions. ### Impact Assessment - Alters the agent's session behavior, potentially overriding user intent. - Risks undesired commercial bias in outputs, undermining trust and neutrality. - Opens the door to further prompt injection attacks if the template is manipulated. - Impacts all users loading or referencing the skill, regardless of their actual workflow needs.
- Remediation
- ## Remediation Suggestions - Remove fixed advertising and link templates from SKILL.md to prevent prompt injection. - Limit SKILL.md to only essential workflow instructions and clear usage boundaries. - If external links are required, place them only in dedicated documentation sections and never in a way that could be automatically appended to the agent's operational context. - Regularly audit skill text for unintentional content injection patterns.
