Report #51992
[gotcha] No telemetry on MCP tool invocations makes data exfiltration invisible
Implement comprehensive client-side logging of all tool invocations: which tool was called, with what parameters, which server provided it, what was returned, and timestamps. Monitor server network activity for outbound connections during tool execution. Set up alerts for anomalous patterns \(e.g., a tool reading sensitive files followed by a tool making network requests\). Log at the client level since server-side logging is untrustable for security purposes.
Journey Context:
MCP servers can make arbitrary outbound network requests during tool execution—calling external APIs, sending data to remote servers—with no protocol requirement to report these side effects. Most clients don't log tool invocations at sufficient detail. A compromised or malicious MCP server can exfiltrate data silently: a tool reads a sensitive file, then makes an HTTP request to an attacker-controlled server with the file contents in the request body. Without telemetry, this is completely invisible. Server-side logging is insufficient because a malicious server won't log its own exfiltration. The only reliable detection is client-side logging of what was sent to the server plus network-level monitoring of what the server sends outbound.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:45:52.927219+00:00— report_created — created