Research on Dynamic Program Analysis Technique for Software Security
- Author
- ChenTing
- Advisor
- WuYue
- School
- University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2013
- Downloads
- 92
- Citations
- 0
- dynamic symbolic execution
- dynamic taint analysis
- automated softwaretestcase generation
- automated software vulnerability discovery
Abstract
To mitigate ever-growing malware and network attacks, software security drawsmore and more attentions. This dissertation mainly focuses on two directions ofsoftware security: automated software testcase generation and automated softwarevulnerability discovery. This dissertation involves two major techniques: dynamicsymbolic execution and dynamic taint analysis. Both of them belong to the domain ofdynamic program analysis. The content of this dissertation includes five aspects.Fist, this dissertation investigates the background, developments, challenges andsolutions systematically. Then this dissertation compares twelve existing dynamicsymbolic execution software. Research shows that dynamic symbolic execution is aresearch hot spot and it has gained great achievements. However, the wide applicationof the technique is obstructed by a number of challenges, such as path explosion,floating-point computations, non-linear computations, symbolic pointers and so on. Theinvestigation provides theoretical fundamentals and important references for subsequentresearches.Second, this dissertation researches automated software testcase generation basedon dynamic symbolic execution. This dissertation designs and implements dynamicsymbolic execution software, termed by SMAFE for Windows executables. SMAFE isable to analyze binary code directly without the presence of the source code. SMAFEhas four contributions. The first one is that SMAFE executes native x86instructionssymbolically without any intermediate representations, thus the efficiency of SMAFE isimproved. Then SMAFE designs a constraint intermediate language, so that itsportability is increased. Afterwards, this dissertation proposes several heuristics toaddress overlapping symbols, so that the accuracy of dynamic symbolic execution isboosted. Last, SMAFE utilizes a lightweight method for constraint generation, so as toreduce runtime overhead. Experiments show that SMAFE can achieve satisfactory codecoverage with reasonable time and space cost.Based on the previous research topic, this dissertation continues to researchautomated software vulnerability discovery. This dissertation designs and implementssoftware which is able to find vulnerabilities embedded in Windows binaries, named SEVE. SEVE is developed on top of SMAFE, so its key technique is also dynamicsymbolic execution. To facilitate vulnerability discovery, this dissertation proposes fourimprovements. The first one is active vulnerability discovery which injects vulnerabilityconstraints into path conditions actively. So the method can find more vulnerabilitiesthan passive alternatives. Besides, SEVE is actually a system for vulnerability discovery.In other words, SEVE can be enhanced by developing new plugins. Furthermore, toimprove the accuracy of dynamic symbolic execution without increasing runtimeoverhead, SEVE proposes function models. Finally, SEVE introduces an optimized pathexploration algorithm, thus the efficiency of vulnerability discovery is raised.Next, this dissertation presents the research on software vulnerability discoverybased on dynamic taint analysis. Essentially, dynamic taint analysis is a kind ofsingle-path analysis technique, so it is able to handle software with much larger sizesthan dynamic symbolic execution. Then this dissertation designs and implements TVMwhich has four advantage points. The first one is that TVM introduces a high efficientdatastructure to store taints, so the overall efficiency is increased. Besides, TVM designsa fast method to track taint propagation which is complete and uniform. It is able toboost the efficiency of taint analysis and reduce the development complexity of TVM.After that, TVM is able to track taint propagation incurred by tainted pointers, thus theaccuracy is increased and false negatives are reduced. The last one is the design ofhigh-level vulnerability detection policies, so TVM can find the bugs of memoryfunctions.The last research topic involves the future development of dynamic symbolicexecution. This dissertation suggests five research directions. First, path explosionrequires thorough research because so far it is the major obstacle preventing the wideapplication of dynamic symbolic execution. Second, the research on solvers would be ahot spot since dynamic symbolic execution relies on solvers. So the boost of solvers iscritical to dynamic symbolic execution. Third, the specialization of dynamic symbolicexecution software should be considered in future. Since the analyzed software and thedemands of users vary a lot, specialization would be a practical method. Fourth, highefficient and easy-to-manage summary databases should be introduced in futuredynamic symbolic execution software. Summaries are essential to address pathexplosion. Furthermore, summaries are easy to reuse. So good summary databases canbenefit dynamic symbolic execution to a great extent. Last, the parallelization of dynamic symbolic execution would be an important research topic in future. Byutilizing exiting parallel infrastructures, such as multi-cores CPU, multi-cores GPU,clusters, grids and cloud computing, one can parallelize the processes of pathexploration, constraint solving and so on. Parallelization can indeed promote theefficiency of dynamic symbolic execution greatly.
Table of contents
Abstract 5-7
ABSTRACT 7-13
first chapter 13-18
1.1 purpose and significance 13- 16
1.2 research and contribution 16-17
1.3 article organizational structure nbsp 17-18
theoretical study and status of implementation of the second chapter dynamic symbol ; 18-47
2.1 dynamically defined symbolic execution of 18-22
2.1.1 official language definition 18-19
2.1.2 abstract command programming language definition 19-22
process 2.2 dynamic symbolic execution of advantage 22-23
2.3 dynamic symbolic execution of 23-25 ??
2.3.1 dynamic symbolic execution nbsp accurate than static analysis ; 23-24
2.3.2 dynamic symbolic execution is higher than the black-box coverage 24-25
2.4 dynamic symbolic execution challenges faced and solutions 25-36
2.4.1 path explosion 25-30
2.4.2 complex mathematical functions 30
2.4.3 floating-point arithmetic 30-32
2.4.4 symbol pointer operations 32-34
2.4.5 environment interaction 34-36
2.5 other optimization methods 36 -38
2.6 Comparative analysis of dynamic symbolic execution software 38-46
2.7 Chapter Summary 46-47
Chapter automated generation of test cases based on dynamic symbolic execution of Research 47-80
3.1 innovations 47-49
3.2 knowledge 49-51
3.2.1 PIN 49 -50
3.2.2 STP 50-51
3.3 SMAFE Overview 51-56
3.3.1 dynamic symbolic execution of two ways 51 -52
3.3.2 framework and process 52-54
3.3.3 SMAFE an example of the implementation of 54-56
3.4 design and Implementation 56-72
3.4.1 input symbolic 56-58
3.4.2 symbol spread 58-62
3.4.3 overlapping symbol processing 62-70
3.4.4 constraint generation 70-71
3.4.5 path search 71
3.4.6 environment handle 71-72
3.5 experiments and analysis 72-76
3.5.1 design of Experiments 72-73
3.5.2 Case Study 73-74
3.5.3 benchmark test 74-76
3.6 disagreement discussion 76-79
3.7 SMAFE limitations 79
3.8 Summary 79-80
fourth chapter based automation technology to explore the dynamic symbolic execution vulnerability of 80-96
4.1 innovations 80-81
4.2 SEVE of design and implementation of 81-91
4.2.1 passive and active vulnerability discovered vulnerabilities discovered 81-82
4.2.2 vulnerability detector 82-85
4.2.3 function Model 85-86
4.2.4 optimal path search method 86-91
4.3 experiments and analysis 91-94
4.3.1 MS06-001 91-92
4.3.2 CVE-2010-0188 92-94
4.4 SEVE limitations 94-95
4.5 Chapter Summary 95-96
chapter excavation technology research nbsp vulnerability-based automation of dynamic taint analysis ; 96-111
5.1 innovations 97
Situation 5.2 Research 97-98
5.3 memory function Vulnerability 98-99
design and Implementation nbsp 5.4 TVM 's ; 99-105
5.4.1 determine the stain source 99-100
5.4.2 tainted data structure 100-101
5.4.3 taint propagation tracking method 101-104
5.4.4 tainted pointer tracking method 104
5.4.5 high level of vulnerability detection rules 104-105
5.5 experiments and analysis 105-110
5.5.1 experimental setup 105
5.5.2 experimental results 105-108
5.5.3 false analysis 108-109
5.5.4 performance Analysis 109-110
5.6 Chapter Summary 110-111
full Chapter summary and Outlook 111-118
6.1 this article Summary Prospect 111-112
6.2 dynamic symbolic execution of 112-117
6.2.1 Solution to the explosion of new technologies 113-114
6.2.2 more powerful solver 114
6.2.3 software dedicated dynamic symbolic execution of 114-116
6.2.4 manageable summary database 116
6.2.5 parallel computing applications in the field of dynamic symbolic execution 116-117
6.3 future research 117-118
Thanks 118 -119
references achievements during 119-130
PhD 130-133
Related dissertations
- Research on Methods of Applying Fuzzing to Binary-programs Vulnerabilities Discovery
- A Network Software Vulnerabilities Discovery Method Based on Dynamic Taint Analysis
- The Design and Implementation of Non-control-data Protection Model Based on Pointer Tainting Analysis
- The Design of Performance Optimization for Dynamic Symbolic Execution
- The Research on Web Application and Data Security
- Dynamic taint based on information flow analysis technique
- Static Program Analysis Assisted Dynamic Software Vulnerability Discovery
- Research on Dynamic Generation of Fuzzing Test Cases Based on Symbolic Execution
- Study of Fuzzing for Implementation of Stateful Network Protocol Based on Dynamic Taint Analysis
- Research on Protocol Reverse Parsing Based on Dynamic Binary Analysis Platform
- Detection and Analysis of Malware Network Behavior Based on Isolation Environment
- Based on dynamic symbolic execution of code analysis tools for research
- An Improved Dynamic Taint Analysis Model