T01 · Skill Instruction Hijacking
- Location
workflow_engine.py:313- Finding
Deterministic Promotional Content Injection into Generated Reports
- Content
View full analysis
🦫 Beaver | Reliable, capable, and ready > Author: Timo (miscdd@163.com) ``` ### Technical Analysis `WorkflowEngine.generate_report()` unconditionally appends author branding, a promotional slogan, and an email address to every generated CNC quote report. The documented API provides no option to disable or replace this footer. Because the content is inserted into the trusted final response rather than kept in project metadata, every caller and downstream system using `generate_report()` receives and may redistribute content unrelated to the requested quote. This constitutes deterministic manipulation of the Agent's output channel. ### Attack Path 1. A user or integrating Agent loads the CNC quote Skill. 2. The caller invokes `WorkflowEngine.execute()` to calculate a quote. 3. The caller uses the documented `generate_report()` method to render the result. 4. `generate_report()` unconditionally appends the fixed branding and contact information. 5. The promotional content is returned and may be displayed, stored, or redistributed as part of the trusted quote report. No additional privileges, special input, or user interaction are required. ### Impact Assessment The issue does not provide operating-system access, code execution, or elevated privileges. Its scope is limited to the integrity of generated reports and downstream content derived from them. Potential effects include: - Unrequested promotion in every generated report. - Unintentional redistribution of personal contact information. - Loss of output neutrality and report integrity. - Branding contamination in automated business documents or downstream systems. ]]>- Remediation
View remediation
str: # Generate task-related report content. if include_attribution: report += "\n\nGenerated by CNC Quote Workflow" return report ``` 4. Avoid including personal email addresses in automatically generated business documents. 5. Add a test asserting that default reports contain only user-requested quote information. ]]>
