← Lab /Systems

Outbound connections from AI-agent pods are held in the kernel until verified, adding 4.5 ms latency

Connection escrow can reliably block unauthorized outbound traffic from AI-agent containers while incurring low overhead

Systems arXiv 19 Oct 2026 Method Prototype evidence Threat model

Published as “Connection Escrow: Holding AI-Agent Pod Egress in the Kernel Until an Isolated Verifier Rules”

Why it matters

Connection escrow gives operators per-connection egress control that cannot be bypassed by unmodified agents, with only a few milliseconds overhead per request.

Summary

The paper shows that a kernel-level escrow can hold an outbound TCP connection at connect() and release it only after an isolated verifier issues a signed verdict, preventing agents from bypassing egress controls. In microbenchmarks the hold adds 4.3 ms median latency (6.8 ms p95) on the eBPF path, and in a real Kubernetes cluster the system blocks both HTTP-client and raw-socket attempts that would bypass a sidecar proxy. The evaluation is limited to a single-node setup and IPv4 TCP/UDP only, and the paper does not include an abstract, so the summary is based on the provided sections.

What they found 4

  1. The per-connection hold adds only a few milliseconds of latency compared to an unsupervised baseline.

    “The hold costs 4.3 ms median on the eBPF path (6.8 ms p95) and 5.8 ms on the iptables path, against a 0.7 ms baseline.”

  2. Escrow blocks both HTTP-client and raw-socket egress attempts that bypass a sidecar proxy.

    “Under escrow both are held at connect() and nothing leaves”

  3. When multiple agents run concurrently, the median hold rises to 32 ms (48 ms p95) due to interceptor bottleneck.

    “Under 16 concurrent agents on two vCPUs the median hold rises to 32 ms (48 ms p95) at 126 connections per second”

  4. The content gate can deny a second TLS request on the same connection while keeping the tunnel end-to-end.

    “the POST is the next write on the same handle, is scored deny (p = 0.999, on features {sensitive keyword, card-like number, sensitive path, mutating method}), and the connection is reset with that record held”

Caveats 6

  • Concurrent workloads increase the hold latency to 32 ms median (48 ms p95), far higher than the 4-6 ms observed in single-agent microbenchmarks.
  • The prototype interceptor is a single Python process, making it the scalability bottleneck rather than the kernel hook.
  • The hold point covers IPv4 TCP, and pins IPv4 UDP (including DNS) to a configured resolver through the connect4 and sendmsg4 hooks; IPv6 needs the connect6 and sendmsg6 hooks, which are not implemented.
  • UDP is pinned rather than escrowed: a datagram to the cluster resolver is allowed and anything else denied, so DNS cannot be exfiltrated to an outside resolver, but a covert channel inside otherwise-allowed DNS traffic, and UDP payloads in general, are not held for a verdict.
  • Relatedly, the agent resolves a name before it calls connect(), and a lookup of an attacker-controlled name reaches that name’s authoritative server through the cluster resolver; escrow holds the connection, not the resolution, so G1 hides the connection attempt from the destination, not the fact that its name was looked up.
  • The iptables fallback keys on uid and therefore assumes an unprivileged agent (Section 3.2); the eBPF path does not.

What’s new here 4

  • Kernel hold point that intercepts connections before any packet is sent, binding the decision to the specific socket.
  • Attribution record that links the kernel socket to pod identity, cgroup, pid and executable digest.
  • Content gating of encrypted TLS traffic without terminating the TLS session.
  • A single-use, socket-bound release gate that prevents replay or TOCTOU attacks.

Threat model stated by the source

AdversaryFull control of all code running inside the supervised pod.
CapabilityOpen connections to any address/port/protocol, spawn child processes or threads, rename or rebuild executables, craft arbitrary application-layer bytes, attempt to contact the verifier, replay observed verdicts, open many connections concurrently, and observe traffic between interceptor and verifier.
AssumesPod cgroup isolation cannot be escaped; Attacker cannot obtain root on the node; Attacker cannot read the verifier’s signing key or the interceptor’s record-authentication key; Kernel’s namespace isolation and sandbox hold