Incremental Detection Method for Memory Access Overrun in Multi-loop Programs

Author
WangJiaJie
Advisor
JiangFan , YangShouBao
School
University of Science and Technology of China
Major
Information Security
Classification
TP311.53 Software Maintenance
Degree
Doctoral dissertation
Year
2009
Downloads
155
Citations
1

Request the full text

Abstract

Many types of software defects serious threat to the reliability and security of software systems, memory access cross-border belongs to a class of highly hazardous and widespread defects, can be used by hackers and into a variety of denial of service vulnerability and the famous buffer overflow high-risk security vulnerabilities. Existing memory access violation defect detection method, the multi-loop real program containing complex conditional branch, can not effectively analyze its internal frequent pointer arithmetic and memory operations, the detection ineffective. In particular, the cycle times for unpredictable dynamically determined by the external input, memory operation cycle conditional branch dynamic changes common to pose a huge challenge popular symbol perform accurate detection method, leading the class in the traversal detection of the implementation of the program path, you will encounter a serious path combinatorial explosion, even if you consume a lot of time, often not function properly terminated. In addition, existing methods are designed in pairs complete program code to implement a comprehensive inspection, but the reality of software systems often been updated due to various reasons and upgrades, conduct a comprehensive inspection each time the software is updated, too costly. Moreover, the existing methods are not easy for the software update to introduce new defects code area specialized testing, so most of the detection time is spent in meaningless duplicate detection. After analysis, the source of the problem: the implementation of the existing symbol class methods simply the pursuit of code coverage and defects pertinence. Therefore, the proposed oriented multi-cycle memory access the incremental detection method on cross-border defects. Memory access violation defects and loop induction variable op closely related features, for the first time the the recursive chain extension algebra and symbolic execution, defect detection method combined design-oriented multi-cycle defect detection instructions, while taking advantage of the software update affects local sexual characteristics, path-based orientation detection and guidance based on incremental update detection. The main algorithm is as follows: 1) According to the software updates the text to modify the source code, combined with the control and data dependency analysis to identify the software updates the semantics of the actual impact of the change area. In a targeted manner in the region to analyze multiple loop pointer arithmetic and memory read and write modes, the initial identification of a memory access violation suspected defect mark suspected defect depends statements and variables, and then under the control and data dependencies, dependence as a defective area, so constructed as to fully detect software updates introduction of a defect related to the implementation of elements of the minimum set of - to streamline the detection flow diagram, to exclude early defect detection has nothing to do with the statement. 2) streamline testing flow diagram for multiple cycle analysis, tracking and analysis of multi-cycle defect dependent variable recurrence relations, its unified form of recursive chain extension algebra, and then according to the rules of algebra symbols to derive defects dependent on the value of the variable or the upper and lower bounds of the closed form function, build cycle summary and functions Abstract. Then, according to the memory range of security restrictions, cycle summary and functions Abstract structural defects trigger conditions and solved in order to determine the possibility of defects trigger, and remove false positives in the collection of suspected defect can be used to predict the inferred and select the defects associated path defect detection instructions. 3) according to the path selected direction, conditional branch detection priority, the effective range of the number of iterations of the cycle defect detection instructions, guidance to demand symbolic execution path-sensitive defect and Bitwise level precision directional detection. Each time through the suspected defect point, take the initiative to detect defects trigger conditions, combined with the branching condition collected in the detection path constraint solving satisfiability to avoid the defects of false positives, determine the trigger path. And each bifurcation point in the path, on-demand cloning execution environment in order to avoid the same path prefix Repeat and immediately solving the set of selected branch path condition, and when cut off infeasible path branch. Finally, the to generate correct report of the defect collection, real trigger input collection procedures of these defects and the corresponding trigger path set, the authentication information as the defects are not false positives. Based on the above algorithm design and implementation-oriented multi-cycle program implementation of the prototype system memory access violation defects incremental detection, and the first time in the country, the next generation of Microsoft's popular compilers industrial-grade build platform Phoenix for software defect detection, as the system based support environment. The system has detected Filezilla Server, SpamAssassin, WGet and OpenSSL and other well-known open source software, find real code defects. Experimental results show that using recursive chain extension algebraic multi-cycle analysis, and guidance to the implementation of symbolic execution orientation detection, able to overcome the difficulties caused by the multi-cycle program existing symbolic execution class method, including the number of cycles is determined by the input, memory Operation is subject to the loop conditional branch problems of to avoid blind path traversal, sensitive path and the detection accuracy of the bitwise level to improve the detection efficiency and accuracy. The same time, the use of the software update localized features, defects incremental detection to improve the detection timeliness and relevance. In addition, the method is able to detect and locate memory access violation defect at the same time, generate the corresponding program input and trigger path authentication information, which is great value in the field of software security testing and confrontation.

Related dissertations

  1. The Designment of C/C++Source Code Static Detecting System
  2. Demand-driven Automated Test Generation for Software Security Defects
  3. Design and Development of a High-speed Heavy-load Palletizing Robot
    CaoJiaZuo ·Tianjin University ·2012 ·Master's thesis
  4. The Design and Analysis of Octahedral Module Deployable Mast
    LiCheng ·Harbin Engineering University ·2013 ·Master's thesis
  5. Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
    WangZhiHong ·Anhui University of Engineering ·2013 ·Master's thesis
  6. Compiler-directed Static Analysis and Code Transformation
  7. Static Security Detection of C Applications
  8. The Research of Exploiting Software Security Vulnerabilities Based on Android Platforms
    TangYuJing ·Hebei University of Engineering ·2013 ·Master's thesis
  9. The Finite Element Analysis and Optimization of the Key Components of FP2500A Type Stack-Turning Machine for Organic Fertilizer
    WangZeMin ·Nanjing Agricultural College ·2013 ·Master's thesis
  10. Design and Analysis of PF1In-cryostat-feeder Support for ITER Poloidal Field
    ZhangJunLong ·Hefei University of Technology ·2013 ·Master's thesis
  11. Research on Steel Structure Optimization and Dynamic Characteristics of HZS240Concrete Mixing Station
  12. Mechanical Performance Analysis of Semi-rigid Steel Frames Filled Profild Steel Plate Wall
    LiuYing ·Harbin Institute of Technology ·2012 ·Master's thesis
  13. Large Steel Structure Natural Draft Cooling Tower of Force Analysis
    WangJin ·East China Jiaotong University ·2013 ·Master's thesis
  14. The Wind Resistance Study of the Steel Frame Structural Main Factory Building of Large Thermal Power Plant
    WanShunLu ·Guangxi University ·2012 ·Master's thesis
  15. The Analysis of the Structure Stability of Zhongding International Mansion
    WangLi ·Shenyang University ·2012 ·Master's thesis
  16. Research on the Mechanical Behaviors of Concrete-filled Double Skin Steel Tubular Column
    PengCaiJie ·Hunan University ·2013 ·Master's thesis
  17. The Analysis and Comparison for Different Forms of T Fence in the Wiggins Gas Holder
    ZhangZuo ·Tianjin University ·2012 ·Master's thesis
  18. The Research on the Use of Composite Structure in Three-dimensional Garage
    XuZhaoFeng ·Hunan University ·2013 ·Master's thesis
  19. Static Analysis of the Ground-supported Flat-bottomed Cylindrical Steel-concrete Composite Silo
    GaoCongChao ·Hebei University of Engineering ·2013 ·Master's thesis
  20. Mechanical Behavior Analysis of Large Silos Storage for High Temperature Stored Materials
    SongJing ·Zhejiang University ·2014 ·Master's thesis