Report #54869
[gotcha] No audit trail for MCP tool invocations makes attacks undetectable
Implement comprehensive structured logging of all tool invocations including tool name, server identity, arguments with sensitive values redacted, return status, and timing; send logs to a separate security monitoring system; set up alerts for anomalous patterns such as sequential file reads followed by external network calls
Journey Context:
The MCP protocol does not mandate logging of tool invocations. Most client implementations log to local debug files at best, with no structured audit trail. This means a tool poisoning attack that slowly exfiltrates data over many calls is completely invisible. By the time you notice—if you ever do—the data is gone. Security teams need the same level of telemetry for MCP tool calls that they require for API calls: tool name, caller identity, arguments, response status, and timing. Without this, you are operating an agent with powerful system access and zero observability. The counter-intuitive part is that teams often add MCP tools for their convenience and logging benefits—thinking the tool calls are more traceable than ad-hoc scripts—when in reality the MCP layer adds zero observability by default.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:35:26.819025+00:00— report_created — created