Research on Dynamic Detection for Buffer Overflow Vulnerabilities Based on Simulator

Author
MaJun
Advisor
LuoJun
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
151
Citations
2

Request the full text

Abstract

Buffer Overflow is common software security vulnerability. Malicious users can use the overflow vulnerability of the procedure to attack the target computer systems, to access or corrupt sensitive information, or even worse, to control the host system to attack others. Among the hundreds of thousands of network attacks each year, about half of them are related to buffer overflow vulnerabilities, which cause more than 10 billion dollars’economic loss. Buffer overflow vulnerability has already become one of the most dangerous and common software security vulnerabilities.Nowadays, the methods of buffer overflow vulnerabilities detection are classified into two categories: static detection for buffer overflow (SDBO) and dynamic detection for buffer overflow (DDBO). SDBO methods for direct detection of source code generally suffer from higher rate of false positives. DDBO method which monitors program action in run-time, relatively speaking, has a lower false alarm rate and higher detection accuracy. However, there are obvious problems and shortcomings for DDBO: (1) It can’t entirely get rid of the demand of Source code. (2) Because of the limitation of the operating environment, it can only test the application program, but can’t do anything about the operating systems. (3) Difficulties in overflow location. (4) High dependent on the source code, it is difficult to ensure the coverage of the code.Focusing on the problems and shortcomings of the existing buffer overflow vulnerability detection, this paper presents an effective manner which is special for executable code, and runs target programs in the system-wide simulator under the dynamic-path-tracking monitoring based on the systematic study, comprehensive analysis and comparison of the DDBO approach. The main work and innovation includes five aspects.1) To present system-wide environmental simulator and to study the construction of the simulator control technique focusing on the problem of the weakness in controlling of the current dynamic environment and accessing to information. This technique enables the goal program to run in the environment completely controlled, and can obtain all kinds of state-level information at any time, including hardware state. It provides a good foundation platform.2) To put forward a dynamic instruction interpreter focusing on the problem that executable code is difficult to read and track. The interpreter will transform executable code into meta-instruction which is form-unified, structured, and easy-to-track. It not only improves the target instruction-set of the back-end path-tracking, but also facilitates the front-end extending to multi-platform environment.3) Aiming to improve code coverage and solve the problem on vulnerabilities location, to present Dynamic Path-Tracking (DPT) technique based on taint-propagation. DPT puts forward the rules of judging buffer overflow, the ways to locate the vulnerabilities, the condition of overrunning the buffer, and the algorithm for multi-path search which aims to improve code coverage.4) To design and implement a prototype system called SimDDBO, for the use of Simics which is a full-system simulator, which is based on the above-mentioned research results.5) To test SimDDBO system with the benchmark and three Win32 applications to verify the validity of SimDDBO,as a result of finding two new vulnerabilities tentatively in Baidu Hi which is given verification by BugTraq.To sum up, this paper is of important theoretical and application value in improving the degree of automation and the accuracy of detecting overflow vulnerabilities.

Table of contents

