A correlation analysis method based on intrusion detection in industrial control systems

The FP-Growth algorithm is used to perform correlation analysis in industrial control systems to generate complex attack patterns and rules, which solves the problem of difficulty in identifying complex APT attacks with existing technologies and achieves efficient identification and defense of industrial control systems.

CN117807589BActive Publication Date: 2024-10-18UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311809577.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-10-18
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

Existing industrial control system intrusion detection systems are difficult to identify complex Advanced Persistent Attack (APT) events, especially when the attack methods become complex and covert, and cannot effectively identify and defend against these attacks.

Method used

Using the correlation analysis method based on the FP-Growth algorithm, through preprocessing, pattern mining and rule generation of the data in the IDS alarm collection, complex attack patterns are generated and expressed as correlation rules to expand the cloud rule base of the industrial control system , enhance the ability to identify complex attacks.

Benefits of technology

It achieves effective identification and defense of complex attacks in industrial control systems. By generating and storing association rules, it builds a knowledge base of complex attack scenarios, improves the ability to identify multi-device and multi-step attacks, and enhances network security defense capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117807589B_ABST
    Figure CN117807589B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent terminal security technology, and provides an association analysis method based on intrusion detection of industrial control systems, which includes the following steps: S1: intrusion detection system data acquisition; S2: extracting attributes for association; S3: deduplication according to time window tw1 and weight; S4: dividing alarm sequence; S5: configuring association analysis parameters; S6: deleting non-frequent item sets; S7: constructing FP-Tree; S8: obtaining prefix pattern base; S9: recursively constructing FP-Tree, generating conditional pattern base, and obtaining frequent item sets; S10: generating association rules and calculating confidence, and screening out strong association rules; S11: removing redundancy in rules, and obtaining minimum non-repetitive rules with correct order; S12: associating rules according to IP; S13: associating rules according to equipment; S14: storing association rules. The present invention can better perform association analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent terminal security technology, and in particular to a correlation analysis method based on industrial control system intrusion detection. Background Art

[0002] Industrial Control System (ICS) is mainly responsible for managing and controlling various industrial equipment to perform various tasks according to production requirements. As ICS gradually accesses the Internet and realizes functions such as data analysis and remote control, more and more industrial control systems are integrated with the Internet and move towards the process of informatization and intelligence. However, since the traditional industrial control design did not take into account external security issues at the beginning, it lacks security mechanisms and is vulnerable to attacks in an open network environment, but its defense capabilities are weak. In recent years, network attacks against ICS have occurred frequently, and security issues have become increasingly severe. As a result, security protection measures such as industrial firewalls and PLC vulnerability mining have emerged. However, these technologies are passive defense technologies and cannot defend against internal attacks on ICS. As a result, intrusion detection technology based on industrial control systems has emerged. Through real-time monitoring and analysis of communication behaviors in ICS, abnormal behaviors and attacks are discovered. ICS intrusion detection systems can be divided into feature-based intrusion detection and cycle-based intrusion detection. Feature-based intrusion detection mainly judges anomalies by analyzing various data features of ICS, mainly including analysis of traffic, log files, sensor value ranges, etc. There are two common methods. One is the detection method based on machine learning, which compares the traffic characteristics of normal operation of ICS and the change state of sensor values ​​with attack behaviors to discover anomalies in the system. Second, the rule-based detection method performs anomaly detection by matching the existing attack rule library. However, the intrusion detection system (IDS) rules are mainly single rules and can only be used to detect end-to-end single-step attacks. The detection method based on machine learning can only judge the security of the overall traffic and it is difficult to accurately locate the attack. With the rapid development of electronic technology and information technology, the attack method has also developed from a single attack to a complex APT (advanced persistent attack). APT attacks usually have the following characteristics: long-term, highly targeted, multi-layered, and concealed. For complex attack events such as APT in industrial control systems, it is difficult to identify them only through IDS components. Therefore, it is necessary to use correlation analysis technology to effectively associate the alarms of industrial control systems and extract useful security information. Summary of the invention

[0003] The content of the present invention is to provide an association analysis method based on industrial control system intrusion detection. The attack patterns in the IDS alarm set are mined through the FP-Growth algorithm, and the potential complex attack patterns in the IDS alarm set are discovered. Rules are screened according to the characteristics of the complex attacks, and the complex attack patterns are generated and expressed as association rules. The rule library in the industrial control system cloud is expanded to enhance the recognition ability of complex attacks.

