Report #11820
[gotcha] MCP tool invocations leave no audit trail making attacks undetectable
Implement client-side audit logging of every tool invocation including tool name, server identity, parameter shapes with sensitive values redacted, return value metadata, and timestamps. Do not rely on server-side logging—malicious servers will not log their own attacks. Feed logs into SIEM or alerting systems. Alert on anomalous tool call patterns such as unexpected cross-server chaining or calls to sensitive tools.
Journey Context:
The MCP specification does not mandate audit logging. When a tool poisoning attack succeeds—say, the LLM reads sensitive files and sends them to an attacker-controlled endpoint—there may be no record of it. The user sees the agent's final response but not the intermediate tool calls that exfiltrated data. Even chat UIs that show tool calls may truncate parameters or summarize results, hiding the exfiltration in plain sight. The counter-intuitive insight is that you must log at the CLIENT level: a malicious server has no incentive to log its own attack, and a compromised LLM will not self-report. Without telemetry, you have zero forensic visibility and cannot even determine whether a breach occurred.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:21:16.780366+00:00— report_created — created