The Research and Implementation of Buffer Overflow Attack Language

Author
ZhongDaFu
Advisor
LiXiaoJian
School
Guangxi Normal University
Major
Computer Software and Theory
Classification
TP309 Security and confidentiality
Degree
Master's thesis
Year
2006
Downloads
228
Citations
2

Request the full text

Abstract

Buffer overflow attack is an attack computer systems means to cause a buffer overflow, out of bounds, the destruction program execution logic steering execute other instructions through carefully arranged long buffer is written to the attack program, which achieve the attacker purpose. The attack results were obtained by the means of relatively simple technology, and thus become one of the focus of national information warfare. However, the realization of buffer overflow attacks, we must rely on high-level language is described, and the description of the high-level language directly determines the efficiency of the efficiency of buffer overflow attacks, so study the high-level language description of the problem of buffer overflow attacks, has for the future of information warfare important theoretical and practical significance. The current buffer overflow attacks from the attacker's perspective, focused on to explore buffer overflow attacks new techniques and methods to study how to break a buffer overflow defense and intrusion detection, and specializes in buffer overflow attacks described rarely case. A description of the current buffer overflow attacks, are basically related information for specific vulnerabilities and loopholes, manually prepared using procedures described implanted code structure and sending steps. Such description makes the description of the attack efficiency is relatively low, the attack described versatility relatively poor, it is difficult to be applied to the actual computer network confrontation. In response to these issues, this article by studying the current language of attacks, analyze their inadequacies, and then propose a new solution: the current buffer overflow attack methods and techniques based on abstract buffer overflow attacks the general law, to design a specifically describe buffer overflow attacks languages. Overflow attacks, buffer under Windows and Linux / Unix as the research object, stack overflow attacks mainly designed to complete the attack language, the language of formal analysis and proof; work of this study the language in the Windows system for Windows and Linux / Unix systems to attack the actual verification results show that the BOAL can not describe the process of automatic generation of implantable code and applicable performance between different systems. Buffer overflow attack language research work can be summarized as the following aspects: 1, introduces the research background and significance, involved theories and techniques based on analysis of the research at home and abroad in buffer overflow attacks, and its high-level language description the status quo, pointing out the inadequacies of their presence. Current buffer overflow attacks described in the description of low efficiency and versatility. Buffer overflow attacks are mainly concentrated in the research of new techniques and methods, and how to break through the defense, local and remote attacks. Buffer overflow attacks described in terms of research, focused almost entirely on the intrusion detection, difficult to find information about the attack buffer attack description. 2, buffer overflow attacks, the analysis of the current buffer overflow attacks as well as attacks languages, to study the key technologies involved given the idea of ??a new buffer overflow attack. Buffer overflow attacks described in inefficiency and poor versatility because: description tools are still high-level language imperative process description, can not achieve the automation of process description. Existing attack description language, such as STATL, its description, high efficiency and performance of generic and transplantation, but it is due to their own reasons, can not be used to describe the buffer overflow attacks. This article learn from STATL thought, through Studies stack overflow, heap overflow and bss overflow attacks, buffer overflow attacks mainly to stack overflow attack based on two parts of the abstract the implanted code and control logic, and for detailed analysis. Buffer overflow attack language defines the syntax and semantics. 3, based on the analysis of the given research objectives and key technologies, to construct a new buffer overflow attack attack automatically generated model design buffer overflow attacks languages ??BOAL. According to the research objectives and design principles, the paper constructs a new buffer overflow attacks and automatically generate the model. The core idea of ??the model with a buffer overflow attack language BOAL to describe the target and attack information, and then interpreted by the compiler given direct attack. According to the structure of the model, the design of buffer overflow attacks language BOAL, and the rules of grammar BOAL formal analysis and proof. 4, according to the syntax and semantics of the design rules, the use of VC 6.0 development tools such as Lex and Yacc achieve a buffer overflow attack language BOAL. Given later to verify that the use cases, respectively, in the given validation the of Linux/x86, Unix/x86 and Windows/x86 system platform, and analysis of experimental results; results show that BOAL is feasible. Finally, the summary of this paper work and propose directions for future research work.

Table of contents

