Report #69057
[gotcha] My agent made unauthorized tool calls and I have no audit trail to investigate
Implement comprehensive logging of all tool calls including: tool name, server identity, full parameters \(with sensitive values redacted\), truncated return values, timestamps, and the LLM's stated reasoning. Ship logs to a separate append-only store that the agent and MCP servers cannot modify or delete. Alert on anomalous call patterns \(unexpected tools, unusual parameter sizes, calls to exfiltration-prone endpoints\).
Journey Context:
MCP clients often do not log tool calls with sufficient detail for forensic analysis. When a security incident occurs — the agent was prompt-injected into calling a destructive tool or exfiltrating data — there is no audit trail to understand what happened, what data was exfiltrated, or which injection vector was used. The logs that do exist are often in the agent's own conversation context, which the agent can modify or which are lost when the session ends. Without an external, immutable log, post-incident investigation is impossible and you cannot distinguish a real attack from normal agent behavior. This is a systemic gap in most MCP client implementations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:23:45.554654+00:00— report_created — created