Netinfo Security ›› 2021, Vol. 21 ›› Issue (4): 89-95.doi: 10.3969/j.issn.1671-1122.2021.04.010

Previous Articles     Next Articles

Lightweight Dynamic Binary Instrumentation Algorithm for Embedded Software

LIANG Xiaobing1, KONG Lingda1(), LIU Yan1, YE Xin2   

  1. 1. Institute of Metrology, China Electric Power Research Institute Co., Ltd., Beijing 100085, China
    2. Marketing Service Center, State Grid Zhejiang Electric Power Co., Ltd., Hangzhou, 310007, China
  • Received:2020-12-03 Online:2021-04-10 Published:2021-05-14
  • Contact: KONG Lingda E-mail:cy1818cy@163.com

Abstract:

Binary instrumentation is a key technology in the fields of software performance analysis, vulnerability mining, and quality evaluation. When working on the embedded environment, traditional dynamic instrumentation algorithms are facing limitations like lacking operating system, complex CPU architecture, and tight memory resources. Those limitations make binary instrumentation on embedding software extremely difficult. Therefore, this paper studies the lightweight binary dynamic instrumentation technology, and realizes the acquisition of software runtime information through static feature analysis and dynamic tracking algorithms. Graph-based algorithms and embedded-oriented remote debugging protocol are introduced as well. Compared with the traditional solution, the solution in this article solves the dependence on source code, operating system or CPU architecture, while significantly reducing the occupancy rate of memory and computing resources. Therefore dynamic binary instrumentation work can be effectively solved.

Key words: software instrumentation, binary instrumentation, software debugging, binary analysis

CLC Number: