Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 511

gVisor

Reviewed byCybersecurity entrepreneur & security researcher

What is gVisor?

gVisorgVisor is an open-source application kernel from Google that intercepts container system calls in user space, shrinking the host kernel attack surface exposed to untrusted workloads.


gVisor interposes a user-space application kernel between a container and the host. Its Sentry process reimplements a large portion of the Linux syscall surface in memory-safe Go; the workload's syscalls are trapped and serviced by Sentry rather than reaching the host kernel directly. Sentry itself runs under a tight seccomp-bpf filter that allows only a small set of host syscalls, and all filesystem access is brokered through a separate Gofer process over the 9P protocol, so the sandbox has no direct file descriptors to the host tree.

To trap guest syscalls, gVisor uses a configurable platform — ptrace, KVM, or the newer systrap — trading performance against isolation and portability. It ships as an OCI/CRI runtime, runsc, and powers Google Cloud Run, App Engine standard, and GKE Sandbox (runtimeClassName: gvisor). The defence model is depth: a kernel exploit in the workload must first defeat Sentry's Go implementation and then its seccomp cage. The cost is incomplete syscall compatibility and per-syscall overhead, which makes gVisor best for short-lived, multi-tenant, or untrusted code rather than performance-critical system workloads.

flowchart TD
  A[Container workload] -->|syscall| B[Platform trap<br/>ptrace / KVM / systrap]
  B --> C[Sentry<br/>user-space Go kernel]
  C -->|file I/O via 9P| D[Gofer]
  C -->|minimal allowed syscalls| E[seccomp-bpf filter]
  E --> F[Host Linux kernel]
  D --> F
  style C fill:#1f6feb,color:#fff
  style E fill:#8957e5,color:#fff

● Examples

  1. 01

    Google Cloud Run executing customer functions inside gVisor sandboxes by default.

  2. 02

    GKE Sandbox annotating untrusted Pods with runtimeClassName: gvisor.

● Frequently asked questions

What is gVisor?

gVisor is an open-source application kernel from Google that intercepts container system calls in user space, shrinking the host kernel attack surface exposed to untrusted workloads. It belongs to the Cloud Security category of cybersecurity.

What does gVisor mean?

gVisor is an open-source application kernel from Google that intercepts container system calls in user space, shrinking the host kernel attack surface exposed to untrusted workloads.

How do you defend against gVisor?

Defences for gVisor typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for gVisor?

Common alternative names include: runsc, gVisor Sentry.

● Related terms