Research of Vulnerability Attack Detection on Binary Code

Author
LiuZhi
Advisor
WuYue
School
University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP393.08 Computer Network Security
Degree
Doctoral dissertation
Year
2013
Downloads
133
Citations
0

Request the full text

Abstract

Network attacks have caused great threats since the Morris worm in1980’, and theroot cause of various attacks is software vulnerability. The number of attacks has beenin steady growth, though industry and academia have proposed a bunch of techniquesto protect software and operating system security. Attacking techniques have been de-veloping, from buffer overflow to recent Return-Oriented-Programming(ROP). Vulne-rability attack detection is a hot area in information security, especially binarycode-level detection is the focus in industry, however, the complexity of x86instruc-tions and WYSINWYX(What You See Is Not What You Execute) give rise to manychallenges.Binary code level detection can not only defend attacks, but also provide sugges-tions for vulnerability analysis and zero-day vulnerability mining. It is also beneficialto design effective compiler-and OS-level defense. However, current detectionsagainst attacks have several vital limitations. First, a large fraction of defense tech-niques require source code which is unavailable for commercial software, and thus bi-nary code analysis is a must; second, most detection techniques are pure static or dy-namic analysis that sacrifices accuracy or efficiency, and there is no seamless combi-nation. Particularly, for recent ROP attacks, there is no effective defense. In brief, cur-rent attacks demand new defense techniques, but classical defenses such as stack ca-nary, NX and signature matching are unable to meet the demands.This dissertation performs in-depth and elaborate research in three categories, in-cluding dynamic taint analysis, control flow integrity and complex shellcode. Weachieve four major contributions:1. Proposed several novel techniques to strengthen dynamic taint analysis, whichis able to accurately detect a major attack form-memory corruption attack. Designedand implemented efficient shadow memory, which can store and query shadow bit inlow time and space complexity. Proposed structured and hierarchy analysis of x86in-structions, which overcomes the difficulty of x86instruction complexity. Using suchinstruction analysis, we design accurate taint propagation policies. Traditional taint analysis propagate taint value only on instruction level, lacking of procedure levelpropagation. Two techniques are proposed to enhance effectiveness and accuracy ofprocedure-level propagation that they are remaining taint data clear and function sum-mary. The prototype system is developed using dynamic binary instrumentation tool.The system is evaluated with real-world attacks and experiment results demonstratethat our system can effectively detection memory corruption attacks, moreover, systemperformance has also improved.2. A novel technique against ROP is proposed. Current approaches rely on partialfeatures of ROP for detection, but they are unable to accurately distinguish normal in-struction execution and ROP attacks, which may cause high false positives. Throughreal ROP exploits study, we establish the manifested feature and functional feature ofROP and by using them to detect ROP attacks. Meanwhile, pure dynamic analysis in-curs high overhead, and more important, it cannot block attack before gadgets are ex-ecuted. We propose a new technique, black-box gadget emulation, to overcome theseproblems. The prototype system is built with dynamic binary instrumentation. ROPexploits are generated with an automatic tool. Experiment results show our system issuperior to existing ROP detection techniques in terms of both accuracy and efficiency.3. A new function pointer defense technique called FPGuard is proposed. FPGuardworks by sanitizing address that checks if jump targets fall in legal function addressspace. The major difference between FPGuard and CFI is that the checking code ofFPGuard is placed out of program, which can analyze indirect jumps. Besides tradi-tional code injection attacks, attackers are still able to mount ROP attacks. We alsofound there are non-entry function calls in C++programs. A two-step detection tech-nique is proposed. Tthe first step is coarse-grained range check, and the second step isfine-grained black-box gadget emulation. By evaluating real-world exploits, FPGuardcan accurately detection code injection and ROP attacks. System performance is guar-anteed, as FPGuard uses efficient data structure to store and query function addressinformation. FPGuard is the fist system that can detect both code injection and ROPattacks which are exploited by overwriting function pointer.4. A technique of detecting Self-Modify Polymorphic Shellcode(SMPS) is pro-posed. By studying real SMPS samples, we found a major characteristic of SMPS isdynamic code generation. Based on this feature, we propose an effective detection technique by combining static and dynamic analysis. First, it obtains static code bytesusing disassembling, and then obtains dynamic code bytes by emulation. If static anddynamic code are different, it implies a SMPS instance is identified. A simple and ef-fective filtering method is used to filter normal payload. We evaluate the system withSMPS instances generated by Metasploit, and results show it achieves satisfactory re-sults, and also by evaluating false positives with innocuous flows, it reveals false posi-tive rate is very low.

