The Research and Implementation of Defense of Buffer Overflow Virtual Machine

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

Request the full text

Abstract

Buffer overflow occurs in a program when the program stores more information in an array than the space reserved for it. A buffer overflow may happen accidentally during the execution of a program. When this happens, most often the clobbering of information in areas adjacent to the buffer will cause the program to crash or produce obviously incorrect results. In a buffer overflow attack, the objective of the attacker is to use the vulnerability to corrupt information in a carefully designed way in order to execute attack code previously planted by the attacker. If this succeeds, the attacker effectively hijacked the control of the program, which allows the attacker to execute arbitrary commands on the system. Current defense strengthen change program or load dynamic / static security library, weaken defense the legacy code, the replacement or modification of library. Unable enter the execute logic of instruction running to defense, causing a security problem. So, the research of buffer overflow defense is important for computer security of network and information. Therefore, this paper point out protect integrality of address information and status information is important to defend, create running-time system environment for user program and Instruction enter processor to execute as a starting point, put forward own defend solution which control dynamic instruction execution and some system call to prevent buffer overflow.Then give a defense programme based on Process Virtual Machine to defense buffer overflow dynamic.This paper mainly includes research work as follows:1、Analysis current research status of defense against buffer overflow. Classification the current defense technology, pointed out the inadequacy of defense technology and the inadequacy of Virtual Machine prevent buffer overflow currently.Cuurent research of defense technology can be divided into dynamic defense technology and static defense technology. Static defense technology that based on the different phases of complier needs source code surpport,and uses static library as a code modify technology to change program. Dynamic defense technology is a program context inspect and modify technology which correct the operating environment of application software, including Addresses Protection, Non-Executable Stack/Heap, Bound Checking and Sandboxing Policy.Current defense strengthen change program or load dynamic / static security library, weaken defense the legacy code, the replacement or modification of library. Unable enter the execute logic of instruction running to defense, causing a security problem. Pointed out Virtual Machines can’t see the process of buffer overflow, can’t control execute-flow of program, and can’t record the data when buffer overflow occur. 2、Analyzed the problem of buffer overflow, buffer overflow attack, methods of defend buffer overflow, pointed out protect the integrality of address information and status information is important to defend. Analysis the key issues that create running-time system environment based on Process Virtual Machine to defend buffer overflow what needs.Buffer overflow is mainly due to the C Programming language does not automatically bounds-check array and pointer references. At same time, Stack/Heap Executable, data can be execution as instructions; certain procedures have root provisional authority, and same special system call to deploy. All that induced buffer overflows attacks. And from user space and system space perspective analysis hidden dangers caused by buffer overflow attack. Therefore, this paper as create running-time system environment for user program and Instruction enter processor to execute as a starting point, give a defense programme based on Process Virtual Machine to defense buffer overflow dynamic, and analysis the key issues that create running-time system environment needs.3、Analyzed the key technologies of prevent buffer overflow that included program loading, memory layout, instruction execution.First analysis the key issues that create running-time system environment needs,which respectively corresponding to the different key technologies. Second, choose from one of four different program load scheme as most suitable, then on the basis of which leads to memory layout, instruction execution, syscall and other key technical analysis. Finally, the paper gives an algorithm of identification and interpretation of instructions,and givens a virtual machine common structure and two different solutions to the interpretation of system call.4、As example Intel X86 CPU based on the Windows operating system as test, put forward a DBOVM (Defense of Buffer Overflow Virtual Machine) system to defend buffer overflow . Use software engineering and design and realization of the system.5、Providing certification objectives, the certification and testing of the environment. Validate DBOVM achieved system design goals. Give theory proved to correct prevent buffer overflow with DBOVM. From the theory proved and testing results point of view, the concerns in research papers to be effective, the design is feasible, the achievement of the system is correct.Finally, the paper gives the summary of this research, and points out which research work is next step to carry out.

Table of contents

