Design and Implementation of an Embedded C Source Codes Audit System

Author
ZhengHongBo
Advisor
ZhouKuanJiu
School
Dalian University of Technology
Major
Applied Computer Technology
Classification
TP368.12 Microprocessor
Degree
Master's thesis
Year
2010
Downloads
53
Citations
0

Request the full text

Abstract

Embedded application software is widely used C language is not a secure programming language , an important reason is undefined behavior and unsafe use of its standards , different compilers give a different interpretation of undefined behavior , resulting in a large number of security risks . Avoid these security risks common practice is to develop a safe subset of the C language for embedded as well as support the safe subset of the code review system , restrictions and norms in the preparation of the code phase , which largely preventable and remove large amounts of software defects. \By Syntax- parsing the source code , the security attribute information to extract the source code file , advantages in data storage and data exchange using XML (extensible Markup Language) , the safety of the source code will be extracted attribute information is stored in an XML middle model. To achieve security programming specification - based detection of the safe subset of each rule abstract the defect mode detection method and Xquery query language defect mode convert Xquery expression , using XML Xquery expression query and locate the middle the model defect pattern matching node. Through the establishment of an independent security knowledge base in the system peripherals and configuration interface provide security programming specification , support adjust Security Rules Knowledge Base security code detection software model or background level and start conditions , to achieve a flexible rules configuration. Subsequently, completed by defects redirection mechanism defect to the precise positioning of the source file from an XML intermediate model . Finally implement a code automatically audit system C Detector runs in the Windows environment using Visual Studio2008 development tools . Code security audit fully automatic basis , the system also provides for the testing personnel flexible configuration of security programming rules . Test and analysis system , to verify the practical value of the system on the detection software security risk and improve software security level .

Table of contents

Abstract 4-5 Abstract 5-8 1 Introduction 8-13 1.1 research background 8-10 1.1.1 Embedded Systems 8-9 1.1.2 embedded software security and reliability 9-10 1.2 purpose and significance of 10 1.3 dissertation research 10-11 1.4 papers organizational structure 11-13 2 software code static detection Research 13-21 2.1 static analysis and dynamic testing 13 2.2 Static analysis methods 13-15 2.3 Static testing tools 15-17 2.4 Secure Programming Specification 17-20 2.5 Chapter Summary 20-21 3 System Design Method 21-36 3.1 code review system design Thought 21-22 3.2 XML intermediate model 22-29 3.2.1 XML description 22 3.2.2 source code structure model 22-24 3.2.3 lexical unit information model 24-26 3.2.4 Type model linear representation 26-29 3.3 defect mode 29-32 3.3.1 software defects 29-30 3.3.2 defect modes are defined 30 3.3.3 Formal defect pattern indicates 30-32 3.4 Security Knowledge 32-35 3.4.1 XML query language XQUERY 32-33 3.4.2 Safety Knowledge library design 33-35 3.5 Summary 35-36 4 code review system implementation 36-48 4.1 System Architecture Design 36-37 4.2 system front-end analysis module 37-38 4.2.1 preprocessing module 37-38 4.2.2 source code analysis module 38 4.3 system backend detection module 38-47 4.3.1 rule configuration module 39-40 4.3.2 multi-file processing module 40-43 4.3.3 Detection drive module 43-46 4.3.4 defect reverse remapping module 46-47 4.3 .5 defect reporting module 47 4.4 Summary 47-48 5 system verification 48-54 5.1 system to perform process validation 48-51 5.1.1 system execution environment 48 5.1.2 system to execute processes 48-51 5.1.3 System Process validation of analytical 51 5.2 specification to achieve security programming verification 51-53 5.2.1 test case design and selection 51-52 5.2.2 Test procedure and results analysis 52-53 5.3 Chapter Summary 53-54 Conclusion 54-56 References 56-58 <br / > master's degree papers published during the case 58-59 Thanks 59-61

Related dissertations

  1. Research on Software Testing Technology Based on Defect Pattern
  2. Design and Development of a High-speed Heavy-load Palletizing Robot
    CaoJiaZuo ·Tianjin University ·2012 ·Master's thesis
  3. The Design and Analysis of Octahedral Module Deployable Mast
    LiCheng ·Harbin Engineering University ·2013 ·Master's thesis
  4. 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
  5. Design and Implementation of the XProc Processor Based on.NET
  6. Design and Implementation of the XML Document Processing System Based on Xproc
  7. Research of Web Information Extraction Based on XML
    ZhengBangXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  8. Research of Information Extraction from Web Documents Based on Tree Automaton
    YangFan ·East China Jiaotong University ·2013 ·Master's thesis
  9. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  10. Research of Keyword Query Processing on XML Data
    ZhaoXingMin ·Yanshan University ·2013 ·Master's thesis
  11. Research on Subtree Results Generation of XML Keyword Search
    WangBo ·Yanshan University ·2013 ·Master's thesis
  12. Results Diversification for XML Keyword Search Based on Semantics
    SongYuLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  13. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
  14. Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
    HeZhenLei ·Zhejiang University ·2013 ·Master's thesis
  15. Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
    ShenZhangBiao ·Zhejiang University ·2014 ·Master's thesis
  16. Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System
    ZhaoLi ·Northeastern University ·2011 ·Master's thesis
  17. The Design and Implementation of WebDAV Service in XML Database
  18. Research of Heterogeneous Database Integration Based on Web Service and XML
    XiaMinNa ·Hunan University ·2012 ·Master's thesis
  19. Research on Encoding and Query Process Technology for Continuous Uncertain
  20. Research on XML Data Cube Based on Tree Structure