arrow
Return

Finding Substitutable Binary Code By Synthesizing Adapters

delete2021-08-01
delete0
PRE
AI
V
Vaibhav Sharma *
K
Kesha Hietala
S
Stephen McCamant
DOI:10.1109/TSE.2019.2931000delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Independently developed codebases typically contain many segments of code that perform same or closely related operations (semantic clones). Finding functionally equivalent segments enables applications like replacing a segment by a more efficient or more secure alternative. Such related segments often have different interfaces, so some glue code (an adapter) is needed to replace one with the other. In previous work, we presented an algorithm that searches for replaceable code segments by attempting to synthesize an adapter between them from some finite family of adapters; it terminates if it finds no possible adapter. In this work, we compare binary symbolic execution-based adapter search with concrete adapter enumeration based on Intel's Pin framework, and explore the relation between size of adapter search space and total search time. We present examples of applying adapter synthesis for improving security of binary functions and switching between binary implementations of RC4. We present two large-scale evaluations: (1) we run adapter synthesis on more than 13,000 function pairs from the Linux C library, and (2) we reverse engineer fragments of ARM binary code by running more than a million adapter synthesis tasks. Our results confirm that several instances of adaptably equivalent binary functions exist in real-world code, and suggest that adapter synthesis can be applied for automatically replacing binary code with its adaptably equivalent variants.
Keywords:
Tools
Binary codes
Libraries
Security
Task analysis
Reverse engineering
Computer science
Symbolic execution
equivalence checking
program synthesis
binary analysis
errShare
errSave
A Semantics-Based Hybrid Approach on Binary Code Similarity Comparison
err2021-06-01
err14
errOAAI
errHu, Yikun; Wang, Hui; Zhang, Yuanyuan; Li, Bodong; Gu, Dawu
errShare
errSave
Binary-Code Obfuscations in Prevalent Packer Tools
err2013-07-11
err93
errOAAI
errRoundy, Kevin A.; Miller, Barton P.
errShare
errSave
Binary Code Representation With Well-Balanced Instruction Normalization
err2023-01-01
err3
errOAAI
errKoo, Hyungjoon; Park, Soyeon; Choi, Daejin; Kim, Taesoo
errShare
errSave
About Methods for Extracting Algorithms from Binary Code
err2025-12-01
err0
PREAI
errKulagin, I. I.; Padaryan, V. A.; Koshkin, V. A.
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

U
University of Minnesota Twin Cities
Scholars:
260
Papers: 154
Citations: 2.5W
Cited Papers

Cited Papers

Topoisomerase II alpha and TLE3 as predictive markers of response to anthracycline and taxane-containing regimens for neoadjuvant chemotherapy in breast cancer
err2014-11-01
err0
errOAAI
errTommaso Susini; Barbara Berti; Carlo Carriero; Ketty Tavella; Jacopo Nori; Ermanno Vanzi; Cecilia Molino; Mariarosaria Di Tommaso; Marco Santini; Valeria Saladino; Simonetta Bianchi
errShare
errSave
Lys63/Met1-hybrid ubiquitin chains are commonly formed during the activation of innate immune signalling
err2016-06-01
err0
errOAAI
errChristoph H. Emmerich; Siddharth Bakshi; Ian R. Kelsall; Juanma Ortiz-Guerrero; Natalia Shpiro; Philip Cohen
errShare
errSave
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
researcher View more