Research on Key Techniques of Software Monitoring Based on Runtime Verification
- Author
- ZhaoChangZhi
- Advisor
- QiZhiChang
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP311.53 Software Maintenance
- Degree
- Doctoral dissertation
- Year
- 2011
- Downloads
- 69
- Citations
- 0
- (?)Runlime Verification
- (?)Software Active Monitoring
- (?) Anticipatory Monitor
- (?)Parameterized Linear Temporal Properties
- (?)Parameterized Anticipatory Monitor
Abstract
Runtime verification (RV) is a lightweight runtime monitoring technique. It aims to check whether an execution of a system under scrutiny satisfies or violates a given correctness property expressed as some types of top-level specification through observing its running continuously. In runtime verification, a correctness property is typically automatically translated into a monitor. During runtime, at any time the monitor can just observe a finite prefix of an execution which should be an infinite states sequence in ideal situation. For traditional techniques of RV, because they are not concerned with and can not look-ahead the future behaviors of the system under scrutiny, the verdicts of monitors are given just on the basis of the current observed finite prefix. Thus, the traditional techniques of RV can just detect the occurrence of failure, but can not predict possible faults in advance effectively. In fact, for deployed software, although it is important to detect the occurrence of failure, it is much more meaningful to predict the fault in advance and prevent it from occurring.In this paper, around the problem on failure prediction and preventention, on one hand, Anticiparoty semantics definition and anticipatory monitor construction for common temporal properties and parameterized temporal properties are reaserched which make failure detection as early as possible. On the other hand, the definitions of control and feedback are imported through looking ahead the future behavior of the system, the definition and method of software active monitoring are proposed. Thus, a closed-loop system is formed which is consisted of prediction and preventention. It’s our purpose to make them to be complementation of other traditional analysis and verification techniques and improve the safety and reliability of deployed software system.Based on anticipatory semantics of linear temporal logic (LTL), this paper presents an improved construction method of anticipatory monitor. An important aspect in RV is that of synthesizing efficient monitor from specification. The proposed method in this paper is not only making the size of the final anticipatory monitor as small as possible, but also controlling the complexity of intermediate steps to prevent the construction process from being affected due to states explosion and improve applicability of the method.On the basis of proposed technique of runtime verification for LTL, this paper presents the technique and method of software active monitoring based on system models. In the model, not only the transitions between states are concerned, but also the methods and events which make the transitions happen are considered. Through the model, the paper presents a series of methods and techniques about how to look-ahead the future behaviors of the system, how to generate the corresponding steering actions connected to given state automatically based on the verdicts of monitors and how to enable and disable the actions in time to prevent the failure from occurring through special execution mechanism. At last, a closed-loop containing failure predication and prevention is generated to control the behaviors of observed system towards desired direction through continuously monitoring and steering. Meanwhile, it is proved that under given condition, active monitoring technique always assure the consistency between the actual execution and expected behaviors of the system.In order to verify the dynamic property, this paper presents RV technique for parameterized linear temporal property further. Based on the consideration about the special requirement of RV itself and the expression of parameterized property, a parameterized linear temporal logic, i.e. PALTL, is proposed which is not only suitable for RV, but also satisfied with the need to describe the parameterized property. It assures that several basic operations such as variables binding and using can be implemented in syntax level. Then, the standard and anticipatory semantics are presented. On the above basis, the paper presents the construction process of a monolithic parameterized anticipatory monitor, and gives the definition of running of the parameterized monitor in formal method. The monitor can detect the failure of current execution based on a parameterized prefix as early as possible.Due to the strong expressiveness of PALTL, it makes the construction process and theory of monolithic monitor is complicated. This paper presents another constrained formal method to describe parameterized linear temporal properties, i.e. LTL Schema. It has close correspondence with LTL. It has explained how to separate a parameterized trace into several non-parametric sub-traces and how to transfer the problem of RV for parametrized temporal properties to the easier verification problem for a corresponding LTL formula on several non-parametric state traces. It makes the techniques about RV and active monitoring can be applied in parametric context.Finally, in the context of access control mechanism for security of operating system, it is showed that based on the technique and framework of RV and active monitoring, the security policy configuration of SELinux can be further refined to improve the security information flow goal during runtime. The effectiveness of the proposed method is verified.
Table of contents
Summary 9-11
Abstract 11-13
The first chapter 13-33
1.1 Background 13-14 < br /> 1.2 related concepts to verify runtime 14-21
1.2.1 the 14-18 1.2.2 system control and software control
18-21 < br /> 1.3 work 21-28
1.3.1 monitoring the semantics related research 21-23
1.3.2 Monitor constructor 23 - 25
1.3.3 runtime control related technology research 25-27
1.3.4 dynamic attribute-oriented run-time validation phase research 27-28
1.4 thesis work 28-30
1.5 paper structure 30-33
second chapter of the theoretical foundation 33-43
2.1 language and automata 33-37
2.1.1 Kripke structure their words 33
2.1.2 finite state machine and motivation 33-35
2.1. staggered automata and staggered since the machines are found; 35-37
2.2 linear temporal logic 37-39
the 2.3 bad prefix and informative decorated 39-40
2.4 control properties and non-monitoring is 40-42
2.5 Summary 42-43
Chapter oriented the LTL efficient forecast monitor construction surgery 43-53
3.1 Introduction 43-44
3.2 LTL predict semantic 44-45
3.3-oriented manufacturing the LTL efficiency predicted Monitor the 45-51
3.3.1 static constructors process 46-47
3.3.2 running 47-48
3.3.3 optimization 48 - 51
3.4 Summary 51-53
Chapter the LTL software proactively monitor surgery 53-71
4.1 software proactively monitor thinking 53 - 54
4.2 software behavior control features 54-56
4.3 proactively monitor-oriented software systems nbsp 56-59
4.4 model-based control theory; 59-61
4.5 software, proactive monitoring methods 61-65
4.5.1 Problem Description to proactively monitor frame 61-63
4.5.2 63-65
4.6 instance analysis the 65-69
4.6.1 philosopher dining questions 65-67
4.6.2 Cross crossing control system 67-69
4.7 Summary 69-71
Chapter-oriented parameters the LTL predicted Monitor constitutive surgery 71-89
5.1 Introduction nbsp
; 71-72 the 5.2 forecast semantics and predict supervisor 72-73
5.3 parameterized LTI on 73-78
5.3.1 PALTL, syntax nbsp the the semantics and forecast righteousness; 74-75
5.3.2 PALTL 75-78
5.4 the oriented PALTL parameters predicted supervisor 78-87
5.4. a static constructor the 80-86
5.4.2 dynamic running 86-87
5.5 Summary 87-89
sixth chapter. oriented LTL Schema the runtime SSE 89-103
6.1 Introduction 89-91
6.2 LTL Schema 91-94
6.2.1 related definitions 91-93
6.2.2 LTL Schema syntax and righteousness the 93-94 6.3 LTL schema
predict semantic and predict supervisor 94-97
6.3. of 1 LTL Schema prediction righteous 94-95
6.3.2 LTL Schema predict supervisor the 95-97 online
6.4 LTL Schema control 97-99
6.5 instance analysis the 99-101
6.5.1 achieve the 99-101
6.5.2 trial 101
6.6 Summary 101-103
Chapter VII the software proactively monitor security objectives to ensure 103-119
7.1 Introduction 103-104
7.2 security information flow model and security goals 104-110
7.2.1 defined 104-105
the 7.2.2 security information flow model 105-108
7.2.3 security objectives 108-110
7.3 online security objectives to ensure 110-114
7.3.1 security information flow model and its language 110-112
7.3.2 Control theory based on the security information flow model are found; the 112-114 7.4 Case Study
to achieve 114-117
7.4.1 framework 114-116
7.4.2 test 116-117
7.5 Summary 117-119
eighth. chapter Conclusion 119-123
8.1 the papers working summarize 119-120
8.2 further work 120-123
thank the to References 123-125
125-135
studying Dr. gained during the academic achievements 135-137
attended during his doctorate research projects 137