AI Agent Security: Secrets and Sandboxes
You will learn where an AI agent can reach credentials in and around a sandbox, why a hidden key is not a safe capability, and how to measure the authority a defense leaves open. Based on Cloudflare and Claude Code documentation and three research preprints.
Episodes
The Trust Boundary
3m 21sCloudflare's Sandbox security documentation says code in a sandbox can use everything it can reach there, including files, credentials, and network access. We cover why every process shares one Linux system with root's capabilities, and why the sandbox is the smallest unit of trust.
What Sandboxes Isolate
3m 51sWhat Claude Code's Bash sandbox restricts by default, what it does not, and which tools never pass through it. By default, sandboxed commands can still read credential files in your home directory, and there is no built-in credential deny list.
Readable, Seen, or Leaked
2m 57sUsing Cloudflare's example of a token saved in a repository's Git config, we separate a readable secret, a secret that crossed a boundary such as model context or logs, a leak to an unauthorized destination, and unauthorized use.
Keys Behind a Broker
3m 31sCloudflare's documented pattern for calling the GitHub API from a sandbox: the token stays in your Worker, which allows one read-only request before adding it. Why hiding a key is not enough without limiting what it can do.
Snapshots and Sandbox Names
3m 55sHow Cloudflare sandbox names, snapshots, and mounted buckets decide which saved files, including credentials, a later request can reach, and why the name must come from an authenticated identity.
Auto Mode vs the Sandbox
3m 39sWhat Claude Code's permission modes decide, what auto mode's classifier reviews, and why its documentation says auto mode does not guarantee safety. Deny rules and the sandbox hold regardless of what the model chose to run.
Hidden Keys, Open Privilege
3m 44sAjar asks five agent defenses about tool calls a run never made, using 10,471 tests built from AgentDojo tasks. We cover over-privilege leakage, sufficiency, the results, and the limits of an unreviewed preprint.
Deterministic Privilege Control
3m 45sHow Progent, a research preprint, enforces least-privilege policies at the tool-call boundary, what its AgentDojo and ASB results measured, and which attacks it says it cannot stop.
Monotonic Confinement
4m 10sHow Progent uses an SMT solver to classify each policy update as a narrowing or an expansion, why narrowings can apply automatically, and what an independent measurement found about its update step.
Memory That Persists
3m 39sThe persistent memory poisoning study on OpenClaw and Claude Code harnesses running DeepSeek and Qwen models: how a stored rule triggers in a later session, the results, a prompt defense that did not stop it, and what the study did not test.
Testing the Boundary
3m 27sBuild a boundary test with fabricated credentials and a mock service on isolated infrastructure you are authorized to test. Report exposure, open privilege, false blocks, and revocation alongside attack success.