Skip to content

Security model

What abx isolates, which controls it adds around the VM, what you still have to trust, and where the limits are.

Updated

abx runs coding agents in smolvm microVMs so that an agent’s mistakes, or a hostile repository’s instructions, have a limited blast radius on your machine. This page states what each control covers and what it does not. Read it before you decide what to put in a box or what to grant it.

The short version

  • Each box is its own microVM with its own disk. The only host directory it mounts is transcripts/.
  • Work comes back to your checkout only through abx diff and abx land, and abx refuses changes to paths that can run code on your host until you confirm them.
  • In masked access, the real credential stays on the host. The guest holds an opaque handle that works for one endpoint.
  • The network is off or an exact-hostname allowlist, fixed at creation.
  • abx is not a guarantee. The VM boundary is smolvm’s, and some modes deliberately give the guest the real credential.

What isolation covers

Process and filesystem. Each box runs in a dedicated microVM and has a dedicated disk. A Git box gets a copy of your repository’s commit, not your working directory. A scratch box starts empty. abx does not copy files from your host into a scratch box, and nothing from a box reaches your checkout unless you land it. The transcripts directory and the allowed network hosts are the other ways out.

One shared directory. The only host directory a box mounts is its transcripts/ directory, at /abx/transcripts. abx records the path in box.json and requires it to equal transcripts/ under the box’s own directory, so an edited record cannot mount another host directory. Before it runs anything, abx also compares the machine’s mounts, network settings, credential bindings and labels with the recorded values and stops with policy-mismatch on a difference.

Host state. abx creates directories in $ABX_HOME with mode 0700 and files with mode 0600, and refuses a home that is a symlink, belongs to someone else, is open to other users, or has another layout. Files that hold credentials or state are read and written through code that refuses symlinks, wrong owners and loose modes. On Linux, abx also requires an unprivileged user, trusted paths for the tools it runs, and local ext4 for its state. See Linux hosts.

Credentials

How a guest gets a credential depends on the access mode you select. See Access modes for the full description.

Access The guest can If the guest is compromised
masked Send authenticated requests through a per-box handle bound to one HTTPS endpoint. It can use the handle against that endpoint while the box runs. It cannot read the real key or token. Revoking the binding disables the handle.
global Read, use and update the real login. It holds the real login.
local Read, use and update the real login. It holds the real login, on that box’s disk.

In masked mode, API keys and host-managed OAuth tokens stay on your machine. The secret reference is saved in $ABX_HOME/config.toml, which holds references and never secret values. smolvm swaps the real credential in for the handle, and only on requests to the bound host. A credential binding must name a host that is on the box’s allowlist.

global and local modes are for logins that happen inside the guest. abx auth status reports global access as experimental. Removing a guest-readable profile from a box cannot revoke a copy that guest software already made. Use the provider’s account controls for that.

Masked credentials are also tied to verification. A receipt from abx auth verify is bound to the local machine identity, host OS and architecture, smolvm version and the image. Copying $ABX_HOME to another host leaves agents unverified until you verify them there. See Verification.

Network

A box has one of two policies, chosen when it is created and never changed afterwards:

  • off: the guest reaches nothing.
  • restricted: the guest reaches the exact hostnames in the policy. Private, loopback, link-local, multicast and other reserved address ranges, IPv4 and IPv6, are denied even if an allowed name resolves into them.

Before it starts, stops or renews credentials for a box, abx reads what smolvm reports and refuses if it differs from the saved policy. The allowlist is the union of the granted agents’ endpoints and any --allow hosts. A plain abx shell box starts offline. See Network policy.

An allowed host is still a path out. An agent that can reach its model provider can send that provider anything it can read in the box.

Getting work back

abx never runs Git commands against files the guest can write. The guest’s commits arrive as a bundle, are imported into a staging repository that only the host writes, and are checked as a tree before abx diff shows them. abx land applies exactly what the last abx diff showed. If the guest branch, your branch or the landing mode has changed since, land refuses.

Executable paths

land refuses a change that touches a path that can run code on your machine, lists the paths, and proceeds only with --allow-executable. A path counts when it is executable (mode 100755) on either side, when it sits under a directory such as .github, .claude, .codex, .husky, .vscode, .idea, .circleci, .buildkite or .abx, or when its file name is one of a fixed set, including .envrc, .npmrc, .gitattributes, .gitmodules, package.json, Makefile, AGENTS.md, CLAUDE.md and *.config.{js,ts,...}. The complete rule is on Executable paths.

This is a check on the paths in the diff, not a review of the code. A change to a source file that your tests, build or editor will later run is not flagged. Read the diff before you land it.

Removing work

abx rm refuses to delete unlanded commits without --force. It does not check uncommitted guest changes or the files of a scratch box.

Trust boundaries

Two zones. The untrusted, guest-controlled side holds everything in the guest, the transcripts directory and guest Git commits. The trusted host side holds ABX_HOME and config.toml, smolvm 1.38.2 with host tools and agent CLIs, and abx diff. A green arrow marked checked carries guest commits from the box to the host, where abx diff shows them.

Input Trusted? Why
Anything inside the guest No The agent, its tools and the repository content can all be hostile.
transcripts/ and its archives No The guest can change, delete or fill them, and symlinks appear as real host symlinks. abx never creates, writes or follows anything below that directory. Read it without following symlinks.
A workspace marker in a downloaded folder No It can only select an id, never a path. A malformed marker is an error.
Guest Git commits Checked They arrive as a bundle and are checked as a tree before they are shown.
$ABX_HOME and config.toml Yes They are yours, protected by mode 0700 and 0600 and by owner and symlink checks.
smolvm, the host tools abx runs, and the agent CLIs Yes abx pins smolvm to 1.38.2 and checks it, but it does not audit it or the agent CLIs.

What abx does not do

  • It does not make an agent’s output correct or safe. Review what you land.
  • It does not defend against a flaw in smolvm or the hypervisor. Those are reported upstream. abx pins smolvm 1.38.2.
  • It does not protect credentials you give the guest with global or local access.
  • It does not restrict what an agent does with the files in its own box, or with the endpoints you allow.
  • It does not make restricted network proof against a determined guest. See above.
  • It does not offer a way to hide transcripts from the agent, or to keep them from the agent’s own commands.

Reporting a vulnerability

Report security issues privately through GitHub Private Vulnerability Reporting, not in a public issue. See Security.

Type to search…

↑↓ navigate↵ selectEsc close