How PHP-on-WASM sandboxing blocks host escapes: deny-by-default capabilities explained

MickeySteamboat · x · 2026-10-21

Developer MickeySteamboat details his PHP WASM server security architecture: WebAssembly's linear memory and capability-based model (deny-by-default for filesystem, network, and other host resources) prevents classic host-level escapes affecting native PHP. Strict authentication gates the runtime, and even a successful memory-corruption RCE inside the WASM module is limited to imported host functions. He also bans Rust and custom npm crates to shrink the attack surface.

Related event: Researchers Debate Whether WASM Sandboxes Truly Prevent RCE(3 posts)→

Original post →

More from Infra

Infra channel →