Recent Advances in Information SecurityView this Special Issue
Research Article | Open Access
Bogdan Ksiezopolski, Tomasz Zurek, Michail Mokkas, "Quality of Protection Evaluation of Security Mechanisms", The Scientific World Journal, vol. 2014, Article ID 725279, 18 pages, 2014. https://doi.org/10.1155/2014/725279
Quality of Protection Evaluation of Security Mechanisms
Recent research indicates that during the design of teleinformatic system the tradeoff between the systems performance and the system protection should be made. The traditional approach assumes that the best way is to apply the strongest possible security measures. Unfortunately, the overestimation of security measures can lead to the unreasonable increase of system load. This is especially important in multimedia systems where the performance has critical character. In many cases determination of the required level of protection and adjustment of some security measures to these requirements increase system efficiency. Such an approach is achieved by means of the quality of protection models where the security measures are evaluated according to their influence on the system security. In the paper, we propose a model for QoP evaluation of security mechanisms. Owing to this model, one can quantify the influence of particular security mechanisms on ensuring security attributes. The methodology of our model preparation is described and based on it the case study analysis is presented. We support our method by the tool where the models can be defined and QoP evaluation can be performed. Finally, we have modelled TLS cryptographic protocol and presented the QoP security mechanisms evaluation for the selected versions of this protocol.
Balancing security against performance in IT systems is one of the important issues to be solved. The traditional approach assumes that the best way is to apply the strongest possible security measures, which makes the system as secure as possible. Unfortunately, such reasoning can lead to the overestimation of security measures which causes an unreasonable increase in the system load [1, 2]. This problem is especially important in multimedia systems. The example from  may relate to the audio/video streaming as the real-time service. This teleconference can be protected by the VPN data transmission which will be accomplished by the TLS tunneling. After the service requirements analyses one can assign different versions of the protocol depending on the level of protection. The selection is presented in Table 1. In the first version one chooses the RC2-CBC algorithm and MD5 hash function. In the second version one selects the strongest symmetric algorithm (DES-CBC) and hash function with the longest digest (SHA1). In the third version one selects the symmetric algorithm with the key 3DES-CBC longer than the one selected in the second version.
In  authors checked how the security mechanism influences the efficiency of the peers during the video teleconference. The speed of transmitting data in the video conference which was secured by the VPN connection was checked. The results are presented in Table 2. The required quality of the video conference can be guaranteed only if we can transmit 240 KB/s and simultaneously receive the same amount of data. The transfer of the required level (480 KB/s) is guaranteed by the first version of the protocol (low). For the second version (medium) it is equal to the required bit rate. The third version of the protocol, which accomplished the VPN connection on the high level, cannot make the video conference of the required quality. The presented results show that overestimation of security mechanisms during data transmission leads to the decreasing efficiency of the devices from which the transmission is accomplished.
The system performance is also important in the systems with limited resources, such as wireless system networks or mobile devices. Another example where such an analysis should be performed is cloud architecture. The latest research indicates that the three main barriers for using cloud computing are security, performance, and availability . Unfortunately, when the strongest security mechanisms are used, system performance decreases and system availability is further influenced. The solution is using the QoP models. The latest results show [2, 4–6] that in many cases the better way is determination of the required level of protection and adjustment of some security measures to these requirements. Such an approach is achieved by means of the quality of protection models where the security measures are evaluated according to their influence on system security.
One of the most challenging issues in all QoP models is performing quality of protection evaluation of security mechanisms for the different versions of the cryptographic protocol (security policies). All of the approaches [4, 7–9] introduce different formulae which estimate the influence of security mechanisms for QoP, but they also have one significant limitation. These models can evaluate only these versions which were previously directly defined and described in an evaluation system. As directly defined scenarios we understand previously predefined models of configurations of security mechanisms which secure the IT processes. Unfortunately, defining all possible scenarios for all IT processes is very complex and in many cases is not feasible. The result of a nondefined scenario can be the situation in which security mechanisms of a specific IT process would not be evaluated; for example, adding a new security mechanism to an existing system may entail its lack of adjustment to any existing scenario and, consequently, the failure of its evaluation. The QoP evaluation of security mechanisms can be performed as part of risk analysis process or can be part of the decision support system, which in an adaptable way define appropriate configuration of security mechanisms. As a result of the lack of QoP evaluation of security mechanisms, the decision support system would not perform action adequate to the situation. This limitation is especially important in real-time systems [2, 10].
In the presented paper, we introduce a model of QoP evaluation of security mechanisms. Our main contribution is that the QoP evaluation of security mechanisms can be performed for not directly defined configurations of security mechanisms. The additional contribution of the paper is implementing the security mechanisms evaluation tool (SMETool) which supports the presented method. This tool can be used either by researchers or by security engineers. The SMETool can be downloaded from the web page of the Quality of Protection Modelling Language Project .
The paper is organized as follows. In the second section the related work about QoP models is presented. In the third section the formal model definition is presented. In the fourth section the methodology of QoP evaluation of security mechanisms is described. The fifth section deals with the case study of QoP evaluation of security mechanisms, where the TLS handshake protocol is presented. Finally, section six includes the conclusions.
2. Related Work
In the literature the security adaptable models are introduced as the quality of protection (QoP) models [4, 7–9, 12–17]. These models were created for different purposes and have different features and limitations. The related research in this area is presented below.
Lindskog attempt to extend the security layers in a few quality of service (QoS) architectures . Unfortunately, the descriptions of the methods are limited to the confidentiality of data and based on different configurations of the cryptographic modules. Ong et al. in  present the QoP mechanisms, which define security levels depending on security parameters. These parameters are as follows: key length, block length, and contents of an encrypted block of data. Schneck and Schwan  propose an adaptable protocol concentrating on the authentication. By means of this protocol, one can change the version of the authentication protocol which finally changes the parameters of the asymmetric and symmetric ciphers. Sun and Kumar  create the QoP models based on the vulnerability analysis which is represented by the attack trees. The leaves of the trees are described by means of the special metrics of security. These metrics are used for describing individual characteristics of the attack. In  Ksiezopolski and Kotulski introduce mechanisms for adaptable security which can be used for all security services. In this model the quality of protection depends on the risk level of the analysed processes. Luo et al.  provide the quality of protection analysis for the IP multimedia systems (IMS). This approach presents the IMS performance evaluation using Queuing Networks and Stochastic Petri Nets. LeMay et al.  create the adversary-driven, state-based system security evaluation, the method which quantitatively evaluates the strength of systems security. In  Petriu et al. present the performance analysis of security aspects in UML models. This approach takes as an input of a UML model of the system designed by the UMLsec extension  of the UML modelling language. This UML model is annotated with the standard UML profile for schedulability, performance, and time and then analysed for performance. In  Ksiezopolski introduce the quality of protection modelling language (QoP-ML) which provides the modelling language for making abstraction of cryptographic protocols that put emphasis on the details concerning quality of protection. The intended use of QoP-ML is to represent the series of steps which are described as a cryptographic protocol. The QoP-ML introduced the multilevel [19, 20] protocol analysis that extends the possibility of describing the state of the cryptographic protocol. In  the authors present the impact of used security mechanisms in wireless local area networks for its quality of service. In this approach the QoP model is introduced which quantifies the benefits of security policies and demonstrates the relationship between QoS and QoP.
Main aim of the model is to create a tool which helps to evaluate the quality of security protection of a given IT system. We are going to achieve it by evaluation of a set of security attributes of a given system, where as security attributes we understand various aspects of protection of a given system. At the beginning of the evaluation process we have a system which can be described by a set of facts. These facts represent all the elements of a given system. On the grounds of a set of facts we may, based on knowledge base, knowledge representation mechanism, and expert system-like forward chaining mechanism, infer a more general description of a given system and perform evaluation of the quality of protection of the analyzed system. The model is a semiformal tool which should allow to represent features of the analyzed system, as well as knowledge required to perform evaluation of the quality of protection of the system. The model also assumes the utilisation of the inference mechanisms which are a slightly modified version of expert systems like forward chaining mechanisms.
The goals of the presented model are as follows.(1)The QoP evaluation of security mechanisms can be performed for not directly defined scenarios.(2)Making quality of protection evaluation of all security mechanisms possible.(3)Analysis refers to all security attributes.(4)The model can be used for any QoP models.
3.1. Facts and Rules
We assume that the system behaviour modelled in one of the QoP models is represented by means of a set of propositions which we call facts: where are the facts describing a system.
By means of the facts one can define any security mechanisms. We assume a set of operators OP , where(i) is a classical (strong) negation;(ii) is a negation as failure;(iii) is a disjunction;(iv) is a conjunction;(v) is a defeasible implication;(vi) is a strict implication.
Definition 1 (literals). Facts (negated in a strict way or nonnegated) are literals. The set of all literals is .
For example if is a set of facts then is a set of literals.
Definition 2 (case). A case is a model of an evaluated system represented by a set of literals , which may be also expressed by a set of positive or negated facts: .
Definition 3 (security attribute). Security attribute is an attribute which describes system behaviour in the case of information security requirements.
For example, one can enumerate the following security attributes [4, 21, 22]: integrity, confidentiality, authentication, availability, or anonymity. The security attributes () set consists of an unlimited but finite number of security attributes. Each of them has its own evaluation value expressed by a positive integer number. Evaluation value represents the estimation of its security attribute. A security attribute may have a positive or negative character, in the sense that bigger value of security attribute evaluation may mean better (for positive) or worse (for negative) evaluation.
Definition 4 (rule). Rule is a formula in the following form: where (i) is a list of rule conditions.A list of conditions is in the form func func , where func is one of the operators from the set , and are the facts (nonnegated or negated by negation as failure). Only one kind of operators can be used in one rule.(ii) is a rule conclusion in the form , where .
Conditions may be negated by negation as failure and conclusions may be negated by classical negation. In the antecedent part of the rule, it is forbidden to use classical negation. In the consequent part of the rule, it is forbidden to use negation as failure. The set of rules is denoted as .
Rules allow us to represent relations between various facts, because in real life systems the existence of a chosen feature causes the existence (or not) of some other features. They also allow us to express which facts are exclusive in the sense that the existence of one of them causes the nonexistence of others. It is important because it helps to preserve consistency of the model.
3.2. Evaluation Rules
The assessment of the security attributes of a given computer system is based on facts and evaluation rules.
Definition 5 (evaluation rule). Evaluation rules are formulae in the following form: where (i) is a list of rule conditions in the form func func , where func are the operators from the set and are facts (nonnegated or negated by negation as failure).(ii) is a function changing value of evaluation of security attribute by adding value (security influence) to the security attribute evaluation, when is an integer number which represents the evaluation of a given security attribute.
Security attribute evaluation cannot be lower than 0. Special function means that the security attribute evaluation is reduced to 0. This function will reduce to 0 regardless of , the current value. When this operator is used, it means that this sa is not guaranteed. The value of sa will be equal to 0 disregarding other evaluation rules which could increase value. This mechanism will be described more precisely later.
It is important to notice that in fact evaluation rules are not rules in a traditional sense of this term. They are conditionals in which the satisfaction of their conditions causes change of value of evaluation attribute.
We denote the set of evaluation rules as a . The example of the evaluation rules set ER is The fulfillment of the evaluation rule conditions causes an appropriate change of the security attribute evaluation value. For example, when we have the above rules and we have the case , we may conclude that the value of evaluation of security attribute should increase by 10 points and the value of evaluation of security attribute should decrease to 0 points.
The evaluation rule uses defeasible implication because such a rule may be defeated by another one.
Definition 6 (strict satisfaction of rule conditions). Rule conditions are satisfied in a strict way if positive (nonnegated) conditions are true and negative conditions (facts negated with negation as failure) are false or it is impossible to conclude that they are true.
The example of the rule is From the above rule we may conclude that if and are true and is false (it is not declared, it cannot be concluded from other rules, and it is declared that or there is a rule with the conclusion and its conditions are satisfied), then is true.
3.2.1. Orders between Facts
It is easy to notice that the evaluation of complex systems requires building of a large set of rules, which should allow for evaluation of any real life system. It is also possible that such a set of rules may be, due to many reasons, incomplete in the sense that there may be facts which are not used in any rule and evaluation rule.
Such a situation may lead the evaluation process to misleading consequences which come from the lack of evaluation of potentially important facts. We can also notice that such new facts unpredicted in the rule base may be in a way connected to the other ones which are already regulated. They may, for example, represent better satisfaction of a condition of a chosen rule. On the other hand it is sometimes much easier to declare that, for example, fact means more than and may satisfy the condition of a chosen rule in a better way.
Based on the above, we assume the possibility of the declaration of orders between facts. The partial order denotes that means more than and if there is a rule in which is one of the conditions and we know that is satisfied, then we may conclude that should also be satisfied (even if it is not literally true). Such an order represents better satisfaction of the rule condition. For example, if means cipher with the default key length, may denote cipher with the longer key length.
It is worth mentioning that these relations may not be the same for every security attribute. For example, a longer key length is better in the matter of confidentiality, but it is worse in the matter of efficiency. According to the above, we have to add to the order additional information about security attribute in which this reasoning concerns.
We also assume that the relation of order between facts is transitive: We introduce the structure OF: , where is a relation of strict partial order which represents preferences between various facts from the set in the context of security attribute ( denotes that means more than in the context of security attribute ).
Definition 7 (unstrict satisfaction of rule conditions). Condition of a given rule is satisfied in an unstrict way when is not true, but (i)there is a fact ;(ii)it is not known that ();(iii)we know that ;(iv)reasoning concerns evaluation of security attribute SA.
Such kind of satisfaction of the condition of the rule we call unstrict satisfaction of rule conditions. The root of unstrict satisfaction of the rule lies in the so called a’fortiori reasoning (reasoning from more to less), which is commonly used in legal domain. The example of formalisation of such a way of reasoning is presented in .
Looking more generally at the above, we may notice that falsehood of the condition is not sufficient to assume that it is not satisfied. In other words, we have to distinguish truthfulness of the condition from its satisfaction. In the model we assume that false condition may be, in the above mentioned cases, treated as satisfied one. We also assume that it is not possible to treat true condition as unsatisfied.
Another important thing which is connected to the above defined unstrict satisfaction of the rule conditions is a necessity of preservation of the consistency of the model of the system (as consistency we understand here the exclusion of the possibility of existing complementary facts, for example, ). The second clause of the above definition () controlling condition may be satisfied in the unstrict way only if it is not known that it is false and it is impossible to derive that it is false. This clause determines that unstrict satisfaction may be defeated by strict declaration of another fact or by another rule.
Definition 8 (satisfaction of the conditions of the rule). If there is a given case described by a set of literals which satisfies in a strict or unstrict way conditions () of a rule , then we denote it as .
3.3. Inference Rule
The above system has one important feature: there is a distinction between truthfulness of the condition and its satisfaction. In order to create an inference mechanism for our model, we have to modify the classic Modus Ponens rule.
Definition 9 (inference rule). As an inference rule we understand the following rule: where is a strict implication and mean that fact satisfies (in a strict or unstrict way) conditions of a given rule.
Strict or unstrict satisfaction of the rule antecedents allows us to treat rule conclusion as true and, consequently, also satisfied.
3.4. Inference Mechanism
On the basis of the above defined inference rule, we have to define our inference mechanism.
Definition 10 (fact based inference mechanism). As a fact based inference mechanism we understand forward chaining mechanism using the inference rule defined earlier. As we denote a set of conclusions whose inference mechanism concludes from a case , a set of rules and a set of orders . We may also denote it as . The union of sets we call a complete description of the case and denote as .
3.5. Security Attributes
As described above, the security attributes’ set consists of an unlimited but finite number of security attributes. Each of them has its own evaluation value expressed by a positive integer number.
Definition 11 (set of security attributes pairs.). is a set of pairs , where is a security attribute and is its evaluation value.
For example, we have three security attributes with their evaluation values: It is important to notice that security attributes may have positive or negative character, in the sense that a higher value of security attribute evaluation may mean better (for positive) or worse (for negative) evaluation.
3.6. Conflicts between Rules
Some specific conditions may cause conflicts between evaluation rules.
Definition 12 (conflicting rules). There is a conflict between two or more evaluation rules if these rules cannot be executed together.
Such conflicts may appear when there are two rules whose antecedents are satisfied, who are in a way connected and the execution of both of them may cause improper influence on the security attribute evaluation.
The problem of conflicting and subsuming rules is the main reason for the utilisation of defeasible implication. In this work as defeasibility of the evaluation rules we understand the possibility of exclusion from the evaluation process of a chosen rule by another rule. If antecedents of two conflicting rules are satisfied, only one of them may be executed (but such a rule may be also defeated by another one).
To represent priorities between the evaluation rules we assume partial order between rules from a set . Such an order allows us to express that if and , then rules and are in conflict and when the conditions of both of these rules are satisfied rule should defeat rule .
3.6.1. Reasoning about Orders between Conflicting Rules
The main problem of the above mentioned issue of conflicting rules lies in the mechanism of recognition of conflicting rules. Generally, such recognition should be based on commonsense reasons, but there is one phenomenon, which allows us to recognize conflict and to find order between conflicting rules. This situation concerns a case where there are two rules, one of which has a more general set of conditions than the other one. In other words, every case satisfying condition of the rule also satisfies conditions of the rule . Such subsumption of the rules allows us to conclude that the rule is a specific case of the rule , and in the case of satisfaction of the antecedents of both rules, the rule should defeat the rule . More generally we may say that two rules are in conflict when the list of conditions of one of them subsumes that of the second one and the conclusions of both concern the modification of the same security attribute evaluation value.
Definition 13 (subsuming rules). When we have the following two rules: where and are the lists of antecedents of these rules, both rules influence the same security attribute evaluation value (but they may have a different level of influence), and if for any case represented by a set of literals: then we recognise the rules and as subsuming and conflicting ones and in the view of a more restrictive character of the rule we may conclude that the rule has priority over the rule , which we denote: and while conditions of both rules are satisfied, the rule should defeat the rule .
Rules with the function on the consequent part of the rule have the highest possible priority and they are in conflict with all the rules concerning the security attribute . Everytime when they satisfy conditions, they exclude all evaluation rules concerning the security attribute from reasoning.
Another aspect which is important and requires explanation is connected with the reason why a more specific rule defeats a more general one. Such a mechanism comes from the theory of law and is called lex specialis derogat legi generali. It is one of the tools which allow to find a solution in conflicting legal rules, saying that a specific act (provision) derogates from (prevails over) the general regulation. In modelling legal rules there are many problems connected with the difficulties with recognition which of the rules are more or less specific . In the case of our model it is much simpler because the hierarchy of generality of antecedents of the rules is easy to establish based on a finite number of possible facts and their explicitness.
3.7. Evaluation Rules System
Definition 14 (evaluation rules system). Evaluation rules system RO is a structure described by a set of evaluation rules ER and relation OR= .
The relation OR represents partial order between rules from a set ER. This order maps preferences between conflicting rules. These preferences can come from strict declaration or from a previously defined mechanism of finding and resolving a problem of subsuming rules. If there is a relation of partial order between two rules, we treat them as conflicting ones. If these rules are not comparable, we treat them as conflict free. We also assume that the relation of order between rules is transitive:
3.8. QoP Evaluation Process of Security Mechanisms
The process of QoP evaluation of security mechanisms is expressed by means of evaluation of security attributes. The values of the depend on the used security mechanisms which are represented in the model by facts .
The evaluation process of security mechanisms may be described in terms of a sequence of steps as presented by Algorithm 1. The parameters and variables used in this algorithm are presented in Table 3.
3.9. Background of the Model
Looking more generally at our model, one can notice that it contains some elements taken from the formal models of legal reasoning. Legal reasoning has a very specific character, as it requires mechanisms of dealing with incomplete knowledge, mechanisms of resolving conflicts between legal rules and arguments, various ways of interpretation of rules, and so forth. Computer systems which aims to support human reasoning very often, have to face similar problems, which is the main reason for the utilisation of the a’fortiori rule or the lex specialis… rule in our system. Similar models of legal reasoning have also been applied in other computer science utilisations; for example, in  the authors are forced to implement one of the methods of resolving the conflicts between rules in multiagent systems.
Our model is based on proposition logic but there are some additions which allow for a better representation of specific features of the analysed problem. First of all, we introduce a distinction between two kinds of negation: classical negation (strong) and negation as failure. As negation as failure we understand the negation used in the conditional part of the rule. Such a negated condition is fulfilled if it is impossible to satisfy such a condition (it is false, it is not declared, or it is impossible to derive that it is satisfied). These two kinds of negation are used in a few logical systems, for example, in the Prakken and Sartor logic  or the Kowalski and Toni logic . In our model the way of the utilisation of negation as failure is similar to the one presented by Prakken and Sartor in , but we do not allow to use construction like , because in our model it is forbidden to use negation as failure in the consequence part of the rule and it is also forbidden to use classical negation in the antecedent part of the rule.
Another important point in our model, the conception of orders between facts, is based on a simplified version of the a’fortiori reasoning (reasoning from more to less: if norm N1 obliging to do more is binding, then norm N2 obliging to do less is binding more). In our work, this way of reasoning has been slightly modified: when condition of a rule is not satisfied literally, but there is a fact which satisfies this condition in a better way we may treat such a condition as satisfied. A more profound analysis and model of the a’fortiori reasoning can be found in .
The utilisation of defeasible implication in evaluation rules is another important feature of our model. The idea of distinction of two kinds of implication comes from the formal models of legal argumentation in which the problem of defeasibility of the rules is broadly discussed. In the Prakken and Sartor logic , all arguments are defeasible. Vreeswijk in his abstract argumentation system  uses two kinds of implication (material and defeasible ). He assumes that the utilisation of defeasible implication requires the definition of a separate defeasible inference rule. Hage in his reason based logic  looks at the problem of defeasibility of the rules from another point of view, stating that this is a problem of the applicability of the rule. The rule could have satisfied conditions, but cannot be not applicable due to, for example, a conflict with another rule. Another interesting model of argumentation which uses defeasible and strict implication is introduced by Kowalski and Toni in . In their system, each defeasible rule has a condition (where is negation as failure and is a predicate which denotes that this rule is defeated by another one) which allows defeating it if it remains in conflict with another rule and has lower priority than .
Defeasible rules in our model are slightly different from those in the above mentioned models. The most important point in our model lies in the fact that only evaluation rules (which are not rules in a strict meaning of this word) are defeasible. Such a rule can be defeated only if its conditions are satisfied; it is in conflict with another rule with satisfied conditions and has a lower priority over the other one. Such a defeated rule is excluded from the reasoning process.
Torre and Tan in  define a few types of defeasibility and the one used in our model is closest to the overridden defeasibility which formalizes the cancellation of a rule by another one.
The ways of dealing with conflicts between rules and orders between these rules are discussed in the aforementioned works by Prakken and Sartor (i.e., [26, 31]) where the authors introduce their formal model of legal argumentation. The notion of conflict between rules in our approach is different from the one presented in their works, but the way of resolving it by the declaration of orders between rules and the assumption of defeasibility of rules is similar to the Prakken and Sartor model. In the above mentioned Kowalski and Toni logic, two rules are in conflict when they have complementary conclusions and the conditions of both rules are satisfied. Their model also uses two kinds of implication as well as two kinds of negation, but the way of dealing with conflict is slightly different from the one in our system. They define a few new predicates which are used to denote that the condition of the rule is satisfied , rule is defeated or two rules are in conflict .
4. Methodology of QoP Evaluation of Security Mechanisms
The QoP evaluation of security mechanisms is a process which can be divided into four stages: QoP modelling, linking, configuration, and QoP evaluation. In Figure 1 the methodology of the process is presented.
QoP Modelling Stage. The first stage refers to modelling the system in one of the QoP models [4, 7–9, 12–17]. This phase depends on the chosen QoP approach, but the result should be the same, and the system must be modelled with QoP meaning (system abstraction in the QoP model). The proposed model can be used for different QoP modelling approaches.
Linking Stage. The next stage is responsible for the linking system modelled in the QoP model with the structure defined in the proposed model. Firstly, one has to extract all parameters used in the QoP model which refer to the factors which influence QoP parameters (extraction of the QoP parameters). After this, one creates atomic facts in the proposed model which are explicit to these extracted from the model (atomic facts definition). The parameters’ names used in the QoP model can be different from those defined in the model, so one has to link them together (linking QoP parameters with atomic facts).
Configuration Stage. The next stage is the main phase where all structures proposed in the model for QoP evaluation of security mechanisms are defined. One can enumerate: rules definition, facts order definition, and QoP evaluation rules definition. All of these structures are described in detail in Section 2.
QoP Evaluation Stage. The last stage is responsible for QoP evaluation of security mechanisms. The analysed specification can be defined directly in the QoP model and thanks to the previously defined links between the QoP parameter and facts, a model of a case is generated. Finally, after the system version indication, the QoP evaluation of security mechanisms is performed (QoP evaluation process).
5. Case Study: TLS Handshake Protocol
In this section we are going to present a case study of the QoP evaluation of security mechanisms for the TLS Handshake protocol. The TLS protocol is used each day in real business situations in the actual enterprise environment. Given the enterprise network infrastructure in Figure 2, one should analyse different roles which refer to different levels of the quality of protection of used security mechanisms. The users are allowed to access e-mail, FTP, web, and application servers with the communication channel protected by means of the TLS protocol at a different QoP level. The utilized versions of the TLS protocol together with equivalent cryptographic algorithms are summarized in Table 7.
The model for the TLS Handshake protocol can be found in the models library in the SMETool, which can be downloaded from the web page of the Quality of Protection Modelling Language Project . In this case study, the client wants to verify the server and, next, to connect with the server by a secure connection. All of these security requirements can be realized by means of different security measures. We are analysing six versions of the protocol. The flow of the TLS Handshake protocol, which will be analysed further, is realized in five steps and the scheme is presented as shown in the following steps:(1): ClientHello(2): ServerHello, Certificate, ServerKeyExchange, ServerHelloDone(3): ClientKeyExchange, ChangeCipherSpec, Finished(4): ChangeCipherSpec, Finished(5): Encrypted data.
Below we present a description of these steps.(1)A Client sends the ClientHello message. This message contains the following attributes: the TLS Protocol version, session id, a list of available cipher suite, compression method, and random values.(2)The server responds with a ServerHello, which establishes the version of the TLS Protocol, session id (when session is resumed), cipher suite, and compression method. It also sends random values within ServerHello. Next the server sends the Certificate message which includes its certificate. Sending this message is not necessary; it depends on the selected cipher suite. The next message which may be sent is ServerKeyExchange. The server sends it when the server certificate is only for signing, or the server has no certificate. After this, the server sends ServerHelloDone, signalling that this phase is completed.(3)Next, the client sends the ClientKeyExchange message. Depending on the selected cipher, this message may have different contents. After this, the ChangeCipherSpec message is sent. The client sends it to signal the server that it has started to use the encryption. Finally, the encrypted Finished message is sent by the client.(4)Similarly, in response, the server sends ChangeCipherSpec and the encrypted Finished message.(5)The handshake is complete. Now, the server and client can exchange Encrypted data.The methodology of the QoP evaluation of security mechanisms based on our model is presented in Section 3. In this section we have used the proposed methodology for analysing the TLS Handshake cryptographic protocol.
5.1. QoP Modelling
In the first step one has to model the system in one of the QoP models. In the presented case study, the TLS protocol is analysed as a full system. The QoP modelling process is a complex task so we are not going to present it in this paper. The example of the QoP model of TLS cryptographic protocol is presented in , where the protocol is modelled in the QoP-ML modelling language .
5.2. Linking Stage
5.2.1. Extraction of the QoP Parameters
The first step in the linking stage refers to the extraction of all parameters used in the QoP model which refer to the factors which influence QoP. The form of the QoP parameters depends on the chosen QoP model. For example, in the QoP-ML modelling language, the system behaviour is changed by the functions which modify the states of the variables and pass the objects by communication channels. This structure is responsible for indicating the parameters which influence the system QoP.
Let us assume that is the QoP parameter in the QoP model which influences system security. The QoP parameter is atomic, which means that it cannot be split into other atomic QoP parameters. The is a set of the QoP parameters: where are the QoP parameters which influence system security; is a set of the QoP parameters.
5.2.2. Atomic Facts Definition
In the next step, we declare a set of all possible facts which will represent the features of the analysed systems.
In the presented case study we include the TLS cryptographic protocol. In the following section we define the atomic facts in the proposed model for the TLS protocol. These facts are taken from the official specification of the TLS protocol  where all possible versions of the protocol are defined. The facts are divided into three groups which refer to different factors: symmetric encryption (Table 4), message digest (Table 5), asymmetric encryption, and common facts (Table 6).
5.2.3. Linking QoP Parameters with Atomic Facts
The names of the QoP parameters used in the QoP model can be different from atomic facts defined in the proposed model. In this step, the QoP parameters are linked with the facts in the proposed model in an explicit way.
Definition 15 (linking operator). The linking operator denotes that one set of objects is mapped to another set of objects in an explicit way.
As we assume that the is the set of the QoP parameters used in the QoP model for the TLS protocol abstraction and is the set of all atomic facts defined in the proposed model. Usually, the set of the QoP parameters is a subset of the facts in the model F, but in a special case this set can be equal to where are QoP parameters which influence the system security; is the set of QoP parameters; are facts in the formal model; is the set of all facts in the model; is the subset of all facts in the model.QoP parameters from the QoP model are linked with the subset of the facts defined in the model in an explicit way by the linking operator :
5.3. Configuration Stage
The next stage is the main phase where all structures proposed in the model for the QoP evaluation of security mechanisms are defined. Among them, one can enumerate definitions of rules, facts order, and the QoP evaluation rules.
5.3.1. Rules Definition
Based on the TLS cryptographic protocol specification , we specify the rules which refer to a possible realization of the protocol. In Appendix A one can find the rules defined for the TLS protocol.
5.3.2. Facts Order Definition
In the next step, the facts order must be defined. The order between facts can be defined only for the same security attribute (SA). For the presented example, we evaluate the QoP of security mechanisms in the case of four security attributes: integrity (I), confidentiality (C), authentication (Au), and availability (A). We define the facts order according to the expert knowledge in the field of cryptographic protocols. All the defined fact orders are presented in Appendix B.
5.3.3. QoP Evaluation Rules Definition
The last step in the configuration stage is to define the QoP evaluation rules. For the TLS cryptographic protocol, the evaluation rules refer to the same four security attributes: integrity (I), confidentiality (C), authentication (Au), and availability (A). According to these rules, the QoP evaluation of security mechanism of the TLS protocol is performed. In the literature, defining the influence of specific security mechanisms is based on expert knowledge in the field of cryptology and system security [7, 8]. In our example, we perform the same expert knowledge analysis which refers to the TLS cryptographic protocol. The defined QoP evaluation rules are presented in Appendix C.
5.4. QoP Evaluation Stage
Having finished the configuration stage, one can start the QoP evaluation process. In the presented example we choose six versions of the TLS protocol which are presented in Table 7. These cipher suites are described in detail in the TLS specification . The fifth and sixth versions are modified according to the versions presented in the TLS specification. In the fifth version we analyse a case where a new cryptographic module, compared to the previously defined ones, will be possible. This module is the implementation of HMAC-SHA512 . The sixth version is identical with the first one except that compression is enabled.
The first version is the most popular cipher suite for online banking. Some banks operate their online services using the second TLS protocol version. The third version can be used when authorisation is not required. The fourth version accomplishes the TLS protocol with the strongest set of security parameters. The fifth version analyses the hypothetical scenario when a new implementation of one of the cryptographic modules is possible. The sixth version is identical with the first one, but the data are compressed before encryption.
These six versions are analysed as 6 cases which represent 6 different realizations of the TLS protocol. These versions can be represented as the following set of facts.
Case 1. .
Case 2. , .
Case 3. .
Case 4. , .
Case 5. .
Case 6. , .
In Case 5, one can find the fact , which is not defined in Table 5. The example is a situation in which a new protocol implementation will be realized and the QoP evaluation system does not provide analysis for this version. In such a case, this fact will be added later during the detailed analysis of this case.
After defining the facts which describe the analysed cases (), one has to derive () other atomic or complex facts (): . They can be derived by using the earlier described inference mechanism and the rules defined in Appendix A. On the basis of this knowledge, one can prepare final evaluation of security mechanisms represented as the security attributes. Below we present the evaluation of the six analysed cases.
QoP Evaluation of Case 1.
Consider the following: Case 1 is denoted as and is a union of sets and : The QoP evaluation of the security attributes
QoP Evaluation of Case 2.
Consider the following: Case 2 is denoted as and is a union of sets and : The QoP evaluation of the security attributes
QoP Evaluation of Case 3.
Consider the following: Case 3 is denoted as and is a union of sets and : The QoP evaluation of the security attributes
QoP Evaluation of Case 4.
Consider the following: Case 4 is denoted as and is a union of sets and : The QoP evaluation of the security attributes
QoP Evaluation of Case 5. Case 5 is different from the previous four cases because there is a fact declared () which is not in the conditional part of any rule. As we have stated before, a declaration of order between facts is much easier than adding new rules. Based on that, we declare two new orders: These orders mean that is more than in the context of integrity, but it is also less than in the context of availability.
Adding these orders to the knowledge base results in satisfying conditions of all rules which have in their conditional parts: Case 5 is denoted as and is a union of sets and : The QoP evaluation of the security attributes
QoP Evaluation of Case 6. Case 6 is the same as Case 1 with the difference that the compression is enabled: Case 6 is denoted as and is a union of sets and : This case presents the situation in which we have two conflicting evaluation rules: The rule is subsumed by the rule because every case which satisfies the rule also satisfies the rule . Both of these rules evaluate the same security attribute and both of them, in our case, satisfy the conditions. Based on the previously defined mechanism of recognition of subsuming and conflicting rules, we will treat these rules as conflicting ones and the rule will defeat the rule . The QoP evaluation of the security attributes
The results obtained by the QoP evaluation of security mechanisms are presented in Table 8. These results are quantitative.
5.4.1. Qualitative Estimation
The results are presented as quantitative estimation of security attributes. During the QoP evaluation of security mechanisms one can introduce qualitative interpretation of the results. That kind of estimation is made for the all security attributes.
In the presented example, we introduce 5 levels of evaluation: very low, low, medium, high, and very high. It is important that the existing correlations between the quantitative and qualitative results have not only a theoretical character but also a real one. A practical character of the qualitative estimation of the security attributes is obtained because the minimal and maximal possible values of the security attributes for a particular version of the analyzed protocol are calculated. The ranges of parameters for the qualitative evaluation are calculated by formula (35).
For the analysed versions of the TLS protocol, the qualitative assessment will be prepared according to the ranges presented in Table 9. These ranges are calculated according to formula (35). On the basis of the calculated ranges, the qualitative assessment of the TLS protocol is obtained. These marks are presented in Table 10: where is the maximum value for the security attribute among all analysed versions of the protocol; is the minimum value for the security attribute among all analysed versions of the protocol.
After the QoP evaluation of security mechanisms one can interpret the results. The first and third versions of the TLS protocol are the most efficient ones in the case of CPU performance. This fact is indicated by the availability attribute. This is due to the fact that the applied security mechanisms are the most efficient ones. However, the analysis of confidentiality and integrity indicates that these attributes are accomplished on the lowest level of all analysed versions.
One of the main functions of the TLS protocol is server authorisation. Versions 1, 3, 5, and 6 guarantee this attribute on the lowest level, but the third version does not guarantee it at all. The fourth protocol version achieves the strongest possible security level. This fact influences the system performance which is indicated by the availability attribute.
In a certain scenario one can use the TLS protocol version which is between the strongest and poorest security levels (medium). Then one can use the second version. This version guarantees the confidentiality on the high level and the integrity on the medium level. The authorisation is still guaranteed, but on the very low level. The set of parameters used in the second version allows the decrease of the system performance according to the strongest fourth version to the medium level.
The fifth and sixth versions should be compared with reference to the first version because they are a modification of the first version. In the fifth version, the new cryptographic module which guarantees the integrity on the strongest possible level is introduced. Increasing the level of protection results in a decreased performance, which is indicated by the medium level of the availability attribute. In the sixth version, the compression is enabled which decreases the system performance in comparison to the first version.
5.5. Formal Model Goals Evaluation
At the beginning of the formal model definition we enumerated the goals of our model. In this section, we would like to present the goals achieved by our model.
(1) Goal 1: Automatic QoP Evaluation of the Not Directly Defined Scenarios. One of the most important features of the model is the QoP security evaluation based on the not directly defined scenarios. It means that during the analysis, one can prepare the QoP evaluation of one of the cryptographic protocol versions which is not directly defined. In our model the inference mechanism and rules are defined and owing to that, one can automatically derive the set of facts which describes the analysed version of the protocol. Since our model is based on the analysis of basic mechanisms of security protection and relations between them, the evaluation process does not require an advance preparation of direct scenarios describing all possible configurations of analysed systems. In our model the mechanism which allows for the recognition and resolution of conflicts between evaluation rules is introduced.
(2) Goal 2: Quality of Protection Evaluation of All Security Mechanisms. In the proposed model one can evaluate any of the security mechanisms with regard to the quality of protection factor. The security mechanisms, modelled in one of the QoP models, are mapped to the atomic or complex facts. In our model, one can define the facts that any of the security mechanisms can be represented by. The linking stage described in the methodology illustrates the mapping process. Finally, on the basis of the QoP evaluation rules and their order one can prepare the QoP evaluation of security mechanisms.
(3) Goal 3: Analysis Refers to All Security Attributes. The security attribute describes system behaviour in terms of information security requirements. That kind of behaviour is changed by the security mechanisms which modify the modelled system. As we mentioned above, in our model one can represent any security mechanism and analyse its influence on any security attribute.
(4) Goal 4: The model Can Be Used for any QoP Models. The presented model can be applied to the systems which are modelled by any of the QoP models. This goal is achieved due to the linking operator which links the QoP parameters from the QoP model with the subset of facts defined in the model. These objects are mapped in an explicit way.
5.6. Comparison of Our Model with Existing Approaches
In the literature one can find different approaches [4, 7–9] dealing with the quality of protection evaluation of security mechanisms. In Table 11 we compare the model presented in this paper with the existing approaches. These approaches can be characterized by the following main attributes. Quantitative assessment refers to the quantitative assessment of the estimated quality of protection. All of the presented approaches, except one, allow quantitative assessment of the QoP evaluation of security mechanisms. Petriu et al.  discuss performance analysis in terms of the used security level, but the analysis has an qualitative character. Formal representation refers to the representation of the quality of protection evaluation of security mechanisms by mathematical formulae. Among the enumerated approaches only the one presented in this paper has formal representation, while the others are represented by means of an analytical model, without any formal definition of the objects and rules required for formal evaluation. Executability specifies the possibility of the implementation of an automated tool able to perform the evaluation of QoP mechanisms. The tool support is provided for three approaches: Ksiezopolski and Kotulski  model is supported by the SPOT tool, Petriu et al.  create the UMLsec tool, and the presented model is supported by the SME tool, which can be downloaded from . Indirect reasoning reasoning for not directly defined scenarios. All of the presented approaches, except the new model presented in this paper, have one significant limitation. These models can evaluate only these versions which were previously directly defined and described in detail. The presented model provides the method for indirect reasoning. Holistic is the possibility of the evaluation of all security attributes. All presented models, except one, can be used for the evaluation of all security attributes. Only the model presented by Petriu et al.  focuses on performance analysis and is related to availability. Completeness is the possibility of the representation of all security mechanisms. This attribute is provided for all models.
In the paper we propose a formal model for the quality of protection evaluation of security mechanisms. The presented method has four main features. Firstly, the presented approach allows for the QoP evaluation for the system for which the scenarios of assessment of security mechanisms are not directly defined. Secondly, all security mechanisms can be analysed with regard to the QoP factor. Thirdly, analysis can be performed for all security attributes. Finally, the proposed model can be used for any QoP models.
Our method also has some interesting features which make the evaluation of a system easier. A system can be incrementally developed by adding new knowledge. To avoid conflicts between new and old rules, our model includes the mechanism of recognition and resolution of a specific kind of conflict between evaluation rules.
In the paper we have presented the methodology of our model’s preparation. On the basis of this methodology, we have created the model of the TLS cryptographic protocol. We have also performed the QoP evaluation of the sixth selected version of the TLS protocol. The main analysis refers to the quantitative assessment of four security attributes: confidentiality, integrity, availability, and authorisation. Finally, we have introduced the formula for qualitative interpretation of the prepared QoP evaluation.
An additional contribution of the paper is the implementation of the security mechanisms evaluation tool (SMETool) which supports the presented method. The SMETool can be downloaded from the web page of the Quality of Protection Modelling Language Project . The analysed model for the TLS Handshake protocol can be found in the models library in the SMETool.
A. The Rules Definition for TLS Cryptographic Protocol
The fact based rules are as follows: .
The rules which define the exclusive facts are as follows: