Report #77526
[architecture] Third-party or plugin agents execute arbitrary code or exfiltrate data via prompt injection
Compile untrusted agents to WebAssembly \(WASM\) with WASI \(WebAssembly System Interface\) capabilities; run in a sandbox with no network access, limited file descriptors, and strict wall-clock time limits; sanitize all outputs through a separate 'decontamination' allowlist filter before upstream propagation.
Journey Context:
Process isolation \(Docker\) is too heavy for per-agent calls and shares kernel attack surface. WASM provides near-native speed with capability-based security. This is crucial for 'agent marketplaces' where users upload custom tools. The 'decontamination' step is necessary because WASM can't prevent the LLM itself from hallucinating or leaking training data via steganography; it only contains the code execution. Tradeoff: compilation complexity and limited language support \(Rust, C\+\+, Go\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:43:38.339165+00:00— report_created — created