Research on Automatic Detection of Buffer Overflow for C Language
- Author
- ZhangDaZhi
- Advisor
- LiuLei
- School
- Jilin University
- Major
- Computer Software and Theory
- Classification
- TP311.1 Programming
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 270
- Citations
- 2
- buffer overflow
- Automatic Detection
- Operational Semantics
- C language
- static detection
- methods
- Abstract machine model
- Syntax-
- Complex data
Abstract
With the development of computer technology, software applications become increasingly popular in the national production and people's lives and in depth. To large government agencies, aerospace military, to individual households, word processing, with varying degrees of a variety of complex software running all the time. Meanwhile, with the increase in the size and complexity of the practical problems, the size of the software continues to expand, hundreds of thousands of millions of lines of code have been everywhere. Such expansion of the scale, so that the complexity of the software corresponding to the increasingly high. These are a direct result of the growing number of defects and errors in the software. According to the the CERT statistics, in the current network intrusion incident, at least 50% of the use of a buffer overflow vulnerability in the code. No doubt, in the information age of the network, such an attack can easily spread and spread a great threat to the security of the system. There is no doubt that, if effective means and methods of this attack prevention, makes this attack impossible or not cause serious harm to the system, has a very important significance to improve the robustness and security of the software itself . Therefore, research in this area has attracted universal attention. For buffer overflow detection and prevention methods generally fall into two categories: dynamic prevention methods and static detection methods. Dynamic prevention is to change the program's runtime environment makes the program a buffer overflow flaws attacked able to detect and terminate the execution of the program. This precaution is running, which means that a program's source code, the vulnerability of the procedure is still out there. Only in the execution environment, the program can safely run. Has been reported several dynamic detection tool. Such as Stack Guard, Stack Shield, Return Address Defender (RAD), propolice. Dynamic detection methods both prominent drawback: The first is the question of efficiency, increased dynamic analysis software runtime overhead is not practical for some system programs; Second, the dynamic analysis method detects a possible buffer overflow attacks simply terminate the program running, which is readily converted into a denial of service attack. Instead, static detection method can eliminate the program buffer overflow vulnerabilities, buffer overflow threats will cease to exist when the software delivery, which is essentially to eliminate buffer overflow attacks, therefore, has been universal attention. Static detection method is still immature, and some just do lexical analysis, and then match mode, some made parsing, but the need to manually adding notes, do not have a fully automated utility static detection tools. This paper analyzes the various means of buffer overflow attacks, then existing lt; WP = 47 gt; dynamic and static analysis methods and tools to analyze their strengths and weaknesses. On this basis, a buffer overflow detection abstract machine model. Want to analyze the problem from the point of view of the operational semantics formalized description buffer overflow. Also has been given a formal description of the string buffer overflow, but not operational semantics, so its usefulness is not strong. Abstract machine description of the idea: the establishment of a buffer stack pointer stack Syntax-analysis program to detect the array as the buffer, constrained by a pair of integers (alloc, len) look at the array name into a pointer to the buffer of the same name. Pointer is also seen as pointing to a buffer pointer operation, the write buffer may change the integer operation (aloloc, len), according to their semantic modify buffer integer range constraints, when len gt appears; alloc buffer overflow. Consider the control flow, when there is selection, conditional and looping statements, analysis statement may change. When Syntax-finished, the entire source code analysis is completed, buffer overflow is also analyzed. Since this description is formalized, using operational semantics and therefore its correctness can be obtained guaranteed. Given a description of the abstract machine, Flex, Accent experimental prototype system for a subset of the C language. The prototype system is able to detect a simple buffer overflow situation, but fully realize the heavy workload, as a test system, ignoring the complex data structures, control flow, function declaration, situation. Methods to operational semantics, abstract machine described buffer overflow detection problem to solve is an innovative point of this article. The one hand, with operating semantic correctness of this method can be guaranteed, on the other hand, this method is easy to implement, but practice has proved that this method is feasible. This description of how to further improve the method so that it can analyze complex data structures such as multiple pointers and pointer arithmetic, and then be achieved, this article in the future to do the main work.
Table of contents
The first chapter 5-10
1.1 Background 5-6
1.2 Research 6-9
1.2.1 Dynamic guard 6-8
1.2.2 static detection 8-9
1.3 the main work 9-10
Chapter II Basic concepts and means of attack 10-15
2.1 basic concepts 10
2.2 common means of attack 10-15
static method described in Chapter 15-22
3.1 Mini C language definition 15-17
3.2 abstract machine and conversion rules 17-22
Chapter 4 System design and Implementation 22 -39
4.1 system Architecture 22
4.2 development tools introduced 22-26
4.3 implementation of the key ideas and technology 26-28 < br /> 4.4 implementations 28-35
4.5 main data structures and the main 35-39
Chapter V system features and examples 39-41 < br /> 5.1 system Features 39
5.2 detect instances of a 39
5.3 detection Example two 39-41
Chapter Summary 41-42
Conclusion 42-43
References 43-45
Thanks 45-46
Summary 46-48
Abstract 48-50
Related dissertations
- Research on the Buffer Overflow Technology Based on GCC
- Static analysis - based buffer overflow vulnerability detection research
- The safety of the C language compiler
- Research on Detection Technology of Buffer Overflow Vulnerability Based on Lexical Analysys
- Buffer Overflow Vulnerability Detection Technology
- Research and Implementation of embedded application memory detection technology
- Tax Planning of Enterprise Group
- Popular Information in the Clothing Brand Product Development Elements of Extraction Method
- Static Security Detection of C Applications
- WEB-based Programming Style Training and Research
- Android Application Detection Research and Implementation Based on Software Security Policy
- Analysis and Research of Android Malicious Application Behavior
- Security Research of Intelligent Terminal based on Android Platform
- Research on Cheerleading Performance Characteristics and Methods of China University Basketball Association
- About the Common Idea Education of Art College Students
- On College Students' Forgiveness Education
- Social Work Philosophy and Methods in Ideological and Political Education of the Applied
- Research on Recessive Education Method of Ideological and Political Education in China's Universities
- The Study on Evaluation Perfection of Ideological and Political Theory Courses of Universities and Colleges in China
- Study on the Professional Standard of University Counselor