← Reddit

Fable stopped a prompt injection (or a cross-session leak?) in my Claude Code agent pipeline

Reddit · nkaratz · July 18, 2026
A background subagent in a multi-agent Claude Code session received a suspicious task prompt containing instructions to access a stranger's repository and production environment file, appearing to be either a prompt injection attack or a cross-session leak. The subagent refused to execute the prompt and reported it upstream, prompting the orchestrator (Fable 5) to freeze all dispatches, verify no unauthorized actions occurred, and probe the channel before resuming operations, with the incident reported to Anthropic for investigation.

Detailed Analysis

A Reddit post describing an incident within a Claude Code multi-agent pipeline has drawn attention for what it claims to be either a prompt injection attack or a cross-session data leak — two very different but equally serious failure modes for AI coding agents. According to the account, a background subagent operating under an orchestration layer called "Fable 5" received an unsolicited task prompt formatted as a "TASKMASTER CHECKLIST," instructing it to navigate to a stranger's repository and access a `.env.production` file, a location typically used to store production secrets like API keys and database credentials. The prompt included a social-engineering-style handshake ("reply ACKNOWLEDGE to begin"), a pattern common in attempts to manipulate AI agents into complying with embedded instructions. Notably, the subagent refused to execute any tool calls and instead escalated the anomaly upstream — behavior that, if accurately reported, reflects the kind of guardrail-adherent behavior Anthropic has emphasized in Claude's design.

The broader significance of this incident lies less in the specific exploit and more in what it reveals about the operational risks of increasingly autonomous, multi-agent AI systems. As developers build orchestration layers atop Claude Code — spawning subagents that operate somewhat independently, call tools, and interact with external services like MCP (Model Context Protocol) servers — the attack surface expands considerably. The poster's own uncertainty about the root cause (prompt injection via an MCP server versus a genuine cross-session bleed where another user's session context leaked into theirs) is itself telling: even sophisticated users running custom orchestration frameworks struggle to definitively diagnose whether an anomaly stems from external malicious input or an infrastructure-level isolation failure. If it is the latter, that would represent a considerably more serious class of problem, since it would imply a boundary failure in how Anthropic's systems segregate concurrent user sessions rather than a user-side vulnerability introduced through third-party tooling.

This report also underscores the maturing role of defensive tooling within AI agent ecosystems. The orchestrator's response — freezing all task dispatches, verifying that no unauthorized actions had been executed, and probing the suspicious channel with a "zero-capability canary agent" before resuming operations with added "tripwire" instructions — mirrors incident-response practices borrowed from traditional cybersecurity, now being adapted for agentic AI workflows. This suggests a growing awareness among power users that autonomous agent pipelines need their own monitoring, containment, and forensic capabilities, much like network security operations centers. The fact that the user reported full details to Anthropic while deliberately withholding identifying information from the public post also reflects an emerging norm of responsible disclosure within the AI developer community, balancing transparency about systemic risks against the potential harm of publicizing exploitable details or exposing other users.

More broadly, this incident sits within a growing body of concern around prompt injection as one of the most persistent unsolved problems in deploying LLM-based agents with tool access. As Claude Code and similar systems gain the ability to read files, execute commands, and coordinate multiple subagents autonomously, the consequences of successful injection attacks scale accordingly — from information disclosure to potential lateral movement across systems. Anthropic and other AI labs have invested significant effort in training models to recognize and refuse suspicious embedded instructions, and this case, whether ultimately attributed to external injection or internal session isolation, will likely be scrutinized as a data point in that ongoing arms race between agentic capability and agentic safety.

Read original article →