Skip to main navigation Skip to search Skip to main content

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

  • Changyu Zhao
  • , Yohan Beugin
  • , Jean Charles Noirot Ferrand
  • , Quinn Burke
  • , Guancheng Li
  • , Patrick McDaniel

Research output: Chapter in Book/Report/Conference proceedingConference contribution

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 150× compared to Intel Pin (7× vs 1,053× 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.

Original languageEnglish (US)
Title of host publicationProceedings of SURE 2025 - 1st ACM Workshop on Software Understanding and Reverse Engineering, co-located with ACM SIGSAC 2025
PublisherAssociation for Computing Machinery, Inc
Pages89-101
Number of pages13
ISBN (Electronic)9798400719103
DOIs
StatePublished - Oct 30 2025
Event1st ACM Workshop on Software Understanding and Reverse Engineering, SURE 2025 - Taipei, Taiwan, Province of China
Duration: Oct 13 2025Oct 17 2025

Publication series

NameProceedings of SURE 2025 - 1st ACM Workshop on Software Understanding and Reverse Engineering, co-located with ACM SIGSAC 2025

Conference

Conference1st ACM Workshop on Software Understanding and Reverse Engineering, SURE 2025
Country/TerritoryTaiwan, Province of China
CityTaipei
Period10/13/2510/17/25

All Science Journal Classification (ASJC) codes

  • Computer Networks and Communications
  • Artificial Intelligence
  • Computer Graphics and Computer-Aided Design
  • Computer Science Applications

Fingerprint

Dive into the research topics of 'LibIHT: A Hardware-Based Approach to Efficient and Evasion-Resistant Dynamic Binary Analysis'. Together they form a unique fingerprint.

Cite this