An industrial control system intrusion detection method based on abnormal control logic representation
By using an anomaly control logic representation method, and leveraging feature binary encoding and logic learning modules to generate interpretable detection rules, the high-precision and highly interpretable detection requirements of industrial control systems are addressed, enabling efficient identification and rule generation for complex attacks.
Patent Information
- Application Number
- CN202311683614.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-10
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-10
AI Technical Summary
Existing intrusion detection methods for industrial control systems cannot simultaneously achieve high accuracy and high interpretability, making it difficult to meet the security requirements of industrial control systems. In particular, they suffer from high false alarm rates and low detection rates when detecting complex attacks.
A method based on anomaly control logic representation is adopted. By acquiring the flow data of the industrial control system, a feature binary code is constructed. The logic learning module is used to learn the logic of the device. Combined with deep learning models and knowledge distillation technology, interpretable anomaly detection rules are generated, which solves the problems of model interpretability and detection accuracy.
It achieves high-precision detection of attacks on industrial control systems, generates concise and interpretable detection rules, reduces false alarm rate, and improves system security and operability.
Smart Images

Figure CN117692190B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of network information security technology, and relates to intrusion detection technology, particularly to an intrusion detection method for industrial control systems based on abnormal control logic representation. Background Technology
[0002] Industrial control systems (ICS) are widely used to control and monitor physical processes closely related to critical infrastructure, playing a vital role in maintaining national stability and development. However, with the rapid development of networks, ICS are gradually transitioning from an independent state to an interconnected environment, leading to an increasing number of security threats targeting them. For example, in January 2022, Oiltanking, a major German fuel delivery company, suffered a cyberattack, resulting in fuel supply disruptions at nearly 200 gas stations. This incident highlighted the significant cybersecurity threats to ICS and underscored the crucial role of practical and effective intrusion detection systems in protecting them.
[0003] Currently, most industrial control system (ICS) intrusion detection primarily employs rule-based methods, which are widely recognized for their reliability and human-interpretable representation of attack behavior. Their advantage lies in the fact that, because rules define the system's behavior and decision-making logic, ICS can perform operations in a consistent and deterministic manner. Unfortunately, existing rule-based methods still cannot meet the requirements for detecting critical attacks in ICS, primarily for two key reasons. First, the creation of detection rules requires the full involvement of domain experts, making this process time-consuming and labor-intensive to repeat for each different ICS. Second, attackers often employ multiple strategies to conceal their attack activities, making it difficult for rules based solely on expert knowledge to comprehensively cover the key elements of these attacks. Failure to detect such attacks through rules can cause significant damage to physical processes. Therefore, in real-world attack scenarios, rule-based methods may suffer from high false positive rates and low detection rates.
[0004] Machine learning (ML) and deep learning (DL) methods have recently demonstrated excellent detection performance. However, directly deploying these methods in industrial control systems (ICS) is impractical. Due to the massive scale of network traffic, misclassifications generated by ML and DL methods require security analysts to spend significant time and effort manually reviewing system error alerts, resulting in high error costs. This drawback stems from the overly complex model structures used to capture intricate feature interactions, leading to low interpretability. A semantic gap exists between the model and the administrator's actual operational interpretation, making it difficult to translate detection results into actionable reports (such as deterministic rules). While some feature-based interpretation methods have been developed to explain detection results, imprecise feature extraction and the complexity of intrusion alert descriptions can allow adversaries to conceal malicious content, making it difficult for administrators to understand the root cause of the attack. Furthermore, since the corresponding models themselves are not interpretable, feature-level interpretations cannot reflect how and why the detection model produces specific results. Overall, current methods, whether rule-based or based on machine learning and deep learning, cannot simultaneously meet the requirements of high accuracy and high interpretability in ICS. Therefore, we need to explore novel intrusion detection models to further ensure the security of ICS. Summary of the Invention
[0005] The technical problem this invention aims to solve is to provide an intrusion detection method for industrial control systems based on abnormal control logic representation, used to detect attacks in industrial control systems and generate corresponding abnormal logic rules. This is because existing detection methods cannot simultaneously possess high-precision detection performance and high interpretability, making it difficult to meet the requirements of real-world industrial control scenarios.
[0006] The technical solution of this invention to solve the above-mentioned technical problems is as follows: an intrusion detection method for industrial control systems based on abnormal control logic representation, comprising:
[0007] Step 1: Obtain the flow rate of the physical process of the industrial control system within a certain period of time in the dataset, and then proceed to Step 2.
[0008] Step 2: Extract all device value information from the attack traffic according to the attack time period marked in the attack manual, and label them as attack data tags according to different attack categories, then proceed to Step 3.
[0009] Step 3: Treat the traffic 1000 seconds before the attack as normal traffic, extract the numerical information of all devices in the traffic as normal samples, and then proceed to Step 4.
[0010] Step 4: Combine the attack samples and normal samples to form a dataset. Use 80% of the normal and attack samples as the training set and 20% as the validation set, then proceed to Step 5.
[0011] Step 5: Input the actuator values at each time step in the dataset into the discrete binarization layer to construct a one-dimensional feature binary code, and then execute step 6.
[0012] Step 6: Input the sensor values at each time point in the dataset into the continuous binarization layer to construct a one-dimensional feature binary code, and then execute Step 7.
[0013] Step 7: Based on the industrial physical process stage in which the sensor and actuator are located, concatenate the one-dimensional feature binary codes of the same physical process stage. This code serves as the input for the subsequent logic learning module, and step 8 is executed.
[0014] Step 8: Input the feature codes of each stage into the corresponding single-stage logic learning layer in the logic learning module to learn the device logic between devices in the same physical process stage. Finally, concatenate the device logic features of all stages and execute step 9.
[0015] Step 9: Input all the device logic learned by the single-stage logic learning layer into the multi-stage logic learning layer in the logic learning module to learn the business logic that exists between different physical process stages of the device, and then execute Step 10.
[0016] Step 10: Input the logical features learned by the logical learning module into the prediction module. Convert the features into probability values of the predicted categories through a fully connected layer. The category with the highest probability value is the label of the sample. Then execute step 11.
[0017] Step 11: Input the same input data into the pre-trained deep learning model to obtain the classification probability value of each input data, and then proceed to step 12.
[0018] Step 12: Based on the idea of knowledge distillation, calculate the model's loss value using the model's probability value, the sample's true value, and the deep learning model's predicted probability value. After taking the derivative, backpropagate to update the model parameters and execute Step 13.
[0019] Step 13: Save the trained model and test it using the validation set. Then proceed to step 14.
[0020] Step 14: Extract the logical features and weight values of the prediction module in the trained model, sort them from largest to smallest according to the weight values, select the logical features with the highest weights, analyze the abnormal control conditions corresponding to the logical features, and execute Step 15.
[0021] Step 15: For each type of attack, select the abnormal control conditions that have a high degree of matching with it, generate the corresponding deterministic detection rules, and execute Step 16.
[0022] Step 16: Verify the effectiveness of the detection rules using attack samples.
[0023] The beneficial effects of this invention are:
[0024] First, this invention utilizes neural network modeling to automatically capture the potential logical relationships between devices in industrial control systems, a process that requires no additional expert experience. Furthermore, it employs knowledge distillation to transfer knowledge from complex heterogeneous models, thereby enhancing the model's attack classification capabilities. This addresses the problems of high costs associated with manually creating rules and the inability to effectively detect covert attacks in rule-based systems.
[0025] Second, this invention utilizes the concept of logical symbol representation to directly extract the knowledge learned by the model in the form of anomaly control logic rules. Furthermore, by employing interpretable constraints and residual connections, it ensures the simplicity and high understandability of the generated rules, thus resolving the semantic gap between model decisions and human-executable operations.
[0026] Third, through extensive experiments on two publicly available industrial control datasets, this invention demonstrates the excellent attack classification performance of our detection model. It can also generate effective and concise intrusion detection rules corresponding to attacks. Practice has proven that these rules have excellent attack discrimination capabilities and a low false alarm rate. Attached Figure Description
[0027] Figure 1 This is a flowchart illustrating the intrusion detection method for industrial control systems based on abnormal logic representation as described in this invention.
[0028] Figure 2 This is a schematic diagram of the input binarization module in step 5-6 of Embodiment 1 of the present invention.
[0029] Figure 3 This is a schematic diagram of the representation method of logical neural symbols used in Embodiment 1 of the present invention.
[0030] Figure 4 This is a flowchart illustrating the logic learning module in steps 8-9 of Embodiment 1 of the present invention.
[0031] Figure 5 This is a schematic diagram of the prediction module in step 10 of embodiment one of the present invention.
[0032] Figure 6 This is a schematic diagram of the backpropagation of the loss function in step 12 of the knowledge distillation in Embodiment 1 of the present invention.
[0033] Figure 7 This is a schematic diagram illustrating the extraction of logical rule conditions in the interpretation module during step 14 of an embodiment of the present invention.
[0034] Figure 8 This is a schematic diagram of the dataset used in the experiment of Embodiment 1 of the present invention.
[0035] Figure 9 This is a schematic diagram of the attack classification experiment results on the SWaT dataset in Embodiment 1 of the present invention.
[0036] Figure 10 This is a schematic diagram of the attack classification experiment results on the WADI dataset in Embodiment 1 of the present invention.
[0037] Figure 11 This is a schematic diagram comparing the rule performance statistics generated on the SWAT and WADI datasets in Example 1 of this invention.
[0038] Figure 12 This is a schematic diagram of the detection rules generated on the SWaT dataset in Embodiment 1 of the present invention.
[0039] Figure 13 This is a schematic diagram of the detection rules generated on the WADI dataset in Embodiment 1 of the present invention. Detailed Implementation
[0040] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0041] Example 1
[0042] like Figure 1 As shown in the figure, Embodiment 1 is an intrusion detection method for industrial control systems based on anomaly logic representation. This method consists of 16 steps. The specific details are described below:
[0043] Step 1: Obtain the flow rate of the physical process of the industrial control system within a certain period of time in the dataset, and then proceed to Step 2.
[0044] Step 2: Extract all device value information from the attack traffic according to the attack time period marked in the attack manual, and label the attack data according to different attack categories, then proceed to Step 3.
[0045] Step 3: Treat the traffic 1000 seconds before the attack as normal traffic, extract the numerical information of all devices in the traffic as normal samples, and then proceed to Step 4.
[0046] Step 4: Combine the attack samples and normal samples to form a dataset. Use 80% of the normal and attack samples as the training set and 20% as the validation set, then proceed to Step 5.
[0047] Step 5: Input the values of the actuator at each time step in the dataset into the discrete binarization layer. Construct a one-dimensional feature binary code by judging whether the values meet the boundary conditions, and then execute step 6.
[0048] Step 6: Input the sensor values at each time point in the dataset into the continuous binary layer, construct a one-dimensional feature binary code by judging the control state satisfied by the values, and then execute Step 7.
[0049] Step 7: Based on the industrial physical process stage in which the sensor and actuator are located, concatenate the one-dimensional feature binary codes of the same physical process stage. This code serves as the input for the subsequent logic learning module, and step 8 is executed.
[0050] Step 8: Input the feature encoding of each stage into the corresponding single-stage logic learning layer in the logic learning module. Each stage corresponds to 24 conjunction logic neural units and 24 disjunction logic neural units, which are used to learn the device logic between devices in the same physical process stage. Finally, the device logic features of all stages are concatenated and step 9 is executed.
[0051] Step 9: Input all the device logic learned by the single-stage logic learning layer into the multi-stage logic learning layer in the logic learning module. Each multi-stage logic learning layer contains 64 conjunction logic neural units and 64 disjunction logic neural units, which are used to learn the business logic of the device between different physical process stages. Then execute step 10.
[0052] Step 10: Input the logical features learned by the logical learning module into the prediction module. Convert the features into probability values of the predicted categories through a fully connected layer. The category with the highest probability value is the label of the sample. Then execute step 11.
[0053] Step 11: Input the same input data into the pre-trained ResNet deep learning model to obtain the classification probability value of each input data, and then proceed to step 12.
[0054] Step 12: Based on the idea of knowledge distillation, calculate the model's loss value using the model's probability value, the sample's true value, and the deep learning model's predicted probability value. After taking the derivative, backpropagate to update the model parameters and execute Step 13.
[0055] Step 13: Save the trained model and test it using the validation set. Then proceed to step 14.
[0056] Step 14: Extract the logical features and weight values of the prediction module in the trained model, sort them from largest to smallest according to the weight values, select the top 8 logical features by weight, analyze the abnormal control conditions corresponding to the logical features, and then proceed to Step 15.
[0057] Step 15: For each type of attack, filter out the abnormal control conditions with a matching degree greater than 90%, generate the corresponding deterministic detection rules, and execute Step 16.
[0058] Step 16: Verify the effectiveness of the detection rules using attack samples.
[0059] like Figure 2 As shown, the specific process of inputting the data into the binarization module for binary encoding in steps 5-6 above is as follows:
[0060] After inputting sensor values, the continuous binarization layer checks whether the values satisfy predefined boundary conditions and constructs the corresponding one-dimensional binary tensor. Here, LL and HH represent the lower and upper storage thresholds of the container associated with the sensor, respectively. In addition to the range specified by the sensor, boundary conditions can also be determined based on the range of numerical fluctuations over a known period of attack (e.g., values frequently exceeding or falling below a specific threshold).
[0061] After the actuator value is input, the discretization layer evaluates whether the value corresponds to an ON or OFF control state and outputs the corresponding binary code. When the input feature value satisfies the specified boundaries or states listed in the conditions, the corresponding output is set to 1; otherwise, it is 0.
[0062] like Figure 3 As shown, the specific details of the logical neural symbol representation method used in this invention are as follows:
[0063] Each logical layer consists of two distinct parts: conjunction and disjunction, corresponding to the logical operators AND and OR, respectively. The calculation methods for these two parts are shown below.
[0064]
[0065] This represents the weighting parameter between logical layers, assigned a discrete value of 0 or 1. When Represents the node of the current layer With the node in the previous layer There is a logical connection between them.
[0066] like Figure 4 As shown, the specific calculation process of the logic learning module in steps 7-8 above is as follows:
[0067] The logic learning module comprises two parts: a single-stage logic learning layer and a multi-stage logic learning layer. These layers are used to represent device logic within the same stage and business logic between different stages. This process can be viewed as an interpretable constraint, enabling the learned exception control logic rules to intuitively reflect the system's control flow.
[0068] The primary purpose of the single-stage logic learning layer is to understand the device logic in a specific physical processing stage. Therefore, this layer is divided into K sub-modules, each receiving input from a one-dimensional binary code in its corresponding stage. To address the non-differentiability issue caused by discretized numerical values in logic symbol representations, logic activation functions are used as an alternative, as shown below.
[0069]
[0070]
[0071] Where h represents the logical layer composed of logical units, and W represents the weight corresponding to each unit. m controls the number of conditions included in each logical condition, allowing administrators to adjust the complexity of the generated rules according to the actual scenario. F s and F c It is a Boolean function, and the specific calculation method is shown below.
[0072] F c (h,W)=(1-W·(1-h)),F s (h,W)=W·h
[0073] W can be viewed as a logical feature selector, ensuring that, except for logical nodes with a weight of 1, the remaining nodes have no impact on the overall logical meaning. This guarantees that the logical activation function can satisfy the requirements of conjunction and disjunction in logical representation methods. Furthermore, in order to input the model weights into the logical activation function for calculation, the original continuously valued model weight parameter π needs to be mapped to discrete values of 0 or 1. The purpose of the weights is to select the node with the highest activation probability from all nodes in the previous layer, as described mathematically below.
[0074]
[0075] Where g j It is sampled from the Gumbel distribution, and τ represents the sampling temperature.
[0076] The goal of the multi-stage logic learning layer is to acquire the business logic between different stages in order to comprehensively cover the impact of attacks on different physical process stages. The input to the multi-stage logic learning layer is all the new logical features obtained in the previous learning layer, and the specific calculation method is as follows.
[0077]
[0078]
[0079] Where the Boolean function F s and F c The calculation method is consistent with the calculation process in the single-stage logic learning layer.
[0080] To effectively handle relatively simple anomalous logic instances arising from specific attack types, our method introduces residual connections. This allows the model to skip some learning layers in the logic learning module, adaptively adjusting the overall complexity of the rules for different attack types.
[0081] like Figure 5 As shown in the diagram above, the specific content of the prediction module in step 10 is as follows:
[0082] The logic learning module yields n new features, each corresponding to a different logical rule. Using these features, a fully connected layer maps the outputs of multiple neurons to the probability values of all sample class labels in the dataset; the sample with the highest probability value is identified as the label. The softplus function is used to uniformly map the weights of the fully connected layer parameters to a non-negative interval, facilitating a more intuitive understanding of the rules by humans.
[0083] like Figure 6 As shown, the specific process of backpropagation of the loss function in knowledge distillation in step 12 above is as follows:
[0084] The model's loss function consists of two parts: classification loss (L... hard ) and distillation loss (L dist L hard Measure the difference between the model's predicted values and the true label values of the samples; L dist The loss quantifies the difference between the model's predicted values and the teacher's classification probabilities. Combining these two loss values, the differentiated gradient is backpropagated to the model to update its parameters.
[0085] like Figure 7 As shown, the specific process of extracting logical rule conditions in the interpretation module in step 14 above is as follows:
[0086] Suppose we need to obtain attack rules related to a specific attack category i, we extract the fully connected weights from the i-th row of the attack classification layer. By sorting the weights in descending order, we can define a threshold to filter and analyze the abnormal logical conditions corresponding to high weight values. These conditions and their corresponding weights w constitute a candidate condition set.
[0087] To ensure readability, each condition in the candidate condition set is simplified while retaining its original logical meaning. For example, if multiple conditions in a conjunction rule describe the same sensor, only the condition with the smaller decision boundary is retained. Subsequently, based on the distributive law of Boolean algebra, each condition in the candidate condition set is broken down into multiple logically independent sub-conditions. The matching degree of each independent sub-condition against a specific attack is calculated, and only sub-conditions with a matching degree greater than 90% are retained. Finally, these sub-conditions are connected using the logical symbol AND to construct a deterministic detection rule for this type of attack.
[0088] like Figure 8 As shown, a detailed description of the experimental dataset used in this invention is as follows:
[0089] SWaT is a public dataset for a water treatment testbed, a scaled-down industrial replica of a water treatment plant. It has six stages and produces five gallons of filtered water per minute. We selected 35 real-world impact attacks to evaluate the performance of the proposed model. We collected real-time data related to production from 26 sensors and 25 actuators. WADI is a public dataset for a water resource allocation simulation system, an extension of SWaT. This system has three stages related to water allocation. Attacks included 13 different types of cyberattacks, and real-time data was collected from 54 sensors and 69 actuators.
[0090] like Figure 9 and Figure 10 As shown, to evaluate the attack detection effectiveness of the intrusion detection system in Example 1, we obtained training and testing datasets using data from real-world industrial control equipment. The datasets contain various types of attack data as well as normal data.
[0091] To evaluate the detection performance of the intrusion detection model, the following four sample sets are first defined:
[0092] (1)TP: The number of normal samples in the dataset that are correctly classified as normal by the model.
[0093] (2)FP: The number of attack samples in the dataset that are incorrectly classified as normal by the model.
[0094] (3)TN: The number of attack samples in the dataset that are correctly classified as attack categories by the model.
[0095] (4) FN: The number of normal samples in the dataset that are incorrectly classified as attack categories by the model.
[0096] Based on the four sample sets mentioned above, this invention employs commonly used evaluation metrics in the field of intrusion detection to evaluate the detection performance of the intrusion detection model, including: accuracy, precision, recall, and F1 score. Precision represents the proportion of true attacks detected, Recall represents the proportion of detected attacks out of all attacks, and F1 score is the harmonic mean of precision and recall. We believe that the higher the values of these evaluation metrics, the better the model's detection capability.
[0097] The formulas for calculating these evaluation indicators are as follows:
[0098]
[0099]
[0100]
[0101]
[0102] We can observe that our method (Abnormal Logical Representation Learning, ALRL) achieves superior attack classification performance on both datasets compared to other rule-based interpretable methods such as Classification and Regression Tree (CART) with varying degrees of pruning, Rule-based Representation Learner (RRL), and complex ML / DL methods such as Piecewise Linear Neural Network (PLNN), eXtreme gradient boosting (XGBoost), and Residual Network (ResNet). This demonstrates that our proposed method has excellent classification and detection capabilities against various attacks on industrial control systems. While PLNN, XGBoost, and ResNet perform comparably to our method in attack classification, their limitations in model interpretability hinder a deeper understanding of attack behavior.
[0103] like Figure 11As shown, to demonstrate that the extracted detection rules are effective in detecting each type of attack, we compare our method with two state-of-the-art rule-based methods: CART with varying degrees of pruning and the Logic Understanding-Based IDS (LU_IDS). We evaluate these rules using attacks from the SWAT and WADI datasets and calculate the F1-Score for each attack type detection rule, where samples corresponding to a specific attack are marked as anomalous, while all other samples are considered normal. To further highlight the interpretability of the rules, we also conduct a comparative analysis of average rule length and information content. We introduce the concept of information entropy to measure the amount of information contained in each rule condition. The formula for calculating information entropy is as follows:
[0104]
[0105] Where p i = 1 / n, where n is the number of conditions in the rule. We use precision as the standard for measuring self-information. Under extreme conditions, when a certain condition in the rule cannot distinguish an attack, the precision of that condition becomes zero, resulting in an infinitely large entropy value.
[0106] We can see that for both complex and simple attack scenarios in both datasets, the rules extracted by our method are shorter compared to those generated by other rule-based methods. Notably, compared to LU_IDS, our method significantly reduces the average rule length by 44.95% on the SWaT dataset while maintaining the same detection accuracy. Similarly, on the WADI dataset, the average rule length is reduced by 16.42% compared to unpruned CART. Furthermore, our method exhibits significantly low entropy values on both datasets, indicating that each condition in our rules has sufficient importance.
[0107] like Figure 12 and Figure 13 As shown, we present the rules generated by the model and their corresponding detection performance. We can see that on the SWaT dataset, our rules successfully detected all 35 attack types with an accuracy exceeding 90%, with most rules clearly identifying the main attack points for each type. On the WADI dataset, our rules achieved at least 95% accuracy for 13 attack types. This demonstrates that the rules extracted by our method effectively capture the core anomaly logic of each attack type.
[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An intrusion detection method for industrial control systems based on abnormal control logic representation, characterized in that, include: Step 1: Obtain the flow rate of the physical process of the industrial control system within a certain period of time in the dataset, and then proceed to Step 2; Step 2: Extract all device value information from the attack traffic according to the attack time period marked in the attack manual, and label them as attack data tags according to different attack categories, then proceed to Step 3; Step 3: Treat the traffic 1000 seconds before the attack as normal traffic, extract the numerical information of all devices in the traffic as normal samples, and then proceed to Step 4. Step 4: Combine the attack samples and normal samples to form a dataset; use 80% of the normal and attack samples as the training set and 20% as the validation set, and then proceed to Step 5. Step 5: Input the actuator values at each time step in the dataset into the discrete binarization layer to construct a one-dimensional feature binary code, and then execute step 6. Step 6: Input the sensor values at each time point in the dataset into the continuous binarization layer to construct a one-dimensional feature binary code, and then execute Step 7. Step 7: Based on the industrial physical process stage in which the sensor and actuator are located, concatenate the one-dimensional feature binary codes of the same physical process stage; this code serves as the input for the subsequent logic learning module, and step 8 is executed. Step 8: Input the feature codes of each stage into the corresponding single-stage logic learning layer in the logic learning module to learn the device logic between devices in the same physical process stage. Finally, concatenate the device logic features of all stages and execute step 9. Step 9: Input all the device logic learned by the single-stage logic learning layer into the multi-stage logic learning layer in the logic learning module to learn the business logic that the device exists in different physical process stages, and then execute Step 10. Step 10: Input the logical features learned by the logical learning module into the prediction module, and convert the features into probability values of the predicted categories through a fully connected layer. The category with the highest probability value is the label of the sample. Then proceed to step 11. Step 11: Input the same input data into the pre-trained deep learning model to obtain the classification probability value of each input data, and then proceed to step 12. Step 12: Based on the idea of knowledge distillation, calculate the model loss value using the model's probability value, the sample's true value, and the deep learning model's predicted probability value. After taking the derivative, backpropagate to update the model parameters and execute step 13. Step 13: Save the trained model and test it using the validation set; then proceed to step 14. Step 14: Extract the logical features and weight values of the prediction module in the trained model, sort them from largest to smallest according to the weight values, select the logical features with the highest weights, analyze the abnormal control conditions corresponding to the logical features, and execute Step 15. Step 15: For each type of attack, select the abnormal control conditions that have a high degree of matching with it, generate the corresponding deterministic detection rules, and execute Step 16. Step 16: Verify the effectiveness of the detection rules using attack samples.
2. The intrusion detection method for industrial control systems based on abnormal control logic representation according to claim 1, characterized in that, The model structure of the industrial control system intrusion detection model based on abnormal control logic representation in steps 5-15, and the model training method for the knowledge distillation and transfer heterogeneous model, specifically include: The industrial control system intrusion detection method based on anomaly control logic is a hierarchical model consisting of four modules: an input binarization module including discrete and continuous binarization layers, capable of binary encoding all sensors and actuators at each time point and stage; a logic learning module including single-stage and multi-stage logic learning layers, utilizing neural networks to automatically learn the potential logical relationships between sensors and actuators within the same stage and between different stages; a prediction module responsible for performing attack classification tasks using the new logical features generated by the aforementioned modules; and an interpretation module used to extract knowledge from the trained network in the form of deterministic rules. The model is trained using knowledge distillation to achieve optimal model performance. The training loss function consists of two parts: classification loss and distillation loss. The classification loss measures the difference between the model's predicted value and the true label value of the sample, while the distillation loss quantifies the difference between the model's predicted value and the classification probability of the teacher model ResNet. After combining the two loss values, the derivative gradient is backpropagated to the model to update the model parameters.
3. The intrusion detection method for industrial control systems based on abnormal control logic representation according to claim 1, characterized in that, Steps 5-7 involve inputting the binary encoding method in the binarization module, specifically including: The input binarization layer employs a binary encoding method specific to industrial control systems. After inputting sensor values, the continuous binarization layer checks whether the value satisfies predefined boundary conditions and constructs a corresponding one-dimensional binary tensor. The lower and upper storage thresholds of the sensor-related containers are defined as the judgment boundaries of the conditions. In addition to the range specified by the sensor, the boundary conditions are determined based on the range of numerical fluctuations within a certain period of a known attack. After inputting actuator values, the discrete binarization layer evaluates which control state (ON or OFF) the value corresponds to and outputs the corresponding binary code. When the input feature value satisfies the specified boundaries or states listed in the conditions, the corresponding output is set to 1; otherwise, it is 0.
4. The intrusion detection method for industrial control systems based on abnormal control logic representation according to claim 1, characterized in that, The representation method of logical neural symbols in the logical learning module in steps 8-10, as well as the design of interpretable constraints and residual connections, ensure the simplicity of the generated rules; Each logic layer in the logic learning module consists of two distinct parts: conjunction and disjunction, corresponding to the logical operators AND and OR, respectively. The calculation methods for these two parts are shown below: This represents the weighting parameter between logical layers, assigned a discrete value of 0 or 1; when Represents the node of the current layer With the node in the previous layer There is a logical connection between them; The logic learning module consists of two parts: a single-stage logic learning layer and a multi-stage logic learning layer, which are used to represent the device logic within the same stage and the business logic between different stages. The single-stage logic learning layer is divided into K sub-modules, and the input of each sub-module comes from the one-dimensional binary code in the corresponding stage; the logic activation function is used, as shown below: Where h represents the logical layer composed of logical units, W represents the weight corresponding to each unit; m controls the number of conditions contained in each logical condition; F s and F c It is a Boolean function, and the specific calculation method is as follows: F c (h,W)=(1-W·(1-h)),F s (h,W)=W·h W is viewed as a logical feature selector, ensuring that, except for logical nodes with a weight of 1, the remaining nodes have no impact on the overall logical meaning; it maps the original continuously valued model weight parameter π to discrete values of 0 or 1; the purpose of the weights is to select the node with the highest activation probability from all nodes in the previous layer, which can be described mathematically as follows: Where g j It is sampled from the Gumbel distribution, and τ represents the sampling temperature; The goal of the multi-stage logic learning layer is to acquire the business logic between different stages, covering the impact of attacks on different physical process stages; the input of the multi-stage logic learning layer is all the new logical features obtained in the previous learning layer, and the specific calculation method is as follows; Where the Boolean function F s and F c The calculation method is consistent with the calculation process in the single-stage logic learning layer.
Citation Information
Patent Citations
Network intrusion detection method based on deep learning
CN113572742A
Acquisition method for domain rule knowledge of industrial process
US20220269955A1
