Why Open-Source Sandbox Infrastructure Is Easier to Audit
Open code lets teams test isolation, logging, and policy claims themselves.

Open-source sandbox infrastructure is easier to audit because teams can inspect the code that enforces isolation, applies policy, and records execution. That access makes security claims independently testable, which is essential when the code running inside the sandbox is itself untrusted.
Why the trust problem is structural when agents execute code they did not write
AI agents can delete files, send messages, invoke third-party APIs, issue payments, and cross permission boundaries. Their failures are therefore system problems. The execution environment becomes part of the trust boundary because it governs what untrusted code can do. A convincing model response says little about that boundary.
Auditable Agents distinguishes accountability, the ability to determine compliance and assign responsibility, from auditability, the system property that makes those judgments possible. Auditing then reconstructs behavior from trustworthy evidence. The paper finds that most deployed agent systems cannot confidently establish what happened, whether policy was followed, or who was responsible. Observability often leaves out retries, fallbacks, approvals, and handoffs between agents. When the code inside the sandbox cannot be trusted, what does it take to trust the sandbox?
What auditability requires from an agent system, stated precisely
Auditable Agents defines five jointly necessary dimensions for a defensible post-deployment audit. Action recoverability concerns reconstructing actions, while lifecycle coverage extends that reconstruction across execution. Policy checkability makes compliance assessable against declared rules, and responsibility attribution connects actions to the components responsible for them. Evidence integrity makes the record itself trustworthy.
The paper also names three classes of mechanisms: detect, enforce, and recover. No single temporal vantage point satisfies all five dimensions in practice, so post-incident logs cannot substitute for controls before and during execution. Evidence integrity is the load-bearing requirement. Records that can change silently cannot reliably support the other judgments, and existing records rarely support mechanical policy checking. Shallow skill provenance further weakens attribution when logs omit where a tool came from or what permissions it used.
The paper finds that even basic security prerequisites for auditability are widely unmet across six prominent open-source projects. Open source makes auditability possible through inspection and modification. It does not establish that those tasks have been completed. The distinction is between an accessible implementation and a verified one.
How proprietary sandbox infrastructure makes each of those five dimensions unverifiable
Closed infrastructure places the implementation behind a vendor relationship. A customer can read the records it gets and test the behavior it can see, but cannot check for itself how the runtime produces either. For action recoverability, that leaves uncertainty about what the record omits. For lifecycle coverage, it prevents checking whether error paths, retries, and handoffs receive the same treatment as successful execution.
The same limit affects the remaining dimensions. A closed policy engine exposes decisions without exposing all the logic behind them, while a black-box runtime obscures responsibility across agents, tools, and execution components. A vendor may supply logs, but the customer cannot check the code to see whether it makes silent changes detectable.
Code as Agent Harness describes code as the means by which agents reason, act, take in feedback, and check their progress. That reasoning also applies to the infrastructure executing those actions. If its implementation cannot be read, part of the verification chain remains inaccessible. Closing a discovered gap then depends on the vendor’s priorities rather than a change the team can propose in a pull request.
What open-source isolation primitives actually expose to an auditor
gVisor provides a concrete example of inspectable enforcement. It is Google’s user-space kernel for container workloads, written in Go, released under Apache 2.0, and run through an OCI runtime called runsc. It intercepts every syscall before it reaches the host kernel. An auditor can therefore read which syscalls are permitted or blocked and how the interception path handles them. The boundary has an implementation that can be examined.
If prompt injection drives code toward a sandbox escape, that code must get past the execution boundary as well as break a stated policy. Readable interception logic lets an auditor assess that boundary directly. Open isolation primitives also let auditors see the controls for mounted paths, reachable network hosts, and dropped capabilities.
AgentKernel argues that the missing foundation is an operating-system substrate providing mandatory, non-bypassable identity, input mediation, memory governance, and execution control. The paper finds that even governance stacks that work well are still application-level middleware that shares a process trust boundary with agents. That shared boundary deserves scrutiny. Inspecting the isolation underneath it makes it possible to evaluate whether governance is protected from the execution it governs.
Why tamper-evident logging and supply-chain transparency require inspectable code
Isolation establishes what execution can reach, while logging establishes what evidence survives it. A claim of SHA-256 integrity does not, by itself, show that a hash chain is correctly constructed or covers every action type. Inspectable hashing and logging code lets an auditor examine whether the record is tamper-evident by construction. Without that access, the customer cannot independently establish the basis of the claim.
Supply-chain transparency asks a different question before execution begins. What code is entering the sandbox, and where did it come from? Open source lets operators check dependencies before production, but they also need to check agent infrastructure during execution because agents can install skills and tools at runtime. Inspectable package handling makes that expanding dependency surface available for review.
Auditable Agents finds that pre-execution mediation with tamper-evident records adds only a small median overhead. That result weakens the argument that verifiable logging necessarily imposes an impractical performance cost. It does not eliminate the need to inspect coverage and correctness. A fast record is useful only if it preserves the evidence an audit needs.
How policy-as-code and pre-execution mediation make enforcement checkable, not just claimed
Open Policy Agent (OPA) expresses security policy as readable, testable Rego code across traditional infrastructure and agentic workloads. A compliance reviewer can read a policy file, run sample inputs against it, and check whether its decisions match the stated rules. The rules become artifacts that can be tested. This directly supports policy checkability without requiring the reviewer to accept a vendor’s description of the policy.
However, readable rules alone do not establish when they run. AEGIS, which Yuan et al. introduced in a separate paper, uses a pre-execution firewall and audit layer to check every tool call before it fires. Auditable Agents draws on that work to show that checking at the enforcement point is operationally viable with small overhead. The timing is central to the distinction. A record of a forbidden action is not the same as a check before that action executes.
Agent manifests extend this visibility to permission scope. Open-source runtimes can declare the filesystem paths, network hosts, tools, and credentials an agent may access in human-readable, version-controllable documents. Review can therefore begin before the agent runs. Inspectable enforcement logic then allows the declared scope to be assessed against the mechanism applying it.
What stateful checkpointing adds to an audit trail for long-running agents
Long-running agents accumulate state, so individual action records are not enough to reconstruct their execution. A checkpoint records full sandbox state at a point in time. This strengthens action recoverability and lifecycle coverage together. It connects what an agent did to the state from which it acted and gives reconstruction a durable starting point.
DeltaBox, introduced by Dong et al. in 2026, implements millisecond change-based transactional checkpoint and rollback of full sandbox state. It uses copy-on-write filesystem layers, incremental process dumps, and warm-template forking, with checkpoint and restore exposed as LangGraph tool nodes. Those operations become explicit, auditable graph actions. LangGraph models execution through nodes, edges, and conditional transitions, with checkpointing, interruption, resumption, and human-in-the-loop pauses available at nodes. Its open checkpointer code makes the checkpoint mechanism inspectable.
CRAB, which Wu et al. introduced in 2026, uses eBPF to classify each turn’s operating-system effects so that durable checkpoints line up with turn boundaries. The paper reports that recovery correctness was 100% in its 2026 measurements. The classification logic is open to inspection. An auditor can examine whether operating-system effects are assigned to the correct agent turn. Inspectable checkpointing makes replay credible as an audit mechanism for reconstructing the sequence of actions.
Where open-source auditability meets regulatory obligation
The EU AI Act’s Article 12 requires logging capabilities that let reviewers trace how a high-risk AI system works in a way that fits its intended purpose. That traceability supports risk identification, post-market monitoring, and operational monitoring. Auditable Agents finds that LangChain, CrewAI, and AutoGen offer varying trace logging but do not yet produce audit trails meeting that requirement. Source availability makes the logging layer accessible for changes that could close the shortfall.
Microsoft released the Agent Governance Toolkit under the MIT license to address all ten OWASP agentic AI risks, with full coverage for seven and partial coverage for three. The toolkit provides deterministic, sub-millisecond policy enforcement. Its Agent Compliance module automatically checks governance by grading compliance against mappings to the EU AI Act, HIPAA, and SOC 2, and collects evidence for all ten risk categories. Such mappings provide material for review.
Under GDPR, teams also need evidence of data residency. Open-source frameworks on infrastructure that operators control let teams show auditors and data-protection officers where data actually flows, without having to rely on vendor attestations.
The strongest objection is that open source also exposes the attack surface
Readable source gives attackers access to the same enforcement paths that auditors examine. That is a real cost of disclosure. Evidence from open-source projects may also leave out some of the conditions found in enterprise deployments. Neither concern should be dismissed simply because inspectability is useful.
The alternative, however, does not remove the attack surface. Auditable Agents reports 617 security findings across six prominent open-source projects, demonstrating that openness is not automatic security. Those findings were discoverable precisely because the implementations were inspectable. A customer cannot conduct the same source-level audit of an inaccessible runtime.
Community-driven review also makes discovery, CVE assignment, and fixes visible, exposing the security history as well as the current code. That history gives operators evidence about how vulnerabilities have been handled. Deployment context can change the risks under examination, but not the underlying access constraint.
What teams building on AI-generated code should require from their sandbox infrastructure
Sandbox infrastructure should be evaluated against all five auditability dimensions. Teams should require evidence of action recoverability, lifecycle coverage, policy checkability, responsibility attribution, and evidence integrity. Each should be examinable in the code. A specification describes an intended property, while an implementation reveals how that property is enforced and where its coverage ends.
At the isolation boundary, that means readable source for the syscall interception or microVM enforcement path. For logging, it means inspectable hash-chain construction. Policy should be readable, version-controlled, and testable code. State should be checkpointable and replayable through open checkpointer code so that reconstruction is a technical operation.
Generic developer tooling retrofitted for agents was not designed around these requirements. Purpose-built runtimes offer the relevant foundation when they are open-source, stateful by design, and built with separated isolation and enterprise compliance. Those properties still need examination. A team must be able to inspect and test the mechanism behind each security claim, then change it when the evidence reveals a gap.


