Software Runtime Verification Based on Aspect-oriented Programming

Author
ZhangXian
Advisor
QiZhiChang
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP311.53 Software Maintenance
Degree
Doctoral dissertation
Year
2012
Downloads
49
Citations
0

Request the full text

Abstract

As software systems are more and more pervasive in everyday life, it is becom-ing increasingly necessary to guarantee the security and reliability of software systems.Current software quality control techniques, such as software test, program analysis andmodelchecking,cannotguaranteethatdeployedsoftwaresystemsareerrorfree. Runtimeverification is a lightweight verification technology, which does not assume a deployedsoftware is correct, but continuously checks whether a software execution satisfies or vio-lates a given critical property. Runtime verification techniques are widely used to preventdamages from happening and are quite effective in practice.The techniques of Aspect-Oriented Programming (AOP) based runtime verificationtreat runtime verification as a cross concern. AOP can modularize runtime verificationconcern, andthejoinpointmodelusedinAOPlanguagesisnaturallycorrespondingtotheevents monitored in runtime verification. Most mainstream runtime verification frame-works are implemented in AOP languages.As the monitored program is evolving and AOP based runtime verification tech-niques inject monitors into programs in an oblivious way and generally can arbitrarilymodify the monitored program, those features bring big challenges to use them correctly.In this paper, we try to resolve the problems that hinder users from effectively and cor-rectly adopting the AOP based runtime verification techniques. The main contributionsinclude:1. We propose an event pattern language for runtime verification. Based onthe characteristics of selecting the event sequences in runtime verification, we propose anew event pattern selection language. This event pattern language is composed by twolevel operators. The lower level operators use restricted pointcuts to select single events.The restricted pointcuts only use the local information from the event environment. Thehigher level operators fully leverage the control flow and the data flow relation amongevents to select event sequences. Compared with other event pattern languages used incurrent runtime monitoring frameworks, our language can express a wider spectrum ofevent sequences.2. We propose predictive semantics for LTL formulae used in runtime verifi-cation. Current runtime verification techniques generally assume that monitored events arrive one at a time. But if we can do a static analysis on monitored programs, we mayfind that some monitored event sequences are predictable when their first elements hap-pen. Thus we can help the monitor to find whether an execution satisfies or violates aproperty in advance. We give a formal definition to this method and implement a tool.We use the tool to carry out some experiments on several real and large-scale projects.The result demonstrates that our method is generally applicable in these projects.3. We define two types of conflicts in and between runtime monitors and theircorresponding detection algorithms. There might be an inconsistency between an in-tended monitor property and the actually implemented monitor property because of thecomplexity of the pointcuts used to select monitored events. If there are several monitorsinjected into a monitored program, it is a big challenge for developers to master the fi-nal runtime behavior. To address this problem, we define two kinds of conflicts: one isinside a runtime monitor; the other one is between runtime monitors. We also give theircorresponding detection algorithms. These algorithms are implemented based on an opensource runtime verification framework and several real cases are examined. The resultsdemonstrate that this approach can help users to use runtime verification techniques moreeffectively.4. Weproposeaclassificationmethodforruntimemonitorsandthecorrespond-ingdetectionmethod. Currentmainstreamruntimeverificationframeworksenableusersto arbitrarily modify monitored programs when their executions satisfy or violate mon-itor properties. The original properties of the monitored program may be broken. Wepropose a classification method for runtime monitors based on their impacts on the prop-erties of monitored program. We also present a method to automatically detect the classof a monitor. The monitor’s class can help users to select runtime monitors more wisely.

Table of contents

