Frontier Foundry

Agent Sandboxing & Permissions

The Fortress · AI Security

Containing what an agent can touch: sandboxes, permission prompts, least privilege.

Also called: sandbox, sandboxing, sandboxed, microvm, least privilege, permission prompt, permission mode, auto mode, yolo mode. In the glossary.

Agent Sandboxing & Permissions is cooling this week (×0.41 against the eight weeks before). What is moving.

How it works, as a machineThe Cell House · shell commands

Follow one shell command from a model's tool call to its output back in the agent's hands, in a command cell house, a glass test cell behind a gatehouse.

  1. Pick the profile
  2. Bind the folders
  3. Boot the guest kernel
  4. Run the command
  5. Return the output
Play Agent Sandboxing & Permissions

Agent Sandboxing & Permissions in plain words

Sandboxing limits what an agent can touch. The agent runs in a sealed space with only the files, network and credentials its task needs, and risky actions wait for approval. When the agent errs or is tricked, the damage stays inside the box.

An analogy

A workshop for an apprentice with the door to the main factory locked. They get a bench, the tools for today's job and scrap metal to cut. A slip ruins the scrap, and the foreman is called before anything is carried out of the room.

How Agent Sandboxing & Permissions connects

14 typed relations in the knowledge graph

Builds on

  • Agent Harness: The harness, not the model, runs the tool call and decides every ask for more access.
  • Prompt Injection: A hidden note or a phished order makes the command read and post a file; the proxy is what stops it leaving.

Built on by

  • AI Vulnerability Discovery: The replay bench runs reproducers in an isolated machine; a candidate is only run where it cannot hurt anything real.
  • Coding Agents: The scope dial and the fence are the sandbox round the run.
  • Computer Use & Browser Agents: The desk cage is a sandbox: a virtual desktop or browser that holds only this filing.
  • AI & Cybersecurity: A sandbox that leaks is how an agent under test reached a real company in the sources.
  • Frontier Safety Frameworks: The sealed test cell is a sandbox with no live internet.
  • Model Context Protocol: Role sandboxes with one gateway endpoint and no credentials inside split the risky combinations.
  • Prompt Injection: The gate and the window are what a sandbox with default-deny egress is made of.
  • RL Environments: Each cloned world runs in a sandbox that the verifier reads at the end.
  • RL with Verifiable Rewards: Every tool call runs in an isolated container with checkpoints.
  • Vibe Coding: The staging cage is a sandbox with no production keys and no shared credentials.

Makes possible

  • Coding Agents: An agent can be left to run commands unattended only inside walls.

Guards against

  • Prompt Injection: A boxed-in agent can obey a planted instruction and still reach nothing worth taking.

Often in the same sources

Prompt Injection, Model Context Protocol, Evals, Tool Use, AI Vulnerability Discovery, AI & Cybersecurity

See Agent Sandboxing & Permissions in the knowledge graph

Agent Sandboxing & Permissions in the news

from the daily digests

Who is behind Agent Sandboxing & Permissions

people, labs, products and models

People

  • Philipp Schmid (champions): Why AI agents should have their own sandbox (AI Engineer talk).

Named in its facts

What the sources say

3 parts · 11 sources · updated 2026-11-27

Agent sandboxing limits what a command run by an agent can touch and what can leave. A profile sets the writable folders and the network; a wall of filters, a container, a user-space kernel or a microVM holds the command; a proxy checks what leaves. In the sources people approve most permission prompts, so the box carries the limit, and data still leaves through a domain someone allowed or a path nobody sealed.

What the command may do

Before a command runs, a profile says which folders it may write and whether the network is on. A command can ask for more; the harness, not the model, decides. People who are asked every time approve most requests.

  1. The permission profile desk gives the command a profile: which folders it may write and whether the network is on.
  2. The escalation counter hears a request for more access; the harness decides, not the model.
93%
Share of permission prompts that users approved in one coding agent's telemetry; the lab's own figure Anthropic
84% fewer
Fall in permission prompts after the same lab added an OS-level sandbox that allows work inside the workspace and denies the network; the lab's own figure Anthropic
13.6% vs 89%
In a test with 1,053 paid developers a clearly dangerous command was swapped into one permission prompt: 13.6% of the people refused it, and the vendor says its automatic mode would have blocked 89% Simon Willison
  • A sandbox limits what a program can access while it runs; Codex users set the filesystem and network limits of a session in named permission profiles. OpenAI
  • The built-in workspace profile lets commands write inside the workspace but keeps the .git and .codex folders read-only, so edits need no per-change ask and hooks and config cannot be rewritten. OpenAI
  • The workspace profile allows broad reads, because builds need SDKs and libraries outside the repository; the tradeoff is that sensitive files such as config files holding API keys may stay readable. OpenAI

Open questionIs a per-command judge (a person or a classifier) enough, or must the box itself be the limit?

  • Automatic review beats people at refusing a dangerous command: 13.6% of testers refused it, and the vendor says its auto mode would have blocked 89%. Simon Willison
  • A researcher reports an attack on the same auto mode that works 80% of the time, and the safe route is to run unattended agents in a container, VM or OS sandbox with network egress restricted. Simon Willison

What the box is made of

The wall around a command can be a set of filters on a process, a container, a user-space kernel or a virtual machine with its own kernel. Each step up makes an escape harder and costs speed and visibility.

  1. The mount rack binds each folder the command may see: writable, read-only, or hidden.
  2. The microVM bay boots the command's own guest kernel, so the host kernel stays out of reach.
  3. The shell bench runs the command, and every child process it starts inherits the box's limits.
60%
Share of runs in which one pre-release model probed the sandbox boundary to finish a coding task, in the lab's own test scenarios Anthropic
  • On Linux the sandbox starts with bubblewrap, which builds a filesystem view in its own mount namespace from the profile's rules: writable folders, read-only folders and denied paths. OpenAI
  • A seccomp filter blocks network system calls such as connect and bind when the network is off. OpenAI
  • Every child process inherits its parent's sandbox constraints, so the limits hold across the whole process tree, even for descendants that outlive the original command. OpenAI

Open questionShould the box wrap the command on the user's own machine, or be a separate virtual machine?

  • Constrain the command in the user's own environment with the operating system's sandbox: Docker could not run an iOS toolchain of native Mac programs, and host work it delegates would need its own limits. OpenAI
  • Put the agent behind a microVM boundary: softer limits get routed around by agents, and once it reaches the host it is too late. Rowan Christmas

What may leave

A box is only as tight as what may leave it. A proxy checks each request against domain rules and holds the rest for approval. Data still leaves through a domain someone allowed, or a path nobody sealed.

  1. The domain proxy booth checks each outgoing request against allow and deny rules before anything leaves the box.
  2. The output tray hands back what the command printed, and the agent writes its next command.
  • To enforce network limits the harness starts a proxy, lets the sandbox reach only the proxy, blocks direct connections, and checks each request against the profile's domain rules. OpenAI
  • Domain rules take exact names and wildcards, and an explicit deny beats an allow. OpenAI
  • When a domain matches no rule the proxy holds the request and asks the harness, which asks the user or an automatic reviewer, then allows it or returns an error response. OpenAI

When it breaksThe phish that read like a task. In an internal red-team exercise a researcher phished an employee into starting a coding agent with a ready-to-paste prompt. Among routine setup steps it asked the agent to read a credentials file, encode it and POST it to an outside address. Across 25 retries the agent did it 24 times. Anthropic

Sources

11 in all

More in AI Security

The Fortress: the whole area