[0004] According to an association analysis method based on industrial control system intrusion detection of the present invention, it comprises the following steps:

[0005] S1: Intrusion detection system data collection;

[0006] S2: extract attributes for association;

[0007] S3: Remove duplicates by time window tw1 and weight;

[0008] S4: Divide the alarm sequence;

[0009] S5: configure association analysis parameters;

[0010] S6: delete infrequent itemsets;

[0011] S7: construct FP-Tree;

[0012] S8: Get prefix pattern base;

[0013] S9: Recursively construct FP-Tree, generate conditional pattern base, and obtain frequent item sets;

[0014] S10: Generate association rules and calculate confidence, and filter out strong association rules;

[0015] S11: Remove redundancy in the rules and obtain the minimum non-repetitive rules in the correct order;

[0016] S12: associate rules by IP;

[0017] S13: Associating rules by device;

[0018] S14: Storage of association rules.

[0019] As a preferred embodiment, in S1, an IDS intrusion detection system is deployed in various devices in the industrial control system, and log monitoring, integrity detection, and application behavior monitoring are performed through the host-type IDS to monitor and collect host security events of the industrial control system; network security detection is performed on network data packets through the network-type IDS; and various alarms are obtained by deploying different IDSs as raw data for correlation analysis;

[0020] In S2, key attributes of various alarms are extracted to achieve a unified format representation of alarms.

[0021] As a preferred embodiment, in S3, for the alarms represented in the unified format in S2, a time window tw1 is selected, and duplicate alarms in each window are removed; similarity is calculated according to the weights of different attributes of different types of alarms and the specific types of alarms, and a similarity threshold min_sim of the alarms is set. When two alarms in the same time window reach the similarity threshold, they are regarded as duplicate alarms, and only the alarm that appears for the first time is retained, thereby obtaining a new alarm set;

[0022] In S4, for the alarm set in S3, the time window tw2 is selected, and the data in the same time window is divided into a one-dimensional sequence. Multiple one-dimensional sequences constitute a two-dimensional sequence. The attributes of each element in the two-dimensional sequence are converted into a string in a unified format, thereby obtaining a two-dimensional alarm sequence.

[0023] Preferably, in S5, the minimum support Min_support and minimum confidence min_conf parameters of the FP-Growth algorithm are selected, wherein the minimum support is used to determine the frequency of the alarm item. If the number of occurrences of the alarm item is less than the minimum support, the alarm item belongs to a non-frequent item set, and the item set containing the alarm item also belongs to a non-frequent item set, and the alarm item is directly deleted from the set; the minimum confidence refers to the conditional probability that the consequent occurs under the condition that the antecedent of the rule occurs. When the confidence of the rule is less than the minimum confidence, it means that the two do not belong to the same frequent item set and the two are not associated.

[0024] Preferably, in S6, for the grouped two-dimensional sequence obtained in S4, traverse each alarm item, use a hash table to count the occurrence frequency of the alarm item, delete the alarm item whose frequency is less than the minimum support Min_support, and obtain a frequent item set;

[0025] In S7, the frequent alarm items obtained in S6 are sorted, and the FP-Tree is constructed. The frequent item set is traversed again. The root node Root of the FP-Tree is first constructed, and the frequent alarms are inserted into the FP-Tree in sequence. If the current node does not exist in the FP-Tree, the current node is used as a child node of the root node; if the same prefix alarm set exists, the FP-Tree is traversed, and the first different alarm in the alarm sequence is inserted into the child node of the previous same alarm node, so as to ensure that the element items with high frequency of occurrence are closer to the root node and obtain the FP-Tree.

[0026] Preferably, in S8, a header table is constructed to link all nodes with the same name in the FP-Tree, and frequent itemsets are mined from the FP-Tree obtained in S7, and for each element in the header table, a prefix pattern base is obtained from the tree;

[0027] In S9, the prefix pattern base is used to generate the conditional pattern base, and a smaller FP-Tree is recursively constructed. The loop starts from S7 until there is only one sub-branch in the FP-Tree, and all frequent item sets of the seed elements of a frequent item set are obtained. S8 is repeated for other nodes in the item header table.

[0028] Preferably, in S10, an association rule is generated according to each frequent item set in S9; the association rule is in the form of A=>B, where A and B are sets of items respectively;