Abstract 9-11 ABSTRACT 11-13 first chapter 13-31 1.1 software runtime verification of relevant definitions verify definition nbsp 14-19 1.1.1 software is running ; 14-15 1.1.2 to determine the nature of the monitor definition 15 1.1.3 can be modified been monitoring program monitors definition 15-18 1.1.4 software application runtime verification 18-19 1.2 software is running validation research status 19-27 1.2.1 runtime validation nature description language 19-22 1.2.2 LTL formulas have poor semantic 22-24 1.2. 3 monitor configuration verify the performance of 24-25 1.2.4 runtime optimization techniques research and contributions 25-27 1.3 article 27-29 1.4 thesis structure 29-31 Chapter II technical and theoretical foundation 31-39 aspect 2.1 oriented programming 31-34 2.1.1 modular crosscutting concerns access point model 31-32 2.1.2 AOP 's 32-33 2.1.3 AspectJ language description 33-34 2.2 software -based authentication AOP runtime 34-36 2.3 can monitor and can not monitor the nature 36-38 2.4 chapter Summary runtime validation 38-39 Chapter III software events Select language 39-53 3.1 motivation: Web program to prevent SQL injection attacks 40-42 3.1.1 SQL injection attacks 40-41 3.1.2 how to prevent SQL injection attacks 41 <br verification to prevent SQL injection attacks nbsp /> 3.1.3 with the runtime ; 41-42 3.2 Choose section grammar individual events 42-43 3.2.1 AspectJ aspect of grammar 42-43 3.2.2 select individual events the section syntax runtime verification of 43 3.3 software events Select language runtime validation 43-45 3.4 software event selection expressive language 45- 48 3.5 tools to achieve and case studies 48-50 3.5.1 tool to achieve 48-49 3.5.2 case studies 49-50 3.6 related work 50-51 3.7 Chapter Summary verify nbsp 51-53 Chapter IV with the prediction of semantic software running ; 53-71 4.1 background Information 53-54 4.1.1 Büchi automata verify nbsp 53-54 4.1.2 three-valued semantics of the software is running ; 54 4.2 software with predictive semantic runtime verification 54-56 4.3 based on predictive monitor construction and testing nbsp semantics ; 56-60 4.3.1 monitor based on the predicted structure of semantic monitor the testing process 57-59 4.3.2 with forecast semantics 59-60 4.3.3 monitor example 60 4.4 supports predictive semantic tools to achieve 60-66 4.4.1 forecasting tool support semantic 61-62 4.4.2 into the LTL formula monitor 62-63 4.4.3 Cartridge monitoring program is 63-66 4.5 case studies and experimental 66-68 4.5. a case study 66-67 4.5.2 experiments and results analysis 67-68 4.6 related work 68-70 4.7 Summary 70-71 chapter based AOP runtime verification of conflict detection 71-87 5.1 AOP oriented event run -time monitoring based selection expression 72-74 conflict detection nbsp 5.2 within a single monitor ; definition within 74-79 5.2.1 single monitor conflicts 74-76 5.2. detection Algorithm 2 within a single monitor conflicts 76-79 conflict between more than 5.3 monitors detect 79-82 multiple monitors conflict between 5.3.1 definition 79-80 5.3.2 between multiple monitors conflict detection algorithms 80-82 5.4 Implementation and case studies 82-84 <br / > 5.5 related work 84-85 5.6 Chapter Summary 85-87 Chapter VI classification and detection methods monitor AOP runtime based 87- 109 6.1 runtime custom validation framework monitor 88-91 the monitor sample 6.1.1 JavaMOP 89-91 6.2 based AOP runtime monitor classification semantic 91-97 6.2.1 is monitoring program 91-94 6.2.2 monitor AOP runtime classification based 94 -96 6.2.3 monitor category with the monitoring program to maintain the relationship between nature 96-97 6.3 AOP monitor automatically detects the type of method is based on 97-101 6.4 tools to achieve and experimental results 101-104 6.4.1 tool to achieve 101-102 6.4.2 experiments and results analysis 102- 104 6.5 related work 104-106 6.6 Summary 106-109 Chapter VII Conclusion 109-113 7.1 this article the main work 109-110 7.2 further work prospects 110-113 Thanks 113-115 references 115- 127 author made ??during the school academic achievement 127-128

Related dissertations

  1. Research on Multi-domain Role Access Control Policy Merge Method and Its Implementation
    LiuShang ·Harbin Institute of Technology ·2013 ·Master's thesis
  2. Research of Synchronous Replication Technology Based on Semantic Merger
    MaZhiWei ·Henan Agricultural University ·2013 ·Master's thesis
  3. The Research of Runtime Verification on Real-Time System
    WangZhen ·Central China Normal University ·2014 ·Master's thesis
  4. Research on Optimization Technique for Hardware Transactional Memory System Based on CMP
    ZhangZuo ·Harbin Engineering University ·2013 ·Master's thesis
  5. Research and Realization of MIPI High-speed Data Interface
    ShenLei ·Hunan University ·2013 ·Master's thesis
  6. Technical Research of Surveillance and Collision Avoidance for Moving Targets at the Airport Surface
  7. Aircraft Conflict Detection Based on4D Trajectory Prediction
  8. A Study and Implementation on Aircraft Collision Detection Technology
  9. Research on Technology of Policy Conflict Detection and Resolution for Classified Information System
  10. Research on Correlation Technologies of Access Control Administration in Multi-level and Inter-domain Environments
  11. Research on Multi-domain Policy Integration Mechanism Based on Attribute
    LiuChenYan ·Shanghai Jiaotong University ·2013 ·Master's thesis
  12. Study on Several Problems of Authorization Conflict in Access Control
    LiChiSong ·Huazhong University of Science and Technology ·2012 ·Doctoral dissertation
  13. Policy-Based and SNMP of the Distributed Network Management
    QiuZuo ·Anhui University of Engineering ·2012 ·Master's thesis
  14. Research on Semantic Conflict Detection and Diagnosis for Ontology Evolution in Open Environments
    SongYingJie ·Dalian Maritime University ·2013 ·Doctoral dissertation
  15. Research on the Mobile Database Transaction Processing Model
    LiWenSheng ·Chongqing University ·2013 ·Master's thesis
  16. The Research and Implementation of Information Management and Decision System Based on Drools
    ZhuHuiBing ·Wuhan University of Technology ·2012 ·Master's thesis
  17. Design and Implementation of Intellective Course Scheduling System
    LiuJianGuo ·Inner Mongolia University ·2012 ·Master's thesis
  18. Multi-vehicle Air Conflict Resolution Based on Genetic Algorithm and Particle Swarm Optimization
    CuiLiZuo ·Chongqing University ·2012 ·Master's thesis
  19. Research on Access Control Technology Uesd in Optical Access Central Equipment
    ZhangLei ·WRI ·2012 ·Master's thesis
  20. Research on Key Technology of Anti-collision Route Planning in Movement Area of Airport
    YangWanWan ·China Civil Aviation Flying College ·2012 ·Master's thesis