Sandbox security and isolation
Security model
Modal Sandboxes are isolated from the host and from other workloads by one of the two runtimes we offer:
- gVisor: gVisor is a container runtime developed by Google that implements the Linux system call interface in userspace. System calls from the Sandbox are handled by gVisor instead of the host kernel, giving stronger isolation than normal container runtimes.
- VMs: the Sandbox runs in its own virtual machine with its own Linux kernel, isolated by the CPU’s hardware virtualization through the Linux KVM hypervisor.
Network access controls apply to both runtimes.
Workspace and Environment isolation
Additionally, Sandboxes are not authorized to access other resources in your Modal Workspace the way that Modal Functions are by default. As a result, the blast radius of any malicious code will be limited to the Sandbox itself.
Further information
See Security and Privacy at Modal for details on our data retention and compliance standards. All Sandbox snapshot and Volume data is encrypted at rest.