The Block · T6 Security & governance

Agent sandbox

Last reviewed 16 Nov 2026by Pratima Chainani

An operating-system policy around a coding agent that limits which files it may read or write and which hosts it may reach, so that what the agent can touch does not depend on what it decides to do.

See a sandbox in use: fence three in the long form AI agent identity: my coding agent had my real key (the nono kernel sandbox; only build/ is writable).

In my L04 test, a coding agent did a boring job well: it deleted five old build files, tested a signup form and sent a Slack message. To test the form it started a headless browser, and the browser went for my Chrome profile, where my cookies and logins live. Nothing stopped it, and in the same run it read my real Slack token out of the env file.

In the third run the agent ran inside a deny-by-default sandbox (nono): read the project, write only inside the build folder, network only to Slack and the vault, plus two local ports. The sandbox blocked the Chrome folder without a single rule about browsers, because that door was never in the policy.

A sandbox decides where the agent can go, not whether it did the job well, so you still read what it changed.

Common misread

A sandbox needs a rule for every risk.

A deny-by-default policy blocks the doors you never thought of.

For your code

Run your coding agent inside a deny-by-default policy: write access to the build folder only, network to the hosts the job needs, nothing else.

For your roadmap

Make a sandbox policy part of every agent you approve, next to its own identity and a written brief.

Sources

  1. Agentic Ajrak L04, AI agent identity (the three-fence test) · 14 Nov 2026
  2. Infisical, agent-vault · checked 12 Nov 2026
  3. Microsoft Security blog, agentic AI tooling and exposed secrets · 5 Nov 2026

More on T6 Security & governance

Every term, by layer