TL;DR
This paper introduces SILVER, a novel framework that enhances OS kernel security by providing fine-grained, transparent protection domains for untrusted kernel extensions. SILVER achieves this by leveraging hardware virtualization to enforce strict access control and secure communication, significantly reducing the attack surface posed by vulnerable drivers and modules.
What Problem Does This Paper Address?
Commodity operating systems like Linux are increasingly robust, but untrusted kernel extensions (e.g., third-party device drivers) remain a major security vulnerability. These extensions run with the same high privileges as the OS kernel but are often less secure, making them prime targets for attackers. Existing isolation techniques have limitations: they often lack granular control over data access, struggle with secure inter-component communication, and can be inflexible, requiring significant developer effort to implement. This leaves the kernel susceptible to attacks like privilege escalation and confused deputy, where an attacker exploits a vulnerability in an extension to gain unauthorized access to kernel data or functions.
Methods
SILVER introduces a two-layer architecture: a VMM (Virtual Machine Monitor) layer for hardware-level isolation and a kernel subsystem layer for fine-grained security control.
- Protection Domains: SILVER establishes protection domains, essentially isolated environments, enforced by the VMM. This makes the system transparent to kernel developers, who can continue using familiar programming paradigms.
- Security-Aware Memory Management: A novel kernel memory allocator, an extension of Linux's SLUB allocator, is introduced. This allocator manages dynamic kernel data objects based on their security properties (owner principal and integrity level). It leverages VMM features like page labeling and permission control to enforce fine-grained access control at the object level.
- Secure Communication Primitives: SILVER provides two key primitives for inter-domain communication:
- Transfer-based Communication: Allows a principal to transfer ownership of a data object to another principal, effectively moving it to a low-integrity state for the recipient.
- Service-based Communication: Enables a principal to request another principal to process its data object without relinquishing ownership. A shadow copy is used, and changes are merged back upon completion.
- Reference Validation and Object Accounting: An object registry tracks metadata for protected objects (owner, integrity level, type, size), enabling runtime validation of references passed between principals. This prevents attacks like confused deputy where a malicious principal might forge a reference to a sensitive kernel object.
Datasets
Not discussed in the paper. The evaluation uses real-world Linux kernel functions and extensions, including the Realtek RTL-8139 NIC driver, the CAN BCM module, an emulated sound card driver, and custom modules for attack experiments.
Key Insights and Ideas
- Transparency is Key: By leveraging VMM capabilities, SILVER hides the complexity of protection domains from kernel developers, allowing them to focus on functionality while still benefiting from enhanced security.
- Object-Level Granularity: Moving beyond page-level isolation to object-level security properties is crucial for fine-grained control and preventing subtle attacks that exploit adjacent objects on the same page.
- Unified Integrity Model: A consistent integrity model for data communication simplifies secure interactions between different protection domains.
- Developer Control: SILVER empowers developers to explicitly define security properties for their data, offering flexibility in balancing security and performance.
Key Results
- Effectiveness: SILVER successfully prevented simulated attacks, including kernel SLUB overflow and NULL pointer dereference, by enforcing isolation and access control.
- Code Modification: Adapting existing Linux kernel functions and extensions to use SILVER required less than 10% modification of the original code.
- Performance Overhead: While SILVER introduces overhead, particularly in high I/O scenarios due to frequent protection domain switches and VMM interactions, the performance impact is considered reasonable. Micro-benchmarks show increased latency for memory allocation and deallocation compared to native Linux, but the paper suggests significant room for optimization.
Limitations and Future Work
- Manual Marshalling: For some complex functions, direct service-based communication is difficult, requiring manual data marshalling routines. The authors note that these functions are often provided by the OS kernel itself, which can act as a parent domain.
- Dangling Pointers: Developers must be careful to avoid dangling pointers when using object transfer and endorsement primitives, as these operations release the original object. The authors suggest incorporating kernel reference counting to help manage this.
- Complexity for Large Programs: Adapting large programs to SILVER requires understanding security properties of data and functions, which can be complex. The authors plan to explore automatic program transformation techniques.
- Future Work: The paper suggests improving performance by optimizing Xen's VMEXIT and page fault exception handling, exploring automatic program transformation, and incorporating kernel reference counting.
Summary updated