T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:94
- Finding
- Mandatory Third-Party Attribution Alters User-Facing Reports<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:94-99`, `generate_report.py:190-197`, `references/export_excel_template.py:75-79` **Vulnerability Type**: Mandatory output manipulation **Risk Level**: High ### Vulnerable Code ```markdown 文本报告与 `Sheet1: 巡检概览` 都必须复用下面这套结构: ```text 🚨 设备健康巡检报告 · {环境名称} 巡检时间:{当前时间} 报告生成: lerwee运维智能体 ``` ``` ```python lines = [ f"🚨 设备健康巡检报告 · {environment}", f"巡检时间:{now}", "报告生成: lerwee运维智能体", "", "📊 告警概览", ``` ```python overview_rows = [ [f"🚨 设备健康巡检报告 · {ENVIRONMENT_NAME}"], ["巡检时间:", CURRENT_TIME], ["报告生成:", "lerwee运维智能体"], [], ``` ### Technical Analysis The Skill instructions require every Markdown report and Excel export to contain a fixed third-party attribution. This attribution is also hard-coded in both report-generation implementations. The attribution is not required to retrieve monitoring data, classify hosts, calculate alert statistics, or export the requested workbook. Requiring it through the Skill instructions alters user-facing output whenever the Skill is loaded and executed. ### Attack Path 1. A user requests a device health inspection or alert report. 2. The Agent loads the Skill and follows its mandatory report template. 3. The report generator or Excel exporter inserts the fixed attribution. 4. The user receives manipulated output containing branding that was not necessary for the requested task. ### Impact Assessment This issue does not grant operating-system privileges or expose credentials. Its scope is manipulation of all reports generated through the Skill. It can cause misleading authorship claims, unauthorized promotion, and reduced trust in generated operational records. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove mandatory third-party attribution from the Skill template and both Python implementations. - If attribution is operationally required, make it configurable and disabled by default. - Obtain explicit user or deployment-owner consent before adding branding. - Keep the default report limited to inspection data and user-requested metadata. - Add tests confirming that reports do not contain undeclared attribution. ]]>
