A Modular Approach on Building Certified Software System

Author
GuoYu
Advisor
ChenYiYun
School
University of Science and Technology of China
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Doctoral dissertation
Year
2007
Downloads
227
Citations
0

Request the full text

Abstract

As computer keeps the trend of exerting influence over various aspects of human society, safety issue of computer programs is becoming more and more threatening on both Internet and personal computers. Unfortunately, far from ensuring the safety of all programs, the endlessly emerging virus and network attack always put our computers in great danger. Such menaces are resulted from the lurking bugs in programs, and even a small buggy program may cause the crash of the whole software system. In many paramount systems like nuclear control system and aerospace-plane control system, such bugs would be unpardonable. Formal certification methodology during software development is an approach to improve quality of programs. Among all the formal certification methods, static program certification distinguishes itself as a reliable and feasible method.The technique adopted by this paper is called proof-carrying code. Proof-carrying code is a program with attached proof, which describes the well-formedness of the certified program. Before running the program, a host will check the validity of the proof to evaluate the safety of the program. The validation of the proof indicates that the safety policy of the host will not be violated by the program at runtime.This paper firstly presents the definition of the concepts of program, abstract machine, operational semantics, safety definition and a certifying system in a proof-carrying code framework. The certifying system is used to construct simple proof-carrying codes. Nonetheless, as in traditional research on proof-carrying code frameworks, modular certification is not supported by this framework either. As is well known, realistic programs are developed in a modular way. The whole complicated program may be divided into several modules, which are easier to develop separately, and all the modules can be linked to form the complete version. Therefore, modularity plays a very important role in the modern software engineering, which necessitates the modularization of program certifying. To complicate the problem, the semantics of different modules may be in different styles and imposes much difficulty to be certified in a same certifying system.In this dissertation, a proof-carrying code framework to support modular certification is proposed. In this framework, after the separate certification, different modules with attached proof can be linked together to form a complete proof-carrying code package. Additionally, different modules can be certified in different certifying systems. The basic idea behind the framework is the adoption of an abstract program reasoning system, which supports good modularity, and in which other certifying systems can be embedded. This dissertation delves into the embedment of a certifying system(SCAP), which supports control stack reasoning, and the transplant of typed certifying system (TALP) into the proof-carrying code framework. Two modules, main certified in TALP and newpair certified in SCAP<sup>?</sup>, as well as their proof, can be linked together.This dissertation also addresses the problems of safety proof automatic generation. A verification condition generator for SCAP and a type-checker for TALP are proposed. Employing these tools, the construction of safety proof of each module are largely simplified, which predicates the possibility of larger scale modules certification.All the formal definitions, descriptions and proofs have been formalized in the proof assistant Coq. So all the theorems presented in this dissertation are machine-checkable.The work of this dissertation is the first step to modularity certification framework, which demonstrates good modularity, and brings a bright prospect to the research and application of high-assurance software development.This dissertation was supported by Chinese Natural Science Foundation under Grant No. 60673126.

Table of contents

