Manuscript Offprint

arXiv:2610.38458

Tracekit Box: Running AI Agents in Micro-VMs Where Every Way Out Is Decided and Signed

Bravish Ghosh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Where Every Way Out Is Decided and Signed

Bravish Ghosh

Cygnux Labs · info@cygnuxlabs.com

Code (MIT): https://github.com/Cygnux-Labs/Tracekit-box

Figure

Figure 1: The architecture of Tracekit Box. Each agent job runs in its own Firecracker micro-VM with no network card. The only ways out are vsock ports served by the daemon on the host: commands, the network (and through it secrets and model calls), and the workspace patch. At each of these doors the daemon asks a Tracekit signer, which the VM cannot reach, to decide and sign what passes. Real keys stay on the host and are added on the way out, only for the hosts they are bound to. When the job ends, the box's record exports as one .tkb bundle that anyone can verify offline.

Abstract

AI agents now do real jobs: they install packages, call model APIs with their operators' keys, and change code in repositories that deploy to production. To do that they need a network, credentials and a way to hand back their work, and each of these is also a way to leak data, steal a key or change a system nobody approved. Sandboxes contain the agent but leave no evidence of what crossed their boundary; tracing records what happened but contains nothing. We present Tracekit Box, an open-source system (MIT licence, v0) that does both. Each job runs in its own Firecracker micro-VM with no network card. The only ways out are a few doors on the host, served over vsock: commands started in the box, outbound connections, secrets, model calls and the workspace patch. At every door a Tracekit signer the agent cannot reach decides what passes and signs it into one run per box. Names are resolved on the host, so the box makes no DNS queries; private, link-

local and cloud-metadata addresses are refused whatever an allowlist says; secrets never enter the VM, which sees only placeholders that the host proxy swaps for real values in one header on requests to the secret's bound hosts; and the agent's changes come back as a patch that is applied to the checkout only file by file, after the signer has decided each file. Everything fails closed: without a signer there is no daemon, and a record Box must keep but cannot stops the box. Each job ends as a single .tkb bundle that anyone can verify offline with tracekit verify.

We report what the v0 implementation has been tested against, and what it has not. All 13 end-to-end checks pass on a real KVM runner in continuous integration, including a box with no network interface, refusal of the cloud metadata address, a secret swapped in for its bound host and blocked in another header, and an exported bundle that verifies; the test that runs them, including image pull and boot, takes

Cygnux Labs

28.5 s. Fifteen fuzz targets cover the proxy's address parsing, TLS ClientHello checks, secret redaction, the guest protocol and the patch parser, and produced nine findings, all fixed. The demo run in the repository holds 102 signed records (46 decisions) and verifies. Box does not yet run Firecracker's jailer, supports one host with a co-located signer, and records the commands an agent starts inside the VM only where they cross a door.

1 Introduction

Coding agents such as Claude Code and Codex, and agents built on frameworks such as the OpenAI Agents SDK or LangGraph, are moving from suggesting changes to making them. A typical job looks small: fix a failing test, upgrade a dependency, open a pull request. To do it the agent needs three things that are also the three ways it can do harm. It needs the network, to install packages and call its model, and the network is how data leaves. It needs credentials, a model API key and often a GitHub token, and a credential the agent can read is a credential the agent can send anywhere. And it needs a way to hand back its work, which is a way to change files nobody reviewed, including the CI workflows that run on the next push.

The text an agent reads (a README, an issue, a web page, a tool result) is often written by someone else, so an agent can be steered into misusing all three by indirect prompt injection [3, 6, 13]. It can also misuse them without any attacker: in September 2026 OpenAI reported that a research agent in a training sandbox reached an outside chatbot by tunnelling through DNS, a path its network filter did not cover [11].

Two families of tools address this today, and each covers half of it.

  • Sandboxes contain the agent: containers, gVisor [12], micro-VMs such as Firecracker [1], and agent-specific sandboxes [2, 4, 9, 10]. They decide what may leave, but they leave little evidence of what did, and the evidence they keep is a log on the same machine, written by the same operator.

  • Recording tools capture what an agent did. Tracekit [5] goes furthest: every tool call is decided and signed by a signer the agent cannot reach, and a run exports as an offline-verifiable bundle. But a signer can sign only what reaches it. An agent in an ordinary environment can open a socket, read a key from its environment or write a file without passing a hook.

Tracekit Box joins the two. It puts the agent in a room whose only exits are doors the host controls, and puts a Tracekit signer at every door. The design follows from one rule: nothing leaves the VM except through a door, and nothing passes a door without a signed decision.