Research on Defense Technology of Buffer Overflow Attack Based on Exploits Detection
- Author
- WangYuJie
- Advisor
- TangXiaoHu
- School
- Southwest Jiaotong University
- Major
- Information Security
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 98
- Citations
- 1
Abstract
Buffer overflow attack belongs to the most serious threats to the Internet. By exploiting buffer overflow vulnerabilities in the remote process which provides important network services, skilled intruders can inject malicious packets with carefully crafted content that overflow a static buffer in the victim process. This allows the intruders to alter the execution flow of the service to execute malicious code. Since it is the first and most important step to inject malicious code to target process successfully to implement an attack, it is very meaningful to research on the detection of buffer overflow malicious code.This thesis summarizes the deficiency of contemporary methods for defending the existing buffer overflow attacks and introduces the principle and major technology of buffer overflow attacks. In this thesis a network-level polymorphic shellcode detection scheme based on emulation is introduced as a basic scheme with its feasibility, rationale and limitations. In order to improve the accuracy and speed of the basic scheme, this thesis proposes an improved detection scheme based on the execution behavior of polymorphic shellcode. As the basis of the detection algorithm, a behavior model is put forward by deeply researching on the behavior signature of polymorphic shellcode. This model could distinguish the execution behavior of polymorphic shellcode from the random data more accurately. Furthermore, a detection algorithm based on the behavior model is designed and realized. For mitigating the execution overhead of detection system, the optimization of using stream pretreatment and simulation loop optimizing is proposed. At the same time, this thesis also presents a detailed description on the key techniques for the implementation of the detection scheme and performance optimization.The detection scheme is developed with C language and implemented on Linux operation system and "libemu" which aims at creating a generic x86 emulation API as an independent library. In the end, the false negative of the detection scheme is tested by using polymorphic shellcode samples produced by six polymorphic shellcode engines which provided by MSF. The false positive and system performance is tested and analyzed by using the dataset gathered from real network environment. Compared with the basic scheme, the experiment result shows that the proposed detection scheme outperforms the basic scheme in both speed and reliability.
Table of contents
Abstract 6-7
Abstract 7-10
Chapter 1 Introduction 10-17
1.1 network security status 10-11
1.2 buffer overflow attacks, the historical background and current situation of 11-12
1.3 buffer overflow attacks, the basic principles of 12-15
1.3.1 buffer overflow vulnerability types and hazards 12-14
1.3.2 stack overflow of the basic principles of 14-15
1.4 of this paper work and content arrangements 15-17
Chapter 2 buffer overflow attacks, defense Methods 17-22
2.1 attacks technical analysis research 17-18
2.2 Static Detection technology 18-19
2.3 dynamic defense technology 19-21
2.4 other defense technology 21
2.5 Summary 21-22
Chapter 3, a buffer overflow attack code and code detection technology 22-30
3.1 shellcode preparation of technical 22-27
3.1.1 to write basic shellcode 22-24
3.1.2 to eliminate the shellcode in the zero code 24-25
3.1.3 polymorphic shellcode technology 25-27
3.2 exploit code detection method Research 27-29
3.3 Summary 29-30
Chapter 4, based on the attack code execution behavior detection program 30-44
4.1 a detection method based on dynamic simulation 30-32
4.2-based attack code execution behavior improved detection scheme 32-43
4.2.1 polymorphic shellcode behavior model 32-38
4.2.2 sentencing guidelines is set 38-39
4.2.3 detection algorithm termination condition 39-41
4.2.4 improve program performance optimization design 41-43
4.3 Summary 43-44
Chapter 5 test program design and 44-59
5.1 testing program designed 44
5.2 testing program to achieve 44-53
5.2.1 network data monitoring module 44-46
5.2.2 TCP stream reassembly module 46-48
5.2.3 data stream pre-processing module 48-50
5.2.4 loop simulation testing module 50-53
5.3 program testing and results analysis 53-58
5.3.1 false negative rate test 53-56
5.3.2 false alarm rate test 56-57
5.3.3 system running performance analysis 57-58
5.4 Summary 58-59
conclusions 59-61
thank 61-62
References 62-66
papers published during the master's degree and participate in research projects 66-67
Related dissertations
- Study on County Governments Implementation of the Central Polices Behavior
- Research on the Civil Enforcement Act
- Research on Civil Executive Relief
- Research on the Legal System of Administrative Enforcement
- On the implementation of the relief system
- On the civilian implementation of institutional reforms
- Reform of the court execution
- If the person claims execution system research
- Relief of Civil Enforcement Perfections
- Distributed Denial of Service DDoS attacks core technology research
- China to force the reform of the implementing agency
- Civilian implementation of the relief system
- Civil Execution Relief System
- Civil Enforcement relieve system research
- Research on Attack Impact Assessment of Representative Attacks
- Based on iterative development model to build GUI test automation framework