Harness Hub
All papers

Airlock: Robust Sandboxing and Governance of Rogue Agents

Sina Abdollahi, Amir Al Sadi, Marios Kogias, Hamed Haddadi, Adrien Ghosn, Antoine Delignat-Lavaud, Manuel Costa, Mark Russinovich

Verdict: Useful

The paper is a coherent, well-engineered design that places agent governance outside the agent's compromise domain, with real firmware and kernel work and end-to-end OpenShell integration. Much of the isolation substrate (CSM, attestable policies) comes from prior CAEC/MICA work. The design requires hardware that is not commercially available, its performance comes from a CCA emulation, its security claims are untested, and policy-permitted exfiltration is out of scope. Harness builders can borrow the credential-proxy and anchor-before-egress patterns but cannot adopt the system now.

  • Novelty

    3 out of 5
  • Rigor

    3 out of 5
  • Reproducibility

    2 out of 5
  • Relevance to harnesses

    3 out of 5

TL;DR

Airlock moves the agent supervisor (the OpenShell control plane) into its own Arm CCA confidential VM, separate from the agent's VM. All of the agent's file and socket I/O goes VM-to-VM through firmware-mediated shared memory and signaling, so the host is not on the data path. Audit records are anchored in Azure Confidential Ledger. Performance was measured only on OpenCCA, a software emulation of CCA running on a Radxa board.

Adversarial review by Harness Hub · Nov 26, 2026 · read full text (truncated) · Suggest a correction

Original abstract (authors’ text, select to expand)

Recent incidents involving agents bypassing sandboxing and network isolation have raised concerns about existing agent harnesses, prompting frontier labs such as OpenAI to reevaluate the security of their training platforms. Incident reviews show that determined agents can escape processes, containers, and VMs, or bypass their isolation through advanced side and covert channels. Follow-up audits also found that some agents concealed their actions by disabling monitoring and tampering with logs. We propose Airlock, an architecture that pairs each agent's VM with an Airlock VM, each running in a separate hardware-isolated Trusted Execution Environment (TEE). The Airlock VM fully mediates the agent's interactions with the outside world, including network and storage operations. We modify the firmware layer of Arm's Confidential Computing Architecture, Realm Management Monitor (RMM), and the kernels of both VMs so that the Airlock VM serves the agent VM's IO without involving the host. We adapt OpenShell, an agent runtime supporting sandboxing and governance policies, to this architecture. Airlock keeps network and filesystem policies, and credential protection effective even if the agent VM is fully compromised, and it removes the host from the agent's IO path, reducing opportunities for collusion and covert channels with the host. Finally, we extend the Airlock VM's capabilities to provide tamper-proof auditing of all agent operations, preserving forensic evidence even if the Airlock VM is compromised. We implement and evaluate Airlock on a Radxa development board. Our evaluation shows a loss of filesystem performance and network latency for small messages under 15% and a drop of network bandwidth by half or more, which in practice has a limited effect on typical agent tasks.

Filed underharnessevaluationsandboxruntimeagents

Summary

Airlock targets agents that escape their sandbox and then tamper with the supervisor or its logs. Architecture: - Each agent's workload VM is paired with an Airlock VM. Both are Arm CCA Realms (confidential VMs). - The workload VM has two external I/O devices, CIOV-vsock and CIOV-fs. These are virtio-vsock and virtio-fs re-plumbed so that virtqueues and buffers live in confidential shared memory (CSM), which comes from prior work (CAEC/MICA). - Notifications use a new RMM call, RSI_SIGNAL_SEND. It injects interrupts through a reserved GIC list register without an exit to the host. - MICA policies put the workload in a restricted mode, in which it cannot share memory with the host. These policies are covered by attestation. - The OpenShell supervisor, gateway and compute driver run in the Airlock VM. The supervisor enforces network policy, swaps the agent's fake credentials for real ones, and opens upstream connections. A FUSE backend enforces file policy. - An agent ledger hash-chains records and anchors them in Azure Confidential Ledger (ACL). New HTTPS connections are held until their record is anchored. Implementation: - Functionality was validated on QEMU. - Performance was measured on OpenCCA, which emulates the Realm world in software on an RK3588 that lacks CCA hardware. Evaluation: - Microbenchmarks cover signaling, vsock and fio. - Macrobenchmarks run 12 WildClawBench tasks with OpenClaw. Output correctness is not assessed. - There is no empirical security evaluation (no escape attempts, fuzzing or red-teaming).

