Hey {{first name | there}}. Over the weekend I was thinking of just how many fail-safes and guardrails we have built into modern living that we almost don't think about them.

Circuit breakers, both in hardware and software, have existed for a while now. Fuses stop a short circuit from turning into a house fire, and even certain software will stop responding after N number of failed attempts, all to protect the system from whoever is on the other end.

If you're wondering where I am going with this, I think guardrails for agents don't exactly have a standard in the way that we have things like Open Policy Agent or IAM be the universal way we think about access control.

In this edition, I want to talk about some of the tools I have found for trying to implement access controls for agents.

In today's technical notes:

  • Sandboxes for coding agents

  • Policy engines for tool calls

  • Smaller tools, fewer permissions

📰Technical notes: Access controls for agents

Sandboxes for coding

The closest thing we have to a fuse right now is the sandbox, which limits what the process can touch whatever the model was told or decided.

Anthropic open-sourced the runtime behind Claude Code's sandbox as sandbox-runtime, or srt. It uses sandbox-exec on macOS and bubblewrap on Linux, so you do not need a container, and it works on any process, not only Claude. You wrap a command, and it reads its rules from ~/.srt-settings.json:

npm install -g @anthropic-ai/sandbox-runtime

srt "curl example.com"   # Connection blocked by network allowlist

{

  "filesystem": { "allowWrite": ["."], "denyWrite": ["~/.ssh"] },

  "network": { "allowedDomains": ["registry.npmjs.org"] }

}

Anthropic's post on Claude Code sandboxing makes the case for needing both halves. Without network isolation, a compromised agent can send your SSH keys somewhere. Without filesystem isolation, it can edit its way out of the network rules.

OpenAI went the same way with Codex. Inside the Codex sandbox explains its permission profiles. The default lets Codex write inside the workspace, keeps .git and .codex read-only, and turns the network off.

If you would rather keep the agent off your laptop entirely, Docker Sandboxes run it in a container with network and filesystem policies around it.

Policy engines for tool calls

Sandboxes work at the level of files and sockets. They cannot tell refund(order_id=12) from refund(order_id=12, amount=5000). For that you need something that reads each tool call and decides, outside the model, whether it is allowed.

This is where it starts to look like the OPA and IAM world we already know. AWS put Cedar, the policy language behind Verified Permissions, in front of agents with Policy in Amazon Bedrock AgentCore. Every agent-to-tool request through the AgentCore Gateway is checked against Cedar policies, and you can write those policies from plain English descriptions of your business rules.

If you are not on AWS, Microsoft's Agent Governance Toolkit is the most complete open source option I found. It intercepts tool calls, messages and delegations in application code before they leave the process, gives each agent its own identity, and keeps an audit log of what was allowed and why. It is a pip install and has adapters for the common agent frameworks.

The other pattern that keeps coming up is OPA and Rego inside agent hooks, like Claude Code's PreToolUse hook, which runs before every tool call and can block it. It works, but everyone writes their own version.

On Smaller tools

Tim Ariyeh's argument in An Agent's Tools Are Its Permissions is that the tool list is the access control list. A tool called execute_sql hands the agent every permission the database connection has, whatever the system prompt says. A tool called get_order(order_id) can only read one order.

Simon Willison's lethal trifecta gives you a quick way to check a setup. If one agent has access to private data, reads untrusted content, and can talk to the outside world, someone can get it to leak that data. Take away any one of the three and that attack stops working.

🌍IN THE ECOSYSTEM

Enforce least-privilege authorization in multi-agent AI chains using Cedar on the AWS Security Blog. Walks through a three-layer Cedar policy model that checks agent-to-tool calls, agent-to-agent delegation, and what the original user was allowed to do, so permissions don't grow as agents hand work to each other.

Agentic AI and Security by Korny Sietsma on Martin Fowler's site. A practical walkthrough of the risks and mitigations, including running agents in containers and splitting tasks so each step blocks at least one part of the trifecta.

Design Tenets for Agent Identity Management Systems from NIST. Ten proposed tenets for agent identity, including unique agent identities, zero standing privilege, and scopes that shrink as work is delegated to sub-agents.

⏱️UNTIL NEXT TIME

That’s it for this issue.

Know an engineer who will find this helpful? Share this link with them

Jubril Oyetunji
CTO, EverythingDevOps

HOW DID WE DO?

Login or Subscribe to participate