LibIHT:一种高效且抗规避的动态二进制分析硬件方法
LibIHT: A Hardware-Based Approach to Efficient and Evasion-Resistant Dynamic Binary Analysis
AI总结:
本文提出硬件辅助追踪框架 LibIHT,利用 Intel LBR/BTS 在内核收集分支数据并重建 CFG,实现低开销、抗规避且高保真的动态二进制分析。
摘要:
动态程序分析对恶意软件检测、调试和性能剖析极具价值。然而,基于软件的插桩会带来高昂开销,并且可能被反分析技术规避。本文提出 LibIHT,这是一种硬件辅助追踪框架,利用 CPU 内建分支追踪特性(Intel Last Branch Record 与 Branch Trace Store),以极小的性能影响高效捕获程序控制流。该方法通过在内核中收集硬件生成的分支执行数据来重建控制流图(CFG),从而在面对规避型恶意软件时保留程序行为。我们将 LibIHT 实现为操作系统内核模块和用户空间库,并在良性基准程序以及对抗性反插桩样本上进行评估。结果表明,与 Intel Pin 相比,LibIHT 将运行时开销降低超过 150 倍(减速分别为 7 倍与 1,053 倍),同时在 CFG 重建中实现高保真度(捕获超过 99% 的执行基本块和边)。尽管这种硬件辅助方法仅捕获分支地址,牺牲了完整软件插桩可提供的更丰富语义细节,但对于性能和低可检测性至关重要的许多应用而言,这一权衡是可接受的。研究结果表明,基于硬件的追踪能够显著更快地捕获控制流信息、降低检测风险,并以最小干扰执行动态分析。
英文摘要:
Dynamic program analysis is invaluable for malware detection, debugging, and performance profiling. However, software-based instrumentation incurs high overhead and can be evaded by anti-analysis techniques. In this paper, we propose LibIHT, a hardware-assisted tracing framework that leverages on-CPU branch tracing features (Intel Last Branch Record and Branch Trace Store) to efficiently capture program control-flow with minimal performance impact. Our approach reconstructs control-flow graphs (CFGs) by collecting hardware generated branch execution data in the kernel, preserving program behavior against evasive malware. We implement LibIHT as an OS kernel module and user-space library, and evaluate it on both benign benchmark programs and adversarial anti-instrumentation samples. Our results indicate that LibIHT reduces runtime overhead by over 150x compared to Intel Pin (7x vs 1,053x slowdowns), while achieving high fidelity in CFG reconstruction (capturing over 99% of execution basic blocks and edges). Although this hardware-assisted approach sacrifices the richer semantic detail available from full software instrumentation by capturing only branch addresses, this trade-off is acceptable for many applications where performance and low detectability are paramount. Our findings show that hardware-based tracing captures control flow information significantly faster, reduces detection risk and performs dynamic analysis with minimal interference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。