Full text
Towards the automatic and optimal selection of risk treatments for business processes using a constraint programming approach Angel Jesus Varela-Vaca ⇑ , Rafael M. Gasca Department of Computer Languages and Systems, ETS Ingeniería Informática, University of Seville, Avda. Reina Mercedes S/N, 41012 Sevilla, Spain 1 Keywords: Business process Business process management systems Security Risk treatments Constraint programming Feature model abstract Context: The use of Business Process Management Systems (BPMS) has emerged in the IT arena for the automation of business processes. In the majority of cases, the issue of security is overlooked by default in these systems, and hence the potential cost and consequences of the materialization of threats could produce catastrophic loss for organizations. Therefore, the early selection of security controls that miti-gate risks is a real and important necessity. Nevertheless, there exists an enormous range of IT security controls and their configuration is a human, manual, time-consuming and error-prone task. Furthermore, configurations are carried out separately from the organization perspective and involve many security stakeholders. This separation makes difficult to ensure the effectiveness of the configuration with regard to organizational requirements. Objective: In this paper, we strive to provide security stakeholders with automated tools for the optimal selection of IT security configurations in accordance with a range of business process scenarios and orga-nizational multicriteria. Method: An approach based on feature model analysis and constraint programming techniques is pre-sented, which enable the automated analysis and selection of optimal security configurations. Results: A catalogue of feature models is determined by analyzing typical IT security controls for BPMSs for the enforcement of the standard goals of security: integrity, confidentiality, availability, authorization, and authentication. These feature models have been implemented through constraint programs, and Con-straint Programming techniques based on optimized and non-optimized searches are used to automate the selection and generation of configurations. In order to compare the results of the determination of configuration a comparative analysis is given. Conclusion: In this paper, we present innovative tools based on feature models, Constraint Programming and multiobjective techniques that enable the agile, adaptable and automatic selection and generation of security configurations in accordance with the needs of the organization. 1. Introduction Current Business Process Management Systems (BPMS), such as Intalio BPMS,AuroPortal,Bonita BPM,BizAgi, and jBPM, are able to automatically generate business-process-driven software products without hardly any human intervention. In most cases, the security in BPMS is overlooked by default; furthermore, PricewarterhouseCoopers’ report highlighted that the investment in security by organisations is no higher than one to three per cent of total budget [1]. For instance, Bonita Soft [2] is used to optimize the aircraft manufacturing process. The cost and consequences of the materialization of threats in these systems range from mildly annoying to catastrophic [3–5], with serious injury occurring or systems destroyed, reputation losses, security breaches, and so on. In general, BPMS,Information Systems (IS), communications, and business processes have applied security controls, such as anti-virus software, and periodical patches to systems. It is therefore crucial for organisations to act as soon as possible in selecting adequate security treatment according to the necessity of business objectives with respect to IT security risks. The automation of security controls will substantially lower the cost of security while improving its effectiveness [6]. The selection and configuration of security controls is one of the main problems within the scope of IT security since, in most cases it is a human, manual, time-consuming and error-prone task that involves several security stakeholders, such as security managers and administrators [7]. There exist an enormous number of controls [8] that can vary from abstract to specific controls depending on the level of the specification to be implemented (Fig. 1). For instance, one security control might involve the deployment of a ⇑ Corresponding author. E-mail addresses: [email protected] (A.J. Varela-Vaca), [email protected] (R.M. Gasca). 1 http://www.lsi.us.es/quivir.
procedure in order to carry out backups of crucial data. However, specific IT security controls can vary from the simple installation of anti-virus software to the configuration of secure protocols (i.e. HTTPS) or even the configuration of an Access Controls List (ACL) for a network firewall. This heterogeneity complicates the task of selection and configuration of specific security controls since it implies the involvement of a high level of knowledge and expertise. Furthermore, security managers and administrators are responsible for measuring whether the effectiveness of the security configuration implemented will comply with the organizational parameters of performance, cost, and level of acceptable risk. Ideally, this task should not lead to an increased workload for security managers and administrators. In a previous work [9],we have treated the problem of using a representation of security controls. A formalization based on security patterns has been provided to specify security controls. This model enables the user to link security goals, descriptions of problems, and solutions. Furthermore, this formalization enables the inference of information through the model. Nevertheless, this work does not consider the inference of mechanisms and algorithms for the adequate and optimized selection of security controls. In this paper, we propose providing security managers and administrators with new tools to place, collect and analyze the most suitable IT security controls for each business process scenario. It is assumed that an IT security control is defined as the statement of a configuration (value of a set of features) that enforces certain security goals. To this end, a feature analysis of certain IT security controls is first carried out to handle typical IT security risk referring to confidentiality, integrity, Authentication and Authorization (AA), and availability. Consequently, these feature analyses are employed to provide selection algorithms based on constraint programming techniques that aid in the selection of the best configuration, by taking IT security risks and business objectives into consideration. This paper is structured as follows: Section 2presents an overview of related work found in the literature; Section 3 introduces a formalization for the problem of selection of a risk treatment; Section 4gives an introduction to feature-oriented model analysis concepts; Section 5provides feature models for security controls for BPMS; Section 5.2 presents an analysis of feature models for the generation of security configurations; and in Section 6,conclusions are drawn and future work is proposed. 2. Related work In previous work, the OPBUS (Optimization BUsiness process Security) framework is presented [10,11]. The framework has been developed as a technological solution to fill the gap between business process development, risk management and fault tolerance by means of the improvement of BPM life-cycle. OPBUS strives to provide business and security analysts with automatic tools for risk management at the design time of business processes. These tools provide mechanisms based on model-based diagnosis theory and constraint programming techniques that enable automatic risk assessment during the design of business process models [10,11]. OPBUS tools enable the user to carry out a risk evaluation of the business process and the identification of risk that exceeds the acceptable risk level established in the risk criteria. On the other hand, the framework also provides fault tolerance infrastructure in order to achieve dependable executable business processes at run-time [12]. The framework has also been supported by a range of developing tools [13]. The OPBUS tool enables business and security analysts to obtain an abstract risk assessment of business process models, by pointing out specifically where the business processes have to be treated. This assessment is based on an extension [10] of the business process properties, such as threats that affect each activity, the value of activities (in various security dimensions), and the frequency and consequence of threats. The business process models can be configured with risk information and transformed to constraint models in order to be evaluated. In Fig. 2, there is a screenshot which shows most of the features provided by the OPBUS tool. The tool provides an extended BPMN editor to support the extension proposed in [10]. The tool is equipped with a Validation option (cf. Fig. 2) that automatically transforms and carries out a risk evaluation of the model. In the Console tab, results of the risk evaluation can be observed. In the Project Explorer tab, a constraint model is generated within the project space. If any non-conformance is obtained the information is retrieved by) the editor with red signals and all non-conformance problems are collected in the Problems tab. The transformation of the model Confidentiality Integrity Availability Secure Protocol Network Layer Application Layer Transport Layer HTTPS (SSL/TLS)S-HTTP Security Goals Regulations/ Standards Technnical / Standards Configuration/ Code JSSE GnuTLS OpenSSL Apache (mod_ssl) IPSec Business/Logical Domain Application/ Infrastructure Domain require Authorization & Authentication Fig. 1. Hierarchy of security controls.
can be set up using different parameters such as shown Fig. 2. The figure shows a business process that has been assessed. As can be observed, the tool retrieves information about which threats are responsible for non-conformance within the editor over the activities; in this case R11,R12 and R13 affect activities NP,PP and NC. Risks R11 and R12 might represent threats related to certain vulnerabilities; for instance SQL injections and XSS-injections. This information is highly useful in the identification of how and where the business process should be protected since a risk level, nonacceptable to the organization, is produced. OPBUS lacks mechanisms for the inference, generation and selection (risk treatment) of adequate security controls that enable the user to modify the risk until risk levels are established as acceptable within business processes. A number of initiatives have emerged in the context of BPM in order to bridge the gap between risk assessment and business domains [14–18]. Most of these initiatives are aimed at providing enhancements of business process languages through new domain-specific languages for the inclusion of assets, requirements, goals, and threats into business process models. These approaches are focused on extending models to enrich their expressivity in order to aid and improve the documentation of risk assessment in business processes. Nevertheless, none of these approaches provides a mechanism for the automation and identification of suitable treatment to mitigate risks. There exist various initiatives related to the selection of security controls in business process models [19–22].In[19], Rodriguez et al. propose an extension to UML 2.0 activity diagrams in order to provide graphical annotations for the specification of security requirements in the diagrams. This extension is defined by means of a UML profile called BPSec. Related to this work, in [21], Wolter et al. provide security annotations for graphical business processes that enable security configurations to be directly set up in the business process model. In [20],Menzel et al. define an extension of business process models that enable the generation of a security configuration of trust and data integrity with respect to a predetermined level of security risk for an SOA environment. Other more general approaches exist, such as that proposed in [23].In [23], the authors provide a goal-driven approach as an extension of Tropos/i in order to analyze risk at organization level. Furthermore, they illustrate a number of different techniques to help the analyst in identifying and enumerating relevant controls for risk mitigation. There exist certain studies in the revised literature with respect to feature-oriented domain analysis and the generation of models [24–27]. Certain efforts in the literature revised are focused on the generation of requirement models. In [24], Semmak et al. propose an extension of a goal-driven method (KAOS) in order to generate adaptive requirements models from variant models. In [25], Mellado et al. propose an approach which facilitates the development of secure software product lines (SPLs) and their derived products. In [26], Pérez et al. use feature models to analyze the variability requirements and consequently transform this feature model in order to generate an architectural model. Nevertheless, these approaches are focused on the generation of requirement models or of products related to software, while our approach strives to determine the configuration through feature models. In [27], Sawyer et al. use feature model analysis to provide self-adaptive systems by dynamically determining the best variants suited to specific QoS requirements. The authors use a goal model extended with attributes (characteristics of features) and soft-goals (QoS requirements) in order to represent the feature model, and by means of feature model analysis, they determine which configuration is suitable for each context; thus values for goals Fig. 2. Identification of business process activities with risk.
and soft-goals are required. The main drawback in these approaches is that they use qualitative domains for attributes in order to determine variants as a consequence of using logic programming. In our approach, however, quantitative domains for attributes are supported. 3. A formal approach for security-risk treatment problems in a BPMS As mentioned above, business processes are deployed and executed in BPM systems. In a BPMS, a set of nbusiness process models {BP 1 ,BP 2 ,...,BP n } could be executed for all BP i e BPMS, whereby there exists an estimated risk in the design time tsuch that R(t) BPi = {R(t 1 ) BPi ,R(t 2 ) BPi ,...,R(t m ) BPi }, 16t6m. For instance, the risk might be determined according to CRAMM (CCTA Risk Analysis and Management Method) methodology [28]: by the asset value (a value in the interval from 1 to 5), percentage of loss (a value in the interval from 1 to 5), and frequency (a value in the interval from 1 to 5). In this case, the risk estimation may be the sum of the three values. It must be borne in mind that OPBUS tools support uncertainty, i.e. a range of values for the specification of metrics, such as frequency e [2–5]. In order to estimate a risk, an assessment is performed which determines whether risks exceed the threshold imposed by the organization. In Fig. 3, the estimation of risks is depicted with regard to the five security dimensions and time. In the figure, it can be observed that the two first estimations exceed the risk threshold. However, after including risk treatment, the risk has decreased to the point where the optimum value is achieved. In the following definitions, it is assumed that risks are determined at a fixed point of time t i . Therefore, at design time t i for a BPMS, the associated risk is represented by R(t i ) BPMS =R BPMS . There are two main problems related to the risk management of aBPMS:(1) the diagnosis of non-conformance risks within business processes of a BPMS regarding risk thresholds and (2) the treatment of these non-conformances through the selection of a set of controls. For a better understanding, both problems are formalized similarly to the formalization used by Cordier et al. [29]. In a BPMS,a set of nbusiness process models {BP 1 ,BP 2 ,...,BP n } could be executed. A business process model, BP k , is composed of a set of A BP k ¼fA 1 ;A 2 ;...;A n gactivities that are attributed by R BP k ¼fR A 1 ;R A 2 ;...;R A m gIT security risks. Definition 1. Arisk of one activity R A j is represented by a 5-tuple defined as the combination of five security dimensions: integrity ðR i A j Þ, confidentiality ðR c A j Þ, availability ðR a A j Þauthorization ðR az A j Þand authentication ðR at A j Þ. In (1), vector notation represents the different security dimensions of R A j . R A j ¼ðR i A j ;R c A j ;R a A j ;R at A j ;R az A j Þð1Þ In the same way, the risk of a business process BP k might be defined as the combination of R BP k , as proposed in [10]. In the listing (2), R BP k is represented by means of matrix notation. It is assumed here that there are no dependencies between risk and treatment. R BP k ¼ R A j R Al ::: R A m 0 B B B B @ 1 C C C C A¼ R i A j R a A j R c A j R at A j R az A j R i A l R c A l R a A l R at A l R az A l ::: R i A m R c A m R a A m R at A m R az A m 0 B B B B B B @ 1 C C C C C C A ð2Þ Definition 2. The risk of a BPMS (R BPMS ), which contains a finite set of business processes fBP 1 ;BP 2 ;...;BP n gis defined by the union of the risks of these business processes. R BPMS ¼fR BP 1 ;R BP 2 ;...;R BP n gð3Þ Definition 3. A set of business goals (BG) establishes a set of constraints that relate the risks of a BPMS, and relate its business process models. In general, organizations establish a set of business goals related to the appraised, i.e. a risk of a business process BP k is acceptable if R i A j 6n, where nmay be a natural number. Definition 4. Arisk-management problem is a tuple (R BPMS ,BG), where R BPMS represents the system model to be diagnosed (for model-based diagnosis theory [30], components and observational model), and BG represents the business goals. R BPMS [BG 0Tð4Þ Thus, the system R BPMS is unsatisfiable with regard to the BG constraints established. The diagnosis strives towards the identification of inconsistencies in the risk of an activity A j , and specifically the set of dimensions (integrity, confidentiality, availability, authorization, and authentication) within the activities that produce that inconsistency. This identification might be solved by means of fault diagnosis theory. Following the theory of consistency-based diagnosis proposed by Kleer et al. in [30], this problem has been formalized as a fault diagnosis of a riskmanagement problem in the following definitions. This problem is solved in [11,13]. Definition 5. Afault diagnosis of a risk management problem is a set of risks D #R BP k such that D ¼f D BP j [ D BP l [...[ D BP m g, where D BP x #R BP x and x2½j;...;m. ðR BPMS D Þ[BG ‘Tð5Þ Fig. 3. Evolution of risk estimation with respect to time.
The fault diagnosis of a risk management problem identifies the set of activities of the business process BP k ,SC c , which are responsible for the inconsistency. Since the activities are known, it is therefore possible to analyze which dimensions of security might be treated. In Fig. 4, an example of fault diagnosis of a BPMS is illustrated. The fault diagnosis indicates which activities and dimensions should be treated; for instance, the diagnosis of business process BP 2 is R A 1 and R A 2 , where R A 1 is only affected in the dimensions of confidentiality and availability, while R A 2 is affected in authentication and availability. In (6),an example of D BP x is represented by matrix notation, where the symbol has been used to indicate the dimensions omitted. For instance, the dimensions to be treated for R A j are integrity, and authentication, while the remaining dimensions are omitted. D BP k ¼ R A j R Al ::: R A m 0 B B B @ 1 C C C A¼ R i A j R at A j R c A l R at A l ::: R i A m 0 B B B B @ 1 C C C C Að6Þ At this point, the BPMS has been diagnosed by identifying the D responsible for the inconsistency. The application of a risk treatment is proposed in order to mitigate these problems. In this paper, we strive to determine a set of controls SC that treats D . Hereinafter, it is assumed that, given a R BPMS and D , the risk treatment problem could be formalized as follows: Definition 6. Arisk-treatment problem is defined by the tuple (SC(x), D ) where SC(x) is the set of controls to be applied in x, and D represents the activities to be treated. Therefore, the risk treatment problem becomes the identification of the set of controls, SC(x), such that: ðR BPMS D Þ[SGð D Þ[BG ‘Tð7Þ Solving a risk treatment problem for a particular D , a set of controls is assumed, denoted as SC(x). Definition 7. Acontrol SC d ðxÞis a security configuration that produces a risk reduction or mitigation in the dimension dof x, where d2fi;c;a;at;azg. For a better understanding, an illustrative example is given. Since business goals indicate that the risk in any dimension cannot exceed 15, let us consider D as given in (8). It is assumed that the risks and controls are assigned to appropriate quantitative values. The estimation of these values relies on the expertise of various stakeholders and their experience to accurately estimate this data [62]. D ¼ R A j R A h R A k R A l R A m 0 B B B B B B @ 1 C C C C C C A ¼ R i A j R i A h R c A h R a A k R at A l R az A m 0 B B B B B B B B @ 1 C C C C C C C C A ¼ 15 17 16 16 18 19 0 B B B B B B @ 1 C C C C C C A ð8Þ For the diagnosis problem above, a set of security configurations SC(x), is selected, such as that given in (9). The configuration SC i (x) modifies the dimension of the integrity risk of any activity. In this example, it can be observed that: in the first row, a 0.50 value that represents a 50% reduction is applied for R i A j in the dimension of integrity; in the second row, the 0.50 represents the percentage (50%) of risk reduction applied to integrity for R i A h ; 0.60 indicates the percentage (60%) of risk reduction applied to confidentiality for R c A h and so on. SCðxÞ¼ 0:50 0:50 0:60 0:60 0:60 0:50 0 B B B B B B @ 1 C C C C C C A ð9Þ In order to illustrate the calculation of SCð D Þthe operator has been defined to represent a matrix, such that for R¼AB, the entry r ij is the result of multiplying the entry a ij of Aby b ij of B. For instance, in (10), the entry 7.5 is the result of multiplying the (1,1)th entry of D by the (1,1)th entry of SC(x). The final result is a matrix that indicates the new values for D In this case, the risk values comply with the limitations set out in the business goals which state that risk values must not exceed 15. BP1 S1 A1 E1 A2 BP2 S1 A1 E1 A2 G1 A3 R: {Confidentiality, Availability} BP3 S1 A1 A2 E1 R:{Authorization ,Authentication} BP1 S1 A1 E1 A2 BP2 S1 A1 E1 A2 A3 BP3 S1 A1 A2 E1 BPMS Fault Diagnosis R: {Authentication, Availability} R: {Integrity, Confidentiality} Δ Δ BP1 Δ BP2 Δ BP3 Fig. 4. Fault diagnosis of a BPMS.
SCð D Þ¼ 0:50 0:50 0:60 0:60 0:60 0:50 0 B B B B B B @ 1 C C C C C C A 15 17 16 16 18 19 0 B B B B B B @ 1 C C C C C C A ¼ 7:5 8:59:6 9:6 10:8 9:5 0 B B B B B B @ 1 C C C C C C A ð10Þ In Fig. 5, the result of applying controls SC(x)to D is illustrated. The result, SC( D ), is the same BPMS whose activities have a set of controls that mitigate the risk in the dimension affected. For instance, activity A2 within BP 1 has two controls, one for the integrity (SCi), and the other for the confidentiality (SCc). On the other hand, the suitability of the configurations with respect to the requirements defined by the organization must be measured. In general, organizations might be interested to measure, for instance, cost-benefit, profit, or Return Of Security Investment (ROSI). To this end, metrics could be related to features of controls in order to measure costs, delays, etc. Definition 5 can therefore be reformulated as follows: Definition 8. Arisk-treatment problem is defined by the tuple (SC(x), M, D ), where SC(x) is the set of controls to be applied; D represents the activities to be treated; and Mare the metrics to be considered related to controls. In (12),there is an example of costs related to the controls. For instance, the entry 100 indicates the cost in monetary units of the configuration selected for R i A j . M cos t ¼ 100 250 350 500 1000 600 0 B B B B B B @ 1 C C C C C C A ð11Þ In most cases, it could prove interesting to find the best configuration according to certain objective functions. In this case, an optimization function is required in order to determine the best solution with regard to the metrics M(i.e. cost, time of delay, etc.). Hence, the problem is reformulated yet again to determine risk treatment problems that optimize certain objective functions. Definition 9. An optimal risk-treatment problem with a single objective is defined by the tuple (F,SC(x), M, D ) where SC(x) is the set of controls to be applied; Mis the set of metrics to be considered; Fis the objective function (in the literature denoted by MAX or MIN); and D represents the activities to be treated, such that: FMINðSCðxÞ;MÞor MAXðSCðxÞ;MÞSC 0 ðxÞ subject to; ðR BPMS D Þ[SC 0 ð D Þ[BG ‘Tð12Þ Thus, the problems consist of the identification of configurations that optimize the objective function. In the following listings, an example of the selection of configurations that minimizes the cost is presented. In this example, there are two sets of configurations SC 1 ðxÞand SC 2 ðxÞ, whose costs are M SC 1 cos t , and M SC 2 cos t , respectively. The application of the objective function results in a new set of controls SC 0 ðxÞadjusted to the minimum cost. For instance, for the (1,1)th entry for SC 1 ðxÞand SC 2 ðxÞ, the best control is that given in SC 1 ðxÞsince it presents a better risk reduction, although it is more expensive than SC 2 ðxÞ. In this case, the configurations of SC 2 ðxÞhave been selected since they minimize the cost (objective function). SC 1 ðxÞ¼ 0:50 0:50 0:60 0:60 0:60 0:50 0 B B B B B B @ 1 C C C C C C A ;and SC 2 ðxÞ ¼ 0:50 0:50 0:70 0:80 0:30 0:60 0 B B B B B B @ 1 C C C C C C A ð13Þ M sc 1 cos t ¼ 300 250 350 500 1000 600 0 B B B B B B @ 1 C C C C C C A ;and M SC 2 cos t ¼ 200 250 450 600 800 650 0 B B B B B B @ 1 C C C C C C A ð14Þ MinðfSC 1 ðxÞ;SC 2 ðxÞg;fM SC 1 cos t ;M SC 2 cos t gÞ ¼ SC 0 ðxÞ ¼ 0:50 0:50 0:60 0:60 0:60 0:50 0 B B B B B B @ 1 C C C C C C A ð15Þ In particular cases, it is crucial to find the best configurations according to multiple objectives, such as cost, functionality, and performance. The problem lies in the optimization of searching within a set of controls that complies with Gobjectives. The problem is reformulated to determine the set of controls that optimize multiple-objective functions. Definition 10. An optimal risk-treatment problem with multiple objectives is defined by the tuple (F G ,SC(x), M, D ) where SC(x) is the set of controls; Mare the set of metrics to be considered; F G is a set of optimization functions fF g 1 ;F g 2 ;...;F g n g, (in the literature indicated by MAX or MIN); and D represents the activities to be treated. FMINðSCðxÞ;MÞor MAXðSCðxÞ;MÞSC 0 ðxÞsuch that; F G ¼[ i F g i subject to; ðR BPMS D Þ[SC 0 ð D Þ[BG ‘T ð16Þ As mentioned earlier, the main problem of risk-treatment is the selection of the controls, SC(x), to be applied in those activities with a problem of risks, D , together with the constraints of the problem R BPMS , make the problem satisfiable. The selection of a set of controls that are suitable for a set of risks is a NP-hard problem similar to that presented in [31]. The aim of this paper is to provide mechanisms for the automatic selection and generation of security configurations for BPMS in order to force business processes to comply with business goals which rely on security risks. Numerous controls exist, each with hundreds of possible characteristics and configurations that might be implemented [8].
We propose carrying out an analysis of the features of the main controls (IT security controls) at the infrastructure level of BPMS. This study is crucial for the definition of a catalogue of feature models with core features that might be used in the dimensions: confidentiality (SC c ), authorization (SC az ), authentication (SC at ), integrity (SC i ), and availability (SC a ). We also propose using feature model analysis methods in order to generate configurations in a flexible, agile, and automatic way. To this end, in the following section, concepts and formalisms of feature-oriented domain analysis are introduced. 4. Feature-Oriented Domain Analysis (FODA) for IT security Software Product Line (hereinafter SPL) [32–34] is an emerging paradigm in the software engineering arena which provides guides for the development of products. This paradigm is based on the key idea of defining reusable components by means of the identification of core features and through product development. Current studies into software product line are focused on the domain analysis that consists of the process of analyzing related products in order to identify their common and variable features. Feature models (hereinafter FM) [33] is the most popular method for the domain analysis of a software product line. Feature models involve a model that defines features and their relations. FMs enable to study certain properties such as potential number of valid products, even whether a particular configuration (selection of features) constitutes a valid product. There exist various notations to design FMs [33], although the most widely used is that proposed by Czarnecki [34] as shown in Fig. 6. This representation enables four relations between a parent feature and its child features: Mandatory,child feature is required (Amandatory sub-feature of B,AMB). Optional,child feature is optional (Aoptional sub-feature of B, A?B). Alternative,one of the sub-features must be selected (a 1 ...a n alternative sub-feature of b;a 1 ^...^a n $b^ i<j ða i _a j ÞÞ. Or-relation,at least one of the sub-features must be selected (a 1 ... a n or sub-feature of b,a 1 _... _a n Mb). In addition, other relations (cross-tree constraints) are allowed. The most common are: Feature A requires feature B(A?B). Feature Aexcludes feature B(:(A^B)). In some cases, the expressiveness of this notation is insufficient to represent certain relations and information related to features. To overcome this drawback there exist extensions [35,37] for the inclusion of attributes and extra-functionalities for features. These extensions enable characteristics of features that can be measured to be provided and include the facility to express relations between these characteristics (extra-functionalities). Fig. 6 shows an example of a feature model extended with attributes for the Protocol feature. Several techniques are available for the automated analysis of FMs [34], using Propositional Logic (PL), Constraint Programming (CP), and Description Logic (DL). These approaches transform the feature models into formal models in order to infer information related to the product line. This information may include: number of products, filters (specific set of characteristics for the features), products (all products with certain features), validation (selection of characteristics represent a valid product), optimum products (determination of best products according to a set of criteria), variability (relation between number of potential products and certain products), commodity (relation between a number of certain products and the total number of products). Constraint Programming, similar to that proposed in [35],i s employed to carry out feature model analysis since this approach enables integer domains to be used for attributes and optimization functions. In [35], the authors apply a transformation to Constraint Satisfaction Optimization Problem (COP) of extended feature models which is able to automatically obtain information about the model. Fig. 7 gives an example of transformation of a feature model to a COP whose objective function is to find the maximum of x. As aforementioned, we propose determining and inferring which configuration is the best possible according to the criterion (optimization function) by means of automated feature model analysis. To this end, it is necessary: (1) to define a catalogue of feature models and (2) to provide mechanisms for automatic selection and generation of configurations. In the following section, a catalogue of feature models is presented which is related to various IT security controls for BPMS in order to enforce security goals Δ SC(Δ) BP1 S1 A1 E1 A2 BP2 S1 A1 E1 A2 G1 A3 R: {Confidentiality, Availability} BP3 S1 A1 A2 E1 R:{Authorization ,Authentication} R: {Authentication, Availability} R: {Integrity, Confidentiality} Δ BP1 Δ BP2 Δ BP3 BP1 S1 A1 E1 A2 BP2 S1 A1 E1 A2 G1 A3 R: {Confidentiality, Availability} SC: {SCc,SCa} BP3 S1 A1 A2 E1 R:{Authorization,Auth entication} SC: {SCath,SCaz} R: {Authentication, Availability} SC: {SCat,SCa} R: {Integrity, Confidentiality} SC: {Sci,SCc} Δ, Fig. 5. Application of controls to D .
within business processes. In the subsequent section, a case study is presented of the results for the selection and generation of optimal configurations using Constraint Programming techniques. Various optimization techniques have been applied in order to infer configurations that respond to the organizational requirements. 5. Case study: IT security controls in a real BPMS The aim of the case study is to show a real scenario where automatic selection and generation of security configurations (IT security controls according to Definition 7) can be applied and how these configurations can be suited to one or several objectives for the organization. The case study presents an infrastructure such as shown in Fig. 8. This scenario and configuration has been used within research projects that have been successfully certified by the standard ISO/IEC 27001 Information technology – Security techniques – Information security management systems – Requirements [36]. Business analysts define business process models as mere formalizations, and hence consider them as blueprints. Subsequently, those business process models are given to IT stakeholders for their implementation, thereby rendering IT stakeholders responsible not only for the decision of developing business processes in a specific technology, but also for how these business processes are used, and interconnect and communicate with other systems. As mentioned earlier, business processes are deployed and executed in BPMSes that communicate with other systems (Web Services, databases, web application servers, etc.). This communication creates a channel of communications between the BPMSes where business processes and other systems are executing as shown in Fig. 8. The example shows the communication between customers and business processes. In most cases, channels must be protected against possible IT security risks (threats or vulnerabilities) since this channel could transport crucial and confidential information. In Fig. 8, the infrastructure is made up of three main components or participants: (1) Customers that use business processes transparently through a proxy and BPMS. (2) A Transparent proxy used as a filter for requests from the customer side and responses from internal requests. In this case, we have used a Load Balancer that redirects external requests to a Web Application Firewall (WAF). The WAF inspects the request against a rule set to seek block malicious codes. Once the request is accepted by the WAF the request is delivered to the corresponding BPMS. (3) BPMS dispatch requests and responses from-to business processes. In the case a business process needs to use an external resource, such as an external service, BPMS must request a petition from the Load Balancer and the Load Balancer from Internet and vice versa. Most leading BPMSes today use an infrastructure based on web technology in the form of web application servers with support to web service technologies. For instance, Bonita Soft can be used over Apache Tomcat or JBoss server infrastructure as a deploy server; Intalio BPMS use an Apache ODE BPEL engine; BizAgi supports a variety of servers such as JBoss,Oracle WebLogic and IBM WebSphere. Bonita Soft under JBoss server and ModSecurity under Apache with Logs are used as BPMS and WAF in the case study. These systems support the configurations and the integration of security controls in many different ways. In the next subsections, we analyze configurations of WAF, BPMS,and business processes in order to achieve confidentiality, integrity, availability, authorization, and authentication. Furthermore, we provide techniques in order to infer configurations with regard to different multi objective functions. 5.1. Catalogue of feature models According to Definition 7, the following subsections present a detailed description of the feature analysis carried out to achieve Fig. 7. Example of transformation of a feature model to a COP. Apache (SSL/TLS) Algorithm ClientAuth KeyStore Protocol FilePassType JKS PKCS12 PKCS11 SSLv2.0 SSLv3TLSv1.X CipherSuite Trust File Pass Typefalsewanttrue Port JKS PKCS12 PKCS11 require exclude SecurityLevel = {High} SecurityLevel = {Medium} SecurityLevel = {High} Optional Mandatory Alternative Or-alternative Cross-Relations Attributes/Extrafunc. Fig. 6. Example of feature model for SSL/TLS configuration in Apache Tomcat.
configurations with regard to confidentiality (SC c ), authorization (SC az ), authentication (SC at ), integrity (SC i ), and availability (SC a ) in BPMS. 5.1.1. Feature model for availability In accordance with the dependability taxonomy provided by Aviz ˇienis [38],a business process fails when the delivered service deviates from correct service. Fault tolerance strives to preserve the delivery of correct service in the presence of active faults. Fault tolerance is generally implemented by error detection and subsequent system recovery. The improvement in availability of business processes thanks to fault tolerance techniques is studied in [39,40,12].In[12], various fault tolerance patterns are presented that may be integrated into BPMS. These patterns provide mechanisms for error detection and recovery (see Fig. 9). Furthermore, these techniques present an advantage since they might be integrated independently of the BPMS used. Proposed fault tolerance patterns vary greatly, and include dynamic binding of services (Binder and Binder Backup), N-Version Programming (NVP) components, and the check-pointing approach. Each solution requires the configuration of the necessary components. For instance, the dynamic binding solution requires the specification of the number of replicas for each service; the specificationof an oracle, which determines whether the solutions obtained are correct; and a binder component, which allows the dynamic binding of services at run-time. Nevertheless, NVP solutions require the selection of a number of variants for services and a kind of adjudicator. The NVP technique does not require an oracle. The complete description of the features and characteristics of these three fault tolerance patterns are given in Table 1. The selection of one or another pattern presents a casuistry that has been modeled into the feature model (SC a ) as shown in Fig. 10. In this case, the feature model is based on those components necessary for the configuration of one of the fault tolerance proposals. Fault tolerance can be set up in business processes by selecting one of three possible options: (1) Dynamic Binding; (2) NVP; and (3) Checkpointing. For instance, a Checkpointing configuration needs at the first level the mandatory components of: Number of Sensors, Oracle (cf. oracle is a testing concept often used in test-driven paradigm. It represents as the intuition or wisdom of an human expert/component about of the expected result of a process for a given input), and Compensation Handlers. However, Oracle components require as mandatory a Diagnoser and a Business Rule engine. Thus, a valid Checkpointing configuration would be {Checkpointing, Number of sensors, Oracle, Compensation handlers, Diagnoser, Business Rules Engine}. Therefore, this feature model can help how to select and to configure a security control with respect to the availability in accordance to the fault tolerance patterns in [12]. Feature models can be extended with attributes and extra functionalities such as shown in Section 4. For this case study, we have decided only to extend the feature model for availability and confidentiality. The feature model for fault tolerance has been extended with attributes and extra functionalities. The details of the extension are given in Appendix D.InTable 2, there is a summary of attributes used to extend the feature model. One of the main challenges in the field of security is the measurement of security [66]. In general, the units and values employed to determine a risk assessment process are based on statistical data, real-world reports, expertise of users, administrators, and the tracking of assets [62]. In all these cases, these values and units are related to real units. However, there exist cases whereby it is necessary to define abstract scales. In Table 5, the units, range, and description of attributes are defined. It must be borne in mind that different scales are applied, depending on the attribute. Certain attributes relate to a real unit (e.g. Time), while for others a generic range of values is used (e.g. Number of Services). In fault tolerance, a very interesting attribute for the selection could be the Mean Time To Repair (MTTR). This attribute is defined as the time required to repair a system failure. In our case, by ignoring the time of detection, the time to repair might be defined as the sum of the delays introduced by each feature. For instance, the MTTR of a dynamic binding solution is the sum of the time of execution of nreplicas (NoR), the execution of the oracle, and the time of execution of the binders. Attributes have been included to enable the calculation of the MTTR for each fault tolerance solution. MTTR ¼NoR NoR:Time þOracle:Time þBinder:Time þBinderBackup:Time ð17Þ The values for MTTR have been obtained from a previous work [12] where a performance study of fault tolerance patterns was carried out. In listing (18), there is an example that states NoV delay time is between 10 and 30 ms. Thus, delay time used by variants in a NVP configuration varies from 10 to 30 ms. On the other hand, the time of delay used by services in a configuration of checkpointing (CP) varies from 10 to 40 ms. Thus, NVP’s MTTR could be less than CP’s MTTR depending on the number of variants and services used for each solution. NVP !NVP:NoV Time 10 and NVP:NoV Time 30 ð18Þ CP !CP:NoS Time 10 and CP:NoS Time 40 ð19Þ Fig. 8. Scenario of BPMS to be enforced by security controls.
fits the minimum of Cost and ALE due to the over-constrained problem. In this case, there are two options: (1) accept that there are no solutions and (2) relax some of the objectives in order to find solutions close to the optimum. A multi-objective search for SSL/TLS has been performed which relaxes the objectives (marked by the symbol ). For a better understanding, a graphic of the ALE calculation is represented in Fig. 18. In our initial tests, SLE and ARO hold a fixed value, and the AROR is calculated in terms of the configuration selected. In this case, it can be observed how the minimum has been tightened in eight iterations. It should be pointed out that the numbers of configurations are high due to the combination introduced by the attributes and extra functionalities. An example of configurations obtained for the SSL/ TLS example is shown in Table 8. This table shows different configurations achieved for the multi-objective of minimize ALE and the relaxing of Cost. This configuration can help security stakeholders to deal with decision making regarding security configurations. However, these configurations give an overview of the space of configurations and even specific configurations can be customized with respect to certain multi-objectives. Nevertheless, a large number of configurations are remain inoperative for security administrators; it should be interesting, for example, to introduce an ordering criterion in order to generate a list of the best configurations according to the tightened objectives, such as indicated in the # column. Regarding fault tolerance results, it can be observed that good results are obtained for single-objective searches. In the case of multi-objectives, these solutions are achieved very fast since there are no dependencies between the objectives. Therefore, the constraint solver does not need to find Pareto-efficient solutions since the optimum is determined independently. In Table 9, several configurations are given; the solutions that match with the optimum configurations are highlighted. 5.3. Discussion of results In the previous section, we performed different analyses on the proposed feature models. The first analysis consisted of obtaining the total number of configurations regardless of attributes and extra functionalities. In addition, a model consistency operation has been applied to the models in order to detect possible void feature models. The second analysis consisted of applying an optimized search in order to achieve specific configurations with regard to one or multiple objective functions. The aim of these analyses is to facilitate the tasks of different actors involved in business process design when selecting IT security configurations. Regarding the first analysis in the absence of optimized searches (cf. Table 6), the number of configurations of SSL/TLS is very high in comparison with fault tolerance due to the combinatory nature of the feature models presented. In the second analysis regarding optimized searches (cf. Table 7), we observe that the number of configurations is increased in both cases in the absence of optimized searches. This is caused by the combinatory nature of attributes and extra constraints introduced in the feature models. The performance (time in milliseconds) of searches is very low in all analyses. The usefulness of the results obtained in the selection of IT configurations can be observed from different points of views: For Business and security managers, our approach enables the analysis and inference of IT configurations to determine whether certain settings are more effective against certain objectives such as cost, ALE, ROSI, Risk Reduction, etc. For Business and security administrators, our approach enables them to obtain blueprints or templates to configure systems. Furthermore, our approach can ensure that templates suit the organization requirements. Constraint Solver Constraint Solver Feature model (extended) Configurations Configurations CSP COP Optimization Criteria Determine all configurations Determine optimal configuraton Transformation Transformation Single Objective Multi Objective Weighted Objective Fig. 17. Process of selection of configurations.
In both cases, due to the easy-to-modify characteristic of feature models and objectives and the provisioning of inference, reasoning techniques enable a quick, automatic, flexible and agile attainment of IT security configurations. The major advantage of our approach from both points of view is the automation of the selection process, and low execution time for searches. Thus, a task such as configuring a system that is typically time-consuming and error-prone can be reduced to seconds. The main drawback of our approach is that it requires a high initial effort in the analysis of systems, tools, and standards in order to provide a feature model as complete as possible. Nevertheless, once feature models are defined it only requires an update cycle. 6. Conclusions and future research In this paper, the issue of the automatic and optimal selection of configurations of controls for current BPMS has been tackled. The main obstacles in this system are related to the lack of awareness in the IT security risk of business process-driven products. In the majority of cases, security is considered only as an afterthought. Selection and configuration of security controls present a big challenge in BPMS for several reasons: (1) it is a human, manual, timeconsuming, and error-prone task; (2) it involves many security stakeholders such as business analysts, security managers, and administrators; and (3) the selection of configurations according to multi-criteria requires very high expertise. We conclude that it is necessary to provide business and security stakeholders involved in the development of business process solutions with tools that enable the automatic selection of security configurations in accordance with the needs of the organization. A large proportion of the literature revised herein proposes an integration of risk information by extending graphical business process models in order to aid in the documentation of business process risk assessments. Nevertheless, these approaches fail to take into consideration the integration of any mechanism to determine potential controls. Regarding the generation of configurations, there are various authors who have enabled the specification of security in business process models although they focused on the authorization in a particular environment. Several studies apply feature model analysis for the generation of secure feature models. On the other hand, there exist approaches that determine configurations in accordance with certain requirements in the quality of service. These approaches, however, use only a qualitative approach. Table 9 Configurations of fault tolerance for optimization of MTTR and risk reduction. # Dynamic binding NVP Check pointing Objectives Number of replicas Oracle Binder Binder backup Number of variants Adjudicator Number of Sensors Oracle Number of check points MTTR Risk reduction (%) 1 5 Variants 10 ms Median 10 ms 20 ms 80 2 7 Variants 10 ms Consensus 10 ms 20 ms 80 3 9 Variants 10 ms Consensus 10 ms 20 ms 80 4 2 Replicas 10 ms 45 ms 15 ms 70 ms 80 5 10 Replicas 10 ms 30 ms 10 ms 10 ms 50 ms 70 Table 7 Results of analysis of generation of configurations with attributes. Feature model Optimization criteria Number of configurations Time (ms) SSL/TLS Single Objective: Minimize (ALE) 13,138 2041 Single Objective: Maximize (AROR) 5268 1255 Single Objective: Minimize (Cost) 1800 2394 Multi-Objective: Maximize (AROR) + Minimize (ALE) 5268 5257 Multi-Objective: Minimize (Cost) + Minimize (ALE) 0 406 Multi-Objective: Minimize (Cost) + Minimize (ALE) 108 880 Fault tolerance Single Objective: Minimize (MTTR) 4 39 Single Objective: Maximize (Risk Reduction) 58 42 Multi-Objective: Minimize (MTTR) + Maximize (Risk Reduction) 36 39 Table 8 Configurations of SSL/TLS for optimization of ALE and Cost. # Digital signature Certificate CipherSuite Protocol Objective PSK SRP Anon. X509 OpenPGP Key change method CipherEnc MAC ALE Cost 1pRSA TLSv1.0 2.000 45 2pRSA MD5 TLSv1.0 2.000 45 3pRSA IDEA-128 SHA-1 TLSv1.1 2.000 50 4pFortezza SHA-256 TLSv1.1 2.000 50 5pDHE_RSA 3DES 168 SHA-1 TLSv1.1 2.000 50 Fig. 18. Constraint solver iterations for ALE and AROR determination.
In this paper, we propose automation of the selection of configurations by means of feature models and constraint programming techniques. To this end, we first provide a catalogue of feature models based on certain IT security controls; this catalogue could be integrated into BPMS, to treat typical IT security risks with respect to confidentiality, integrity, authentication and authorization, and availability. These feature models ascertain which characteristics must support the BPMS in order to achieve security objectives. In order to automate the generation of configurations, feature model analysis mechanisms have been used. Feature models have been modeled through constraint programs that enable information about configurations to be inferred. This analysis enables us to ascertain, for example, how many configurations are possible, and which configuration is the best option according to attributes and functions included in the model; it is even possible to ascertain whether a configuration is valid or not. Furthermore, these mechanisms provide an agile selection of configurations by means of including new attributes and functions. These attributes and functions enable the selection of configurations in accordance with various objectives. We have improved the selection of configuration by providing new search criteria based on a single objective and on multi-objectives. There exist various studies into the selection of controls based on multi-objectives, however, these studies are focused on the selection of controls, and not on the provision of the generation of configurations for controls. The present work can be extended in several ways. Risk dependencies can be studied in order to improve the selection of controls. We propose that OPBUS tools be extended with feature model analysis capabilities. Thus, feature models can be integrated as profiles of configuration of business processes, and, through the use of feature analysis, configurations with regard to the risk problems identified can be inferred. On the other hand, feature models can be employed to describe characteristics in security patterns that enable the profile of security configurations to be represented with respect to typical security threats and vulnerabilities. Furthermore, a study into the feature model analysis capabilities could be performed in order to provide new functions in the selection of security configurations. Acknowledgements This work has been partially funded by the Department of Innovation, Science and Enterprise of the Regional Government of Andalusia (under Grant P08-TIC-04095), by the Spanish Ministry of Science and Education (under Grant TIN2009-13714), and by FEDER (under the ERDF Program). The authors would like to thank Prof. Christoph Meinel, and the Hasso-Plattner-Institute for their valuable provision of information. The authors would like to thank to Fidetia Foundation for supporting. Appendix A. Feature analysis of SSL and TLS protocol Transport Layer Security (TLS) protocol and Secure Socket Layer (SSL) (hereinafter SSL/TLS) enable the authentication of client and server by providing signatures (certificates or passwords). Furthermore, data might be signed and ciphered in order to achieve data confidentiality and data integrity. SSL/TLS provides three main security services: confidentiality, by encrypting data; message integrity, by using a message authentication code (MAC); authentication, by using digital signatures. SSL/TLS allows the authentication of both parties, server authentication with an unauthenticated client, and total anonymity. The authentication of client and server might be carried out through digital signatures. Nowadays, these digital signatures are mostly based on certificates (i.e. X.509 standard) or shared keys. Certificates are based on the concept of public key cryptography known as asymmetric cryptography. This method generates two keys: a public key and private key. If one key is used to encrypt a message (signed and ciphered) then the other must be used to decrypt it. This makes it possible to receive secure messages by simply publishing one key (the public key) and keeping the other secret (the private key). Anyone may encrypt a message using the public key, but only the owner of the private key will be able to decrypt and read it. In the case of using certificates, these always have to be verified to ensure proper signing by a trusted Certificate Authority (CA). On the other hand, these protocols also provide anonymous authentication by using Diffie-Hellman for key exchange from SSLv3.0, TLSv1.0 and earlier versions. SSL/TSL protocol is based on a handshake sequence (Fig. 19) whose main features, as used by the client and server, are listed below: 1. Negotiate the Cipher Suite to be used during data transfer, and exchange random numbers (master key). 2. Establish and share a Session ID between client and server. 3. Optionally authenticatethe server to the client. 4. Optionally authenticatethe client to the server. The first step, cipher suite negotiation, allows the client and server to choose a Cipher Suite 2 supported by both of them. For instance, the SSLv3.0 protocol specification defines 31 Cipher Suites. A Cipher Suite is defined by the following components: Key Exchange Method defines which cryptographic algorithms have been used to generate cryptographic keys. For instance, SSLv2.0 uses RSA key exchange only, while SSLv3.0 supports a choice of key exchange algorithms including the RSA key exchange when certificates are used, and Diffie- Hellman key exchange for exchanging keys without certificates and without prior communication between client and server. Fig. 19. SSL handshake protocol actions [71]. 2 The CipherSuite supported by each version protocol can be consulted in [32,33,53,59,60].
Cipher for Data Transfer defines which conventional cryptographic algorithms are used to encrypt the message in the transmission. For instance, SSLv2.0 supports a reduced number of ciphers such as RC2, RC4 and Data Encryption Standard (DES). However, SSLv3.0 and earlier versions of TLS increase the number of cryptographic algorithms supported. Message Digest is used to create a Message Authentication Code (MAC) which is encrypted with the message to provide integrity and to prevent replay attacks. For instance, SSLv2.0 only supports MD5, while SSLv3.0 and earlier versions of TLS support other methods such as SHA-1 (see Table 10). Table 10 Summarization of feature related to SSL/TLS. a Protocol Key Exchange Method (KEM) Cipher (C) Message Authentication Code (MAC) Master key Key-size limit Session ID Constraints SSLv2.0 RSA RC4 128 bits MD5 256 bits Minimum 512 bits 16 bytes Authentication by certificate only RSA and MD5 RC4 128 bits Export RC2 128 bits RC2 128 bits Export IDEA 128 bits DES 64 bits DES 192 bits EDE3 SSLv3.0 Null Null Null 384 bits Minimum 512 bits 32 bytes Combination of KEM-C-MAC methods are listed in Appendix 6 of RFC 6101 [70] RSA RC4 40 bits MD5 DH b with DSS RC4 128 bits SHA DH with RSA RC4 128 bits Export DHE c with DSS RC2 40 bits DHE with RSA RC2 128 bits DH with Anonymous RC2 128 bits Export Fortezza IDEA 128 bits DES 56 bits DES 64 bits DES 192 bits EDE3 DES 40 bits Fortezza 96 bits 3DES 168 bits TLSv1.0 Null Null Null 384 bits Minimum 512 bits 32 bytes Combination of KEM-C-MAC methods are listed in Appendix 5.A of RFC 2246 [42] RSA RC4 40 bits MD5 DH with DSS RC4 128 bits SHA DH with RSA RC2 40 bits DHE with DSS IDEA 128 bits DHE with RSA DES 56 bits DH with Anonymous DES 40 bits 3DES 168 bits TLSV1.1 Null Null Null 384 bits None 32 bytes Combination of KEM-C-MAC methods are listed in Appendix A.5 of RFC 4346 [68] RSA RC4 128 bits MD5 KRB5 RC2 40 bits SHA DH with DSS IDEA 128 bits DH with RSA DES 56 bits DHE with DSS DES 40 bits DHE with RSA 3DES 168 bits DH with Anonymous AES 128 bits AES 256 bits TLSv1.2 Null Null Null 384 bits None 32 bytes Combination of KEM-C-MAC methods are listed in Appendix A.5 of RFC 5246 [69] RSA RC4 128 bits MD5 RSA PSK d 3DES 168 bits SHA DH with DSS AES 128 bits SHA224 d DH with RSA AES 256 bits SHA256 DHE with DSS SHA384 d DHE with RSA ECDH with EDSA d ECDH with RSA d DH with Anonymous a TLS v1.x is compatible with previous versions of SSL and TLS. b Diffie-Hellman signed with DSS certificates. c Ephemeral Diffie-Hellman signed with DSS certificates. d These features are only available as an extension in order to indicate the signature and hash algorithm.
Appendix B. Cross-tree constraint for feature model of SSL/TLS This appendix provides the cross-tree constraints that cannot be represented in the FM of SSL/TLS. The syntax used for the representation of the constraints corresponds with COMET Ò notation.
Appendix C. Feature analysis of Web Application Firewall (WAF) systems WAFs are stated by means of rules. One rule specified, for instance, by ModSecurity and IronBee has the following structure: Rule VARIABLES OPERATOR [ACTIONS]. Furthermore, rules could specify a set of operations (Operations/Transformation) used to inspect the content. In the tables below, the different possibilities that can be used in the definition of a rule are described. The analysis is focused on ModSecuriyt,Ironbee, and ESAPIWAF systems.
Name OS Language Variables TrustWaveModSecurity Unix, Windows Independant ARGS, ARGS_COMBINED_SIZE, ARGS_GET, ARGS_GET_NAMES, ARGS_NAMES, ARGS_POST, ARGS_POST_NAMES, AUTH_TYPE, DURATION, ENV, FILES, FILES_COMBINED_SIZE, FILES_NAMES, FILES_SIZES, FILES_TMPNAMES, GEO, HIGHEST_SEVERITY, INBOUND_ERROR_DATA, MATCHED_VAR, MATCHED_VARS, MATCHED_VAR_NAME, MATCHED_VARS_NAMES, MODSEC_BUILD, MULTIPART_CRLF_LF_LINES, MULTIPART_STRICT_ERROR, MULTIPART_UNMATCHED_BOUNDARY, PATH_INFO, PERF_COMBINED, PERF_GC, PERF_LOGGING, PERF_PHASE1, PERF_PHASE2, PERF_PHASE3, PERF_PHASE4, PERF_PHASE5, PERF_SREAD, PERF_SWRITE, QUERY_STRING, REMOTE_ADDR, REMOTE_HOST, REMOTE_PORT, REMOTE_USER, REQBODY_ERROR, REQBODY_ERROR_MSG, REQBODY_PROCESSOR, REQUEST_BASENAME, REQUEST_BODY, REQUEST_BODY_LENGTH, REQUEST_COOKIES, REQUEST_COOKIES_NAMES, REQUEST_FILENAME, REQUEST_HEADERS, REQUEST_HEADERS_NAMES, REQUEST_LINE, REQUEST_METHOD, REQUEST_PROTOCOL, REQUEST_URI, REQUEST_URI_RAW, RESPONSE_BODY, RESPONSE_CONTENT_LENGTH, RESPONSE_CONTENT_TYPE, RESPONSE_HEADERS, RESPONSE_HEADERS_NAMES, RESPONSE_PROTOCOL, RESPONSE_STATUS, RULE, SCRIPT_BASENAME, SCRIPT_FILENAME, SCRIPT_GID, SCRIPT_GROUPNAME, SCRIPT_MODE, SCRIPT_UID, SCRIPT_USERNAME, SERVER_ADDR, SERVER_NAME, SERVER_PORT, SESSION, SESSIONID, STREAM_INPUT_BODY, STREAM_OUTPUT_BODY, TIME, TIME_DAY, TIME_EPOCH, TIME_HOUR, TIME_MIN, TIME_MON, TIME_SEC, TIME_WDAY, TIME_YEAR, TX, UNIQUE_ID, URLENCODED_ERROR, USERID, WEBAPPID, WEBSERVER_ERROR_LOG, XML QualysIronBee Unix Independant ARGS, AUTH_PASSWORD, AUTH_TYPE, AUTH_USERNAME, CAPTURE, FIELD, FIELD_NAME, FIELD_NAME_FULL, GEOIP, HTP_REQUEST_FLAGS, HTP_RESPONSE_FLAGS, LAST_MATCHED, REMOTE_ADDR, REMOTE_PORT, REQUEST_BODY, REQUEST_BODY_PARAMS, REQUEST_CONTENT_TYPE, REQUEST_COOKIES, REQUEST_FILENAME, REQUEST_HEADERS, REQUEST_HOST, REQUEST_LINE, REQUEST_METHOD, REQUEST_PROTOCOL, REQUEST_URI, REQUEST_URI_FRAGMENT, REQUEST_URI_HOST, REQUEST_URI_PARAMS, REQUEST_URI_PASSWORD, REQUEST_URI_PATH, REQUEST_URI_PORT, REQUEST_URI_RAW, REQUEST_URI_SCHEME, REQUEST_URI_QUERY, REQUEST_URI_USERNAME, RESPONSE_BODY, RESPONSE_CONTENT_TYPE, RESPONSE_COOKIES, RESPONSE_HEADERS, RESPONSE_LINE, RESPONSE_MESSAGE, RESPONSE_PROTOCOL, RESPONSE_STATUS, SERVER_ADDR, SERVER_PORT, SITE_NAME, TX, UA OWASP ESAPI Java- WAF a Independant XML Request.parameters.some_parameter, request.headers.some_header, request.uri, request.url a Valid only for J2EE applications. Name Operators Actions Transformation TrustWaveModSecurity beginsWith, contains, endsWith, eq, ge, geoLookup, gsbLookup, gt, inspectFile, ipMatch, le, lt, pm, pmf, pmFromFile, rbl, rsub, rx, streq, strmatch, validateByteRange, validateDTD, validateSchema, validateUrlEncoding, validateUtf8Encoding, verifyCC, verifyCPF, verifySSN, within Allow, append, auditlog, block, capture, chain, ctl, deny, deprecatevar, drop, exec, expirevar, id, initcol, log, logdata, msg, multiMatch, noauditlog, nolog, pass, pause, phase, prepend, proxy, redirect, rev, sanitiseArg, sanitiseMatched, sanitiseMatchedBytes, sanitiseRequestHeader, sanitiseResponseHeader, severity, setuid, setsid, setenv, setvar, skip, skipAfter, status, t, tag, xmlns Base64decode, sqlHexDecode, base64DecodeExt, base64Encode, cmdLine, compressWhitespace, cssDecode, escapeSeqDecode, hexDecode, hexEncode, htmlEntityDecode, jsDecode, length, lowercase, md5, none, normalisePath, normalisePathWin, parityEven7bit, parityOdd7bit, parityZero7bit, removeNulls, removeWhitespace, replaceComments, removeCommentsChar, removeComments, replaceNulls, (continued on next page)
Appendix C (continued) Name Operators Actions Transformation urlDecode, urlDecodeUni, urlEncode, sha1, trimLeft, trimRight, trim QualysIronBee Contains, dfa, eq, ge, gt, ipmatch, le, lt, ne, pm, pmf, rx, streq Allow, logdata, block, capture, chain, confidence, delRequestHeader, delResponseHeader, id, msg, phase, rev, setflag, setRequestHeader, setResponseHeader, setvar, severity, status, t, tag Base64decode, compressWhitespace, count, htmlEntityDecode, length, lowercase, removeWhitespace, removeComments, replaceComments, trim, trimLeft, trimRight, urlDecode, min, max, normalize, path OWASP ESAPI Java- WAF Equals, exists, inList, Contains. Pattern Redirect, block, none, log Name Phase Type of rules TrustWaveModSecurity Request headers request body, response headers, response body, logging SecAction, SecArgumentSeparator, SecAuditEngine, SecAuditLog, SecAuditLog2, SecAuditLogDirMode, SecAuditLogFileMode, SecAuditLogParts, SecAuditLogRelevantStatus, SecAuditLogStorageDir, SecAuditLogType, SecCacheTransformations, SecChrootDir, SecComponentSignature, SecContentInjection, SecCookieFormat, SecDataDir, SecDebugLog, SecDebugLogLevel, SecDefaultAction, SecDisableBackendCompression, SecGeoLookupDb, SecGsbLookupDb, SecGuardianLog, SecHttpBlKey, SecInterceptOnError, SecMarker, SecPcreMatchLimit, SecPcreMatchLimitRecursion, SecPdfProtect, SecPdfProtectMethod, SecPdfProtectSecret, SecPdfProtectTimeout, SecPdfProtectTokenName, SecReadStateLimit, SecWriteStateLimit, SecRequestBodyAccess, SecRequestBodyInMemoryLimit, SecRequestBodyLimit, SecRequestBodyNoFilesLimit, SecRequestBodyLimitAction, SecResponseBodyLimit, SecResponseBodyLimitAction, SecResponseBodyMimeType, SecResponseBodyMimeTypesClear, SecResponseBodyAccess, SecRule, SecRuleInheritance, SecRuleEngine, SecRuleRemoveById, SecRuleRemoveByMsg, SecRuleRemoveByTag, SecRuleScript, SecRuleUpdateActionById, SecRuleUpdateTargetById, SecServerSignature, SecStreamInBodyInspection, SecStreamOutBodyInspection, SecTmpDir, SecUnicodeMapFile, SecUnicodeCodePage, SecUploadDir, SecUploadFileLimit, SecUploadFileMode, SecUploadKeepFiles, SecWebAppId, SecCollectionTimeout QualysIronBee REQUEST_HEADER, REQUEST, RESPONSE_HEADER, RESPONSE, POSTPROCESS AuditEngine, AuditLogBaseDir, AuditLogDirMode, AuditLogFileMode, AuditLogIndex, AuditLogIndexFormat, AuditLogParts, AuditLogSubDirFormat, DefaultBlockStatus, GeoIPDatabaseFile, Hostname, Include, InspectionEngine, LoadModule, Location, Log, LogHandler, LogLevel, ModuleBasePath, PcreMatchLimit, PcreMatchLimitRecursion, PersonalityAdd, PersonalityAliasClear, PersonalityAliasParam, PersonalityClearAll, PersonalityParam, RequestBodyBuffering, RequestBodyBufferLimit, RequestBodyBufferLimitAction, ResponseBodyBuffering, ResponseBodyBufferLimit, ResponseBodyBufferLimitAction, Rule, RuleBasePath, RuleDisable, RuleEnable, RuleEngineLogData, RuleEngineLogLevel, RuleExt, RuleMarker, SensorId, Site, SiteId, StreamInspect OWASP ESAPI Java- WAF Before-request-body, after-request- body, before-response a Authentication, autorihization, url, header, virtual-patches, outbond, BeanShell a Only for Bean-Shell rules.
Appendix D. Description of extra functions In this appendix we give a description of extra functions for feature models of SSL/TLS and Fault tolerance. Feature model Functions and constraints SSL/TLS SSL/TLS ?SSL/TLS_ALE = (SSL/TLS_ARO - (SSL/TLS_ARO (SSL/TLS_AROR)) / 100) SSL/TLS_SLE SSL/TLS_ALE <3.000 SSL/TLS_SLE = 1000 SSL/TLS_ARO= 10 SSL/TLS ?SSL/TLS_AROR=(Protocol_AROR+Certificate_AROR+DigitalSignature_AROR)/2 SSL/TLS.Protocol?Protocol_AROR = SSLv2.0_AROR + SSLv3.0_AROR + TLSv1.0_AROR + TLSv1.1_AROR + TLS1.2_AROR SSL/TLS.Protocol = SSLv2.0 ?Protocol_ARORP20 and Protocol_AROR660% SSL/TLS.Protocol = SSLv3.0 ?Protocol_ARORP30 and Protocol_AROR670% SSL/TLS.Protocol = TLSv1 ?Protocol_ARORP40 and Protocol_AROR685% SSL/TLS.Protocol = TLSv11?Protocol_ARORP40 and Protocol_AROR690% SSL/TLS.Protocol = TLSv12 ?Protocol_ARORP40 and Protocol_AROR690% SSL/TLS.Certificate?Certificate_AROR = X509_AROR + OPENPGP_AROR :SSL/TLS.Certificate?Certificate_AROR = 0 SSL/TLS.Certificate.X509 ?X509_AROR P40 and X509_AROR 675% :SSL/TLS.Certificate.X509 ?X509_AROR = 0 SSL/TLS.Certificate.OPENPGP?OPENPGP_AROR P30 and OPENPGP_AROR 670% :SSL/TLS.Certificate.OPENPGP?OPENPGP_AROR = 0 SSL/TLS.DigitalSignature?DigitalSignature_AROR = SRP_AROR + PSK_AROR + Anonymous_AROR SSL/TLS.DigitalSignature.PSK?PSK_AROR = 0 SSL/TLS.DigitalSignature.SRP?SRP_AROR = 0 SSL/TLS.DigitalSignature.Anonymous?Anonymous_AROR = 0 SSL/TLS ?SSL/TLS_Cost = Protocol_Cost+ Certificate.Cost + DigitalSignature.Cost SSL/TLS.Protocol = SSLv2.0 ?Protocol_CostP10 and Protocol_Cost650 SSL/TLS.Protocol = SSLv3.0 ?Protocol_CostP20 and Protocol_Cost655 SSL/TLS.Protocol = TLSv1 ?Protocol_CostP30 and Protocol_Cost660 SSL/TLS.Protocol = TLSv11?Protocol_CostP35 and Protocol_Cost665 SSL/TLS.Protocol = TLSv12 ?Protocol_CostP40 and Protocol_Cost670 SSL/TLS.Certificate?Certificate_Cost = X509_Cost + OpenPGP_Cost SSL/TLS.Certificate.X509 ?X509_Cost P15 and X509_Cost 650 :SSL/TLS.Certificate.X509 ?X509_AROR = 0 SSL/TLS.Certificate.OPENPGP?OPENPGP_CostP25 and OPENPGP_Cost640 :SSL/TLS.Certificate.OPENPGP?OPENPGP_Cost = 0 SSL/TLS.DigitalSignature?DigitalSignature_CostP10 and DigitalSignature_Cost630 Fault tolerance FT.MTTR = DB.Time + NVP.Time + CP.Time FT.MTTR P30 and FT.MTTR 6100 DB ?DB.Time = NoR_Time+Oracle_Time+Binder_Time+BBinder_Time DB ?DB.NoR_TimeP10 and DB.NoR_Time640 and DB.Binder _Time P10 and DB.Binder _Time 640 and DB.BBinder _Time P10 and DB.BBinder _Time 640 and DB.Oracle _Time P10 and DB.Oracle_Time640 :DB?DB.NoR_Time = 0 and DB.Binder = 0 and DB.BBinder = 0 DB.Oracle_Time = 0 NVP ?NVP.Time = NumberOfVariants.Time + Adjudicator.Time NVP ?NVP.NoV_TimeP10 and NVP.NoV_Time630 and NVP.Adjudicator_TimeP10 and NVP.Adjudicator_Time630 NVP.Adjudicator?Adjucator_Time=Exact_Time+Median_Time+Mean_Time+Consensus_Time :NVP ?NumberOfVariants.Time = 0 and Adjudicator.Time = 0 CP ?CP_Time = NoS_Time + Oracle_Time +NumberOfCheckPoint_Time CP ?CP.NoS_TimeP10 and CP.NoS_Time640 and CP.Oracle _Time P10 and CP.Oracle_Time620 and CP.NumberOfCheckPoint_TimeP10 and CP.NumberOfCheckPoint_Time630 :CP ?CP.NoS_Time = 0and CP.Oracle _Time = 0 CP.NumberOfCheckPoint_Time= 0 FT ?FT.RiskReduction = DB.RiskReduction+NVP.RiskReduction+CP.RiskReduction DB ?DB.RiskReduction P30 and DB.RiskReduction 680 DB.NoR?DB.NoR_N P1 and DB.NoR_N 610 DB.NoR?DB.NoR_N P1?DB.Risk Reduction P50% DB.BinderBackup?DB.RiskReduction P70% :DB.NoR?DB.NoR_N = 0 NVP ?NVP. RiskReduction P30 and NVP. RiskReduction 680% NVP.NoV?(NVP.NoV_N P3 and NVP. NoV_N 66) ?NVP.RiskReduction P60% (continued on next page)
References [1] InfoSecurity Europe and PricewaterhouseCoopers, Information Security Breaches Survey 2012. <http://www.pwc.co.uk/en_UK/uk/assets/pdf/olpapp/ uk-information-security-breaches-survey-technical-report.pdf>, 2013 (March 2013). [2] Bonita Soft, Bonita Soft Customer References. <http://www.bonitasoft.com/ customers/customer-references>, 2013 (March 2013). [3] David Kushner, The Real Story of Stuxnet, IEEE Spectrum. <http:// spectrum.ieee.org/telecom/security/the-real-story-of-stuxnet>, 2013 (March 2013). [4] ENISA, European Network and Information Security Agency. <http://www. enisa.europa.eu/activities/risk-management/current-risk/business-process- integration> (March 2013). [5] Symantec, Internet Security Threat Report. <http://www.symantec.com/ content/en/us/enterprise/other_resources/b-istr_main_report_2011_21239364. en-us.pdf>, 2013 (March 2013). [6] SANS, CSIS: 20 Critical Security Controls Version 4.1. <http://www.sans.org/ critical-security-controls/>, 2013 (March 2013). [7] Michael Davis, Research: 2012 Strategic Security Survey, InformationWeek Reports. <http://reports.informationweek.com/abstract/21/8815/security/ research-2012-strategic-security-survey.html>, 2012 (March 2013). [8] Symantec, IT Controls Reference. <www.symantec.com/compliance>, 2009 (March 2013). [9] A.J. Varela-Vaca, Robert Warschofsky, Rafael M. Gasca, Sergio Pozo, Christoph Meinel, A security pattern-driven approach toward the automation of risk treatment in business processes, in: International Joint Conference CISIS’12- ICEUTE ´12-SOCO ´12 Special Sessions, vol. 189, Springer, Berlin Heidelberg, 2013, pp. 13–23. [10] A.J. Varela-Vaca, Rafael M. Gasca, Sergio Pozo, OPBUS: risk-aware framework for the conformance of security-quality requirements in business processes, in: International Conference on Security and Cryptography (SECRYPT 2011), 2011. [11] A.J. Varela-Vaca, Rafael M. Gasca, A. Jimenez-Ramirez, A model-driven engineering approach with diagnosis of non-conformance of security objectives in business process models, in: Fifth International Conference on Research Challenges in Information Science (RCIS), pp. 1–6, ISBN:978-1-4244- 8670-0, 2011. [12] A.J. Varela-Vaca, Rafael M. Gasca, Diana Borrego, Sergio Pozo, Fault tolerance framework using model-based diagnosis: towards dependable business processes, International Journal on Advances in Security 4 (1&2) (2011) 11– 22. ISSN: 1942–2636. [13] OPBUS tools. <http://www.lsi.us.es/~quivir/index.php/Main/AJVarelaOPBUS>, 2012 (March 2013). [14] Wes Sonnenreich, Jason Albanese, Bruce Stout, Return On Security Investment (ROSI): a practical quantitative model, Journal of Research and Practice in Information Technology (2005) 239–252. ISSN: 1443–458X. [15] E.W. Cope, J.M. Kuster, D. Etzweiler, L.A. Deleris, B. Ray, Incorporating risk into business process models, IBM Journal of Research and Development 54 (3) (2010) 4:1–4:13. [16] M. zurMuehlen, M. Rosemann, Integrating risks in business process models, in: Proceedings of the Australasian Conference on Information Systems (ACIS), 2005. [17] J.H. Lambert, R.K. Jennings, N.N. Joshi, Integration of risk identification with business process models, Journal Systems Engineering 9 (3) (2006) 187–198. [18] L. Churliov, D. Neiger, M. Rosemann, M.Z. Muehlen, Integrating risks in business process models with value focused process engineering, in: Proceedings of the 14th European Conference on Information Systems, 2006. [19] A. Rodriguez, E. Fernández-Medina, M. Piattini, Towards a UML 2.0 extension for the modeling of security requirements in business processes, Trust and Privacy in Digital Business (2006) 51–61. LNCS, ISBN 978-3-540-37750-4. [20] M. Menzel, I. Thomas, C. Meinel, Security requirements specification in service-oriented business process management, International Conference on Availability, Reliability and Security (2009) 41–48. [21] C. Wolter, M. Menzel, A. Schaad, P. Miseldine, C. Meinel, Model-driven business process security requirement specification, Journal of Systems Architecture – Embedded Systems Design 55 (4) (2009) 211–223. [22] M. Menzel, Model-driven Security in Service-oriented Architectures, Ph.D. Dissertation, Hasso-Plattner Institute, University of Potsdam, 2010. [23] Y. Asnar, P. Giorgini, Modelling risk and identifying controls in organizations, in: Proceedings of 1st International Workshop on Critical Information Infrastructures Security (CRITIS’06), vol. 4347 of LNCS, Springer, pp. 55–66, 2006. [24] F. Semmak, C. Gnaho, R. Laleau, L. Maciaszek, C. González-Pérez, S. Jablonski, Extended KAOS method to model variability in requirements, Evaluation of Novel Approaches to Software Engineering, vol. 69, Springer, Berlin Heidelberg, 2010. pp. 193–205 ISBN 978-3-642-14819-4. [25] D. Mellado, E. Fernández-Medina, M. Piattini, Security requirements engineering framework for software product lines, Information and Software Technology 52 (10) (2010) 1094–1117. ISSN 0950-5849. [26] Javier Pérez, Miguel A. Laguna, YaniaCrespo González-Carvajal, Bruno González-Baixauli, Requirements variability support through MDA™ and graph transformation, Electronic Notes in Theoretical Computer Science 152 (2006) 161–173. ISSN 1571-066. [27] P. Sawyer, R. Mazo, D. Diaz, C. Salinesi, D. Hughes, Constraint programming as a means to manage configurations in self-adaptive systems, Computer 99 (2012) 1. [28] Siemens, CRAMM. <http://www.cramm.com/>, 2013 (March 2013). [29] M-O. Cordier, P. Dague, M. Dumas, F. Lévy, J. Montmain, M. Staroswiecki, L. Travé-Massuyès, A comparative analysis of AI and control theory approaches to model-based diagnosis, in: 14th European Conference on Artificial Intelligence (ECAI), 2000. [30] J. de Kleer, A.K. Mackworth, R. Reiter, Characterizing diagnoses and systems, Artificial Intelligence 56 (2–3) (1992) 197–222. ISSN 0004-3702. [31] HangjungZo, Derek L. Nazareth, Hemant K. Jain, Security and performance in service-oriented applications: trading off competing objectives, Decision Support Systems 50 (1) (2010) 336–346. [32] K. Kang, S. Cohen, J. Hess, W. Novak, S. Peterson, Feature-Oriented Domain Analysis (FODA) Feasibility Study, Technical Report CMU/SEI-90-TR-21, Software Engineering Institute, Carnegie Mellon University, 1990. November. [33] D. Batory, Feature models, grammars, and propositional formulas, Software Product Lines Conference, Lecture Notes in Computer Sciences, vol. 3714, Springer-Verlag, 2005, pp. 7–20. [34] D. Benavides, Sergio Segura, Antonio Ruiz-Cortés, Automated analysis of feature models 20 years later: a literature review, Information Systems 35 (6) (2010) 615–636. ISSN 0306-4379. [35] D. Benavides, A. Ruiz-Cortés, P. Trinidad, Automated reasoning on feature models, in: A d v a nced Information Systems Engineering: 17th International Conference, CAiSE, Lecture Notes in Computer Sciences, vol. 3520, Springer- Verlag, Berlin, 2005, pp. 491–503. [36] Fidetia, ISO/IEC 27001 Certificate. <http://www.fidetia.es/docs/ Cert_27001.pdf> (March 2013). [37] K. Czarnecki, S. Helsen, U. Eisenecker, Formalizing cardinality-based feature models and their specialization, Software Process: Improvement and Practice 10 (1) (2005) 7–29. ISSN: 1099-1670. [38] A. Avizienis, J.-C. Laprie, B. Randell, C.E. Landwehr, Basic concepts and taxonomy of dependable and secure computing, IEEE Transaction on Dependable and Secure Computing 1 (1) (2004) 11–33. [39] G. Dobson, Using WS-BPEL to implement software fault tolerance for web services, in: SEAA ’06, 32nd EUROMICRO Conference on Software Engineering and Advanced Applications, 2006, pp. 126–133. [40] V.O. Onditi, G. Dobson, J. Hutchinson, J. Walkerdine, P. Sawyer, Specifying and constructing a fault-tolerant composite service, 2008. ECOWS ’08, IEEE Sixth European Conference on Web Services, 2008, pp. 135–142. [41] Kipp Hickman, The SSL Protocol, Netscape Communications Corp., 1995. [42] T. Dierks, C. Allen, The TLS Protocol Version 1.0, RFC 2246, January 1999. [43] Oracle Java™ Secure Socket Extension (JSSE). <http://docs.oracle.com/javase/ 6/docs/technotes/guides/security/jsse/JSSERefGuide.html#Features>, 2012 (March 2013). [44] OpenSSL. <http://www.openssl.org/>, 2012 (March 2013). [45] GnuTLS. <http://www.gnu.org/software/gnutls/>, 2012 (March 2013). [46] R. Macfarlane, W. Buchanan, E. Ekonomou, O. Uthmani, L. Fan, O. Lo, Review of security policy implementations, Computers & Security (2012). ISSN: 0167- 4048. Appendix D (continued) Feature model Functions and constraints NVP.NoV?(NVP.NoV_N P7 and NVP.NoV_N 69) ?NVP.RiskReduction P60% NVP.NoV?(NVP.NoV_N = 2 ⁄x+ 1), x e [1,10] :NVP.NoV?DB.NoR_N = 0 CP ?CP.RiskReduction P30 and CP.RiskReduction 680% CP.NoS?CP.NoS_N P2?CP.RiskReductionP50% CP.NoS?CP.NoS_N P1 and CP.NoS_N< 2 :CP.NoS?CP.NoS_N = 0