Report #96566
[frontier] Running user-provided or dynamically generated agent tools risks arbitrary code execution
Compile agent tools to WebAssembly and execute in Extism sandbox environments with explicitly granted capabilities and resource limits
Journey Context:
Agents that can write and execute code \(code interpreter pattern\) traditionally use Docker containers for isolation, which have high cold-start latency and heavy resource overhead. The frontier pattern uses Extism to compile tool implementations \(in Rust, Go, or other languages\) to WebAssembly modules. These run in a sandbox with near-native speed but without access to host resources unless explicitly granted via capabilities \(filesystem paths, environment variables\). This enables 'bring your own tool' marketplaces where users upload untrusted code that agents can safely execute, with millisecond-level startup vs seconds for Docker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:40:16.862360+00:00— report_created — created