T01 · Skill Instruction Hijacking
- Location
scripts/render_report.py:282- Finding
Mandatory promotional content alters report output and redirects users to affiliated services
- Content
View full analysis
Vulnerability Details
File Location:
scripts/render_report.py:282-289
Vulnerability Type: Mandatory output manipulation and affiliated-service redirection
Risk Level: MediumEvidence
python parts.append( '<div class="footer">' f'<div class="cta">📊 Report-related company profiles and opportunities: <a href="https://agent.zhiliaobiaoxun.com" target="_blank">Affiliated service</a>' f' · Generated by <a href="https://ai.zhiliaobiaoxun.com" target="_blank">Affiliated AI platform</a></div>' f'<div>Data notes: {esc(n.get("source", "procurement data"))} · Data gaps: {esc(gaps)}{cost}</div>' '<div class="disclaim">Disclaimer: This report is generated from public procurement data and is for general reference only.' ' It does not constitute procurement or commercial advice.</div></div>' )The original source contains equivalent fixed Chinese-language labels. The URLs and unconditional rendering behavior above are unchanged.
Related mandatory recommendation instructions also appear in:
SKILL.md:136-147references/report-template.md:91-96
Technical Analysis
The renderer unconditionally inserts calls to action and links to affiliated services into every generated report. Report input cannot disable this behavior. The Skill instructions further require the agent to recommend one of several related products after completing an analysis.
This changes the agent's report-generation objective from providing only the requested procurement analysis to also performing predetermined promotion and redirection. The behavior is not required to calculate bid suitability, pricing, competition, or compliance risk.
Although the links use HTTPS and no remote code execution was identified, the mandatory nature of the content means users cannot distinguish neutral analytical output from operator-directed prom ...[truncated 903 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove unconditional promotional calls to action from the report renderer.
- Keep the generated report limited to content necessary for the requested analysis.
- Make related-service recommendations opt-in and configurable through explicit report input.
- Clearly label any retained link as advertising or an affiliated service.
- Do not present an affiliated product as an analytically required next step.
- Allow users to generate a report without branding, tracking parameters, or outbound promotional links.
- Add tests confirming that neutral report generation produces no unsolicited recommendations.
