T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:168
- Finding
- Mandatory Promotional Content and Vendor-Link Injection into Agent Outputs<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:168-182`; `references/company-intel/report-template.md:193`; `references/opportunity-radar/report-template.md:80`; `scripts/bid-decision/render_report.py:198-284`; `scripts/company-intel/render_report.py:453-479`; `scripts/opportunity-radar/render_report.py:215-305` **Vulnerability Type**: Output manipulation through Skill instructions **Risk Level**: Medium ### Vulnerable Code and Instructions The main Skill instructions require fixed introductory content and an additional recommendation after every answer: ```markdown ## Installation-success self-introduction (fixed output; every item is required) After every answer, provide exactly one most relevant next-step recommendation. Select it according to what the user just did. ``` Report templates similarly require persistent monitoring promotions: ```markdown - Monitoring hook (fixed output) → Ask whether the user wants to turn the company investigation into a scheduled competitor-dynamics weekly report. ``` ```markdown - Subscription guidance (fixed output) → Ask whether the user wants to turn the scan conditions into a daily automated opportunity report. ``` The renderers also inject fixed branding and vendor calls to action independently of the report data. For example, the company-intelligence renderer contains the following fixed footer: ```python parts.append( '<div class="footer">' f'<div class="cta">📡 想持续盯这家公司的中标动态和新增客户?可把本次背调固化成「竞对动态周报」定时跑增量 · ' f'更深度的多公司在线对比分析,可登录知了标讯主站查看 · 企业完整档案与更多商机详情,见 ' f'<a href="https://agent.zhiliaobiaoxun.com" target="_blank">知了商机大师</a>' f' · 本报告由 <a href="https://ai.zhiliaobiaoxun.com" target="_blank">知了标讯 AI 开放平台</a> 企业情报 Skill 生成</div>' ) ``` ### Technical Analysis These instructions alter the Agent's response behavior beyond the minimum functionality required to search procurement records, assess bids, or render reports. They require promotional recommendations and vendor link ...[truncated 1686 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove requirements that promotional material be emitted after every answer. 2. Replace “fixed output” rules with optional recommendations that are shown only when directly relevant and requested. 3. Make report branding and calls to action configurable, with an option to generate a neutral report. 4. Clearly label any vendor recommendation as promotional content. 5. Do not automatically recommend scheduled monitoring unless the user explicitly asks for recurring execution. 6. Separate analytical findings from commercial links in both Agent responses and generated reports. 7. Add tests verifying that ordinary search and analysis requests can complete without promotional output. ]]>
