arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.05676cs.CRcs.ARcs.OS
收藏

HyperDbg:重塑硬件辅助的网络安全(扩展版)

HyperDbg: Reinventing Hardware-Assisted Debugging (Extended Version)

Mohammad Sina Karvandi, MohammadHossein Gholamrezaei, Saleh Khalaj Monfared, Soroush Meghdadizanjani, Behrooz Abbassi, Ali Amini, Reza Mortazavi, Saeid Gorgin, … 展开作者

Mohammad Sina Karvandi, MohammadHossein Gholamrezaei, Saleh Khalaj Monfared, Soroush Meghdadizanjani, Behrooz Abbassi, Ali Amini, Reza Mortazavi, Saeid Gorgin, Dara Rahmati, Michael Schwarz

摘要:

软件分析、调试和逆向工程在当今的软件行业中有着至关重要的影响。高效和隐蔽的调试器对于恶意软件分析尤其重要。然而,现有的调试平台无法解决一个透明的,有效的,高性能的低级别调试器,由于其可检测的指纹,复杂性和实现的限制。在本文中,我们提出了HyperDbg,一个新的管理程序辅助调试器的高性能和隐形调试的用户和内核应用程序。为了实现这一点,HyperDbg依赖于当今CPU中最先进的硬件功能,例如VT-x和扩展页表。与其他广泛使用的现有调试器相比,我们使用自定义hypervisor设计HyperDbg,使其独立于操作系统功能或API。我们提出了基于硬件的防御级仿真和操作系统级的API挂钩通过扩展页表,以增加隐形。我们对10,853个恶意软件样本的动态分析结果显示,HyperDbg的隐蔽性允许调试的样本平均分别比WinDbg和x64 dbg多22%和26%。此外,与现有的调试器相比,HyperDbg不会被13个测试的打包器和保护器中的任何一个检测到。我们通过部署与VMX兼容的脚本引擎,消除了不必要的上下文切换,从而提高了其他调试器的性能。我们对三个具体调试场景的实验表明,与WinDbg作为唯一的内核调试器相比,HyperDbg执行步进,条件中断和系统调用记录,分别快2.98倍,1319倍和2018倍。最后,我们展示了真实世界的应用程序,如0天分析,结构重建的逆向工程,软件性能分析和代码覆盖率分析。

英文摘要:

Software analysis, debugging, and reverse engineering have a crucial impact in today's software industry. Efficient and stealthy debuggers are especially relevant for malware analysis. However, existing debugging platforms fail to address a transparent, effective, and high-performance low-level debugger due to their detectable fingerprints, complexity, and implementation restrictions. In this paper, we present HyperDbg, a new hypervisor-assisted debugger for high-performance and stealthy debugging of user and kernel applications. To accomplish this, HyperDbg relies on state-of-the-art hardware features available in today's CPUs, such as VT-x and extended page tables. In contrast to other widely used existing debuggers, we design HyperDbg using a custom hypervisor, making it independent of OS functionality or API. We propose hardware-based instruction-level emulation and OS-level API hooking via extended page tables to increase the stealthiness. Our results of the dynamic analysis of 10,853 malware samples show that HyperDbg's stealthiness allows debugging on average 22% and 26% more samples than WinDbg and x64dbg, respectively. Moreover, in contrast to existing debuggers, HyperDbg is not detected by any of the 13 tested packers and protectors. We improve the performance over other debuggers by deploying a VMX-compatible script engine, eliminating unnecessary context switches. Our experiment on three concrete debugging scenarios shows that compared to WinDbg as the only kernel debugger, HyperDbg performs step-in, conditional breaks, and syscall recording, 2.98x, 1319x, and 2018x faster, respectively. We finally show real-world applications, such as a 0-day analysis, structure reconstruction for reverse engineering, software performance analysis, and code-coverage analysis.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