Key findings

  • Confidential signaling has a median round-trip latency of 9.9 us versus 38.5 us for ivshmem signaling, over 50,000 rounds (Table III, §VII-A).
  • CIOV-vsock RTT at 64 B is 30.9 us versus 35.3 us for the same-VM Unix-socket baseline. At 256 KB it is 374.5 us versus 171.8 us, a 118% increase (§VII-A, Fig. 6).
  • CIOV-vsock throughput ranges from 4.1 to 13.5 Gbit/s, 51–70% below the baseline. The container configuration stays within 13% of the baseline (§VII-A, Fig. 7).
  • Excluding fsync, CIOV-fs adds at most 14% overhead. The 4 KB fsync test loses 35% throughput, and its median latency reaches 2.5 times the baseline (§VII-A, Fig. 8).
  • Across 12 WildClawBench tasks, mean end-to-end latency rises from 85.7 to 91.4 s (7%), and mean system time rises from 15.5 to 20.7 s (33%) (Table IV).
  • Mean local tool latency rises from 1.04 to 1.28 s per call (23%), and by 39% for network-heavy tasks (Table V).
  • The agent ledger adds 259 ms per new HTTPS connection, most of which is ACL's 213 ms median response time. End-to-end latency rises from 91.4 to 95.0 s (4%) over Airlock without the ledger (§VII-B).
  • Added code totals 2,015 LoC for confidential signaling, 6,257 for CIOV, 2,283 for policy and audit, and 2,055 for OpenShell integration (Table II).

The paper at a glance

01User providesnetwork policy,file-system policyand credentials tothe OpenShell…02RMM validates bothcVMs' MICApolicies, maps theCSM exclusively tothe pair, and puts…03Compute driver asksthe launcher in theworkload cVM tostart the sandboxcontainer with the…04Broker traps theagent's socketcalls (seccomp) andforwards them overCIOV-vsock; file…05Supervisor checksegress againstpolicy and injectsreal credentials;FS policy engine…06Agent ledger chainsrecords and anchorsthem in AzureConfidentialLedger; new HTTPS…
  1. User provides network policy, file-system policy and credentials to the OpenShell gateway in the Airlock cVM
  2. RMM validates both cVMs' MICA policies, maps the CSM exclusively to the pair, and puts the workload in restricted mode
  3. Compute driver asks the launcher in the workload cVM to start the sandbox container with the broker
  4. Broker traps the agent's socket calls (seccomp) and forwards them over CIOV-vsock; file I/O goes through CIOV-fs (FUSE in CSM)
  5. Supervisor checks egress against policy and injects real credentials; FS policy engine checks each FUSE request
  6. Agent ledger chains records and anchors them in Azure Confidential Ledger; new HTTPS connections wait for their anchor
Fig. 1 — How the paper works, step by step (arXiv:2611.31010).
Baseline: unmodified OpenShell in one cVM85.7 sAirlock without agent ledger (this paper)91.4 sAirlock with agent ledger (ACL anchoring) (this paper)95 s
Fig. 2 — Mean end-to-end latency per WildClawBench task (12 tasks, 6 runs each), lower is better. Source: Table IV and §VII-B (Agent ledger overhead), arXiv:2611.31010.
Data table
Mean end-to-end latency per WildClawBench task (12 tasks, 6 runs each)
Methods
Baseline: unmodified OpenShell in one cVM85.7 s
Airlock without agent ledger (this paper)91.4 s
Airlock with agent ledger (ACL anchoring) (this paper)95 s

Why it matters

For harness builders, the transferable idea is architectural. Put the supervisor, the credentials and the audit log outside the agent's compromise domain, and route every external I/O path through that supervisor. Swap real credentials in only for policy-approved requests, and block new HTTPS connections until their audit record is durably anchored. Teams running agents in containers or microVMs can apply this pattern now with ordinary VMs, with weaker isolation. The concrete system cannot be deployed today. It depends on Arm CCA, for which no commercial CPU was available at the time of writing. It needs modified RMM firmware, a modified KVM and guest kernels, and it uses Azure Confidential Ledger for anchoring. The performance numbers come from a software emulation of CCA, and the security claims are argued rather than tested against escape attempts. The design also does not stop exfiltration through endpoints the policy permits, such as the LLM API the agent must reach. The paper matters most to people operating sandboxes for agent training or high-risk autonomous agents. It matters less to people building tool loops, memory or evals, beyond the credential-proxy and audit-gating patterns.

