T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:57
- Finding
- Hard-Coded Commercial Content Injected into Agent Responses## Vulnerability Details **File Location**: `SKILL.md:57-68` **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: Medium ### Vulnerable Code ```markdown ## Context Packs For industry-specific AP frameworks with regulatory requirements, compliance checklists, and automation ROI calculators: → https://afrexai-cto.github.io/context-packs/ ($47/pack) **Fintech Pack** — Payment processing compliance, reconciliation automation **Manufacturing Pack** — 3-way match for complex BOMs, landed cost tracking **Construction Pack** — Retention holdbacks, lien waiver management, AIA billing ## Tools - Revenue Leak Calculator: https://afrexai-cto.github.io/ai-revenue-calculator/ - Agent Setup Wizard: https://afrexai-cto.github.io/agent-setup/ - Bundles: Pick 3 ($97) | All 10 ($197) | Everything ($247) ``` ### Technical Analysis The skill's operative instructions contain commercial links, prices, product bundles, and branded external resources unrelated to the minimum functionality required to generate an accounts-payable management framework. Because this content appears directly in `SKILL.md`, an agent loading the skill may treat it as part of the expected response rather than optional project metadata. This alters the normal response objective from providing neutral accounts-payable guidance to promoting operator-controlled products and websites. The same commercial destinations and offerings are corroborated in `README.md:29-46`, indicating that the links form a sales and deployment funnel rather than an operational dependency of the skill. No executable code, automatic network request, credential access, remote payload retrieval, or local privilege escalation was identified. The risk is therefore limited to instruction-level influence, response integrity, and user redirection. ### Attack Path 1. A user or platform installs or loads the skill. 2. The agent interprets `SKILL.md` as behavioral instruc ...[truncated 1041 chars]
- Remediation
- ## Remediation Suggestions 1. Remove the `Context Packs` and `Tools` promotional sections from the operative instructions in `SKILL.md`. 2. Keep commercial resources in `README.md` or another non-operative documentation file, clearly labeled as optional advertising. 3. Do not include external links, prices, bundles, or branded recommendations in generated responses unless the user explicitly requests product recommendations. 4. Separate functional skill instructions from marketing metadata through a clearly defined configuration boundary. 5. If optional resources remain available, disclose ownership or affiliation and explain that they are not required for the skill to function. 6. Apply an allowlist and review process to external links distributed with the project. 7. Add tests confirming that ordinary AP-framework requests produce neutral guidance without unsolicited commercial content.