Abstract 4-6 Abstract 6-12 Chapter 1 Introduction 12-24 1.1 Background and Significance 12 - 13 1.1.1 background and significance 12-13 1.1.2 source project 13 1.2 related theory and technology foundation 13-18 1.2.1 buffer overflow mechanism 13-15 1.2.2 program memory layout 15 1.2.3 language compiler and execution 15 -17 1.2.4 virtual machine technology 17-18 1.3 research status 18-22 1.3.1 buffer Overflow defense research 18-20 1.3.2 virtual Machine research 20-22 1.3.3 problems 22 1.4 the main contents 22-23 1.5 this organizational structure 23 1.6 Summary 23-24 Chapter 2 buffer overflow defense and virtual machines 24-39 2.1 buffer overflow their attacks 24-30 2.1.1 buffer overflow 24-25 2.1.2 buffer overflow attacks 25-28 2.1.3 user space hazards 28-30 2.1.4 system space hazards 30 2.2 buffer overflow defense 30-33 2.2.1 defense technology classification 30-31 2.2.2 dynamic defense technology 31-32 2.2.3 dynamic process-based defense technology 32-33 2.3 process-based buffer overflow defense virtual machine technology 33-34 2.4 buffer overflow defense process virtual machine several key issues 34-38 2.4.1 basic Concepts 34 2.4.2 memory layout 34-35 2.4.3 instruction Execution 35-36 < br /> 2.4.4 user space call 36-37 2.4.5 system space called 37-38 2.5 Summary 38-39 Chapter 3 key technology 39-60 3.1 loader 39-45 3.1.1 computer loading process 39-41 3.1.2 virtual machine load user program interaction diagram program a 41-42 3.1.3 virtual machine to load the user program interaction diagram program two 42-43 3.1.4 virtual machine load user program interaction diagram program three 43-44 3.1.5 virtual machine to load the user program interaction diagram program four 44-45 3.1.6 Summary 45 <br / > 3.2 memory layout 45-48 3.3 instruction Set 48-56 3.3.1 x86 instruction Set Description 48-49 3.3. 2 Register 49-50 3.3.3 several key structures 50-52 3.3.4 instruction execution 52-56 3.4 system call 56-59 3.4.1 exe file function call 56-57 3.4.2 DLL call mechanism 57-58 3.4.3 analysis of the two systems implementations call 58-59 3.5 Summary 59-60 Chapter 4 DBOVM system design and implementation 60-72 < br /> 4.1 buffer overflow prevention programs proposed virtual machine 60-61 4.1.1 system components 60 4.1.2 basic working principle 60 -61 4.1.3 Summary 61 4.2 DBOVM overall design 61-66 4.2.1 design Principles 62 4.2. two design goals 62-63 4.2.3 system overall structure 63-66 4.2.4 implementation Platform 66 4.3 program load module 66-67 4.3.1 functional Analysis 66 4.3.2 module design Description 66-67 4.4 instruction execution module 67 -70 4.4.1 functional Analysis 67 4.4.2 module design Description 67-70 4.5 system call module 70 4.5.1 functional Analysis 70 4.5.2 module design Description 70 4.6 defense and log module 70-71 4.6.1 functional Analysis 70-71 4.6.2 module design Description 71 4.7 Summary 71-72 Chapter 5 DBOVM system verification 72 -88 5.1 verify that the target 72 5.2 verification environment 72 5.3 test 72-73 5.3.1 verification program load function 72-73 5.3.2 verify the command execution function 73 5.3.3 verify defense and logging 73 5.4 test procedure and recording 73-81 5.4.1 verify program load function 73-75 5.4.2 verify the command execution function 75-78 5.4.3 verify defense and logging 78-81 5.5 analysis 81-83 5.5.1 verify program load function 82 5.5.2 authentication instruction execution functions 82-83 5.5.3 verify defense and logging 83 5.6 DBOVM protective buffer overflow proof of correctness 83-86 <br / > 5.7 Summary 86-88 Chapter 6 Summary and Outlook 88-90 6.1 thesis work summarizes 88-89 6.2 further study work 89-90 References 90-93 master's papers published during 93-94 Thanks 94

Related dissertations

  1. Research on Performance Monitoring Technique of Cluster Management of the Virtual System
    WangXiaoJuan ·Xi'an University of Petroleum ·2013 ·Master's thesis
  2. Research on Attacks and Prevention Technology Based on ARP and PPPoE
    ZhangWen ·Sichuan Normal University ·2013 ·Master's thesis
  3. Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
  4. Static Security Detection of C Applications
  5. The virtual system self-healing analysis model research and Application
  6. A Data Persistence System for Virtual Ma-chines in Cloud Environment
  7. A Comprehensive Checkpoint Mechanism for Virtual Disk Image
  8. Overcommitting Memory by Initiative Share from KVM Guests
  9. Research on Techniques of Bandwidth Controlling of Virtual Machine in Data Center
  10. Research of Optimizing Virtual Machine Checkpoint
  11. Research on the Optimization Mechanisms for Hot Standby Based on Remus
  12. Research on Live Migration of Virtual Machine across the Datacenter
    YangPengZuo ·Northwest Normal University ·2013 ·Master's thesis
  13. The Research of Dynamic Double-Level Layers VM Scheduler Strategies
  14. Deployment of SCADA Systerm Bases on Virtual Platfprm
  15. Education&Training Network Building and Security Management Research
    LiYanMei ·Shanghai Jiaotong University ·2012 ·Master's thesis
  16. P2P worm design based on buffer overflow
  17. Research of Windows Buffer Overflow Exploits Technology Heap Spray
    LiuLei ·Shanghai Jiaotong University ·2012 ·Master's thesis
  18. Reasearch on Detection and Prevention Techniques of Buffer Overflow Attacking Code
  19. Research on Detecting Buffer Overflow in Binary Code
    YuXu ·Nanjing University ·2012 ·Master's thesis
  20. Vulnerability Discovering and Its Use in Meteorological Network Security