multikernel/sandlock
The lightest AI sandbox. A process-based sandbox for Linux, no container, no VM, no privilege, no prompt injection
What it solves
Sandlock provides a lightweight, high-performance way to sandbox untrusted code on Linux without the overhead of containers or virtual machines. It is designed to secure applications—such as AI agents or scripts—by restricting their access to the filesystem, network, and system calls without requiring root privileges or complex image builds.
How it works
Sandlock uses modern Linux kernel features, specifically Landlock (for filesystem and network access control) and seccomp-bpf (for system call filtering). It also utilizes seccomp user notifications to enforce resource limits and virtualize parts of the system. Because it does not rely on cgroups or namespaces, it achieves near-instant startup times (around 5ms) and minimal performance overhead compared to traditional container runtimes.
Who it’s for
This project is for developers building AI agents, automation tools, or any application that needs to execute untrusted code safely. It is particularly useful for those who need fine-grained control over what an agent can access (e.g., specific HTTP endpoints or directories) without the complexity of managing Docker containers.
Highlights
- Rootless Operation: Runs without root privileges, cgroups, or container runtimes.
- Granular Control: Supports HTTP-level access control lists (ACLs) and specific network/filesystem path rules.
- Copy-on-Write (COW) Filesystem: Automatically protects your working directory by capturing changes, which can be committed or discarded.
- Low Overhead: Significantly faster startup and lower latency than Docker or MicroVMs.
- Multi-Language Support: Provides native Rust libraries, a CLI, and SDKs for Python and Go.
Related
- Project
- Project
- Project
- Project
- Project