[0029] For the generated association rules, calculate their confidence; confidence refers to the probability that if a transaction contains item set A, it is also likely to contain item set B; the formula for calculating confidence is:

[0030] support(A∪B)=count(A∪B)

[0031]

[0032] The association rules whose confidence is greater than min_conf are selected, and the other rules are discarded, thus obtaining strong association rules.

[0033] Preferably, in S11, the strongly associated rules obtained in S10 are screened and processed to screen out non-repetitive rules, and the order of the antecedents and consequents of the rules is determined according to the time relationship of the alarms to obtain the minimum non-repetitive rules with the correct order.

[0034] As a preferred embodiment, in S12, for the non-repetitive rules obtained in S11, according to the characteristics of the complex attack itself, the minimum rules are combined and associated, and the IP similarity is used for combination. For the springboard chain attack between devices, the IP of the attack front and the IP of the attack back have a high similarity, and the rule similarity ip_sim is set. If the rule similarity is greater than the threshold, a longer complex attack rule is obtained after combination;

[0035] In S13, the non-repetitive rules obtained in S11 are associated according to the device name. The device name is an attribute of the alarm. For the complex attack chain within the same device in the industrial control system, there is a unified device name. Therefore, the rules with the same device name in the association rules are determined to be the association rules within the device.

[0036] As a preferred embodiment, in S14, the association rules represent the association relationship existing in the historical alarm set in the intrusion detection system, which belongs to the attack scenarios that occurred in the past. The complex attack scenario consists of multiple attack steps, that is, there is a one-to-many relationship between the complex attack and the single-step attacks contained therein. This relationship is stored in the cloud relational database MySQL, stored in two tables, and a knowledge base of complex attack scenarios of industrial control systems is established.

[0037] The present invention is based on the association analysis technology of the industrial control intrusion detection system, associates the complex attack scenarios inside the industrial control system, obtains logical association rules through alarm preprocessing, alarm sequence division, and association analysis algorithm, removes redundancy in the rules through rule screening, combines the association rules according to IP similarity and device, represents different categories of rules in XML language, and stores them in a database, thereby building a complex attack scenario knowledge base.

[0038] The present invention has the following beneficial effects:

[0039] 1) The present invention studies the format and characteristics of industrial control intrusion detection system alarms and provides a unified representation method for network alarm data.

[0040] 2) The present invention designs a method for associating complex attacks that can be used for industrial control cloud platforms, which can identify complex attacks in different periods in industrial control equipment, and further associate complex attacks within and between multiple devices in the industrial control system.

[0041] 3) The present invention provides a method for screening association rules, which can effectively remove redundant information in the rules, divide the rules by IP and device, automatically configure them into association rules, and store them in a database to establish an association rule knowledge base based on industrial control system intrusion detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a correlation analysis method based on intrusion detection of industrial control systems;

[0043] Figure 2 It is a schematic diagram of the attributes extracted from the alarms collected by the intrusion detection system;

[0044] Figure 3 It is a schematic diagram of dividing a two-dimensional alarm sequence in the present invention;

[0045] Figure 4 is a flow chart of the association analysis algorithm in the present invention;

[0046] Figure 5 It is the storage mode of the association rules in the database in the present invention. DETAILED DESCRIPTION

[0047] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments are only for explaining the present invention and are not intended to limit it.

[0048] Example

[0049] like Figure 1 As shown, this embodiment provides a correlation analysis method based on industrial control system intrusion detection, which includes the following steps:

[0050] S1: Intrusion Detection System (IDS) data collection;

[0051] In S1, an intrusion detection system (IDS) is deployed in various devices in the industrial control system. Log monitoring, integrity detection, and application behavior monitoring are performed through host-based IDS to monitor and collect host security events of the industrial control system; network security detection is performed on network data packets through network-based IDS; and by deploying different IDSs, multiple alarms are obtained as raw data for correlation analysis.

[0052] In the industrial control system, a network security component, namely the intrusion detection system (IDS), is introduced. The deployment of multiple intrusion detection systems in the system can comprehensively monitor the communication traffic of multiple protocols within the industrial control system to enhance the network security of the industrial control system. These IDS components include HIDS, which is used to perform functions such as log monitoring, integrity detection, and application behavior monitoring. They monitor and record host-related alarms of industrial control equipment. In addition, network-based IDS is introduced to perform network security detection on network data packets and traffic. For example, CAN IDS checks the control area network (CAN) communication and triggers an alarm once abnormal message data is found. Through the deployment of multiple IDS, a variety of security alarm data can be obtained as the initial data for correlation analysis.

