A Low-Overhead Kernel Object Monitoring Approach for Virtual Machine Introspection

Dongyang Zhan, Huhua Li, Lin Ye, Hongli Zhang, Binxing Fang, Xiaojiang Du

Introduction

Virtual Machine Introspection (VMI) provides a robust security layer by monitoring a guest Virtual Machine (VM) from the outside, typically within the hypervisor. This isolation makes VMI-based security tools significantly more resilient to tampering by rootkits compared to traditional in-guest antivirus software. However, a persistent challenge in VMI is the "granularity problem," where hardware-level memory protection (like Intel's Extended Page Tables) operates at the 4KB page level, while target kernel objects are often much smaller.

The Granularity Problem and "Noisy Neighbors"

When a security policy requires monitoring a small kernel object—such as a 128-byte dentry for file tracking—the entire 4KB page containing that object must be protected. If this page also houses frequently accessed but unrelated "innocent" data, every access to these "noisy neighbors" triggers a VMExit. This forces the hypervisor to pause the VM and hand control to the monitor, resulting in massive performance degradation that often precludes VMI from production use.

Methodology: Kernel Object Migration

To address this, the authors propose an automated Kernel Object Migration framework. Instead of monitoring objects in their original, crowded locations, the system moves them to isolated, "clean" memory pages.

Overview of the VMI monitoring architecture, highlighting the migration and monitoring components within Dom0 and the VMM.

The framework operates in three primary stages:

  1. Automated Memory Allocation: The system hijacks the guest VM's execution flow to reuse existing system calls (like MMAP). This allows the monitor to allocate new memory within the guest's kernel space without requiring permanent agents or source code modifications.
  2. Object Migration & Pointer Redirection: Target objects (e.g., File Descriptor Tables) are copied to the newly allocated area. The system then identifies and updates all kernel pointers—including external references and internal offsets—to point to the new location.
  3. Hardware-Based Monitoring: Once isolated, the objects are monitored using Intel EPT. Because the pages are dedicated to target objects, every trigger is a "true positive," eliminating the overhead of false triggers.

Key Results and Performance

The prototype was evaluated using a Xen-based environment with Ubuntu guests, running the "Linux Kernel Extraction" benchmark— a stress test that creates thousands of filesystem objects.

Comparison of system overhead (SYS TIME) across different monitoring strategies as the number of kernel objects increases.

The results demonstrate a dramatic improvement over traditional methods. As shown in the performance comparison, the overhead for the proposed migration approach remains nearly flat even as the number of monitored objects increases to 400. In contrast, non-migration approaches see execution times skyrocket. This indicates that overhead in the new system is strictly tied to actual security events rather than the total volume of monitored data.

Conclusion and Future Directions

By bridging the "semantic gap" and leveraging guest-assisted memory management, this approach enables high-fidelity kernel monitoring with minimal runtime impact. While challenges remain—such as managing the "memory holes" left behind by migrated objects and defending against sophisticated attackers who might attempt to re-migrate objects—this research provides a scalable path forward for practical, production-ready VMI. Future work will focus on expanding the variety of supported kernel structures, including network socket objects.

Summary updated

BibTeX
@inproceedings{zhan2019low,
  author = {Dongyang Zhan and Huhua Li and Lin Ye and Hongli Zhang and Binxing Fang and Xiaojiang Du},
  title = {{A Low-Overhead Kernel Object Monitoring Approach for Virtual Machine Introspection}},
  booktitle = {ICC},
  year = {2019},
  doi = {10.1109/icc.2019.8761433},
}
Figure