English

LibIHT: A Hardware-Based Approach to Efficient and Evasion-Resistant Dynamic Binary Analysis

Cryptography and Security 2025-10-21 v1

Abstract

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.

Keywords

Cite

@article{arxiv.2510.16251,
  title  = {LibIHT: A Hardware-Based Approach to Efficient and Evasion-Resistant Dynamic Binary Analysis},
  author = {Changyu Zhao and Yohan Beugin and Jean-Charles Noirot Ferrand and Quinn Burke and Guancheng Li and Patrick McDaniel},
  journal= {arXiv preprint arXiv:2510.16251},
  year   = {2025}
}

Comments

Accepted in Proceedings of the 2025 Workshop on Software Understanding and Reverse Engineering (SURE'25), October 13-17, 2025, Taipei, Taiwan

R2 v1 2026-07-01T06:44:27.581Z