[0053] S2: extract attributes for association;

[0054] In S2, key attributes of various alarms are extracted to achieve a unified format representation of alarms.

[0055] The alarm formats generated by various IDS are different. Generally, they include information such as device brand, model, threat level of alarm type, IP and Port, alarm type, name of the generated device, etc. CANIDS mainly detects CAN protocol, while HIDS mainly detects system behavior, so there is no information such as IP and Port. Based on this feature, we chose Figure 2The five-tuple in is used as the key attribute of association analysis, where the source IP and destination IP are used to determine whether multiple attacks of the same type belong to the same complex attack, the device ID is used to associate alarms between different devices, and the timestamp is used to determine whether multiple alarms are in the same time window. It is used to divide the minimum tuple of association analysis input and organize it into two-dimensional data. For alarms that do not contain key attributes, the corresponding attributes are filled with empty. For example, the alarm generated by CANIDS does not contain IP and Port, which are set to empty. When calculating the similarity later, it will be specially handled.

[0056] S3: Remove duplicates by time window tw1 and weight;

[0057] In S3, for the alarms represented in the unified format in S2, the time window tw1 is selected, and the duplicate alarms in each window are removed; according to the weights of different attributes of different types of alarms, the similarity is calculated according to the specific type of alarm, and the alarm similarity threshold min_sim is set. When two alarms in the same time window reach the similarity threshold, they are regarded as duplicate alarms, and only the alarm that appears for the first time is retained, thereby obtaining a new alarm set.

[0058] According to the data of the intrusion detection system manufacturer, within tw1, if the similarity of two alarms reaches a certain threshold, they can be regarded as duplicate alarms, and only the first alarm can be retained. In this way, deduplication is performed by time window, and only duplicate alarms belonging to the same time window are processed, and the same alarms in different time windows will not be removed, ensuring that the frequent itemsets in the subsequent association analysis algorithm will not be destroyed due to deduplication. Table 1 gives the weights of different attributes of different types of alarms.

[0059] Table 1 Weights of different attributes of different types of alarms

[0060] property Similarity Standard S W weight 1 Weight 2 Weight 3 Source IP Completely equal / same network segment 20% 20% 0% Destination IP Completely equal / same network segment 20% 20% 0% Source Port Completely equal 10% 0% 0% Destination Port Completely equal 10% 0% 0% Device ID Completely equal 20% 30% 50% Alarm type ID Completely equal 20% 30% 50%

[0061] The similarity calculation formula of two alarms is as follows:

[0062] st,n=6

[0063] Corr(E1,E2)=0,Type1=HIDS / CANIDS,Type2=NIDS

[0064]

[0065] Among them, for the two alarms E1 and E2 in similarity calculation, the similarity calculation is different according to the type of alarm. If the two alarms belong to different types of IDS, the similarity between the two is 0, and the order of alarms can be exchanged. For other situations, three different weights are set according to three situations. The similarity is calculated according to the specific type of alarm, and min_sim is set. When the similarity sim>=min_sim and in the same time window, it is regarded as a duplicate alarm.

[0066] S4: Divide the alarm sequence;

[0067] In S4, for the alarm set in S3, the time window tw2 is selected, and the data in the same time window is divided into a one-dimensional sequence. Multiple one-dimensional sequences constitute a two-dimensional sequence. The attributes of each element in the two-dimensional sequence are converted into a string in a unified format, thereby obtaining a two-dimensional alarm sequence.

[0068] Set the time window tw2 as the division interval of the one-dimensional alarm sequence, such as Figure 3 , the setting of this value is associated with the cycle of complex attacks. Setting different values ​​can mine association rules of different cycles, so this value can be set according to the characteristics of the data set. Then it is necessary to sort the alarm set in ascending order by timestamp, obtain the start time start_time of the timestamp, add the first element to the current alarm sequence, traverse the alarm set, and add the alarms whose time interval with the current start time is less than tw2 to the current alarm sequence. When encountering the first alarm outside the current time interval, update the start time of the interval to start_time+tw2, and restart a new round of division. Repeat this process until all alarms are processed. However, there are special cases that need to be considered. If there is no element in the current time interval, or there is only one element in the time interval, at this time, it is necessary to consider merging the elements of the two time intervals to ensure that the number of elements in the alarm sequence is greater than one. This can avoid invalid item sets and affect the correctness of association analysis.

