> Markdown version of [/videos/100707-your-agent-just-ran-rm-rf-sandboxing-ai-agents-from-docker-to-gke-agent-sandbox](https://www.wearedevelopers.com/videos/100707-your-agent-just-ran-rm-rf-sandboxing-ai-agents-from-docker-to-gke-agent-sandbox). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Your Agent Just Ran rm -rf: Sandboxing AI Agents from Docker to GKE Agent Sandbox What stops an autonomous AI agent from wiping your host files or leaking AWS keys? Standard containers leave your shared kernel exposed, so learn to isolate agents with microVMs and gVisor. - **Speakers:** [Rajani Ekunde](https://www.wearedevelopers.com/@rajani-ekunde) - **Event:** Conference India 2026 - **Published:** November 25, 2026 - **Duration:** 22:54 - **URL:** https://www.wearedevelopers.com/videos/100707-your-agent-just-ran-rm-rf-sandboxing-ai-agents-from-docker-to-gke-agent-sandbox - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/e720ba8c9de4cd3bfeb5ec55d3b36b36/thumbnails/thumbnail.jpg?time=30000ms ## Summary Autonomous AI coding agents often receive excessive permissions, creating severe security threats ranging from accidentally executing `rm -rf` on local files to exposing `.env` credentials, AWS keys, and GitHub tokens. Rajani Ekunde explains how standard containers fail to contain these threat models because they rely solely on namespaces and cgroups while exposing the shared host kernel directly to unfiltered system calls. To effectively shrink the blast radius, developers must enforce stronger isolation layers using microVMs or gVisor. For local environments, Docker Sandboxes run the AI agent inside a microVM equipped with its own guest kernel, hypervisor boundary, and private Docker daemon. By working on a private repository copy, keeping secrets on the host behind a proxy server, and denying network egress by default except for an allowlist of hosts, destructive commands or prompt injections remain completely isolated from the host machine. In production Kubernetes environments, GKE Agent Sandbox applies similar protections using gVisor on GKE Autopilot. Its Golang-based user-space kernel, Sentry, intercepts and filters agent syscalls before they ever reach the host kernel. To prevent cold starts, GKE maintains a warm pool of disposable gVisor pods that lack Kubernetes service tokens, enforce strict RBAC and admission policies, and automatically replenish after deletion. **Keywords:** ai agent sandboxing, docker sandboxes, gke agent sandbox, gvisor sentry kernel, microvm isolation, container security boundaries, syscall filtering, network egress allowlist, credential leak prevention, gke autopilot warm pool, host kernel exploit protection, kubernetes admission policies, mcp gateways, blast radius reduction, ai agent threat models ## Chapters 1. **Threat models and security risks for AI coding agents** (00:16) — Unrestricted AI agents can accidentally delete repositories, leak local credentials, or exfiltrate data unless confined within disposable sandboxes with strict egress controls. 1. **Comparing containers, gVisor, and microVMs for agent isolation** (07:16) — Standard containers expose the shared host kernel to direct syscalls, whereas gVisor filters syscalls through a user-space Sentry kernel and microVMs enforce hardware-level hypervisor boundaries. 1. **Isolating local development with Docker Sandboxes and microVMs** (12:48) — Docker Sandboxes protect the local host by running agents inside a microVM with a private Docker daemon, routing external network requests and secret access through a controlled proxy gate. 1. **Scaling production isolation with GKE Agent Sandbox** (16:19) — GKE Agent Sandbox eliminates cold starts in production by claiming pre-warmed gVisor pods from a warm pool via a Python SDK and automatically replenishing them after deletion. 1. **Five security walls for taming AI agents in production** (19:18) — Securing autonomous agents requires enforcing five infrastructure boundaries across local and cluster environments: kernel isolation, startup admission rules, default-deny networking, proxied secrets, and disposable runtimes. ## Related Moments - [Mitigating operational risks through robust agent sandboxing](https://www.wearedevelopers.com/videos/100448-don-t-kill-my-vibes-simple-steps-to-stay-secure-when-vibe-coding) (from "Don’t kill my Vibes - Simple Steps to Stay Secure when Vibe Coding") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/24488ef1e000cfbf47226082fd7c1ab5/thumbnails/thumbnail.jpg?time=97581ms - [Isolating local AI coding agents via Docker Sandbox](https://www.wearedevelopers.com/videos/100530-docker-does-that-five-docker-capabilities-you-did-not-know-about) (from "Docker does that? Five Docker capabilities you did not know about") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/63a3101074914268e9fbae0c5be81349/thumbnails/thumbnail.jpg?time=267366ms - [Deploying sandboxed agent architectures on kubernetes clusters](https://www.wearedevelopers.com/videos/100034-agentic-ai-building-autonomous-systems-for-developers) (from "Agentic AI: building autonomous systems for developers") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/b0e0a3bb5f61b1b786fc5cb2efdd4b54/thumbnails/thumbnail.jpg?time=153350ms - [Securing local execution with sandboxes and kernel policies](https://www.wearedevelopers.com/videos/100680-from-agent-demo-to-production-safe-autonomous-ai-assistants) (from "From Agent Demo to Production: Safe Autonomous AI Assistants") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/cfba59bcd0a4930bc13c1a6fc4dbf1c2/thumbnails/thumbnail.jpg?time=30000ms - [Securing local agent environments with Docker sandboxes](https://www.wearedevelopers.com/videos/100553-tools-sandboxes-and-the-plumbing-of-agentic-development) (from "Tools, Sandboxes, and the Plumbing of Agentic Development") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/1d71440c1c86c249358d9ed2ce7d1522/thumbnails/thumbnail.jpg?time=133096ms - [Restricting artificial intelligence agents using micro virtual machine sandboxing environments](https://www.wearedevelopers.com/videos/100531-supply-chain-security-when-agents-write-the-code) (from "Supply Chain Security When Agents Write the Code") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/15456c08c4faa7740383b9805aedb561/thumbnails/thumbnail.jpg?time=157069ms ## Related Articles - [Do You Trust Your Agents? Five Quick Ways to Contain Them](https://www.wearedevelopers.com/magazine/787-do-you-trust-your-agents-five-quick-ways-to-contain-them) - [ I Gave a Video Editor More Autonomy Than a Trading Bot. On Purpose.](https://www.wearedevelopers.com/magazine/773-i-gave-a-video-editor-more-autonomy-than-a-trading-bot-on-purpose) - [Infer Once, Run Everywhere: Zero-Token Architecture](https://www.wearedevelopers.com/magazine/783-infer-once-run-everywhere-zero-token-architecture) - [Building an Agentic Software Factory](https://www.wearedevelopers.com/magazine/796-building-an-agentic-software-factory) ## Related Jobs - [Staff Software Engineer, GitHub Intelligence (Copilot Agents)](https://www.wearedevelopers.com/jobs/ext/4850314-staff-software-engineer-github-intelligence-copilot-agents) at **GitHub** - [Principal Engineer, Cloud Security](https://www.wearedevelopers.com/jobs/ext/4819953-principal-engineer-cloud-security) at **Twilio** - [Security Architect](https://www.wearedevelopers.com/jobs/ext/4904894-security-architect) at **PwC** - [Staff Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4743636-staff-software-engineer-copilot-code-review) at **GitHub** - [Senior Software Engineer, Compute Platform](https://www.wearedevelopers.com/jobs/ext/4623664-senior-software-engineer-compute-platform) at **GitHub** - [Staff Software Engineer, Compute Platform](https://www.wearedevelopers.com/jobs/ext/4911465-staff-software-engineer-compute-platform) at **GitHub**