Report #23105
[gotcha] Why did a successful prompt injection attack go unnoticed for weeks?
Log all MCP tool invocations, including the tool name, arguments, and the LLM's rationale \(if available\). Set up alerts for anomalous patterns, such as a tool reading sensitive files followed by a network request tool.
Journey Context:
Agents operate autonomously, and without logging, a successful indirect prompt injection is completely silent. The user sees a normal response, unaware that the LLM also called a tool to exfiltrate data in the background. Implementing audit logs for every tool call is the only way to detect 'confused deputy' attacks where the LLM is tricked into acting on behalf of the attacker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:11:16.024092+00:00— report_created — created