[0069] S5: configure association analysis parameters;

[0070] In S5, the minimum support Min_support and minimum confidence min_conf parameters of the FP-Growth algorithm are selected, where the minimum support is used to determine the frequency of the warning item. If the number of occurrences of the warning item is less than the minimum support, the warning item belongs to the infrequent item set, and the item set containing the warning item also belongs to the infrequent item set, and the warning item is directly deleted from the set; the minimum confidence refers to the conditional probability that the consequent (conclusion) of the rule occurs under the condition that the antecedent (premise) of the rule also occurs. When the confidence of the rule is less than the minimum confidence, it means that the two do not belong to the same frequent item set and the two are not related.

[0071] S6: delete infrequent itemsets;

[0072] In S6, for the grouped two-dimensional sequence obtained in S4, traverse each alarm item, use the hash table to count the occurrence frequency of the alarm item, delete the alarm items whose frequency is less than the minimum support Min_support, and obtain the frequent item set. According to the Apriori theorem, the superset of the infrequent item set must not be a frequent item set, so the infrequent item set is deleted from the set to obtain the frequent item set.

[0073] S7: construct FP-Tree;

[0074] In S7, the frequent alarm items obtained in S6 are sorted, and the FP-Tree is constructed. The frequent item set is traversed again. The root node Root of the FP-Tree is first constructed, and the frequent alarms are inserted into the FP-Tree in sequence. If the current node does not exist in the FP-Tree, the current node is used as a child node of the root node; if the same prefix alarm set exists, the FP-Tree is traversed, and the first different alarm in the alarm sequence is inserted into the child node of the previous same alarm node, so as to ensure that the element items with high frequency of occurrence are closer to the root node and obtain the FP-Tree.

[0075] For the frequent alarm sets obtained from S6, they need to be sorted according to their frequency, and these alarms are used to build a FP-Tree (Frequent Pattern Tree). The algorithm flow chart is as follows: Figure 4 shown.

[0076] First, the frequent alarm sets in S6 are sorted to determine their frequency. This sorting operation helps ensure that frequent alarms can be inserted in order according to their frequency when constructing the FP-Tree. Next, the root node of the FP-Tree is created, usually called Root, which does not contain any frequent alarms and will serve as the starting point of the entire FP-Tree.

[0077] Then, according to the sorted order of frequent alarms, these frequent alarms are inserted into the FP-Tree in sequence. If the frequent alarm to be inserted does not exist in the FP-Tree, it will become a child node of the root node.

[0078] However, if there is an alarm set with the same prefix as the current frequent alarm, it is necessary to traverse the FP-Tree, find the last node of the same alarm set, and then insert the current alarm into the child node of that node. The purpose of this is to ensure that the elements with high frequency are closer to the root node, so that they are easier to access.

[0079] Through this series of operations, we finally get a complete FP-Tree, which contains the hierarchical information of frequent alarms. Such an FP-Tree structure is helpful for further data mining and association rule analysis.

[0080] S8: Get prefix pattern base;

[0081] In S8, the header table is constructed to link all nodes with the same name in the FP-Tree. Frequent itemsets are mined from the FP-Tree obtained in S7. For each element in the header table, the prefix pattern base is obtained from the tree.

[0082] In the process of constructing FP-Tree, the prefix pattern base of FP-Tree can be obtained. The prefix pattern base refers to the prefix path of each frequent item in FP-Tree, including all prefixes of the frequent item. When constructing FP-Tree, the insertion of each frequent item will generate a path from the root node to the leaf node, and the nodes on this path constitute the prefix path of the frequent item. By retaining this prefix path information in the process of constructing FP-Tree, the prefix pattern base of FP-Tree can be obtained.

[0083] The information of prefix pattern bases is very important for frequent itemsets mining in FP-growth algorithm, because they can be used to generate conditional pattern bases, further recursively construct FP-Tree and mine frequent itemsets.

[0084] S9: Recursively construct FP-Tree, generate conditional pattern base, and obtain frequent item sets;

[0085] In S9, the prefix pattern base is used to generate the conditional pattern base, and a smaller FP-Tree is recursively constructed. The loop starts from S7 until there is only one sub-branch in the FP-Tree, and all frequent item sets of the seed elements of a frequent item set are obtained. S8 is repeated for other nodes in the item header table.