Chinese Abstract 5-7 English summary 7-15 first chapter 15-35 1.1 Background 15-19 1.1.1 procedures and security 15-16 1.1.2 Formal program verification 16-17 1.1.3 trust calculated on the basis of 17-18 1.1.4 Curry-Howard isomorphism principle 18-19 1.2 to bring proof of code (PCC) 19-21 1.3 PCC-related research 21-31 1.3.1 Touch, Stone, PCC framework 22-24 1.3.2 PCC framework based on the basis of the semantic model 24-26 1.3.3 type of PCC framework 26-28 1.3.4 the basis of the logic verification PCC framework 28-29 1.3.5 exist 29-31 1.4 This article provides an overview of 31-35 1.4.1 research 31-33 1.4.2, innovation and contribution 33 1.4.3 chapters 33-35 the second chapter of a simple basis for PCC framework 35-59 2.1 Framework Overview 35-38 2.2 summarized Calculus of Constructions 38-40 2.3 abstract machine model assembler 40-44 2.4 security policy 44-45 2.5 program to verify the reasoning system 45-54 2.5.1 Procedure Specification 45-46 2.5.2 Inference Rules 46-48 2.5.3 verify the reasoning system reliability and invariant 48-54 2.6 security certification and PCC package structure 54-55 2.7 to achieve 55-59 Chapter III to support the modular verification PCC framework 59-81 3.1 module definition is 60-61 3.2 Framework Overview 61-62 3.3 supports authentication system embedded reasoning system (OCAP) 62-74 3.3.1 OCAP specification defines 62-64 3.3.2 OCAP inference rules 64-69 3.3.3 of the OCAP's reliability proved 69-74 3.4 in OCAP, embedded in the CAP 74-78 3.5 module links 78-79 3.6 to achieve 79-81 Chapter supports the reasoning of the stack verification systems (SCAP); 81-101 4.1 SCAP validation inference system 82-88 4.1.1 specification structure 82-83 4.1.2 Inference Rules 83-88 4.2 SCAP validation condition generator 88-91 4.2.1 verification conditions generated function 88-90 4.2.2 verification conditions generated function reliability 90-91 4.3 Separation logic 91-93 4.4 a dynamic memory allocation module newpair the 93-95 4.5 embedded in the OCAP SCAP 95-97 4.6 to achieve 97-101 Chapter V of the type of authentication system (TALP) 101-125 5.1 TALP type system 102-109 5.1.1 TALP type system 103-104 5.1.2 TALP stereotypes rules 104-109 5.2 TALP type checking 109-115 5.2.1 stereotypes rule check function 109-110 5.2.2 one algorithm 110-114 5.2.3 type checker and its reliability proved 114-115 5.3 a call to memory allocation module main 115-117 5.4 embedded in the OCAP in TALP 117-118 5.5 link main module, and newpair module 118-121 5.5.1 main module 119 5.5.2 newpair module 119 5.5.3 link and security proof 119-121 5.6 to achieve 121-125 Chapter VI Conclusion 125-129 6.1 The paper summary of the work 125-126 6.2 future research directions 126-129 References 129-137 thank 137-139 pursue a degree during the academic 139

Related dissertations

  1. Certifying Concurrent Porgrams Using Transactional Memory
    LiLong ·University of Science and Technology of China ·2008 ·Doctoral dissertation
  2. The Research and Optimization of Digital Speech Codec Based on C55DSP
  3. Design and Implementation for the Signal Detecting System in Railway Terminal Subsystem
    YangYang ·Lanzhou University ·2012 ·Master's thesis
  4. H.264 Encoder Optimization Based on TMS320DM642
  5. Certifying Compilation in an Infrastructure for Developing Trustable Software
    GeLin ·University of Science and Technology of China ·2007 ·Doctoral dissertation
  6. Authentication method based on the logical procedure in the development of High Confidence Software
    XiangSen ·University of Science and Technology of China ·2006 ·Doctoral dissertation
  7. Research on Testing and Evaluating Theory of Reliability and Safety for High Dependability Software
  8. A Pointer Logic for Safety Verification of Pointer Programs
  9. Research on Relationship and Transition between the Software Reliability and Safety
    FanLinBo ·Guizhou University ·2009 ·Doctoral dissertation
  10. Verification of Low-level Concurrent Code with Several Synchronization Mechanisms
    FuMing ·University of Science and Technology of China ·2009 ·Doctoral dissertation
  11. A Research on Binary-coded-fiber Sensor Detecting Liquid Level
    DuanJingBo ·Nanjing Forestry University ·2008 ·Master's thesis
  12. The Design and Implementation of an Assembly Simulator
    ShengXinYi ·Suzhou University ·2007 ·Master's thesis
  13. Software Safety Assurance Framework and Safety Technology Application
  14. Analysis and Check of Type Conversion and Control Flow Safety Vulnerability
  15. YC7150 grinding machine CNC transformation
    LiuYongPing ·Lanzhou University of Technology ·2003 ·Master's thesis
  16. MCU controlled electronic fuel injection pump test bench research
  17. Research and Development of a Portable Engine Air-fuel Ratio Meter
    TianFeng ·Hefei University of Technology ·2007 ·Master's thesis
  18. Analysis and Designs of Tax Bank Treasury Electronic Payment Platform System
    ChenLiHua ·Tongji University ·2006 ·Master's thesis
  19. The Modelling and Application of a New Model of Software Reliability and Safety
    WuZhi ·Guizhou University ·2006 ·Master's thesis
  20. Software Development Platform of the Single Chip Microcomputer Based on VC
    WangSong ·Shenyang University of Technology ·2006 ·Master's thesis