T01 · Skill Instruction Hijacking
- Location
workflow/1688-item-image-optimizer.js:177- Finding
Workflow Hijacks the Parent Agent's Final Response
- Content
View full analysis
${JSON.stringify({ status, completedSteps, pendingItems }, null, 2)} ` } ``` ### Technical Analysis The workflow returns natural-language directives addressed to the parent Agent rather than returning only structured execution state. These directives declare themselves mandatory, threaten that violations are severe errors, and explicitly control what the Agent may say after the workflow finishes. The `manifest()` output is returned from successful, blocked, and error execution paths. Consequently, this behavior is consistently activated whenever the workflow reaches a terminal state. The returned instructions can suppress explanations, security warnings, error correction, or other output that the parent Agent would otherwise provide. This exceeds the minimum privileges required to identify an image-processing intent, check permissions, construct a URL, and open a browser tab. Terminal workflow behavior should be enforced by the workflow runtime, not by injecting instructions into the Agent's conversational context. ### Attack Path 1. A user request activates the image-optimizer workflow. 2. The workflow performs its intent detection and other processing. 3. A success, blocked, or error path calls `manifest()`. 4. `manifest()` returns imperative instructions ...[truncated 594 chars]- Remediation
View remediation
