首页 | 本学科首页   官方微博 | 高级检索  
     检索      


Determining image base of firmware for ARM devices by matching literal pools
Institution:1. “G. Ciamician” Department of Chemistry, University of Bologna, Via Selmi 2, I-40126 Bologna, Italy;2. “G. Ciamician” Department of Chemistry, Microchemistry and Microscopy Art Diagnostic Laboratory (M2ADL), University of Bologna, Ravenna Campus, Via Guaccimanni 42, I-48100 Ravenna, Italy
Abstract:In the field of reverse engineering, the correct image base of firmware has very important significance for the reverse engineers to understand the firmware by building accurate cross references. Furthermore, patching firmware needs to insert some instructions that references absolute addresses depending on the correct image base. However, for a large number of embedded system firmwares, the format is nonstandard and the image base is unknown. In this paper, we present a two-step method to determine the image base of firmwares for ARM-based devices. First, based on the storage characteristic of string in the firmware files and the encoding feature of literal pools that contain string addresses, we propose an algorithm called FIND-LP to recognize all possible literal pools in firmware. Second, we propose an algorithm called Determining image Base by Matching Literal Pools (DBMLP) to determine the image base. DBMLP can obtain the relationship between absolute addresses of strings and their corresponding offsets in a firmware file, thereby a candidate list for image base value is obtained. If the number of matched literal pools corresponding to a certain candidate image base is far greater than the others, this candidate is considered as the correct image base of the firmware. The experimental result indicates that the proposed method can effectively determine image base for a lot of firmwares that use the literal pools to store the string addresses.
Keywords:Image base  Literal pool  Reverse engineering  Firmware  ARM
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号