gVisor changes the syscall boundary, but host access still matters
gVisor changes the syscall boundary, but host access still matters gVisor is designed to reduce the host kernel surface exposed to a container. Its Sentry implements a Linux-compatible application kernel in userspace. Applications make system calls that the platform redirects to the Sentry rather than passing every request directly to the host. This changes the isolation model for untrusted…
gVisor is a userspace Linux-compatible application kernel designed to reduce the host kernel surface exposed to a container. By redirecting system calls from applications to the Sentry, gVisor changes the isolation model for untrusted workloads. However, it does not eliminate the importance of host configuration. The security model treats the sandbox as a defense layer, acknowledging that it still relies on the host operating system and platform for protection from hardware attacks.
Platform choice affects both the attack surface and performance, with KVM and systrap platforms being examples. While gVisor's network stack is implemented for security and isolation, host networking can trade some isolation for native performance. GPU support also has its own security model and should be understood before placing a device in a sandbox.
A deployment baseline should include various factors such as runsc version, platform, namespace, network, device configuration, mounted paths, host sockets, service-account tokens, cloud metadata reachability, and resource limits. A test should be conducted to attempt reaching host management interfaces and sensitive files. In incident response, it's essential to separate evidence about the guest workload from evidence about the sandbox runtime, checking logs and configuration.
The right use of gVisor is defense in depth, making a useful boundary for untrusted computation, but it should not be the only security measure.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.