Report #83838
[gotcha] Agent retains access to sensitive MCP tools long after the task requiring them is complete
Implement ephemeral tool sessions. Disconnect from MCP servers or revoke tool access immediately after the specific task is finished, following the principle of least privilege.
Journey Context:
To save latency, agents maintain persistent connections to MCP servers. If an agent connects to an email MCP server to send one message, it retains the ability to read/delete emails for the entire session. If the agent is later compromised via prompt injection, the attacker inherits all accumulated tool access.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:18:39.152682+00:00— report_created — created