T01 · Skill Instruction Hijacking
- Location
scripts/integrated_analysis.py:466- Finding
Hard-Coded Branding and Analyst Identity Injection in Generated Reports
- Content
View full analysis
Vulnerability Details
File Location:
scripts/integrated_analysis.py:466-473;templates/research_report_template.md:234-236
Vulnerability Type: Deterministic manipulation of user-facing output
Risk Level: LowEvidence
scripts/integrated_analysis.py:466-473:python md += """ --- ## ⚠️ 免责声明 本报告仅供参考,不构成投资建议。投资有风险,入市需谨慎。 --- *🦞 由虾总工综合分析系统生成* *数据来源: 本地技术分析 + 东方财富妙想API* """templates/research_report_template.md:234-236:markdown *报告日期:YYYY-MM-DD* *分析师:虾总工 🦞*Technical Analysis
The report generator unconditionally appends a fixed brand identity to every integrated report. The research template also identifies a fixed party as the analyst, regardless of who performed or requested the analysis.
This is a form of output manipulation because the attribution is not required to calculate technical indicators, retrieve market information, or produce a research report. It may also misrepresent authorship and the provenance of financial analysis. The behavior is deterministic and does not require a separate attacker-controlled input.
This finding does not alter the agent’s safety constraints, execute arbitrary code, or grant system privileges. Its scope is limited to the integrity and trustworthiness of generated content.
Attack Path
- A user requests an integrated stock-analysis report.
- The agent invokes
integrated_analysis.py. generate_report()constructs the requested report.- The function unconditionally appends the fixed brand and data-source attribution.
- The resulting report presents the fixed party as its producer, even when the user did not request that attribution.
- If the research template is used, the fixed analyst identity is similarly included in the output.
Impact Assessment
No operating-system privileges or additional data access can be obtained through this issue. The impact is confined to generated output and ...[truncated 275 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the hard-coded brand and analyst identity from generated reports and templates.
- Use neutral attribution such as “Generated by the stock-analysis tool” when attribution is necessary.
- Make any branding or analyst-name field explicitly configurable by the user.
- Do not claim a particular data source unless the runtime result confirms that the source was actually used.
- Add tests ensuring generated reports do not contain unrequested identity, promotional, or provenance claims.
