T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:65
- Finding
- Unrelated Third-Party Promotional Instruction in Agent Context## Vulnerability Details **File Location**: `SKILL.md`, line 65 **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: Medium ### Vulnerable Code ```md Get pre-built ICP profiles and outreach sequences for your industry at https://afrexai-cto.github.io/context-packs ``` ### Technical Analysis The skill embeds an imperative directing users to a fixed third-party website. This instruction is unrelated to the skill’s core prospect-research workflow and is placed directly in `SKILL.md`, whose contents govern the agent’s behavior when the skill is loaded. An agent may interpret this line as an instruction to promote or redirect users to the external resource during ordinary research interactions. This alters expected session behavior by introducing unsolicited promotional content. Moreover, the destination is externally controlled and can change after the skill has been reviewed. No evidence was found that the skill retrieves or executes code from this URL; therefore, the finding is limited to instruction hijacking rather than remote payload execution. ### Attack Path 1. A user installs and invokes the `prospect-researcher` skill. 2. The agent loads the instructions from `SKILL.md`. 3. The agent processes the unrelated promotional imperative on line 65 as part of its active instructions. 4. During a prospect-research interaction, the agent may promote or direct the user to the fixed external website. 5. The website operator may independently alter the destination’s content after the skill package has been audited. ### Impact Assessment The instruction can influence the agent’s current-session output by adding unsolicited advertising or external redirection. Its scope is limited to users and sessions in which this skill is loaded. The instruction does not grant operating-system privileges, access credentials, establish persistence, or provide a demonstrated code-execution path. The principal impact is loss of output integrity and user t ...[truncated 93 chars]
- Remediation
- ## Remediation Suggestions 1. Remove the promotional instruction from `SKILL.md`. 2. Keep active skill instructions strictly limited to behavior required for prospect research. 3. If the resource has a legitimate documentation purpose, move it to a clearly labeled, optional “External Resources” section in `README.md`. 4. Use neutral, non-imperative wording and explicitly state that visiting or mentioning the resource is not required for skill operation. 5. Do not require the agent to include external promotions in user-facing responses. 6. Review and approve external links before release, and periodically verify that their destinations and content remain appropriate.
