{"title":"QSynth - A Program Synthesis based approach for Binary Code Deobfuscation","authors":"Robin David, Luigi Coniglio, M. Ceccato","doi":"10.14722/bar.2020.23009","DOIUrl":"https://doi.org/10.14722/bar.2020.23009","url":null,"abstract":"Assessing software robustness became arduous given the broad adoption of obfuscation in the industry and especially in mobile applications and embedded systems. As such, deobfuscation is becoming crucially important. Obfuscation usually concerns either target the control-flow or the data-flow of the program. While standard static and dynamic analyses suffer some shortcomings, Dynamic Symbolic Execution (DSE) turns out to be very effective on control-flow obfuscation. Yet, fewer approaches address issues raised by data-flow obfuscation. Program synthesis appears to be a promising approach to target such obfuscation. We present a generic approach leveraging both DSE and program synthesis to successfully synthesize programs obfuscated with Mixed-Boolean-Arithmetic, Data-Encoding or Virtualization. The synthesis algorithm proposed is an offline enumerate synthesis primitive guided by top-down breath-first search. We shows its effectiveness against a state-of-the-art obfuscator and its scalability as it supersedes other similar approaches based on synthesis. We also show its effectiveness in presence of composite obfuscation (combination of various techniques). This ongoing work enlightens the effectiveness of synthesis to target certain kinds of obfuscations and opens the way to more robust algorithms and simplification strategies.","PeriodicalId":227166,"journal":{"name":"Proceedings 2020 Workshop on Binary Analysis Research","volume":"51 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116107577","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Yuhei Otsubo, Akira Otsuka, M. Mimura, Takeshi Sakaki, H. Ukegawa
{"title":"o-glassesX: Compiler Provenance Recovery with Attention Mechanism from a Short Code Fragment","authors":"Yuhei Otsubo, Akira Otsuka, M. Mimura, Takeshi Sakaki, H. Ukegawa","doi":"10.14722/bar.2020.23001","DOIUrl":"https://doi.org/10.14722/bar.2020.23001","url":null,"abstract":"Program binaries are often the focus of forensic investigations. Extracting compiler provenance is important in digital forensics, as it provides crucial information about the process by which a malware binary is produced. Object files and libraries, which are components of an executable file, are often compiled in various environments. Thus the executable file bears important information about the development environment of the authors. It is expected to reveal valuable information of the authors if we could extract those compiler provenances with high accuracy enough to resolve each component. In this paper, we investigate the feasibility of compiler identification from a very short code fragment. Surprisingly, we found that a randomly sampled code fragment consisting of only 16 sequential instructions is sufficient to identify the program provenance, such as the source compiler family and the optimization level of machine code efficiently. Additionally, our method can visualize how much each instruction contributed to the classification result. The model uses the attention mechanism, widely used in natural language processing, and CNN with a local receptive field specialized for recognition of one instruction. Moreover, our method takes both opcodes and operands as input, while many of the existing methods had omitted operands. We used a dataset that consists of 28,074 binaries developed in 19 different classes. Each class corresponds to a combination of five different compilers, two different optimization levels (none/max), and two different CPU architectures (x86/x86-64). With this dataset, our method identifies one of the 19 classes with 0.956 accuracy, which is a competitive performance with the best-known results, from only 16 instructions or an equivalent binary sequence of length 30-60 bytes. This result is satisfactory in resolving the component-wise compiler provenance of an executable binary. Additionally, the attention mechanism allows us to extract typical instructions generated by each compiler automatically. The attention mechanism is useful not only for improving the classification performance but also for understanding the characteristics of each class.","PeriodicalId":227166,"journal":{"name":"Proceedings 2020 Workshop on Binary Analysis Research","volume":"7 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129916394","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}