AIToday
Large Language ModelsHacker NewsPublished: Apr 28, 2026, 19:00 JST1 min read

AgentJail: A Rust library for running untrusted code in minimal Linux sandboxes, now in beta.

AgentJail: A Rust library for running untrusted code in minimal Linux sandboxes, now in beta.

3 Key Points

  1. AgentJail is a Rust library plus optional control plane that isolates untrusted code in child processes within fresh Linux namespaces, using pivot-root, seccomp filtering, cgroup limits, and optional egress-proxy allowlisting—without requiring a VM, daemon, or setuid helper.

  2. Isolation is enforced via mount/network/IPC/PID namespaces, a 128-bit-random pivot-rooted minimal filesystem, seccomp-BPF syscall blocklists (Standard / Strict modes), and resource limits (memory, CPU, PIDs, disk I/O via cgroup v2). Network mode can be None, Loopback, or Allowlist with DNS rebinding protection.

  3. The core crate (agentjail) is covered by a privileged test suite, but the control plane, TypeScript/Python SDKs, web UI, and gateway are useful but not yet production-hardened. A threat model with regression tests covers 20 attack scenarios including fork bombs, network exfiltration, and namespace escape.

  4. Requires Linux ≥ 5.13, cgroup v2, user namespaces, and Rust 1.85+ (edition 2024). CAP_NET_ADMIN is needed for Allowlist network mode only.

Ask the AI about this article →

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • CBTS launches Forge Agents for custom AI agentsSiliconANGLE AI · 2h ago
  • Imec CEO: AI era widens chip-model-CSP collaborationDIGITIMES Asia · 2h ago
  • Alphabet's AI Overviews reach 2.5B monthly usersYahoo Finance AI · 2h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleBloomberg is testing ASKB, a chatbot-style AI interface for the Terminal, to help finance professionals synthesize data and test investment theses through natural language queries.