Table of contents

Abstract 5-7 ABSTRACT 7-17 acronyms 17-18 first chapter 18-28 1.1 background domestic and foreign research status quo 1.2 18-20 research papers 20-24 1.3 24-26 1.4 papers organizational structure 26-28 Chapter II exploits basics 28-39 2.1 vulnerability Overview 28-29 2.2 common exploits principle 29-33 2.3 binary code analysis 33-37 2.3.1 binary code translation 33-34 2.3.2 dynamic code instrumentation pile 34-37 2.4 analysis method is relatively 37-38 2.5 Summary 38-39 The third chapter dynamic taint analysis 39-75 3.1 background 39-41 3.1.1 memory overflow attacks 39-40 3.1.2 attack Detection Method 40 -41 3.2 dynamic taint analysis outlined 41-43 3.2.1 works 41-42 3.2.2 related work 42-43 3.3 system design Overview 43-45 3.3.1 formal Description 43-44 3.3.2 design goals and challenges 44-45 3.3.3 system design 45 3.4 core component design 45-61 3.4.1 Shadow memory 46-53 3.4 .2 instruction-level taint propagation 53-58 3.4.3 process level taint propagation 58-61 3.5 system implementation 61-66 3.5 .1 Overview 61 3.5.2 identify tainted source 61-63 3.5.3 instruction stub analysis 63-66 3.5.4 process instrumentation analysis 66 3.6 experiments and evaluate 66-72 3.6.1 memory overflow attack detection 66-69 3.6.2 performance test 69-72 3.7 -depth discussion 72-74 3.7.1 single path execution 72 3.7.2 portability 72-73 3.7.3 detection strategies and integer overflow attacks 73-74 3.7.4 applies to the real environment to detect attacks 74 3.8 Summary 74-75 Chapter IV ROP attack research 75-99 4.1 motivation 75-76 4.2 related work 76-78 4.3 ROP Overview 78-84 4.3.1 ROP principle analysis 78-82 4.3.2 Testing of 82-83 4.3.3 the current lack of detection of 83-84 4.4 , a new detection method 84-87 4.5 combines static analysis of efficient detection 87-91 4.5.1 analog gadget detects black box thinking 87-88 4.5.2 saving gadget information and detection algorithm 88-91 4.6 experiments and analysis 91-98 4.6.1 looking gadget information 91-93 4.6.2 attack Detection analysis 93-96 4.6.3 performance Test 96-97 limitations nbsp 4.6.4 detection methods ; 97-98 4.7 other discussion 98 4.7.1 portability 98 4.7.2 detection method is applied to the real environment 98 4.8 Summary 98-99 Chapter function pointer attack detection research 99 -122 5.1 motivation 99-101 5.2 related work challenges 101-102 5.3 function pointer attack detection 102-106 5.3.1 attack detection requirements 102-104 challenge 5.3.2 binary code analysis 104 5.3.3 multiple entry points to jump with ROP 104-106 5.3.4 threat model 106 5.4 detection thought 106-110 5.4.1 Overview 106-107 5.4.2 detection 107-110 5.4.3 distinguish between non- entry point jump with ROP attack 110 5.5 system Design and Implementation 110-114 5.5.1 system Architecture 110-111 5.5.2 function information extraction 111-112 5.5.3 detection strategies 112 5.5.4 storage function information 112-114 5.6 results and analysis 114-121 5.6.1 code injection attack detection 114-116 <br / > 5.6.2 non-data segment attack detection 116-117 5.6.3 performance Analysis 117-119 5.6.4 comparison with other detection methods 119 -121 5.6.5 FPGuard lack 121 5.7 Summary 121-122 Chapter VI self-modifying polymorphic SHELLCODE detection 122-136 6.1 background 122-124 6.2 research presentation 124-125 6.3 characteristics of self-modifying code 125-128 6.3.1 GetPC code 126-127 6.3.2 self-modifying polymorphic 127-128 6.3.3 threat model 128 6.4 SMPS detection algorithm and system implementation 128-132 6.4.1 detection Overview 128-129 6.4.2 detection algorithm 129-131 6.4. 3 system implementation 131-132 6.5 experimental results and analysis 132-135 6.5.1 detection effectiveness 132-133 6.5.2 false analysis 133-134 6.5.3 transverse experimental comparison 134 6.5.4 portability 134 6.5.5 applied to real attack Detection environment 134-135 6.6 summary 135-136 Chapter VII Conclusion 136-138 7.1 This article summarizes 136-137 7.2 further work 137-138 Thanks 138-139 references made ??during the attack Bo 139-153 research 153-154

