Dynamic Detection of Buffer Overflow Vulnerabilities in Binary Environment
- Author
- QiuJing
- Advisor
- ZhangHong
- School
- Harbin University of Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP309 Security and confidentiality
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 155
- Citations
- 0
Abstract
Buffer overflow vulnerability is a security vulnerability in various types of operating systems and programs are widespread, and it was most hackers use vulnerabilities. Most buffer overflow detection tool is based on the source code, which greatly limits the scope of the use of tools. Traditional binary environment static recognition model, there are some inherent defect, mainly concentrated in the pointer aliasing as well as the variable type identification. This paper presents a dynamic combination of static technology discovery of binary vulnerabilities make up most of the defects. Start from the analysis of the x86 CPU architecture and instruction details decompile binary files, virtual execution environment VM design. VM design, design and real CPU IA-32 execution environment that can run native x86 instruction. Through VM, ScS instruction execution state, the tracking of changes in the register, to solve the problem of a pointer alias. By recording the VM virtual memory each instruction fetch address, the last statistics calculated each memory access instructions actually access the address of the variable to solve the precise identification of the variables. Modern program contains a number of library functions. In order to avoid as much as possible of these library functions, this paper presents a new the Quick library function recognition technology. New fast library function recognition technology relative to existing technology, to improve the recognition accuracy, but the storage and reconstruction of recognition library complex. In the control flow analysis, the reference interval graph theory, graph theory and program flow graph is divided into disjoint interval subgraph. Through the simplicity of interval graphs, and gradually identify nested control structure of the program flow graph. Calculated in the data flow analysis, the conventional data flow equations for binary environment is characterized by a simple and effective type of recognition algorithm. For unsafe function calls and write memory cycle string copy operation, write memory cycle due to overflow issue, a flow-related, context-detection algorithm. Cycle key attributes recognition once again combined with the VM to calculate the cycle status difference, and found the amount of change, which addresses the calculation of the control variables and control displacement. Finally, buffer overflow vulnerability detection model in the practical application, the experimental results show that the detection model can detect the executable common types of buffer overflow vulnerabilities.
Table of contents
Abstract 5-6
Abstract 6-13
Chapter 1 Introduction 13-20
1.1 research background and significance 13 -14
1.2 research status 14-18
1.3 The main research topics 18-19
1.4 paper structure 19-20
Chapter 2 Virtual Machine Design 20-29
2.1 x86 CPU architecture 20-22
2.2 x86 instruction format 22
2.3 VM design 22-28
2.3.1 instruction stream 23
2.3.2 Memory 23-25 ??
2.3.3 CPU 25 - 28
2.4 Summary 28-29
Chapter 3 Disassembly 29-58
3.1 PE file structure 29-31 <br / > 3.2 Disassembly 31
3.3 basic block 31-35
3.3.1 Definition and classification algorithms 31-32
3.3.2 Control Flow Figure 32-34
3.3.3 implementation 34-35
3.4 function 35-38
3.4.1 Definition 35
3.4.2 Identification Function 35-38
3.5 library functions 38-46
3.5.1 Difficulties 38-40
3.5 .2 identify ideas 40-41
3.5.3 implementation 41-46
3.6 startup function 46-48
3.6.1 Identification 46-47
3.6.2 implementation 47-48
3.7 function parameters 48-51
3.7.1 parameter passing specification 48-49
3.7.2 the parameters on the stack addressing 49-50
3.7.3 implementation 50-51
3.8 local stack variable 51-56
3.8.1 Principle 51-53
3.8.2 identify ideas and difficulties 53-54
3.8.3 implementation 54-56
3.9 Global Variables 56-57
3.10 Summary 57-58
Chapter 4 Control Flow Analysis 58 -70
4.1 interval theory 58-60
4.1.1 interval 58
4.1.2 interval division 58-59
4.1 .3 interval graph 59-60
4.2 condition selection 60-63
4.2.1 Structure 60-62
4.2.2 recognition algorithm 62-63
4.3 cycle 63-69
4.3.1 dominated node 63-65
4.3.2 natural circulation 65 < br /> 4.3.3 circulating 65
4.3.4 circulation type 65-66
4.3.5 recognition algorithm 66-69
4.4 Summary 69-70
Chapter 5 Data flow analysis 70-82
5.1 type identification 70-76
5.1.1 Symbol Table 70
5.1.2 identifies the type 70-71
5.1.3 identification rules 71-72
5.1.4 recognition algorithm 72-76
5.2 global data flow analysis 76-81
5.2.1 Concepts 76-77
5.2.2 The general form of the data flow equations 77
5.2.3 Arrival - constant data flow equations 77-81
5.3 Chapter Summary 81-82
Chapter 6 Buffer Overflow Vulnerability detection model 82-95
6.1 unsafe function call problems 82
6.2 unsafe function call vulnerability detection 82-83
6.3 cycle write memory problems 83-85
6.3.1 write memory cycle loop control conditions 84
6.3.2 judgment circulation write memory overflow condition 84-85
6.4 displacement values ??and count values ??calculated 85-89
6.4.1 Static Analysis 87-88
6.4.2 Dynamic Analysis 88 - 89
6.5 Experimental results 89-94
6.5.1 MS03-020 vulnerability detection 90-91
6.5.2 MS03-020 patch 91-92
6.5.3 McAfee Security Center ActivX control 92-93
6.5.4 Kingsoft Antivirus Online UpdateOcx2.dll 93
6.5.5 EFS Easy Chat Server 2.2 93-94
6.6 Summary 94-95
Conclusion 95-96
References 96-100
master's degree papers published during the 100-101
Thanks 101
Related dissertations
- Buffer Overflow Vulnerability Detection Technology
- Research on the Buffer Overflow Technology Based on GCC
- Static Security Detection of C Applications
- Research of Malware Dynamic Detection Technology Based on Android Platform
- Security Research of Intelligent Terminal based on Android Platform
- Composite Detection Mode of Buffer Overflow Vulnerability
- P2P worm design based on buffer overflow
- Research of Windows Buffer Overflow Exploits Technology Heap Spray
- Reasearch on Detection and Prevention Techniques of Buffer Overflow Attacking Code
- Research on Detecting Buffer Overflow in Binary Code
- Vulnerability Discovering and Its Use in Meteorological Network Security
- Video Anomaly Identiifcation by Motion Background Subtraction
- Android Malware Detection Scheme Based on the Log in the Research and Implementation
- Design and Verification of Program Buffer Overflow Inspection Method
- The Research on Buffer Overflow Attack Defense Based on Trusted Execution Environment
- Research on Technology of Buffer Overflow Discovery Based on Hex-Rays
- Research on Control Flow Obfuscation Technology Based on Binary Code
- Research of Multi-engine Cloud Security Mechanism Based on Conditional Random Fields
- Code-Reuse Attack Detection and Defense Based on Dynamic Binary Translation Framework
- Research and Application on Key Technology of Information System Security Assessment