{"id":218924,"date":"2026-10-27T13:21:25","date_gmt":"2026-10-27T13:21:25","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/218924\/"},"modified":"2026-10-27T13:21:25","modified_gmt":"2026-10-27T13:21:25","slug":"when-isolated-doesnt-mean-isolated-how-to-sandbox-ai-agents","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/218924\/","title":{"rendered":"When \u201cisolated\u201d doesn\u2019t mean isolated: How to sandbox AI agents"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Separation of workloads before AI wasn\u2019t easy, but it was far more straightforward. Servers sat in data centers, VLANs segregated packets, firewall rules managed ingress\/egress, and physical cables separated packets to and from their destinations.<\/p>\n<p class=\"wp-block-paragraph\">Now, flip on an agent, and it has access to almost everything by default.<\/p>\n<p class=\"wp-block-paragraph\">Enterprises cannot operate with that default, and in this article, you\u2019ll learn how to implement true sandboxing at every layer that matters.<\/p>\n<p>Why aren\u2019t containers enough to sandbox AI agents?<\/p>\n<p class=\"wp-block-paragraph\">When you run a container (think Docker), it\u2019s a lightweight package that runs as an isolated process. But that isolation has limits. Containers share the host kernel, and those on <a href=\"https:\/\/docs.docker.com\/engine\/network\/drivers\/bridge\/\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">Docker\u2019s default bridge<\/a> can communicate with one another. A container cannot directly access host files by default, but a <a href=\"https:\/\/docs.docker.com\/engine\/storage\/bind-mounts\/\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">writable bind mount<\/a> can let it modify or delete the host files exposed through that mount.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"658\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/1881f937-image1-1024x658.jpg\" alt=\"Diagram showing the three layers: the host layer, network layer, and workload layer.\" class=\"wp-image-22841861\"\/><\/p>\n<p class=\"wp-block-paragraph\">If you rely on a container alone for agent isolation, you may leave important boundaries unprotected. Thinking of containers as locked down by default is a major security risk. When running workloads in Kubernetes, you have tools like NetworkPolicy, service mesh for secure service communication, and SecurityContext to ensure containers run in a governed way.<\/p>\n<p class=\"wp-block-paragraph\">KubeCon + CloudNativeCon is taking place in Salt Lake City from November 9 to 12. <a href=\"https:\/\/events.linuxfoundation.org\/kubecon-cloudnativecon-north-america\/\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">Register now<\/a>!<\/p>\n<p class=\"wp-block-paragraph\">That\u2019s why having default security out of the box, easily turned on, and policy enforcement built into your AI sandboxing solution is key to enabling all teams. Without it, every organization risks thinking security exists, only to face a harsh reality.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/bbe09391-image3-1024x562.jpg\" alt=\"Diagram comparing process-level isolation against hardware-level isolation\" class=\"wp-image-22841862\"\/><\/p>\n<p class=\"wp-block-paragraph\">So, regardless of what agentic workloads we\u2019re running, the question we must answer is: \u201cWhat makes up a true sandbox?\u201d<\/p>\n<p>What\u2019s a true agent sandbox?<\/p>\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/openai.com\/index\/hugging-face-incident-and-the-road-ahead\/\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">OpenAI reported<\/a> that agents in restricted research sandboxes found a route to the internet through its internal Artifactory service; an agent later found and shared publicly exposed Hugging Face credentials. <a href=\"https:\/\/www.anthropic.com\/news\/investigating-incidents-cybersecurity-evals\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">Anthropic described<\/a> a different failure: in three cybersecurity evaluations, Claude reached real systems because a third-party test environment had internet access despite instructions that it did not. These cases show that sandboxing depends on the network and service boundaries around an agent, not just the runtime that contains it.<\/p>\n<p class=\"wp-block-paragraph\">\u201cThese cases show that sandboxing depends on the network and service boundaries around an agent, not just the runtime that contains it.\u201d<\/p>\n<p class=\"wp-block-paragraph\">Agent sandboxing by default can sound \u201cbuzzword-ish\u201d, but there is merit in implementing it at all of the boundaries that count for you and your organization. That means sandboxing will look different depending on where, and ultimately how, you put it into production. For example, sandboxing an agent with access to government- or healthcare-related data could mean locking down ingress\/egress to public, consumer-based LLMs and allowing the agent to interact only with dedicated models for specific tasks on the data it must use. On the flipside, a software engineer or architect coding up a new integration may have more flexibility in the LLMs, <a href=\"https:\/\/thenewstack.io\/mcp-release-candidate-rewrite\/\" data-type=\"link\" data-id=\"https:\/\/thenewstack.io\/mcp-release-candidate-rewrite\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">MCP Server tools<\/a>, and agent skills that agents they\u2019re using can interact with and ultimately where those Agents can run (e.g. on your laptop\/desktop vs an isolated server running an Agent runtime).<\/p>\n<p class=\"wp-block-paragraph\">That\u2019s where the fun, ironic consulting answer of \u201cit depends\u201d comes in, because it really does. As with everything security-related, there is a spectrum of what you can implement ranging from \u201ccover the key use cases\u201d to \u201cthis is Area 51\u201d, and that plethora of range needs to be thought about and ultimately implemented in the best and most efficient way for your organization.<\/p>\n<p class=\"wp-block-paragraph\">So, here\u2019s the answer to the underlying question from this section\u2019s header: true agent sandboxing means clarifying, understanding, and implementing what your agents should and shouldn\u2019t be able to interact with. This includes other agents, LLMs, web searches, MCP servers, tools, and APIs.<\/p>\n<p class=\"wp-block-paragraph\">\u201cTrue agent sandboxing means clarifying, understanding, and implementing what your agents should and shouldn\u2019t be able to interact with.\u201d<\/p>\n<p class=\"wp-block-paragraph\">In the next section, you\u2019ll learn the key differentiating factors that make up a true sandbox. With that knowledge, you\u2019ll be able to draw a proper conclusion about what level of agent sandboxing an organization should implement.<\/p>\n<p>The differentiating factors for your agent sandbox<\/p>\n<p class=\"wp-block-paragraph\">There are four key areas that you must keep in mind when implementing agentic workloads:<\/p>\n<p>Software vs. hardware-level isolation (think user space vs. at the chip level)<\/p>\n<p>Where the agents run (is it running on an isolated runtime or your workstation)<\/p>\n<p>What the agents have access to (ingress\/egress\/web search\/models\/tools\/APIs)<\/p>\n<p><a href=\"https:\/\/thenewstack.io\/cloud-agent-code-sandboxes\/\" data-type=\"link\" data-id=\"https:\/\/thenewstack.io\/cloud-agent-code-sandboxes\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">Secure code execution<\/a> for AI agents (what commands\/code\/scripts can an agent run)<\/p>\n<p class=\"wp-block-paragraph\">When thinking about software-level isolation, think container-level isolation. Now, after the first section of this blog post, \u201d Why aren\u2019t containers enough to sandbox AI agents?, you may be thinking to yourself, \u201cNo way I\u2019m going to run Agents in containers; it\u2019s not isolated at all.\u201d That\u2019s true, but only by default\/out of the box. You can secure and govern software-level isolation; it\u2019s just a matter of what policies you put in place to ensure it. It runs inside a Linux kernel using Linux Namespaces\/the user space for boundaries. Hardware isolation, on the other hand, is running a guest VM (think microVM\/Firecracker) at the chip\/CPU level. That means it runs a dedicated, standalone guest VM, and all processes run inside that guest VM.<\/p>\n<p class=\"wp-block-paragraph\">The next two pieces of the puzzle are where agents run, and that brings us back to the previous section. An agent can run on your laptop\/desktop, in a container, or within an isolated guest VM at the hardware level. Regardless of which option you choose, you still need proper guardrails, policy enforcement, and access to LLMs and tools, but the segregation may occur elsewhere. In any case, outbound and inbound connectivity (to\/from the agent) occurs at your \u201cline of communication\u201d, which is <a href=\"https:\/\/thenewstack.io\/taming-llm-sprawl-why-enterprises-need-an-ai-gateway-now\/\" data-type=\"link\" data-id=\"https:\/\/thenewstack.io\/taming-llm-sprawl-why-enterprises-need-an-ai-gateway-now\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">an AI gateway<\/a>. That\u2019s typically where you set up policies, guardrails, tool isolation, agent access, and LLM connectivity.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/fa6ca821-image2-1024x467.jpg\" alt=\"Workflow diagram detailing the three stages: ingress, agent runtime, and egress.\" class=\"wp-image-22841863\"\/><\/p>\n<p class=\"wp-block-paragraph\">The final step is \u201chow\u201d the agents run. For many use cases, agents run on a laptop\/desktop. Still, in an organization, most agentic runtimes run on a server\/platform like Kubernetes (which also covers \u201cwhere\u201d the Agents run). For example, an agent you may interact with on an eCommerce website isn\u2019t running on someone\u2019s laptop; it runs on a hosted runtime.<\/p>\n<p class=\"wp-block-paragraph\">When working with a hardened solution, the ability to ensure agents run within your harness of choice and that it implements a true agent sandbox environment under the hood should be out of the box, and this is an important decision factor.<\/p>\n<p>kind: Harness<br \/>\nmetadata:<br \/>\n  name: YOUR_HARNESS_NAME<br \/>\n  namespace: YOUR_NAMESPACE<br \/>\nspec:<br \/>\n  kagent: {}<br \/>\n  workload:<br \/>\n    image: YOUR_AGENTIC_WORKLOAD_IMAGE<br \/>\n  substrate:<br \/>\n    workerPoolRef:<br \/>\n      name: kagent-default<br \/>\n    snapshotPolicy:<br \/>\n      location: ACTOR_SNAPSHOT_STORAGE_LOCATION<br \/>\n  allowedAgentTemplates:<br \/>\n    selector:<br \/>\n      matchLabels:<br \/>\n        kagent.dev\/harness: kagent<\/p>\n<p>kind: AgentTemplate<br \/>\nmetadata:<br \/>\n  name: assistant<br \/>\n  namespace: kagent<br \/>\n  labels:<br \/>\n    kagent.dev\/harness: kagent<br \/>\nspec:<br \/>\n  modelConfig:<br \/>\n    name: default-model-config<br \/>\n  description: A substrate-backed assistant used to verify this main build.<br \/>\n  systemPrompt: You are a helpful assistant running on agentic workloads.<\/p>\n<p class=\"wp-block-paragraph\">Choosing the right agentic runtime, and therefore framework, lets you specify which AI gateway your agent traffic goes through from the sandbox, which harness you use, your underlying software- or hardware-level isolation, <a href=\"https:\/\/thenewstack.io\/2026-will-be-the-year-of-agentic-workloads-in-production-on-amazon-eks\/\" data-type=\"link\" data-id=\"https:\/\/thenewstack.io\/2026-will-be-the-year-of-agentic-workloads-in-production-on-amazon-eks\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">governance around agentic workloads<\/a>, and where agents store memory\/context.<\/p>\n<p>Closing thoughts<\/p>\n<p class=\"wp-block-paragraph\">Sandboxing agents will always come down to a keen understanding of what those AI agents need to do, and that\u2019s the hardest part. Locking down an agent and implementing governance, security, and policy enforcement should be easy with the right tooling and platforms. The \u201cwhat\u201d is crucial. What exactly are you locking down and why?<\/p>\n<p>\t<a class=\"row youtube-subscribe-block\" href=\"https:\/\/youtube.com\/thenewstack?sub_confirmation=1\" target=\"_blank\" rel=\"nofollow noopener\"><\/p>\n<p>\n\t\t\t\tYOUTUBE.COM\/THENEWSTACK\n\t\t\t<\/p>\n<p>\n\t\t\t\tTech moves fast, don&#8217;t miss an episode. Subscribe to our YouTube<br \/>\n\t\t\t\tchannel to stream all our podcasts, interviews, demos, and more.\n\t\t\t<\/p>\n<p>\t\t\t\tSUBSCRIBE<\/p>\n<p>\t<\/a><\/p>\n<p>    Group<br \/>\n    Created with Sketch.<\/p>\n<p>\t\t<a href=\"https:\/\/thenewstack.io\/author\/michael-levan\/\" class=\"author-more-link\" rel=\"nofollow noopener\" target=\"_blank\"><\/p>\n<p>\t\t\t\t\t<img decoding=\"async\" class=\"post-author-avatar\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/34cc63f5-michael-levan-rose-sawvel.jpg\"\/><\/p>\n<p>\n\t\t\t\t\t\t\tFocusing on providing business value through technology, working directly with customers, providing first-class advisory, and content, Michael Levan helps organizations address needs through Agentic AI practices. He has worked across industries as an engineer, consultant, trainer, and content creator. He&#8217;s&#8230;\t\t\t\t\t\t<\/p>\n<p>\t\t\t\t\t\tRead more from Michael Levan\t\t\t\t\t\t<\/p>\n<p>\t\t<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Separation of workloads before AI wasn\u2019t easy, but it was far more straightforward. Servers sat in data centers,&hellip;\n","protected":false},"author":2,"featured_media":218925,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[405,7537,12099,12100],"class_list":["post-218924","post","type-post","status-publish","format-standard","has-post-thumbnail","category-agentic-ai","tag-ai-agents","tag-artificial-intelligence-agents","tag-cncf","tag-post-contributed"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/218924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=218924"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/218924\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/218925"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=218924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=218924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=218924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}