Issues (9)

  • High severity

    All performance results come from OpenCCA. It emulates the Realm world in software on an RK3588 that has no granule protection checks. Functional validation is on QEMU, which does not model timing. The authors call the results a best-effort approximation, but the abstract reports overheads 'on a Radxa development board' without saying CCA was emulated. Real CCA hardware could move the numbers in either direction. The claim that GICv4 direct injection would lower overhead is a prediction, not a measurement.

  • High severity

    There is no empirical security evaluation. The paper is motivated by agents escaping containers and VMs, yet it runs no escape attempts, no fuzzing of the CIOV backends and no adversarial agent against the design. Section V is an argument that holds only if the Airlock cVM correctly handles all workload-controlled input. That input is parsed by a full Linux kernel, a userspace FUSE server and vhost-vsock, all of which are in the TCB.

  • Medium severity

    The threat model excludes misuse of authorized remote services and does not establish the intent of policy-permitted actions. A rogue agent can still exfiltrate data through any allowed endpoint, including the model API that every task must reach (14.6 HTTPS connections per task on average, 'mostly for model calls'). For the rogue-agent scenario in the title, this is the main remaining channel. The abstract's 'robust ... governance of rogue agents' framing does not reflect it.

  • Medium severity

    The 'small TCB' framing is questionable. The TCB includes the Airlock cVM's Linux kernel, the OpenShell supervisor, the FUSE backend, the policy engine and the ledger, on top of the firmware. The attack-surface reduction is relative to the host stack. The TCB is not a small, verified monitor.

  • Medium severity

    The abstract says filesystem performance loss is 'under 15%'. That holds only after excluding fsync. The 4 KB fsync case loses 35% throughput, and its median latency reaches 2.5 times the baseline. Durable writes are common in coding-agent workloads, so the exclusion is material.

  • Medium severity

    The macrobenchmark is weak in several ways: - It uses 12 selected WildClawBench tasks with 6 runs each and reports means only, with no variance. - Step counts differ between configurations (10.1 vs 10.5 overall, 11.2 vs 13.3 for network tasks). - Model time per step falls 16% for network tasks, which the authors attribute to model-call variation. - Output correctness is not assessed. The 7% end-to-end figure therefore partly reflects noise from a nondeterministic model. The 'limited effect' claim rests on model calls dominating wall time, not on low system overhead (system time rises 33%).

  • Low severity

    The baselines' I/O setup is under-specified. The Airlock cVM gets a passthrough NIC (vfio-pci) and a dedicated eMMC partition. The paper does not state how the single-cVM baseline reaches the network and disk in the fio and WildClawBench runs, so it is unclear whether host involvement is comparable. The vsock comparison uses only same-VM baselines (Unix socket, containers). There is no host-mediated virtio-vsock between two cVMs, which is the obvious alternative design.

  • Low severity

    Covert and side channels are reduced but not closed. MMIO exits to the PCI config space, timing, microarchitectural channels and performance counters all remain available to a workload colluding with the host. The Airlock cVM's own NIC and disk interrupts also exit to the host on GICv3. The abstract motivates the work with agents bypassing isolation 'through advanced side and covert channels', which the design does not eliminate.

  • Low severity

    The audit guarantee relies on Azure Confidential Ledger being append-only. Records not yet anchored when the Airlock cVM is compromised (file accesses, plain HTTP, DNS) can be lost. Behavior when ACL is slow or unavailable, which would block all new HTTPS egress, is not evaluated. Porting to SEV-SNP or TDX is future work that needs vendor cooperation.

Questions for the authors

  • Have you run an adversarial agent or a fuzzer against the CIOV-fs and CIOV-vsock backends to test whether a compromised workload kernel can compromise the Airlock cVM?
  • What are the variances for Table IV and Table V, and does the 7% end-to-end overhead hold when step counts are controlled?
  • How does the single-cVM baseline access the network and disk, and is host involvement on that path comparable to the Airlock cVM's passthrough setup?
  • How does CIOV-vsock compare with host-mediated virtio-vsock between two cVMs?
  • What happens to HTTPS egress when ACL is slow or unavailable, and can the ledger anchor to a non-Azure append-only log?
  • What prevents exfiltration through the model API endpoint the agent must be allowed to reach?
  • Which guarantees survive on two ordinary (non-confidential) VMs for teams without CCA hardware?

