An increasingly important part of the AI stack is running untrusted code in a sandbox.
List of code sandbox for AI offerings:
Rolling your own:
- sandbox-exec (macOS)
- NsJail (Linux)
- firejail (Linux)
- firecracker (Linux)
- RestrictedPython (python)
See also:
- The lethal trifecta of AI agents isn’t solved by a sandbox alone, but is certainly part of it
Links to this note
-
RustPython is a python interpreter written in rust. What makes it interesting is that it does no use
cpythonwhich makes it much more straightforward to target WebAssembly and do things like execute untrusted code on a host machine.