WebAssembly Brings Deny-by-Default Sandboxing to AI Agents
11m
Sandboxing and security dominated the conversation at KubeCon this year. WebAssembly is emerging as a strong answer for running AI agents safely. Its runtime is deny by default, so it starts with nothing inside.
Cosmonic CEO and Co-Founder Liam Randall examines that shift with Alan Shimel at KubeCon + CloudNativeCon in Salt Lake City.
From the Browser to AI Security
Wasm began as a way to bring performant languages to the web. Unlike Flash or Silverlight, it is an open standard. Anyone can participate on equal footing.
Standards for server-side Wasm have matured in recent years. Randall says Wasm now runs on phones, TVs and browsers, often unnoticed. Its security properties make it especially timely for AI.
Two Kinds of Agents
Randall sees enterprises deploying two types of agents. Engineers get general purpose coding agents with broad access. Customers get special purpose agents, like a wealth manager or retirement planner.
Those special purpose agents only need a fixed set of tools. That is where Cosmonic fits. A small footprint also allows very high density on a single Kubernetes server.
Building Better Together With Kubernetes
Randall doesn't see Wasm replacing Kubernetes. Kubernetes still handles ingress, egress, admission control and telemetry. It also brings a large ecosystem of vendors.
Cosmonic deploys Wasm components side by side with existing containers. Engineers and security teams keep the tools they already know. Randall adds that Wasm is not a panacea, and teams should pick the right tool.
What a Sandbox Really Means
Shimel calls sandbox the most overused word at the show. Randall points to the NIST definition: only what is necessary in the runtime.
Containers are built for packaging, not sandboxing, he says. They carry tools an AI could use to break out. Each Wasm invocation gets a fresh, isolated environment, so no state carries over.
Cosmonic now writes its docs for agents as well as people. The goal is to teach AI to build more secure software with WebAssembly.