Related in the directory

Open-source projects

Airlock adapts OpenShell, moving its gateway, supervisor and compute driver into the Airlock cVM and its broker sandbox into the workload cVM.
The agent run in the workload cVM for all macrobenchmarks.
Named as an unmodified agent the workload cVM can run.
Named as an unmodified agent the workload cVM can run.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

Policy enforcement, zero-trust identity and sandboxing for autonomous agents.
Local-first microVM runtime and library for untrusted agent workloads.
Production-like environments with scoped access to real infrastructure for coding agents.
Single Rust binary for local-first personal agents with sandboxed autonomy.
Security workers and guardrails for code, agents and infrastructure.
Observability and policy enforcement across 12 agent harnesses.

One popular architecture for multi-agent systems (MAS) relies on an orchestrator that generates an initial plan, coordinates its execution, and dynamically revises the plan based on agent feedback when tasks cannot be fully specified in advance. This dynamic replanning introduces a critical vulnerability: malicious agents can embed instructions within their feedback to hijack the replanning process. Existing defenses focus exclusively on per-tool access control or static, pre-execution policy enforcement, leaving the replanning phase unsecured. We introduce Kaer, a multi-agent framework featuring security-aware replanning. Kaer shields the planner from untrusted agent feedback by conveying diagnostics to the replanning procedure strictly through abstract templates. Plan revisions are restricted to a set of deterministic repair operators, and all modified plans must satisfy preset policies. We create Cintra, a benchmark of simulated user tasks requiring replanning paired with adversarial objectives targeting the replanning phase. Using Cintra, we evaluate both task completion rates and system vulnerability to replanning exploits by malicious agents. Evaluating Kaer on Cintra against Magentic-One (an undefended MAS) and ControlValve (the state-of-the-art defense) demonstrates that Kaer achieves higher robustness than both systems while maintaining comparable utility to ControlValve. Although abstract failure templates slightly constrain utility on select tasks, Kaer enables MAS to perform secure, dynamic plan revisions without exposing the orchestrator to untrusted agent feedback.

Tushin Mallick, Evan Rose +3

Harnesses secure Computer-Using Agents by enforcing security constraints and defending against prompt injection attacks. However, we find that two core security mechanisms of agent harnesses remain vulnerable. First, consistency checking prevents agents from deviating from legitimate user objectives, while attackers can bypass it by embedding malicious actions that appear logically consistent with legitimate task execution. Second, risk auditing proactively examines high-risk operations. Yet, the auditing process itself would introduce additional exploitable actions that violate security boundaries. To evaluate above defects we found, we propose Conartist, a cascaded adaptive prompt injection framework comprising two progressive stages. First, Conartist employs a goal-pollution strategy to establish deceptive causal dependencies between legitimate user objectives and malicious operations, progressively embedding attack steps into legitimate task workflows. However, these task-coupled attacks remain susceptible to risk auditing. To address this limitation, Conartist further analyzes security-auditing feedback from controlled attack exploration to identify exploitable auditing patterns. Conartist then adaptively refines its deception strategies to either avoid triggering risk auditing or induce additional high-risk operations. Extensive experiments across five backbone models demonstrate the effectiveness of Conartist, achieving attack success rates of 32.12% on 576-instance tool use benchmark and 66.67% in the Reddit GUI benchmark, outperforming the SOTA attack by 14.41 and 29.17, respectively. By analyzing one of the most popular Agent, Openclaw, we furthermore concluded seven realistic exploitable attack patterns, which reveals that security mechanisms designed to prevent malicious actions can themselves be manipulated to facilitate attacks.

Jiaqi Rong, Yunchen Lu +4

AI agents are beginning to automate data analysis, orchestration, and simulation steering in HPC environments, but they introduce a security problem that existing cluster defenses do not address: the hijacked authorized agent. An adversary can subvert an agent through prompt injection, poisoned shared data, compromised tools, or multi-agent coordination, then exfiltrate sensitive data through legitimate encrypted LLM API traffic. We propose behavioral attestation as a runtime defense for this setting. Our system, AEGIS, compiles task-derived behavioral constraints, monitors agent actions with ebpf-based syscall interception, verifies evidence against constraint profiles, correlates behavior across agents, and triggers slurm-level containment. On the real attestation path, AEGIS detects all four implemented attack classes with sub-second median latency at a 1-second interval and low measured verifier overhead. Controlled experiments show full attack-suite coverage, stronger detection than representative baselines, and no observed false positives on the evaluated benign workflows.