Abstract 4-6 abstract 6-11 Chapter 1 Introduction 11-23 1.1 research background and significance 11 - 13 1.1.1 research background 11-12 1.1.2 Significance 12 1.1.3 topic sources 12-13 <br / > 1.2 Theory and technical basis 13-19 1.2.1 buffer overflow attacks basis 13-16 1.2.2 high-level language compiler 16-19 1.3 research status 19-21 1.3.1 buffer overflow attacks; nbsp nbsp 19-20 1.3.2 Attack language; 20-21 1.3.3 Problems goals and content of 21 paper 1.4 21 research 21-22 the research 1.4.1 target 21-22 1.4.2 research 22 1.5 papers organizational structure 22 1.6 Summary 22-23 Chapter 2 buffer overflow attacks and Its high-level language description 23-40 2.1 buffer overflow attacks classified 23-28 2.1.1 stack overflow its use 24 2.1.2 heap overflow its use 24-27 2.1.3 BSS overflow its use 27-28 2.1.4 three overflow way nbsp 28 2.2 stack overflow attack analysis; 28-36 2.2.1 remote buffer overflow attacks example of 29-33 2.2.2 buffer abstract overflow attacks 33-34 2.2.3 Windows and Linux / Unix difference 34-36 2.3 overflow attacks high-level language description of the problem 36 - 38 2.4 a new buffer overflow attacks ideas 2.5 Summary of 38-39 39-40 Chapter 3 implants code composition and description language definition 40-53 the 3.1 implant code constitute elements 40-42 3.1.1 shellcode 40-41 3.1.2 return address 41 3.1.3 populated with data 41-42 the structure 3.2 Embed Code 42-46 3.2.1 constructed type 42 -44 the structure 3.2.2 implants code key 44-46 3.3 programming language definition 46-52 3.3.1 programming language Syntax 47-52 3.3.2 programming language semantics 52 3.4 Summary 52-53 Chapter 4 buffer overflow attacks language BOAL design 53-61 4.1 BOAL design goals 53 4.2 buffer overflow attacks automatically generate model 53-54 4.3 BOAL basic constitutes 54-55 4.4 BOAL grammar rules; nbsp 55-56 4.5 BOAL formal analysis and proof 56-60 4.5.1 prove BOAL grammar 56-59 4.5.2 Formal Analysis BOAL able to complete the overflow attacks; nbsp 59-60 4.6 Summary 60-61 Chapter 5 BOAL achieve 61-70 5.1 development environment 61 5.2 overall design 61-62 the Module 5.3 design 62-66 5.3.1 lexical scanning module 62-63 5.3.2 parsing module 63-65 5.3.3 semantic execution module 65-66 5.4 system data structure design 66-69 5.4.1 global variables Description 66-67 5.4.2 basic data structures 67-69 5.5 Summary 69-70 Chapter 6 BOAL experimental verification 70-75 Verify that the target of 6.1 experimental 70 < br /> 6.2 experimental environment 70 6.3 validation step recording; nbsp nbsp 70-73 6.4 Analysis of experimental results and evaluation; 6.5 Summary of 73-74 74-75 Summary and Outlook 75-77 1, paper summary of the work 75-76 2, further research work 76-77 Reference 77-80 during the master's papers published 80-81 Acknowledgements 81

Related dissertations

  1. Static Security Detection of C Applications
  2. P2P worm design based on buffer overflow
  3. Research of Windows Buffer Overflow Exploits Technology Heap Spray
    LiuLei ·Shanghai Jiaotong University ·2012 ·Master's thesis
  4. Reasearch on Detection and Prevention Techniques of Buffer Overflow Attacking Code
  5. Research on Detecting Buffer Overflow in Binary Code
    YuXu ·Nanjing University ·2012 ·Master's thesis
  6. Vulnerability Discovering and Its Use in Meteorological Network Security
  7. Design and Verification of Program Buffer Overflow Inspection Method
  8. The Research on Buffer Overflow Attack Defense Based on Trusted Execution Environment
    ZhangHuiJie ·Beijing Jiaotong University ·2013 ·Master's thesis
  9. Research on Technology of Buffer Overflow Discovery Based on Hex-Rays
  10. Code-Reuse Attack Detection and Defense Based on Dynamic Binary Translation Framework
    LiuChao ·Hunan University ·2012 ·Master's thesis
  11. Research and implementation of software encryption key protection
  12. Flow Control Strategies of LTE-Advanced Relay Networks
    LiWei ·Southwest Jiaotong University ·2012 ·Master's thesis
  13. Research on Key Technologies of Network Security Language
    LiWeiMing ·Huazhong University of Science and Technology ·2006 ·Doctoral dissertation
  14. Research on Some Issues of Software Vulnerability Testing
  15. Research on Software Design and Implementation Techniques for Non-Functional Requirements
    CuiZhanQi ·Nanjing University ·2011 ·Doctoral dissertation
  16. Vulnerability Attack and Defense and Vulnerability Database Design
  17. The Design and Implementation of a Static Analysis System in Source Code
  18. Research on Finding Windows Buffer Overflow Vulnerabilities by Security Patch Comparison
  19. Detecting Buffer Overflow in Binary Code by Analyzing Unsafe Functions
    RenHua ·PLA Information Engineering University ·2007 ·Master's thesis
  20. Research of Attack Technique and Defense Policy Based on Buffer Overflow
    WangJianGuo ·Shanghai Jiaotong University ·2008 ·Master's thesis