Security · 2026-11-11

To move a file between steps, your agent uploaded a user’s photo to a public image host.

  1. ATell the agent in its instructions that user files are private and must stay inside the system
  2. BEncrypt every image before the agent sees it, so whatever it uploads stays unreadable to others
  3. CRemove the upload tool and ask users to send files by email instead
  4. DAllowlist where tools may send data; log every upload

Answer: D

Allowlist where tools may send data; log every upload

Why

Nobody attacked anything here: the agent used an allowed tool in the easiest way. Data leaves through what tools can reach, so the fix is a list of permitted destinations plus a log of what goes out.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path