一种低开销的虚拟机内核对象监控方法
A Low-overhead Kernel Object Monitoring Approach for Virtual Machine Introspection
摘要:
基于虚拟机内省的安全监视器广泛使用监视虚拟机内核对象修改来保护云计算中的虚拟机,例如监视dentry对象以拦截文件操作等。然而,当前大多数虚拟机监视器,如KVM和Xen,仅支持页面级监视,因为Intel EPT技术只能监视页面权限。如果虚拟机外安全工具想要监视某些内核对象,就需要拦截整个内存页的操作。由于在被监控的页面中还存储有其他一些对象,因此修改这些对象也会触发监控器。因此,页面级内存监控通常会给目标虚拟机的相关内核服务带来开销。在本文中,我们提出了一个低开销的内核对象监视方法,以减少由页面级监视器所造成的开销。其核心思想是将目标内核对象迁移到受保护的内存区域,然后监视相应的新内存页面。由于新页面只包含要监视的内核对象,其他内核对象将不会触发我们的监视器。因此,我们的监视器不会给相关的内核服务带来运行时开销。实验结果表明,我们的系统可以有效地监测目标内核对象只有很低的开销。
英文摘要:
Monitoring kernel object modification of virtual machine is widely used by virtual-machine-introspection-based security monitors to protect virtual machines in cloud computing, such as monitoring dentry objects to intercept file operations, etc. However, most of the current virtual machine monitors, such as KVM and Xen, only support page-level monitoring, because the Intel EPT technology can only monitor page privilege. If the out-of-virtual-machine security tools want to monitor some kernel objects, they need to intercept the operation of the whole memory page. Since there are some other objects stored in the monitored pages, the modification of them will also trigger the monitor. Therefore, page-level memory monitor usually introduces overhead to related kernel services of the target virtual machine. In this paper, we propose a low-overhead kernel object monitoring approach to reduce the overhead caused by page-level monitor. The core idea is to migrate the target kernel objects to a protected memory area and then to monitor the corresponding new memory pages. Since the new pages only contain the kernel objects to be monitored, other kernel objects will not trigger our monitor. Therefore, our monitor will not introduce runtime overhead to the related kernel service. The experimental results show that our system can monitor target kernel objects effectively only with very low overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。