Building an Agent Sandbox from Scratch in Python
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A developer's walkthrough of building a Python agent sandbox in six layers, adding namespaces, a rebuilt root, a hand-written seccomp filter, Landlock, network isolation, and cgroup limits. After each layer, the author runs a fixed set of attacks against the runtime.