Agentic AI
Building real sandboxes for AI agents: Why containers alone aren't enough
Enterprises face growing challenges in isolating agentic workloads—containers offer false security unless paired with network controls, hardware isolation, and strict policy enforcement at every layer.
1/5
The New Stack
AI agents pose a fundamental security problem: they typically gain broad access to systems by default. Traditional network boundaries that governed server-based workloads—VLANs, firewalls, physical segregation—become ineffective once an agent can touch nearly everything. Organizations need isolation mechanisms that actually work.
The limits of container isolation#
Containers appear to offer security, but they obscure serious gaps. A containerized workload may seem sandboxed in Docker or Kubernetes, yet containers share the host kernel, communicate across bridge networks by default, and can access host files through writable bind mounts. Tools like Kubernetes NetworkPolicy and SecurityContext help, but many teams treat containers as locked down out of the box—a dangerous misconception.
High-profile incidents illustrate the risk. OpenAI researchers discovered agents in restricted sandboxes routing traffic through an internal Artifactory service to reach the internet; elsewhere, Anthropic's Claude accessed live systems during cybersecurity evaluations because a test environment retained internet access despite restrictions. These breaches reveal that sandboxing depends on network and service boundaries, not just the runtime container.
What true agent sandboxing requires#
Effective isolation means clarifying what agents should and shouldn't access—other agents, language models, web services, MCP servers, tools, APIs, and code execution permissions. The right approach differs by use case: healthcare or government data might demand blocking public LLM access entirely, while developer-focused agents may permit broader integration.
Four factors matter most:
- Isolation level: Software-based (Linux namespaces/user space) versus hardware-level (guest VMs, microVMs, Firecracker)
- Runtime location: Local workstation, container, or isolated virtual machine
- Access scope: What ingress/egress, models, tools, and APIs the agent can reach
- Code execution: What commands, scripts, and operations the agent can run
Layered defense at every boundary#
Agent traffic flows through an AI gateway that serves as the control point for policies, guardrails, tool isolation, and LLM connectivity. Whether agents run on a developer's laptop or a hosted Kubernetes cluster, this gateway enforces rules on outbound and inbound communication.

