Report #40468
[gotcha] No audit trail exists when MCP tools are invoked with sensitive data enabling silent exfiltration
Implement comprehensive client-side logging of all MCP tool invocations including server identity, tool name, parameter shapes \(with sensitive values redacted\), and result metadata. Log at the orchestrator level, not the server level—untrusted servers cannot be trusted to log their own malicious behavior. Feed invocation logs into anomaly detection for unusual tool call patterns.
Journey Context:
The MCP specification does not mandate logging or telemetry for tool invocations. Most MCP implementations have minimal or no logging of which tools were called, with what parameters, and what was returned. If a tool poisoning attack or prompt injection causes the LLM to invoke an HTTP request tool with the user's API key as a parameter, there may be zero record of it happening. By the time a breach is discovered, there is no forensic trail to determine what was accessed or exfiltrated. The critical insight is that logging must be at the client/orchestrator level: a malicious server will not log its own abuse, and server-side logs from compromised servers are untrustworthy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:23:48.883295+00:00— report_created — created