[0086] Prefix Pattern Base is used to generate Conditional Pattern Base in FP-growth algorithm, which is a key step in frequent item set mining. Traverse each frequent item set (or frequent node) in FP-Tree, traverse layer by layer from the bottom to obtain the prefix pattern base of each frequent item. For each frequent item, create an empty conditional pattern base list. Start from the bottom of FP-Tree and traverse upward from the leaf node of the current frequent item.

[0087] During the traversal process, record each node (i.e., prefix item) on the path and the corresponding number of occurrences. The prefix items on the traversal path and their number of occurrences form a conditional pattern base entry (prefix item set and corresponding number of occurrences). Add the generated conditional pattern base entry to the conditional pattern base list of the corresponding frequent item. Continue to traverse other paths of the FP-Tree, generate the corresponding conditional pattern base entries and add them to the conditional pattern base list of the corresponding frequent item. When the entire traversal of the FP-Tree is completed, each frequent item has an associated conditional pattern base list, which contains the prefix pattern base of the frequent item. Repeat the above steps to generate the corresponding conditional pattern base list for each frequent item set.

[0088] Use the conditional pattern base list to continue recursively constructing the FP-Tree until there is only one branch in the FP-Tree. Assume that there are only three nodes X, Y, and Z on this branch, and the current frequent item set is D, then the frequent 2-item sets of D include {X, D}, {Y, D}, and {Z, D}. Then you can combine frequent item sets. Once you get a list of all frequent item sets, you can combine them into larger frequent item sets. Continue iterating and keep looking for larger frequent item sets.

[0089] S10: Generate association rules and calculate confidence, and filter out strong association rules;

[0090] In S10, association rules are generated based on each frequent item set in S9; the form of association rules is A=>B, where A and B are sets of items respectively; a frequent item set can generate multiple association rules by trying different combinations. However, when alarms are used as association rules, there are requirements for the time sequence of rules, where the time of A must be earlier than the time of B, so the order of rules needs to be judged and adjusted.

[0091] For the generated association rules, calculate their confidence; confidence refers to the probability that if a transaction contains item set A, it is also likely to contain item set B; the formula for calculating confidence is:

[0092] support(A∪B)=count(A∪B)

[0093]

[0094] The association rules whose confidence is greater than min_conf are selected, and the other rules are discarded, thus obtaining strong association rules.

[0095] S11: Remove redundancy in the rules and obtain the minimum non-repetitive rules in the correct order;

[0096] In S11, the strongly associated rules obtained in S10 are screened and processed to screen out non-repetitive rules, and the order of the rule antecedents and consequents is determined according to the time relationship of the alarms to obtain the minimum non-repetitive rules with the correct order.

[0097] S10 outputs rules representing unknown alarm patterns. There are redundant rules, and the rules are expressed as various patterns such as 1:1, 1:n, and m:n. Taking 1:1 as an example, the antecedent and the consequent of the rule are both single rules, and the two can be combined into a complex rule of length 2 through the logical relationship between the rules. However, there may be redundancy between rules of different patterns. Therefore, in order to minimize the impact of redundancy on the final rules, only 1:1 rules are filtered out in the rule screening module. By performing credible forensics on the antecedent and consequent of the rules, the order of the 1:1 rules can be judged, and the minimum rule without repetition can be filtered out. Non-repetition means that the set composed of the rules is not repeated, and the minimum rule means that the rule belongs to the 1:1 pattern.

[0098] S12: associate rules by IP;

[0099] In S12, for the non-repetitive rules obtained in S11, according to the characteristics of the complex attack itself, the minimum rules are combined and associated, and the IP similarity is used for combination. For the springboard chain attack between devices, the IP of the attack antecedent and the IP of the attack post have a high similarity. The rule similarity ip_sim is set. If the rule similarity is greater than the threshold, a longer complex attack rule is obtained after combination. For example: there are association rules A=>B and B=>C. Through mathematical reasoning, a longer association rule A=>B=>C can be further obtained; in addition, if there are association rules A=>B and C=>D, and B and C reach the similarity threshold on the source IP and the destination IP, then the association rule A=>B=>C=>D can also be obtained. For such multi-step rules with a length greater than or equal to 2, it is a logical single-step rule obtained by association analysis, which is often manifested in the form of a multi-step attack. Through the above association analysis algorithm, a group of association rules are obtained by IP similarity. The rule consists of 4 steps, which reflects the attack process of a complex attack. The rules associated by IP are as follows:

