Gadgets Splicing: Dynamic Binary Transformation for Precise Rewriting

Linan Tian, Yangyang Shi, Liwei Chen, Yanqi Yang, Gang Shi
{"title":"Gadgets Splicing: Dynamic Binary Transformation for Precise Rewriting","authors":"Linan Tian, Yangyang Shi, Liwei Chen, Yanqi Yang, Gang Shi","doi":"10.1109/CGO53902.2022.9741259","DOIUrl":null,"url":null,"abstract":"Many systems and applications depend on binary rewriting technology to analyze and retrofit software binaries when source code is not available, including binary instrumentation, profiling and security policy reinforcement. However, the investigations have found that many static binary rewriters still fail to accurately transform all legal instructions in binaries. Dynamic binary rewriters allow for accuracy, but coverage and rewriting efficiency are limited. Therefore, the existing binary rewriting technology cannot meet all the needs of binary rewriting. In this paper, we present GRIN, a novel binary rewriting tool that allows for high-precision instruction identification. In GRIN, we propose a gadget-based entry address analysis technique. It identifies the entry addresses of the basic blocks in the binary by gathering and executing the basic blocks related to the computation of the entry addresses of the basic blocks. By traversing from these entries as the new entries of the program, we guarantee the correctness of the identified instructions. We have implemented the prototype of GRIN and evaluated on the SPEC2006 and the whole set of GNU Coreutils. We demonstrate that the precision of GRIN is improved to 99.92% compared to current state-of the-art techniques.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"438 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CGO53902.2022.9741259","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Many systems and applications depend on binary rewriting technology to analyze and retrofit software binaries when source code is not available, including binary instrumentation, profiling and security policy reinforcement. However, the investigations have found that many static binary rewriters still fail to accurately transform all legal instructions in binaries. Dynamic binary rewriters allow for accuracy, but coverage and rewriting efficiency are limited. Therefore, the existing binary rewriting technology cannot meet all the needs of binary rewriting. In this paper, we present GRIN, a novel binary rewriting tool that allows for high-precision instruction identification. In GRIN, we propose a gadget-based entry address analysis technique. It identifies the entry addresses of the basic blocks in the binary by gathering and executing the basic blocks related to the computation of the entry addresses of the basic blocks. By traversing from these entries as the new entries of the program, we guarantee the correctness of the identified instructions. We have implemented the prototype of GRIN and evaluated on the SPEC2006 and the whole set of GNU Coreutils. We demonstrate that the precision of GRIN is improved to 99.92% compared to current state-of the-art techniques.
小工具拼接:用于精确重写的动态二进制转换
当源代码不可用时,许多系统和应用程序依赖于二进制重写技术来分析和改进软件二进制文件,包括二进制工具、分析和安全策略增强。然而,调查发现,许多静态二进制重写器仍然不能准确地转换二进制文件中的所有合法指令。动态二进制重写器允许准确性,但覆盖范围和重写效率有限。因此,现有的二进制重写技术不能满足二进制重写的所有需求。在本文中,我们提出GRIN,一个新的二进制重写工具,允许高精度的指令识别。在GRIN中,我们提出了一种基于小工具的入口地址分析技术。它通过收集和执行与基本块的入口地址计算相关的基本块来标识二进制中基本块的入口地址。通过将这些项作为程序的新项进行遍历,我们保证了所识别指令的正确性。我们已经实现了GRIN的原型,并在SPEC2006和整套GNU coretils上进行了评估。我们证明,与目前最先进的技术相比,GRIN的精度提高到99.92%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书