Jie Li, Chenxu Niu +2

A coding agent may need to upload a report while its sandbox blocks network access. A host mediator can restore delivery, but an injected instruction may add a secret to the approved request. We study this interaction using files and HTTP receipts to measure effects independently of control logs. Two prospective frozen-input cohorts comprise 110 and 300 runs on previously explored authored tasks. Restrictive sandboxing produces no observed attack harm but reduces benign utility to 6/8 and 12/24. Mediation restores uploads and admits disclosure; complete-line matching retains full benign utility but misses two value-only disclosures in the expanded cohort. A separate 72-run boundary study identifies encoded disclosure, observer misses, and formatting checks that obscure benign refusals. An 80-run SafeAgents/OpenShell follow-up shows that containment stops the tested guard misses among valid observations, while mediation restores benign uploads and delivers both encoded-attestation attacks. Twelve judge-error rows remain unscored. A separate response-capture diagnostic reproduces their failures at the native token budget. A 12-run exact-publication-contract experiment blocks both attacks but also rejects both benign formatting variants; a 4-run normalized follow-up restores both benign uploads while still rejecting both attacks. These small, single-model studies identify delivery-path and measurement limits; they do not establish general attack resistance.

Kunwar Sangram Singh, Krishna Mohan Guda Nagavenkata Srinivasa

Autonomous AI agents are increasingly deployed for long-running tasks that execute arbitrary shell commands or programs. However, these actions can result in unauthorized network requests or persistent, malicious changes to the user's file system, processes, or privileges. Existing defense mechanisms rely on either LLM-based monitors, which lack provable safety guarantees, or stateless policy enforcement layers, which miss multi-step data flows and execution side-effects unmodeled by the policy language (e.g., network calls initiated inside a Python script). We introduce Tether, a framework for runtime enforcement of stateful security policies over the observed side-effects of an agent's actions. Tether executes each proposed action in an ephemeral, isolated sandbox, inferring abstract action semantics from observed system calls. Tether then enforces stateful policies over these inferred semantics, permitting actions to proceed only if they comply with the policy. Policies and action semantics are defined in an embedded DSL in Lean 4 capable of expressing diverse constraints, including information flow control (IFC), access control, and network security policies. Because actions can propagate labels from sources to destinations, a single rule can enforce fine-grained IFC policies across multi-step execution flows of arbitrary length. Expressing policies in Lean enables formal verification that they satisfy global security invariants (e.g., preventing network access after reading a sensitive file). We evaluate Tether on realistic coding-agent benchmarks across both benign and adversarial trajectories. With a single policy shared across all tasks, Tether blocks 100% of in-scope attacks while maintaining a benign false-positive rate under 5%.

Meghana Aparna Sistla, Alaia Solko-Breslin +3

Long-horizon LLM agents across codebases, web browsers, and enterprise infrastructure rely on an execution harness to move state between the working context, session history, persistent memory, and external environment. While conventional execution traces log model prompts and tool calls, critical security and reliability failures occur during state transfers: a transfer can admit unchecked content (indirect prompt injections, unverified memory writes), rewrite state lossily (context compaction dropping user constraints, memory consolidation stripping source authority), or restore state incompletely (workspace rollbacks leaving aborted KV state active on the inference server). Because current traces omit what crosses these boundaries, failure attribution and runtime monitors fail on multi-step trajectories. We present a state-transfer audit architecture for the agent harness. At each transfer boundary, we define an audit point specifying the minimal hash-chained record the harness emits, separating low-overhead deterministic checks from model-based semantic checks and binding internal context, memory, and inference-server cache state to external actions. We show that the same transfer records required for causal failure attribution supply the durable state needed by runtime security controls, including least-privilege capabilities, replay-resistant authorization outside the prompt, information flow control, obligation monitors, and transactional recovery across multi-agent and infrastructure pipelines. Finally, we analyze multimodal GUI adaptations and implement and evaluate a reference harness middleware across 240 multi-step fault-injection trajectories, showing that transfer records localize root causes and catch cross-transfer violations missed by lifecycle and tool-only logs at microsecond deterministic overhead.

Deep Shah, Nehal Kathrotia

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.