Publication | Open Access
Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
402
Citations
38
References
2019
Year
Unknown Venue
Binary Clone SearchEngineeringSoftware EngineeringSource Code AnalysisReverse EngineeringSoftware AnalysisFormal VerificationAssembly Code RepresentationHardware SecurityNatural Language ProcessingData ScienceAssembly CodeComputational LinguisticsStatic CheckingCompiler OptimizationCompilersCode GenerationComputer EngineeringComputer ScienceCode RepresentationOptimizing CompilerStatic Program AnalysisSoftware DesignProgram AnalysisSoftware TestingFormal MethodsCode ObfuscationObfuscation (Software)Malware Analysis
Reverse engineering is a manually intensive but necessary technique for understanding the inner workings of new malware, finding vulnerabilities in existing systems, and detecting patent infringements in released software. An assembly clone search engine facilitates the work of reverse engineers by identifying those duplicated or known parts. However, it is challenging to design a robust clone search engine, since there exist various compiler optimization options and code obfuscation techniques that make logically similar assembly functions appear to be very different. A practical clone search engine relies on a robust vector representation of assembly code. However, the existing clone search approaches, which rely on a manual feature engineering process to form a feature vector for an assembly function, fail to consider the relationships between features and identify those unique patterns that can statistically distinguish assembly functions. To address this problem, we propose to jointly learn the lexical semantic relationships and the vector representation of assembly functions based on assembly code. We have developed an assembly code representation learning model \emph{Asm2Vec}. It only needs assembly code as input and does not require any prior knowledge such as the correct mapping between assembly functions. It can find and incorporate rich semantic relationships among tokens appearing in assembly code. We conduct extensive experiments and benchmark the learning model with state-of-the-art static and dynamic clone search approaches. We show that the learned representation is more robust and significantly outperforms existing methods against changes introduced by obfuscation and optimizations.
| Year | Citations | |
|---|---|---|
Page 1
Page 1