Top
Best
New

Posted by souvik1997 1/30/2026

Show HN: Amla Sandbox – WASM bash shell sandbox for AI agents(github.com)
WASM sandbox for running LLM-generated code safely.

Agents get a bash-like shell and can only call tools you provide, with constraints you define. No Docker, no subprocess, no SaaS — just pip install amla-sandbox

146 points | 73 commentspage 3
messh 7 days ago|
Docker and vms are not the only options though... you can use bubblewrap and other equivalents for mac
souvik1997 7 days ago|
True. bubblewrap and similar (Landlock, sandbox-exec on Mac) are solid lightweight options. The main difference is they still expose a syscall interface that you then restrict, vs WASM where capabilities are opt-in from zero. Different starting points, similar goals.

Some advantages of building the sandbox in wasm, aside from the security benefits, are complete execution reproducibility. amla-sandbox controls all external side effects, leaving the wasm core as just "pure computation", which makes recording traces and replaying them very easy. It's great for debugging complex workflows.

tgtweak 7 days ago||
is a wasm sandbox as secure as a container or vm?
souvik1997 7 days ago||
If I had to rank these, in order of least to most secure, it would be container < VM < WASM.

WASM has:

- Bounds checked linear memory

- No system calls except what you explicitly grant via WASI

- Much smaller attack surface

VMs have:

- Hardware isolation, separate kernel

- May have hypervisor bugs leading to VM escape (rare in practice though)

Some problems with containers:

- Shared host kernel (kernel exploit = escape)

- Seccomp/AppArmor/namespaces reduce attack surface but don't eliminate it

- Larger attack surface (full syscall interface)

- Container escapes are a known class of vulnerability

PufPufPuf 7 days ago||
In theory it's more secure. Containers and VMs run on real hardware, containers usually even on the real kernel (unless you use something like Kata). WASM doesn't have any system interface by default, you have full control over what it accesses. So it's similar to JVM for example.
muktharbuilds 7 days ago||
thats great one i am definetly ussing this
asyncadventure 7 days ago||
[dead]
taosu_yb 1/30/2026|
[dead]