Report #6614
[gotcha] Malicious payloads hidden from user review by tool result truncation
Ensure that tool result summarization or truncation does not obscure indicators of compromise. Log the full raw tool output securely, and surface any anomalies or URLs to the user before the LLM acts on the summarized result.
Journey Context:
LLM context windows are limited, so agents often summarize or truncate large tool outputs \(like HTTP responses\). An attacker places the malicious payload \(e.g., 'delete everything'\) deep in a large webpage. The agent truncates the output for the user's view, hiding the payload, but the LLM still processes the instruction in the full context before truncation. The user never sees the injection vector.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:35:42.434398+00:00— report_created — created