Research on Binary Code Path Obfuscation

Author
WangZhi
Advisor
JiaChunFu
School
Nankai University
Major
Operational Research and Cybernetics
Classification
TP309 Security and confidentiality
Degree
Doctoral dissertation
Year
2012
Downloads
0
Citations
1

Request the full text

Abstract

Software will leak path information at runtime. In recent years, concolicexecution, dynamic taint analysis and theorem proving are widely used in softwarereverse engineering, that attackers can collect path constraints from software’s binaryexecution trace and reason about software internal logic, posing a serious threat tosoftware intellectual property protection.This article analyzed the software’s path information leakage problem, andproposed path obfuscation technique, which used unsolved conjectures, instruction’sside effects and prefix-preserving algorithm to protect software’s path informationwithout changing software’s functionality. The research results are as follows:1. Path obfuscation using unsolved mathematical conjectures. The Collatzconjecture also known as the3x+1problem has not been proved, but in the checkedinteger range, there is no counter-example, and the checked range is much larger thansoftware’s commonly used integer range. Therefore, the Collatz conjecture andsimilar unsolved mathematical conjectures can be used to obfuscate software’s pathinformation, without changing software’s functionality,and the difficulty of reverseengineering using leaked path information will be equivalent to the difficulty ofproving these unresolved mathematical conjectures. Path obfuscation using unsolvedmathematical conjectures is a linear obfuscation, and the experiments show that theadded space and time cost is very small, and the obfuscated codes resemble theoriginal code.2. Path obfuscation using side effects of CPU instruction. Conditional jumpinstructions disclose software’s path information in the execution trace. In order toprevent path information leakage, this work uses conditional exception codes toreplace the conditional jump instructions, that the branch information is hid in theimplicit instruction’s side effects, and uses OS exception handling mechanism tocarry out control transfer. Most instructions in the x86complex instruction set haveimplicit side effects, and there are a variety of context which can affect instruction’s execution. Therefore, the difficulty of collecting software’s path information fromexecution trace is equivalent to the difficulty of reasoning about the possible sideeffects of all CPU instructions in a variety of execution environments, and the reverseengineering’s efficiency is similar to random guessing. The experimental results showthat this obfuscation strategy can effectively hide the software’s path information, andhas an excellent obfuscation strength and resilience.3. Path obfuscation using one-way prefix-preserving algorithm. Hash functionshave good one-way property, so it is difficult for attackers to calculate the input fromhash value, but the hash function is not order-preserving, that its application range islimited to the protection of equal conditions. This work extends one-way hashfunction’s application by introducing prefix-preserving algorithm. Becauseprefix-preserving algorithm could convert a data range to a prefix set, an unequalcondition could be changed to equal conditions based on prefix matching. Therefore,prefix-preserving algorithm increased the application of one-way hash function in thesoftware protection. The difficulty of reverse engineering using leaked pathinformation is equivalent to the difficulty of calculating hash function’s inputaccording to the hash value.4. Design and implementation of path obfuscation system. This work analyzedthe application range, strength, resilience, cost and stealth of different pathobfuscation strategies, and proposed an optimized obfuscation strategy. After that,this work designed and implemented an automated path obfuscation system to reducethe workload of programmers, which is based on the open source LLVM compilerinfrastructure. The results show that this path obfuscation system can effectivelyprotect software’s path information, and the increased overhead in the time and spaceis limited.

Table of contents

