Detecting Fine-Grained Similarity in Binaries
详细信息   
文摘
Large software projects contain significant code duplication,mainly due to copying and pasting code. Many techniques have been developed to identify similar code to enable applications such as refactoring,detecting bugs,and detecting illicit code reuse. Because source code is often unavailable,especially for third-party software,finding similar code in binaries becomes particularly important. Unfortunately,binaries present challenges that make it difficult to detect similar code,such as overcoming the lack of high-level information and piercing the veil of compiler optimizations. Due to these difficulties,we are yet to have practical techniques and tools for binary similarity detection. This dissertation presents novel research that tackles these challenges toward realizing practical binary similarity detection. The central focus of the work is on automatically extracting syntactic and semantic signatures directly from the binaries. This dissertation presents a family of related algorithms,frameworks and tools for extracting these signatures. The two main tools presented are a binary clone detection tool for syntactic similarity and SLEUTH,a tool that detects software license violations using hybrid semantic and syntactic signatures. Although software license violations are common,they often remain undetected due to challenges inherent in binary similarity detection. Examples of software license violations include code a programmer wrote for an ex-employer or open source software licensed under copy-left (such as the Linux kernel reused in a closed source router). Each presented algorithm or tool is practical,automatically finding fine-grained similarity with high precision. This dissertation also introduces a general,mixed binary interpretation framework and its accompanying implementation for realizing the aforementioned work.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700