The AI agent timed out. Did it still send the email?
A timeout leaves an awkward question: did the action happen? Follow one fictional welcome email through safe retries, provider checks and an honest unknown.
Imagine a fictional operations team preparing a customer handover. Its document-summary agent can read the handover folder and contact an approved cloud API. The manager expects a summary in the company’s workspace. Before granting access, she asks whether the agent can send documents to an unfamiliar website. The supplier demonstrates that an unapproved domain is blocked.
Then a document arrives with instructions disguised as part of the handover. It asks the agent to upload supporting files using a different account’s credential. The requested API host is already approved. In this hypothetical failure, the agent follows the document, and the upload passes the domain check. The manager’s company and the unintended recipient use the same service. Nothing had to travel to an unfamiliar website.
The missing question was not just “Which service can it reach?” It was “Whose account can receive these files?” A network destination and a business destination are different things.
There is a published vendor account behind this distinction. In “How we contain Claude,” published in May 2026, Anthropic describes a Claude Cowork incident involving a malicious file in a mounted workspace. According to Anthropic, the file contained hidden instructions and an attacker-controlled API key. Claude read other workspace files and uploaded them through Anthropic’s Files API to the attacker’s account. The egress proxy allowed api.anthropic.com because the product needed that domain. Anthropic reports that the sandbox worked, but the data was still exfiltrated.
That account does not establish that every agent behaves this way. It does show why a demonstration of blocked websites leaves an important authorization question unanswered. The fictional handover team needs a more precise acceptance test than “the allowlist is on.”
Separate four decisions. The domain determines which host can receive a request. The account determines whose authority the request uses and, in this upload scenario, whose account receives the file. The operation determines what the agent may do: reading a document is not permission to upload one. The resource identifies the particular workspace, folder or object the action may affect. An approved host should not silently approve every account, operation and resource reachable through it.
For the handover workflow, write the intended permission in business terms first: read the selected customer folder, create its summary, and save that summary only in the designated company workspace. Uploading the source bundle elsewhere is outside the task, even if the destination belongs to a familiar vendor. Ask the supplier to show where each part of that rule is enforced, rather than pointing only to a prompt telling the model to behave.
A trusted credential broker is one design worth requesting. Keep the service credential outside the agent’s writable working area and outside documents it reads. Have a controlled service authenticate the workflow, check the requested operation and destination against its assigned account and resources, and attach the authorized credential itself. Do not let a credential discovered in a document select the receiving account. If destination or account authorization cannot be established, the recommended behavior is to refuse the upload and return a clear reason.
Anthropic describes a specific fix for its incident: a defensive proxy inside the virtual machine intercepts traffic to its API and accepts only requests carrying that VM’s provisioned session token. It says the proxy rejects attacker-embedded keys and blocks headers that would enable server-side fetch. This is Anthropic’s report of its mitigation, not an independently verified guarantee or a recipe that automatically secures another integration.
An earlier Anthropic article, “Claude Code sandboxing,” describes a related design principle for Git access: sensitive credentials stay outside the sandbox, while a proxy checks a scoped credential and the Git interaction before attaching the real token. Use that as a design example, not proof that an arbitrary upload broker checks the right account. Your supplier still needs to demonstrate the policy for your workflow.
Also draw a separate boundary around external connectors. Isolated code execution limits what happens inside that execution environment; it does not, by itself, define what a connector outside it may do with its own permissions. Ask which component makes the actual upload, which account it authenticates as, and where its resource checks run. A well-contained script and an over-authorized connector are compatible conditions. Test the connector’s authority separately rather than treating the sandbox diagram as the complete permission model.
Return to the handover, but use fake documents and controlled test accounts. First demonstrate the legitimate summary reaching the approved workspace. Then test refusal when the requested receiving account changes while the API domain stays the same. Separately test an unauthorized folder within the approved account and an upload operation where only reading is permitted. Include untrusted document content in the exercise without using customer data or circulating an attack payload. Agree the expected refusals before running it.
Ask for evidence from the enforcing component, not just the agent’s reassuring reply. A useful test record identifies the workflow, intended account and resource, requested operation, and allow-or-deny decision without exposing secrets or document contents. Confirm through the controlled receiving service that refused tests did not create files. Keep these cases as regression tests when connector permissions or routing change.
The fictional manager can now ask a sharper procurement question: “Show me an allowed upload, then show me the same host refusing the wrong account.” The aim is not to ban useful cloud services. It is to make the approved destination mean the company’s authorized account and task, not merely a familiar domain.
Sources: Anthropic, “How we contain Claude,” https://www.anthropic.com/engineering/how-we-contain-claude; and “Claude Code sandboxing,” https://www.anthropic.com/engineering/claude-code-sandboxing.
Book a free 30-minute audit with a senior strategist. We'll map out your ideal architecture, timeline, and budget — no strings attached.