[0100] Step1:1.1.1.1-2.2.2.2-System Service Detection-PLC

[0101] Step2:2.2.2.2-3.3.3.3-Survival Detection Scan-DCS

[0102] Step 3: 3.3.3.3-4.4.4.4-Password cracking-DCS

[0103] Step4:4.4.4.4-1.1.1.1-Flooding Attack-CNC

[0104] S13: Associating rules by device;

[0105] In S13, the non-repetitive rules obtained in S11 are associated according to the device name. The device name is an attribute of the alarm. For the complex attack chain within the same device in the industrial control system, there is a unified device name. Therefore, the rules with the same device name in the association rules are determined to be the association rules within the device.

[0106] The rules obtained by S11 can be processed from another dimension, combining the rules with exactly the same device names together to obtain longer compound chain rules as the compound rules inside the device. For example: there are association rules A=>B and C=>D, and A and B both belong to device 1, and C and D also come from device 1, then a set of candidate rules inside the device such as A=>B=>C=>D or C=>D=>A=>B can be obtained. By further determining the order of the rules, the association rules can be obtained. After performing sequence judgment in the original data, it is found that "port scanning" and "password cracking" are always before "system CPU monitoring" and "system memory monitoring", so the association rules inside the device are obtained, and the attack scenario on the device PLC is successfully restored. The rules associated with industrial control equipment are as follows:

[0107] Step 1: 99.99.99.22-192.168.1.1-Port Scan-PLC

[0108] Step 2: 99.99.99.22-192.168.1.1-Password cracking-PLC

[0109] Step 3: System CPU monitoring-PLC

[0110] Step 4: System memory monitoring-PLC

[0111] S14: Storage of association rules.

[0112] In S14, the association rules represent the association relationship existing in the historical alarm set in the intrusion detection system, which belongs to the attack scenarios that occurred in the past. The complex attack scenario consists of multiple attack steps, that is, there is a one-to-many relationship between the complex attack and the single-step attacks contained therein. This relationship is stored in the cloud relational database MySQL, using two tables to establish a knowledge base of complex attack scenarios of industrial control systems.

[0113] In order to establish a complex attack knowledge base for historical alarms of industrial control systems, the results of association analysis need to be persistently stored in the database. For an association rule, it often includes several single-step rules, so there is a 1:n relationship between the association rule and the single-step rules it contains. For this relationship model, two tables can be used to represent two entity objects respectively, and the mapping relationship between the two can be established through the foreign key connection between the tables. Two new tables are created in the data set. The table structure is as follows: Figure 5 As shown, compound_rule represents the association rule, single_rule represents the single-step rule included in the association rule, compound_rule stores the rule group ID (groupId), name (name), length (length), rule detection time (time) and other information, single_rule stores the single-step rule IP, alarm type, device name, internal sequence ID and other information, one record in compound_rule corresponds to multiple records in single_rule, multiple rules belonging to the same group have the same group ID (groupId), and are arranged in ascending order of seq to obtain the corresponding single-step attack, thus, the storage structure of the table and the logical association rule can be converted to each other.

[0114] The present invention and its embodiments are described schematically above, and the description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by it and designs a structural method and an embodiment similar to the technical solution without creativity without departing from the purpose of the invention, they shall all fall within the protection scope of the present invention.

Claims

