Sandboxing AI Agents with WebAssembly: Zero Authority by Default

✍️ OpenClawRadar📅 Published: May 9, 2026🔗 Source
Sandboxing AI Agents with WebAssembly: Zero Authority by Default
Ad

Cosmonic's post, currently trending on HN, makes a strong case that conventional Linux sandboxing mechanisms — seccomp, seatbelt, bubblewrap — are fundamentally unsuited for agentic AI workloads. The core problem: ambient authority.

The Ambient Authority Problem

Every modern runtime gives a process whatever permissions its environment provides: filesystem, network, the user's git credentials, an AWS API key in ENV. The process never asked for them. For deterministic human-written binaries, you can maybe manage this risk with audits. But LLM agents and non-deterministic workflows inherit the developer's full identity and capabilities, creating an 'intolerable attack surface.'

The author calls this the cartographer's dilemma: you're trying to map a shifting coastline of exfiltration paths, and the LLM will find every unmapped cove.

Ad

WebAssembly's Capability Model

Cosmonic positions WebAssembly and WASI as the alternative. A Wasm component starts with zero authority: no filesystem, no network, no syscalls, no env vars. Any capability must be a typed import in the component's interface. This is Mark Miller's object-capability model as a runtime: the reference is the permission.

Key implications:

  • Virtualized grants: a filesystem capability doesn't hand over /etc. It provides an interface backed by any store (tmpfs, per-session blob, database). The component cannot escape the abstraction.
  • Composable capabilities: instead of importing 'the network,' a component imports wasi:http with allowed traffic shapes, or wasi:keyvalue with a specific bucket. Every capability is named, scoped, and reviewable.

This shifts the security model from 'allow by default, restrict by exception' to 'deny by default, grant explicitly.' The author argues this is the only sound foundation for AI agent security.

📖 Read the full source: HN AI Agents

Ad

👀 See Also

GitHub Copilot CLI vulnerability allows malware execution via prompt injection
Security

GitHub Copilot CLI vulnerability allows malware execution via prompt injection

A vulnerability in GitHub Copilot CLI allows arbitrary shell command execution via indirect prompt injection without user approval. Attackers can craft commands that bypass validation and execute malware immediately on the victim's computer.

OpenClawRadar
Essential File Blocking for AI Coding Assistants: A Practical Security Checklist
Security

Essential File Blocking for AI Coding Assistants: A Practical Security Checklist

AI coding assistants read from your local disk, not just your repository, exposing files that .gitignore protects from GitHub but not from the agent. A Reddit discussion identifies critical files to block including AI assistant configs with API keys, service credentials, SSH keys, and environment files.

OpenClawRadar
OpenClaw Patches Critical Privilege Escalation in /pair Approve Path
Security

OpenClaw Patches Critical Privilege Escalation in /pair Approve Path

OpenClaw 2026.3.28 fixes a critical security vulnerability (GHSA-hc5h-pmr3-3497) where the /pair approve command allowed users with pairing privileges to approve device requests for broader scopes, including admin access. Affected versions are <= 2026.3.24.

OpenClawRadar
Audit Your Claude Code Permissions: A Practical Guide to Scoping Tool Access
Security

Audit Your Claude Code Permissions: A Practical Guide to Scoping Tool Access

A Reddit user audited their Claude Code setup and found over-permissioned tools that could edit .env files and production configs. Practical steps: audit global vs. per-project tools, check CLAUDE.md for secrets, and scope file access per directory.

OpenClawRadar