Skip to main content
QUICK REVIEW

[Paper Review] The Endokernel: Fast, Secure, and Programmable Subprocess Virtualization

B.M. Im, Fangfei Yang|arXiv (Cornell University)|Aug 8, 2021
Security and Verification in ComputingComputer Science56 references12 citations
TL;DR

The Endokernel Architecture introduces a self-isolating, user-level monitor that enables fast, secure, and programmable subprocess virtualization by virtualizing system resources (memory, signals, syscalls) within a single process. Its prototype, Intravirt, uses Intel® MPK and a secure syscall gate (nexpoline) to enforce least-privilege abstractions with only 2–40% overhead, closing critical low-level bypasses present in prior systems.

ABSTRACT

Commodity applications contain more and more combinations of interacting components (user, application, library, and system) and exhibit increasingly diverse tradeoffs between isolation, performance, and programmability. We argue that the challenge of future runtime isolation is best met by embracing the multi-principle nature of applications, rethinking process architecture for fast and extensible intra-process isolation. We present, the Endokernel, a new process model and security architecture that nests an extensible monitor into the standard process for building efficient least-authority abstractions. The Endokernel introduces a new virtual machine abstraction for representing subprocess authority, which is enforced by an efficient self-isolating monitor that maps the abstraction to system level objects (processes, threads, files, and signals). We show how the Endokernel can be used to develop specialized separation abstractions using an exokernel-like organization to provide virtual privilege rings, which we use to reorganize and secure NGINX. Our prototype, includes a new syscall monitor, the nexpoline, and explores the tradeoffs of implementing it with diverse mechanisms, including Intel Control Enhancement Technology. Overall, we believe sub-process isolation is a must and that the Endokernel exposes an essential set of abstractions for realizing this in a simple and feasible way.

Motivation & Objective

  • To address the growing need for fine-grained, efficient, and extensible intra-process isolation in modern applications with diverse components.
  • To overcome the limitations of existing solutions—such as ptrace, LSM, and Seccomp—that fail to virtualize system resources fully or introduce high overhead.
  • To design a secure, efficient, and extensible architecture that maps subprocess authority to system-level objects without relying on kernel-level privilege switches.
  • To demonstrate that subprocess isolation can be both secure and performant by applying the Endokernel to real-world systems like NGINX.

Proposed method

  • Introduces the Endokernel Architecture, a new process model that nests a self-isolating monitor within a standard process to enforce subprocess-level isolation.
  • Uses memory protection keys (MPK) for efficient memory isolation and a new secure syscall callgate, nexpoline, to intercept and virtualize all system calls.
  • Virtualizes signals by inserting an indirection layer that maps signals to the correct subprocess domain, overcoming kernel interface complexity.
  • Employs a user-level monitor to mediate access to all system resources (files, threads, signals, memory), ensuring no leaks from kernel-level bypasses.
  • Applies the architecture to re-architect NGINX into multiple isolated domains (e.g., HTTP parser, OpenSSL), enforcing least-privilege.
  • Evaluates tradeoffs using diverse low-level mechanisms (e.g., Intel® Control Enhancement Technology) to implement the monitor and callgate.

Experimental results

Research questions

  • RQ1Can a user-level monitor efficiently and securely virtualize all system resources (memory, signals, syscalls) within a single process without relying on kernel-level privilege switches?
  • RQ2How can subprocess isolation be made both extensible and composable, supporting application-specific protection abstractions without sacrificing performance?
  • RQ3What low-level threats exist in existing subprocess isolation techniques that bypass traditional security boundaries, and how can they be mitigated?
  • RQ4To what extent can system call and signal virtualization prevent bypass attacks that exploit kernel interfaces or ptrace-like mechanisms?
  • RQ5Can a secure, high-performance subprocess virtualization model be built that supports concurrency and copy-on-write semantics without leaking authority?

Key findings

  • Intravirt achieves 2–40% performance overhead when enforcing subprocess isolation, with some configurations within 5% of native performance.
  • The nexpoline syscall gate successfully prevents unauthorized system call invocation by ensuring only the monitor can trigger syscalls, closing a major bypass vector.
  • Intravirt prevents multi-process-style attacks that exploit copy-on-write semantics to bypass isolation policies.
  • The architecture detects and mitigates low-level threats from domain switching mechanisms, including side-channel and privilege escalation attacks.
  • Virtualizing signals via indirection enables fine-grained signal routing to subprocesses, overcoming kernel interface limitations.
  • The prototype successfully re-architected NGINX into isolated domains, enforcing least-privilege for its HTTP parser and OpenSSL components, demonstrating real-world applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.