首页> 外文期刊>Computers & Security >Determining the base address of MIPS firmware based on absolute address statistics and string reference matching
【24h】

Determining the base address of MIPS firmware based on absolute address statistics and string reference matching

机译:根据绝对地址统计信息和字符串引用匹配确定MIPS固件的基址

获取原文
获取原文并翻译 | 示例

摘要

Getting the accurate firmware base address is not only the prerequisite for disassembling firmware correctly, but also the basis for reverse analysis. Currently, most existing base address determination methods are applied to the ARM architecture, and a few address determination methods of MIPS firmware highly rely on researcher's manual analysis and experience. To address this problem, based on 32-bit absolute address statistics and string reference matching, an automatic method for the base address determination of MIPS firmware is proposed. Firstly, the 32-bit immediate value loading, addressing mode and string referencing of the MIPS architecture systems are analyzed. Secondly, the Absolute Address Searching (AAS) algorithm and String Reference Matching (SRM) algorithm are proposed based on the analysis. The AAS algorithm utilizes the lui-ori, lui-lw and lui-addiu instruction pairs to identify and record the absolute addresses loaded to registers. According to the distributions of addresses recorded by AAS, the range of candidate base addresses can be determined. Then the lui-addiu instruction pair is used by the SRM algorithm to search for string reference addresses. For every address in the range of candidate base addresses, the SRM algorithm verifies whether each string reference address points to the beginning of a string under the current candidate base address, and thereby the matching rate is calculated. Based on the matching rates corresponding to each of the candidate base addresses, the right base address can be determined. Lastly, the proposed method is applied to the test set composed of 12 mainstream MIPS firmware files. Experimental results demonstrate that the proposed method can determine the base addresses of MIPS firmware files automatically and accurately. Furthermore, the proposed method is also applied to a firmware section after decompression and the result indicates that the proposed method is efficient for automatically determining the loading addresses of firmware sections. (C) 2019 Published by Elsevier Ltd.
机译:获得准确的固件基地址不仅是正确拆卸固件的前提,而且是进行反向分析的基础。当前,大多数现有的基址确定方法已应用于ARM体系结构,而MIPS固件的少数地址确定方法高度依赖研究人员的手动分析和经验。为了解决这个问题,基于32位绝对地址统计和字符串引用匹配,提出了一种自动确定MIPS固件基地址的方法。首先,分析了MIPS体系结构系统的32位立即值加载,寻址模式和字符串引用。其次,在分析的基础上,提出了绝对地址搜索算法和字符串引用匹配算法。 AAS算法利用lui-ori,lui-lw和lui-addiu指令对来识别和记录加载到寄存器的绝对地址。根据AAS记录的地址的分布,可以确定候选基址的范围。然后,SRM算法使用lui-addiu指令对搜索字符串参考地址。对于候选基址范围内的每个地址,SRM算法验证每个字符串参考地址是否指向当前候选基址下的字符串的开头,从而计算出匹配率。基于与每个候选基地址相对应的匹配率,可以确定正确的基地址。最后,将所提出的方法应用于由12个主流MIPS固件文件组成的测试集。实验结果表明,该方法可以自动,准确地确定MIPS固件文件的基地址。此外,所提出的方法也被解压缩后应用于固件部分,并且结果表明所提出的方法对于自动确定固件部分的加载地址是有效的。 (C)2019由Elsevier Ltd.发布

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号