Abstract 5-7 Abstract 7-13 first chapter 13-33 Section background 13- Section 15 software protection technology 15-18 III code obfuscation technology 18-27 1.3.1 classification code obfuscation technology 21-25 1.3.2 code obfuscation effect analysis 25-27 fourth path sensitive MATE attack 27-30 1.4.1 path information leak 27 1.4.2 new MATE attack 27-30 V This work 30-33 the second chapter is not based on solving mathematical conjecture path confuse strategy 33-66 Section background and related work 34-37 2.1.1 symbolic execution and its application 34 -35 2.1.2 symbolic execution processing cycle limitations 35 2.1.3 binary code obfuscation 35-36 2.1.4 unsolved mathematical conjecture 36-37 Section path confuse strategy 37-39 III path confusion achieve 39-44 2.3.1 introduced confusion variable 40-41 2.3.2 Select unsolved mathematical conjecture 41-42 2.3.3 to generate dynamic path branching condition 42-44 IV route of confusion mode conversion 44-50 2.4.1 polynomial equivalent transformation 45-46 2.4.2 convergence value transform 46 2.4.3 fixed number of cycles 46-47 2.4.4 similar control flow transformation 47-50 V safety testing 50-64 2.5.1 reverse analysis and reasoning 50-51 2.5.2 reverse analysis and reasoning complexity 51-54 2.5.3 reverse analysis and reasoning accuracy 54-60 2.5.4 input value similarity distribution space 60-64 2.5.5 limitations 64 <br / > Section VI Summary 64-66 Chapter III CPU instruction path confuse strategy based on side effects 66-85 Section Introduction 66-67 Section path based CPU instruction side effects confusion 67-73 3.2.1 CPU instruction using the implicit effects confuse jump condition 69-72 3.2. 2 opaque predicate 72-73 III exception handling mechanism based on implicit control flow transfer exception handling mechanism 73-79 3.3.1 Linux operating system exception handling mechanism 74-76 3.3.2 Windows operating system 76-77 3.3.3 exception handling mechanism based on control flow transfer 77-79 IV performance analysis 79-81 3.4.1 path confuse strength 79-80 3.4.2 path confusion elastic 80-81 3.4.3 confuse path overhead 81 V experimental results and analysis 81-84 VI Summary 84-85 the fourth chapter based on one-way encryption algorithm to retain path prefix confuse strategy 85-98 Section one-way function 85-88 Section reserved prefix algorithm 88-91 4.2.1 prefix algorithm encryption algorithm 88-90 4.2.2 reserved prefix 90-91 III confuse the path -way to retain the prefix algorithm based on policy 91-93 fourth security analysis and performance testing 93-97 4.3.1 security analysis 93-94 4.3.2 resilience to analyze the effect of 94-95 4.3.3 software overhead test 95-97 4.3.4 discuss 97 V Summary 97-98 Chapter path confuse the system design and implementation of 98-121 Section Introduction Section 98-100 confusing performance strategies path analysis 100-107 5.2.1 applications 101-104 5.2.2 strength 104-105 5.2.3 Flexible 105-106 5.2.4 overhead 106 5.2.5 concealed 106-107 Section path optimization algorithm confuse strategy design and implementation of 107-110 fourth path confusing system 110-112 V experimental results and analysis 112-120 VI summary 120-121 Chapter summary and Outlook 121-124 the first section of this article summary 121-122 Section future work prospects 122-124 references 124-132 Thanks 132-133 resume, completed during the doctoral thesis and participate in research projects 133-135 biographical issued during Dr. 133 papers 133-134 to participate during the PhD research 134 has obtained national invention patent information security field 134-135

Related dissertations

  1. The Research of the Intermediate Code Obfuscation Techniques Based on Microsoft COFF Platform
    SiSi ·Guangdong University of Technology ·2013 ·Master's thesis
  2. Research on Control Flow Obfuscation Technology Based on Binary Code
  3. Research on the Information Security Management of Commercial Bank Branches
    LiuBo ·Tianjin University of Commerce ·2013 ·Master's thesis
  4. Analysis of Mechanism and Affection Factors for FDI Technology Spillovers
    XuHongWen ·Huazhong University of Science and Technology ·2013 ·Doctoral dissertation
  5. Study of Information Security Risks Control in IT Outsourcing about a Insurance Company
  6. Study on Information Security Risk Management System of Our Banks
    ChenXiaoJuan ·Suzhou University ·2013 ·Master's thesis
  7. Research of the Information Security Management Strategy in A Company
  8. ISO27001Information Security Management System Diagnosis and Analysis for Boshi Company
  9. Study on Three-Dimensional Digital Measurement Technology Based on Reverse Engineering
  10. Research on Data Preprocessing Algorithms in Reverse Engineering and Its Software Implementation
    YeDongRong ·Hefei University of Technology ·2014 ·Master's thesis
  11. Design and Implementation of Secure Industrial Ethernet Based on Cortex-A8
  12. Design and Implementation of Surface Detection Platform Based on Fiber Optic Displacement Sensor
  13. Design and Implementation of Secure E-commerce Website
    PaErHaTi·YiDeLiSi ·Xiamen University ·2014 ·Master's thesis
  14. Research on Usage Control Model in Dynamic Openly Systems
  15. Research on Technique of Capture and Reconstruction Audio and Video Traffic
    JiaRongLai ·Harbin Institute of Technology ·2012 ·Master's thesis
  16. The Research and Application of Party School Network Security System Based on Classified Protection
    WangHui ·Sun Yat-sen University ·2012 ·Master's thesis
  17. Research on APT Network Attacks and Defense Strategies
    LuoXiang ·Tianjin University ·2012 ·Master's thesis
  18. Risk Analysis and Evaluation of Network Security in Stock Information Systems
    YangJian ·Hunan University ·2013 ·Master's thesis
  19. Research of Deception and Anti-Attack Methods in Dynamic Target Defense
  20. Oil sales enterprise logistics information network security research
    WuSiKe ·Southwest Petroleum University ·2013 ·Master's thesis