Abstract 10-11 ABSTRACT 11-13 first chapter 13-20 1.1 topics background 13-14 < br /> 1.2 research 14-17 1.2.1 overflow Detection research 14-17 1.2.2 dynamic detection of the main problems 17 1.3 thesis research objectives and content 17-19 1.4 this structure 19-20 Chapter buffer overflow and dynamic detection technology 20-31 2.1 buffer Overflow attacks 20-26 2.1.1 stack overflow attack principle 21-22 2.1.2 heap Overflow attacks 22-24 2.1.3 data segment / BSS segment overflow attacks 24-26 2.2 typical dynamic buffer overflow detection technology 26-30 <br / > 2.2.1 dynamic defense technology 26-28 2.2.2 dynamic mining technology 28-29 2.2.3 research Summary 29-30 <br / > 2.3 Chapter Summary 30-31 Chapter SimDDBO key technology research 31-53 3.1 simulator control technology 31-38 3.1.1 platform 32-34 3.1.2 commissioning and information access 34-36 3.1.3 state management 36-38 3.2 Instruction dynamic interpretation techniques 38-43 3.2.1 yuan instruction model 38-40 3.2.2 yuan instruction mapping 40-41 3.2.3 yuan instruction simplification 41-43 3.3 dynamic Path tracking technology 43-52 3.3.1 vulnerability determine 43-46 3.3.2 vulnerability positioning 46-49 3.3.3 vulnerability Search 49-52 3.4 Summary 52-53 Chapter SimDDBO system Design and Implementation 53-77 4.1 SimDDBO basic working principle 53-54 4.2 SimDDBO frame design 54-56 4.3 simulator Control subsystem 56-62 4.3.1 simulator control subsystem analysis and design 56-60 4.3.2 debug module 60-61 <br / > 4.3.3 information acquiring module 61 4.3.4 message Authentication module 61-62 4.4 dynamic instruction interpretation subsystem 62-70 4.4.1 yuan command object structure design 62-64 4.4.2 dynamic instruction interpretation subsystem analysis and design 64 4.4.3 disassembler 64 -65 4.4.4 yuan instruction mapping table structure 65-70 4.5 analysis determination subsystem 70-75 4.5.1 dynamic taint tracking modules 70-73 4.5.2 controllable branch traversal module 73-75 4.6 Chapter Summary 75-77 Chapter test Results 77-84 5.1 validity test 77-80 5.1.1 benchmark 77-78 5.1.2 example test 78 - 80 5.2 performance test 80-81 5.3 new vulnerability detection 81-82 5.4 Summary 82-84 sixth Chapter Summary 84-86 6.1 this work summarizes 84-85 6.2 Prospects 85-86 Thanks 86-88 < br /> References 88-92 author during term academic achievements 92 author during term academic achievements 92

Related dissertations

  1. Research of Malware Dynamic Detection Technology Based on Android Platform
    ZhangJi ·Tianjin University ·2012 ·Master's thesis
  2. Security Research of Intelligent Terminal based on Android Platform
    WangHuaBin ·Beijing Jiaotong University ·2014 ·Master's thesis
  3. Video Anomaly Identiifcation by Motion Background Subtraction
  4. Android Malware Detection Scheme Based on the Log in the Research and Implementation
    ShenHuiJun ·Lanzhou University ·2013 ·Master's thesis
  5. Research of Multi-engine Cloud Security Mechanism Based on Conditional Random Fields
    DuYaJuan ·Xiangtan University ·2012 ·Master's thesis
  6. Research and Application on Key Technology of Information System Security Assessment
    XieYanBin ·Zhongyuan Institute of Technology ·2012 ·Master's thesis
  7. Method for Evoked Potential Latency Change Estimation under Fractional Lower Order Statistics
    JiaoXia ·Yangzhou University ·2012 ·Master's thesis
  8. Mechanical and Intervention Study on Dynamic Release of Bacterial Endotoxin in Sepsis Animal Model
  9. Research on Railway Dynamic Detection System for Compensation Capacitor of Track Circuit Based on Integrated Positioning
    LiJing ·Lanzhou Jiaotong University ·2012 ·Master's thesis
  10. Design and Implementation of Integrated Detection System for Railway Tads Equipment
    ShiJinFeng ·Shanghai Jiaotong University ·2012 ·Master's thesis
  11. Research on Dynamic Detection Method of Track Line Condition Based on Strap-down Inertia Technology
  12. Development of Monoclonal Antibody Against Enterohemorrhagic E. Coli O157:H7and Immunochromatographic Strip for the Detection
    MengXiangSheng ·Yangzhou University ·2011 ·Master's thesis
  13. Modal Identification and Damage Diagnosis of Pre-stressed Concrete Bridge under Ambient Excitation
    JiangHao ·Jilin University ·2009 ·Doctoral dissertation
  14. Dynamic Detection Technique and Damage Identification Method for Beam Bridges with Small and Medium Span
    TanGuoJin ·Jilin University ·2009 ·Doctoral dissertation
  15. The PLC System Program Design Based on IEC61131-3
  16. A Study of Precise Inspection Technology for Dynamic Surveying Precision
    HeFeng ·PLA Information Engineering University ·2007 ·Master's thesis
  17. Dynamical Detecting Technique of Simple Non-functional Dependence Program Invariant Based on Database
    LiuShuZuo ·Nanhua University ·2007 ·Master's thesis
  18. Research on On-line Detecting of In-cylinder Burning State by Ion Current Signal
  19. Portable vehicle braking performance testing instrument
  20. Signals Processing and Model Analysis of Bridge Inspection
    PangXiaoQing ·Wuhan University of Technology ·2007 ·Master's thesis