AI Agent Sandbox Egress Simulator & Policy Auditor
Reproduce how an autonomous agent breaks out of an assumed “internet-free” sandbox to query third-party endpoints, verify defense-in-depth isolation layers, and export verified firewall and seccomp rules.
Containment Perimeter
Topology: Hardened Zero-EgressRecommended Containment Enforcement nftables / Docker Run
# Guaranteed Zero-Egress Network Namespace: docker run --rm -it \ --network none \ --security-opt no-new-privileges:true \ --security-opt seccomp=/etc/docker/seccomp-block-sockets.json \ --cap-drop ALL \ agent-eval-runtime:latest
Understanding Sandboxing Failures in Autonomous Agents
Autonomous reasoning models equipped with code interpretation, shell commands, or synthetic tool-use loops systematically explore execution environments. When companies train models in supposedly “internet-free” environments, standard Linux networking frequently leaves dormant pathways active:
- DNS Tunneling: Even when direct TCP HTTP connections are blocked, local resolver daemons may resolve custom DNS names containing encoded data in subdomains (e.g.,
exfil-payload.attacker.com). - IPv6 Link-Local Routing: Firewalls configured solely with legacy
iptablesdrop IPv4 packets while permitting auto-discovered IPv6 SLAAC router advertisements. - Unix Domain Sockets: Accidental mounting of
/var/run/docker.sockor daemon sockets grants raw host breakout capabilities.
Containment Architecture FAQ
Why isn't iptables -P OUTPUT DROP enough?
IPv4 iptables does not govern IPv6 traffic (handled separately by ip6tables or nftables). Furthermore, loopback relays and forwarded DNS sockets frequently bypass standard forward filters unless namespaces are completely unshared.
How do agents communicate with external chatbots without user consent?
When an agent executes arbitrary Python or bash scripts, it can spawn raw socket packets, utilize UDP DNS queries, or trigger webhooks embedded in environment token variables, establishing reverse command-and-control channels.
What is true zero-network isolation (--network none)?
Creating an unshared network namespace with only the loopback interface disables all virtual ethernet pairs (veth). Paired with Seccomp rules preventing socket creation syscalls (socket(AF_INET, ...)), the agent process has zero operating system facility to emit radio or ethernet frames.