Related dissertations

  1. GoFun Fruit Juice Production Line Parts Inventory Control Study
    JiangZuo ·South China University of Technology ·2013 ·Master's thesis
  2. The Role of Retino-digital Photography in Screening of Infant Ophthalmopathy
  3. Inhibitory Effects of Chemically Synthetic Sirna of HIF-1α in Rat Retinal Endothelial Cells of Hypoxic Condition
    BaiQingQing ·Guangzhou Medical College ·2012 ·Master's thesis
  4. Iron Deficiency Stress Related Genes in Malus Xiaojinensis Based on a RNA-seq Transcriptome Analysis
    WangShaoJia ·China Agricultural University ·2014 ·Doctoral dissertation
  5. The Design and Implementation of a Function Level Randomization Defensing Method Against ROP Attack
    XiaoLiang ·Nanjing University ·2013 ·Master's thesis
  6. Research on Dynamic Binary Translation and Optimization Based on QEMU
    LuoYan ·Zhejiang University ·2013 ·Master's thesis
  7. Research on Completeness of Static Binary Translation and Analysis of Code
    WuWeiFeng ·PLA Information Engineering University ·2012 ·Doctoral dissertation
  8. Research on CPU Simulation Via Dynamic Binary Translation
  9. Ring Opening Polymerization of D,L-Lactide Catalyzed by BAIP-Ti(Ⅳ) Complex and Electrospun Study of PDLLA
    HuChengBo ·Chongqing University ·2012 ·Doctoral dissertation
  10. The Correlativity of Overexpression of Bcl-2in Vascular Endothelium and Retina Angiogenesis
    LiuWei ·Huazhong University of Science and Technology ·2013 ·Doctoral dissertation
  11. Phylogenetic and Expression Analysis of ROP Small GTPases in Citrus
    LiXueZuo ·Southwestern University ·2013 ·Master's thesis
  12. Synthesis, Characterization and Property of Ferrocene-based Homopolypeptide and Copolypeptide
    CaiZuo ·East China Normal University ·2013 ·Master's thesis
  13. Design, Synthesis and Characterization of Linear-Dendron-Like Biodegradable Block Co-polymers
    HuaChong ·Shanghai Jiaotong University ·2009 ·Master's thesis
  14. Design, Synthesis and Characterization of Linear-Dendron-Like Biodegradable Block Co-polymers
    HuaChong ·Shanghai Jiaotong University ·2009 ·Master's thesis
  15. Synthesis,Characterization and Property of Hybrid Block Copolypeptide Containing Azobenzene Groups
    GaoChunYan ·East China Normal University ·2012 ·Master's thesis
  16. Study on Synthesis of a New Type of Amphiphilic Miktoarm Star-shaped Copolymers
    WangGuoWei ·Fudan University ·2007 ·Doctoral dissertation
  17. Self-modifying code reverse analysis method
  18. One-Pot Synthesis of Amphiphilic Graft and Multiblock Copolymers
    JingRongKuan ·Fudan University ·2011 ·Doctoral dissertation
  19. Agrobacterium -mediated genetic transformation of M. truncatula efficient Establishment and preliminary study MtRop6 function
    FengLiXing ·Xinjiang Agricultural University ·2008 ·Master's thesis
  20. The screw drill output performance analysis and on - site applied research
    XuBin ·Southwest Petroleum University ·2007 ·Master's thesis