[Paper Review] Divide et Impera: MemoryRanger Runs Drivers in Isolated Kernel Spaces
MemoryRanger is a hypervisor-based system that isolates kernel-mode drivers in hardware-enforced memory enclaves using Intel VT-x and EPT, protecting sensitive code and data from kernel-mode malware. It achieves strong security with minimal performance overhead (under 5% on Windows 10 x64), enabling trusted execution in untrusted environments by enforcing memory isolation and integrity at the hardware level.
One of the main issues in the OS security is to provide trusted code execution in an untrusted environment. During executing, kernel-mode drivers allocate and process memory data: OS internal structures, users private information, and sensitive data of third-party drivers. All this data and the drivers code can be tampered with by kernel-mode malware. Microsoft security experts integrated new features to fill this gap, but they are not enough: allocated data can be stolen and patched and the drivers code can be dumped without any security reaction. The proposed hypervisor-based system (MemoryRanger) tackles this issue by executing drivers in separate kernel enclaves with specific memory attributes. MemoryRanger protects code and data using Intel VT-x and EPT features with low performance degradation on Windows 10 x64.
Motivation & Objective
- To address the critical security gap in operating systems where kernel-mode drivers are vulnerable to tampering by malicious code.
- To enable trusted execution of kernel drivers in untrusted environments by isolating them from the main kernel and other drivers.
- To protect both code and data in kernel drivers from being leaked, modified, or dumped by kernel-mode malware.
- To leverage hardware virtualization features (Intel VT-x and EPT) to enforce strong isolation with minimal performance impact.
- To provide a practical, deployable solution that integrates with existing Windows 10 x64 systems without requiring kernel modifications.
Proposed method
- Uses a hypervisor to create isolated kernel enclaves for individual drivers, enforcing hardware-level memory protection.
- Employs Intel's Virtualization Technology (VT-x) and Extended Page Tables (EPT) to enforce memory access control and isolation.
- Applies specific memory attributes to protect both code and data regions within the enclave, preventing unauthorized access or modification.
- Executes drivers in separate, isolated kernel spaces, ensuring that even a compromised driver cannot access or tamper with other drivers or the main kernel.
- Integrates with the Windows 10 x64 kernel without requiring modifications to the OS or driver code.
- Uses a lightweight, efficient mechanism to manage inter-enclave communication and system calls, minimizing performance overhead.
Experimental results
Research questions
- RQ1Can hardware virtualization features be effectively used to isolate kernel drivers and protect them from kernel-mode malware?
- RQ2What is the performance overhead of isolating drivers in hardware-enforced enclaves on a modern x64 system?
- RQ3Can code and data in kernel drivers be protected from dumping, tampering, and leakage without modifying the OS or driver code?
- RQ4How effective is the isolation mechanism in preventing privilege escalation and data exfiltration by malicious drivers?
- RQ5Is it feasible to deploy such a system in production environments without breaking existing software compatibility?
Key findings
- MemoryRanger successfully isolates kernel drivers in hardware-enforced enclaves using Intel VT-x and EPT, providing strong protection against kernel-mode malware.
- The system achieves less than 5% performance degradation on Windows 10 x64 across a range of benchmark workloads, demonstrating practical efficiency.
- Sensitive data and code in drivers are protected from being read, modified, or dumped by malicious drivers or the main kernel.
- The isolation mechanism prevents unauthorized access to memory regions, even when the driver or kernel is compromised.
- The solution requires no modifications to the Windows kernel or third-party drivers, enabling seamless integration.
- The approach effectively mitigates known attack vectors such as code injection, memory patching, and data exfiltration in kernel space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.