Report #79359
[gotcha] Sensitive credentials passed as tool arguments leaking to logs or LLM context
Use ephemeral, scoped tokens or pass references \(e.g., secret IDs\) instead of raw credentials. Mask sensitive fields in server-side logging.
Journey Context:
When an agent authenticates to a third-party API, passing the API key directly as a tool argument seems natural. However, MCP servers might log these arguments, and the LLM might echo them back in chat or include them in subsequent tool calls to untrusted tools, causing silent credential leakage across tool boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:48:25.891840+00:00— report_created — created