1. A correlation analysis method based on intrusion detection in industrial control systems, Features: The following steps are involved: S1: Intrusion Detection System Data Collection; S2: extract attributes for association; S3: By time window tw 1 and weight removal; S4: Divide the alarm sequence; S5: configure association analysis parameters; S6: delete infrequent itemsets; S7: construct FP-Tree; S8: Get prefix pattern base; S9: Recursively construct FP-Tree, generate conditional pattern base, and obtain frequent item sets; S10: Generate association rules and calculate confidence, and select strong association rules; S11: Remove redundancy in the rules and obtain the minimum non-repetitive rules in the correct order; S12: associate rules by IP; S13: Associating rules by device; S14: storage of association rules; In S1, IDS intrusion detection systems are deployed in various devices in the industrial control system. Log monitoring, integrity detection, and application behavior monitoring are performed through host-based IDS to monitor and collect host security events of the industrial control system; network security detection is performed on network data packets through network-based IDS; and various alarms are obtained by deploying different IDSs as raw data for correlation analysis; In S2, key attributes of multiple alarms are extracted to achieve a unified format representation of alarms; In S3, for the alarms in the unified format in S2, select the time window tw 1 , and remove duplicate alarms in each window; calculate similarity based on the weights of different attributes of different types of alarms and the specific types of alarms, set the alarm similarity threshold min_sim, and when two alarms in the same time window reach the similarity threshold, they are considered duplicate alarms, and only the first alarm is retained, thus obtaining a new alarm set; In S4, for the alarm set in S3, select the time window tw 2 , divided by time window, the data in the same time window is organized into a one-dimensional sequence, multiple one-dimensional sequences constitute a two-dimensional sequence, and each attribute of each element in the two-dimensional sequence is converted into a string in a unified format, thereby obtaining a two-dimensional alarm sequence; In S5, the minimum support Min_support and minimum confidence min_conf parameters of the FP-Growth algorithm are selected, where the minimum support is used to determine the frequency of the alarm item. If the number of occurrences of the alarm item is less than the minimum support, the alarm item belongs to the infrequent item set, and the item set containing the alarm item also belongs to the infrequent item set, and the alarm item is directly deleted from the set; the minimum confidence refers to the conditional probability that the consequent also occurs under the condition that the antecedent of the rule occurs. When the confidence of the rule is less than the minimum confidence, it means that the two do not belong to the same frequent item set and the two are not related; In S6, for the grouped two-dimensional sequence obtained in S4, each alarm item is traversed, the occurrence frequency of the alarm item is counted using a hash table, and the alarm items with a frequency less than the minimum support Min_support are deleted to obtain a frequent item set; In S7, the frequent alarm items obtained in S6 are sorted, and the FP-Tree is constructed. The frequent item set is traversed again. The root node Root of the FP-Tree is first constructed, and the frequent alarms are inserted into the FP-Tree in sequence. If the current node does not exist in the FP-Tree, the current node is used as a child node of the root node; if the same prefix alarm set exists, the FP-Tree is traversed, and the first different alarm in the alarm sequence is inserted into the child node of the previous same alarm node, so as to ensure that the element items with high frequency of occurrence are closer to the root node, and the FP-Tree is obtained; In S8, construct the header table, link all nodes with the same name in the FP-Tree, and mine frequent itemsets from the FP-Tree obtained in S7. For each element in the header table, obtain the prefix pattern base from the tree; In S9, the prefix pattern base is used to generate the conditional pattern base, and a smaller FP-Tree is recursively constructed. The loop starts from S7 until there is only one sub-branch in the FP-Tree, and all frequent item sets of the seed element of a frequent item set are obtained. S8 is repeated for other nodes in the item header table. In S10, an association rule is generated according to each frequent item set in S9; the form of the association rule is A=>B, where A and B are sets of items respectively; For the generated association rules, calculate their confidence; Confidence refers to the probability that if a transaction contains item set A, it is also likely to contain item set B; the formula for calculating confidence is: support(AUB)=count(AUB) Filter out the association rules whose confidence is greater than min_conf, and discard the other rules, thus obtaining strong association rules; In S11, the strong association rules obtained in S10 are screened and processed to screen out non-repetitive rules, and the order of the rule antecedents and consequents is determined according to the time relationship of the alarms to obtain the minimum non-repetitive rules with the correct order; In S12, for the non-repetitive rules obtained in S11, the minimum rules are combined and associated according to the characteristics of the complex attack itself, and the IP similarity is used for combination. For the springboard chain attack between devices, the IP of the attack front and the IP of the attack back have a high similarity. The rule similarity ip_sim is set. If the rule similarity is greater than the threshold, a longer complex attack rule is obtained after combination; In S13, the non-repetitive rules obtained in S11 are associated according to the device name. The device name is an attribute of the alarm. For the complex attack chain within the same device in the industrial control system, there is a unified device name. Therefore, the rules with the same device name in the association rules are determined as the association rules within the device; In S14, the association rules represent the association relationships in the historical alarm set in the intrusion detection system, which belong to the attack scenarios that occurred in the past. Complex attack scenarios are composed of multiple attack steps, that is, there is a one-to-many relationship between complex attacks and the single-step attacks contained therein. This relationship is stored in the cloud-based relational database MySQL, using two tables to establish a knowledge base of complex attack scenarios for industrial control systems.

Citation Information

Patent Citations

  • Association analysis method for power network alarm information

    CN114281864A