Trace your agent's syscalls with eBPF, then deny the rest
- 1Lock down Docker networks
- 2Run containers as non-root
- 3Identity in front of every port
- 4Membership, not just an account
- 5An identity for the agent, not a key
- 6A tool server that checks who is asking
- 7Where the agent can go, not just what it can call
- 8Move the daemon off root
- 9Run the model's own code without trusting it
- 10A scope per tool, and a refusal clients can act on
- 🏆Deny the syscalls your agent never makes
Part 9 put the code your agent writes inside a
box: no network, capped memory and processes, a read-only disk, and --cap-drop=ALL. Every
one of those limits held. But it left one door open, the same one almost every sandbox guide
leaves open, because closing it takes work: seccomp was left at its default, and the moment
you need to run the container with --security-opt seccomp=unconfined — which plenty of
runtimes and GPU stacks ask for — the entire system-call surface of the kernel is back.
This post closes that door. We record the system calls the agent actually makes, using eBPF, and turn that recording into a profile that allows exactly those and returns an error for everything else. Then we do the same idea one layer up with AppArmor, to control which programs the agent can execute at all.
