Skip to content

A hidden prompt made Claude Cowork upload a file to an attacker’s account

PromptArmor showed that a hidden prompt in a document could make the agent upload the user’s largest file to Anthropic’s file API under the attacker’s key.2

Get 30 minutes free every day, forever.3SOC 2 Type II499.9% uptime SLA on Pro4
Claude CoworkJanuary 2026Refused

22 of 50

Stopped Limited: the payment went out through the bank’s own system This case: Claude Cowork. The gate refuses it.

What happened

A hidden prompt sent a user’s file to the attacker’s account.

  1. The folder. A user connected Claude Cowork to a local folder holding a document with a hidden prompt.

  2. The upload. Analyzing the files, Cowork uploaded the largest one to Anthropic’s file API under the attacker’s API key.

  3. The result. The attacker could open the file from their own Anthropic account. No further approval was asked.2

How the gate handles it

With the sealed gate, the upload would have been refused.

On a SealedBox machine the gate would have removed the attacker’s key and used only the sealed one, refusing a call under another account. Press Play to watch the same call.5

Upload carrying another account’s API keySample6
  1. requestPOST https://api.anthropic.com/v1/files x-api-key: <a key the agent supplied>Refused403key_not_ours

RefusedOn SealedBox machines the gate removes any key the agent supplies.

How easy

A team could refuse every upload under someone else’s account in three steps.

Sample
Seal a keyanthropic
Anthropic API key
Paste your Anthropic API key
Your agent never sees the API key.
Anthropic rulesanthropic
Model calls under your account
File uploads under your account
Calls under another account
Applies to every agent in AI platform.
Where approvals goAsk first
Slack
Microsoft Teams
Telegram
Email
A person approves or denies each call that asks first.

Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7

In code

Or in three lines of code.

The same three steps, from the terminal.

Sample
What each line does
1Seal the keysealedbox keys sealThe agent gets sbk_live_4Pz6…h8.
2Set the rulessealedbox rules addCalls under another account are refused.
3Connect approvalssealedbox approvals connectAsk-first calls go to #ai-platform.
Try it

Put the gate in front of your agent today.

Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.

Start free$ sealedbox try5-minute practice run9
Scope

What the gate doesn’t change, and three failures like this one.

Related cases
Answers11

Questions about this case and the gate.

Still have a question?Book a callAll questions
What if a hidden prompt hands the agent someone else’s API key?

On a SealedBox machine, the gate removes any key the agent sends and uses only the sealed one, so a call under another account is refused.

Does this work when the agent runs on my own computer?

Only for calls sent through the gate. On a SealedBox machine every outbound call reaches it; elsewhere, a call that skips the gate is outside it.

Could the file go out some other way?

Not from a SealedBox machine. Everything leaves through the gate, and unlisted places and raw IP addresses are refused.

Is a refused upload recorded?

Yes, every decision gets a receipt, refused calls included. On Pro, Gate only and Custom it is signed, and you can check it on your own computer.