Industrial control audit method and device based on industrial Internet
Through dual auditing of industrial control protocol data and network behavior data, combined with anomaly analysis and level assessment, the problem of insufficient accuracy and efficiency of industrial control system security audits in the industrial Internet is solved, and the risk of attacks on industrial control networks is significantly reduced.
Patent Information
- Application Number
- CN202410882111.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The security audit accuracy and efficiency of industrial control systems in the Industrial Internet are insufficient and difficult to deal with complex security threats and attack risks.
By obtaining industrial control protocol data and network behavior data, we conduct anomaly analysis based on protocol rule templates, and combine network traffic statistical characteristics and operating program differences to conduct double audits and level assessments to identify network security events, issue timely alerts, and reduce attack risks.
It achieves accurate security audits of industrial control networks, detects security incidents in a timely manner, significantly reduces attack risks, and improves security stability.
Smart Images

Figure CN118413405B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network data auditing, and in particular to an industrial control auditing method and device based on industrial Internet. Background Art
[0002] As the integration of industrial Internet and information network accelerates, traditional network communication technology has been widely used in industrial control networks. Industrial Internet is developing towards the direction of full interconnection between man, machine and things, gradually changing from the original interconnection mode for human interaction. This transformation not only expands the functions and boundaries of the existing cyberspace, but also subverts the closed pattern of traditional industrial control systems. Security issues are becoming more prominent between the control layer, device layer, network layer and other layers of the industrial Internet, and security risks are constantly superimposed, forming a complex security situation.
[0003] Specifically, with the rise of hacker conferences, white hat communities, and open source communities, methods for attacking industrial control systems have become increasingly accessible. A large number of security vulnerabilities and exploitation methods in industrial control system software and hardware devices can be obtained through public or semi-public channels, which greatly increases the risk of industrial control networks being attacked. This trend has brought unprecedented challenges to the security of industrial control systems. The current manual auditing method is difficult to meet current application needs, and a more comprehensive and efficient network security auditing strategy is needed to deal with it. Summary of the invention
[0004] The present invention provides an industrial control audit method and device based on the industrial Internet, which are used to solve the defects of insufficient accuracy and efficiency of industrial control system security audit in the prior art.
[0005] The present invention provides an industrial control audit method based on the industrial Internet, comprising:
[0006] Obtain industrial control protocol data and network behavior data within the audit period;
[0007] Determine the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parse the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determine the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data;
[0008] Determine a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data;
[0009] Based on the first audit result and the second audit result, a level assessment is performed on the network security event to obtain a network security assessment result for the time period to be audited.
[0010] According to an industrial control audit method based on the industrial Internet provided by the present invention, the control information, complete message data and data area message data based on the industrial control protocol data determine the first audit result, including:
[0011] Determining a control anomaly analysis result of the industrial control protocol data based on sample control information of the sample industrial control protocol data marked as normal and control information of the industrial control protocol data;
[0012] Based on the trained global anomaly analysis model, an anomaly analysis is performed on the complete message data of the industrial control protocol data to obtain an anomaly analysis result of the complete message of the industrial control protocol data; wherein the global anomaly analysis model is obtained by training based on the sample complete message data of the sample industrial control protocol data and the label of the sample industrial control protocol data;
[0013] Based on the trained local anomaly analysis model, an anomaly analysis is performed on the data area message data of the industrial control protocol data to obtain an anomaly analysis result of the data area message of the industrial control protocol data; wherein the local anomaly analysis model is obtained by training based on the sample data area message data of the sample industrial control protocol data and the label of the sample industrial control protocol data;
[0014] The first audit result is determined based on the control anomaly analysis result, the complete message anomaly analysis result and the data area message anomaly analysis result of the industrial control protocol data.
[0015] According to an industrial control audit method based on the industrial Internet provided by the present invention, the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol in the protocol database is determined based on the following steps:
[0016] Determine all common subsequences and the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0017] Determine the difference factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the sequence length of the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0018] Determine a sequence consistency factor based on the sum of the sequence lengths of all common subsequences between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, the sequence lengths of the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the difference factor;
[0019] Calculating the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and determining a sequence similarity factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol and the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0020] Based on the sequence consistency factor and the sequence similarity factor, the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol is determined.
[0021] According to an industrial control audit method based on the industrial Internet provided by the present invention, the protocol rule templates of various industrial control protocols in the protocol database are constructed based on the following steps:
[0022] Feature extraction step: extracting text features of each sample industrial control protocol data in the protocol database; wherein the text features of any sample industrial control protocol data are determined based on the word frequency and inverse document frequency of each paragraph in the any sample industrial control protocol data;
[0023] Clustering step: clustering each sample industrial control protocol data based on the current cluster number setting value and the text features of each sample industrial control protocol data to obtain multiple current clusters and obtain the cluster center of each cluster;
[0024] Iteration step: clustering and evaluating the multiple current clusters to obtain a current cluster evaluation value; if the current cluster evaluation value is greater than the current optimal evaluation value, updating the current optimal evaluation value based on the current cluster evaluation value, and updating the current optimal cluster and the cluster centers of each current optimal cluster based on the multiple current clusters and their cluster centers; increasing the current cluster quantity setting value, and repeating the clustering step until the current cluster quantity setting value reaches a preset value;
[0025] Template determination step: based on the cluster centers of each current best clustering cluster, determine the protocol rule templates of various industrial control protocols.
[0026] According to an industrial control audit method based on the industrial Internet provided by the present invention, the second audit result is determined based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data, including:
[0027] Based on the statistical characteristics of the network traffic per unit time in the network behavior data, determine the network traffic anomaly analysis result; wherein the statistical characteristics include the average value, variance and quantile of the network traffic per unit time;
[0028] And / or, based on the current running program information in the network behavior data and the historical running program information in the historical time period, determine the current running program information that does not match the historical running program information as a suspected abnormal running program; based on the number of times the suspected abnormal running program runs in each unit time of the time period to be audited, and the memory information of the suspected abnormal running program, determine the running program abnormality analysis result;
[0029] The second audit result is determined based on the network traffic anomaly analysis result and / or the running program anomaly analysis result.
[0030] According to an industrial control audit method based on industrial Internet provided by the present invention, the determining of the second audit result further includes:
[0031] If the network traffic anomaly analysis result or the running program anomaly analysis result is abnormal, a network security alarm is issued without interrupting power or network;
[0032] If both the network traffic anomaly analysis result and the running program anomaly analysis result are abnormal, a network security alarm is issued under the premise of disconnecting the network but not the power supply.
[0033] According to an industrial control audit method based on the industrial Internet provided by the present invention, the level assessment of the network security event is performed based on the first audit result and the second audit result to obtain the network security assessment result of the time period to be audited, including:
[0034] Determine a third audit result based on the binding status of the IP address and the MAC address, the access relationship between at least two devices, and the devices present in the industrial control network during the audit period;
[0035] Based on the first audit result, the second audit result and the third audit result, a level assessment is performed on the network security event to obtain a network security assessment result for the time period to be audited.
[0036] The present invention also provides an industrial control audit device based on the industrial Internet, comprising:
[0037] A data acquisition unit, used to acquire industrial control protocol data and network behavior data within the audit period;
[0038] A first audit unit is used to determine the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parse the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determine a first audit result based on the control information, complete message data and data area message data of the industrial control protocol data;
[0039] A second audit unit, configured to determine a second audit result based on statistical characteristics of network traffic per unit time in the network behavior data and / or based on a difference between current running program information and historical running program information in the network behavior data;
[0040] The security assessment unit is used to perform a level assessment on the network security event based on the first audit result and the second audit result to obtain the network security assessment result of the time period to be audited.
[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an industrial control audit method based on the industrial Internet as described above is implemented.
[0042] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements any of the industrial control audit methods based on the industrial Internet as described above.
[0043] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the industrial control audit methods based on the industrial Internet as described above.
[0044] The industrial control audit method and device based on the industrial Internet provided by the present invention determine the protocol rule template corresponding to the industrial control protocol data through the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parse the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determine the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; determine the second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data; thereby, the network security incidents are graded and evaluated based on the first audit result and the second audit result, and the network security evaluation result of the time period to be audited is obtained. By performing dual industrial control security audits on the industrial control protocol data and the network behavior data, it is possible to timely and accurately discover whether a network security incident has occurred in the industrial control network, thereby greatly reducing the risk of the industrial control network being attacked by a network. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 It is a flow chart of the industrial control audit method based on the industrial Internet provided by the present invention;
[0047] Figure 2 It is a flowchart of the first audit result determination method provided by the present invention;
[0048] Figure 3 It is a flow chart of the similarity calculation method provided by the present invention;
[0049] Figure 4 It is a structural schematic diagram of an industrial control audit device based on the industrial Internet provided by the present invention;
[0050] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Figure 1 It is a flow chart of the industrial control audit method based on the industrial Internet provided by the present invention, such as Figure 1 As shown, the method includes:
[0053] Step 110, obtaining industrial control protocol data and network behavior data within the time period to be audited;
[0054] Step 120, determining the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parsing the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determining the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data;
[0055] Step 130, determining a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data;
[0056] Step 140: perform a level assessment on the network security event based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited.
[0057] Here, industrial control protocol data and network behavior data are two types of important data generated in industrial control systems (ICS). Among them, the devices and controllers in the industrial control system usually communicate and interact through specific protocols. These protocols are usually designed for the industrial control field. Therefore, industrial control protocol data includes commands, data, status information, etc. transmitted between devices, which is the basis for the normal operation and interaction of the control system; industrial control systems are usually deployed in a network environment, and devices communicate through the network. Therefore, network behavior data is the data traffic generated by industrial control devices in the network, including communication between devices, transmission of control commands, transmission of data, etc. These data can be captured and analyzed through network packet capture tools or network traffic monitoring equipment. It can be seen that the industrial control protocol data and network behavior data in the audit period are very important for the security audit and monitoring of industrial control systems. By analyzing these data, security risks, abnormal behaviors and potential attacks in the system can be identified, helping to timely discover and respond to security threats and ensure the safe and stable operation of industrial control systems.
[0058] Specifically, for industrial control protocol data, the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the pre-built protocol database can be calculated to determine the protocol rule template corresponding to the industrial control protocol data, so that the industrial control protocol data can be parsed based on the protocol rule template corresponding to the industrial control protocol data to determine the control information of the industrial control protocol data, and the first audit result can be determined based on the control information of the industrial control protocol data, the complete message data corresponding to the industrial control protocol data, and the data area message data (i.e., the message data of the data area) . Among them, the control information of the industrial control protocol data includes control commands, control points, and control values. In some embodiments, if the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the pre-built protocol database is low, it is determined that the industrial control protocol data does not match the format of various industrial control protocols, and the first audit result can be directly determined to be abnormal.
[0059] In some embodiments, Figure 2 As shown, the following steps can be used to determine the first audit result:
[0060] Step 210, determining a control abnormality analysis result of the industrial control protocol data based on the sample control information of the sample industrial control protocol data marked as normal and the control information of the industrial control protocol data;
[0061] Step 220, performing an anomaly analysis on the complete message data of the industrial control protocol data based on the trained global anomaly analysis model to obtain an anomaly analysis result of the complete message of the industrial control protocol data; wherein the global anomaly analysis model is trained based on the sample complete message data of the sample industrial control protocol data and the label of the sample industrial control protocol data;
[0062] Step 230, performing an anomaly analysis on the data area message data of the industrial control protocol data based on the trained local anomaly analysis model to obtain an anomaly analysis result of the data area message of the industrial control protocol data; wherein the local anomaly analysis model is obtained by training based on the sample data area message data of the sample industrial control protocol data and the label of the sample industrial control protocol data;
[0063] Step 240: Determine the first audit result based on the control anomaly analysis result, the complete message anomaly analysis result and the data area message anomaly analysis result of the industrial control protocol data.
[0064] Here, before the formal audit is conducted, sample industrial control protocol data generated during the normal operation of the equipment can be collected in advance, and the label of the sample industrial control protocol data is normal. Since the control information generated when the equipment in the industrial control system is running stably is also stable, the control anomaly analysis result of the industrial control protocol data can be determined based on the sample control information of the sample industrial control protocol data marked as normal and the control information of the industrial control protocol data to be audited. In some embodiments, if the control information of the industrial control protocol data to be audited has not appeared in the sample control information of the sample industrial control protocol data marked as normal, the control anomaly analysis result can be determined to be abnormal.
[0065] On the other hand, the complete message data of the industrial control protocol data can also be analyzed for abnormalities based on the trained global abnormality analysis model, and the data area message data of the industrial control protocol data can be analyzed for abnormalities based on the trained local abnormality analysis model, so as to obtain the complete message abnormality analysis results and the data area message abnormality analysis results of the industrial control protocol data respectively. Among them, by analyzing the complete message data and the data area message data of the industrial control protocol data respectively, the abnormality detection of the message data can be performed from two directions: the global information of the complete message itself and the local information of the data area message data. Subsequently, based on the control abnormality analysis results, the complete message abnormality analysis results and the data area message abnormality analysis results of the industrial control protocol data, the first audit result is comprehensively determined. It can be seen that by further detecting the abnormality of the industrial control protocol data from the perspective of the message data, the control abnormality analysis results from the above-mentioned control information perspective can be supplemented, thereby improving the accuracy of the abnormality detection results of the industrial control protocol data. It should be noted that the global anomaly analysis model and the local anomaly analysis model can be constructed based on neural networks (such as autoencoders, long short-term memory networks, etc.), and are trained based on the sample complete message data of the sample industrial control protocol data and the labels of the sample industrial control protocol data, as well as the sample data area message data of the sample industrial control protocol data and the labels of the sample industrial control protocol data, respectively.
[0066] In order to perform accurate anomaly analysis on industrial control protocol data, the correct parsing of industrial control protocol data is the core, and the basis for determining whether the industrial control protocol data can be correctly parsed lies in accurately determining the protocol rule template corresponding to the industrial control protocol data. Therefore, in order to ensure the accuracy of anomaly analysis of industrial control protocol data, an efficient and accurate similarity measurement method is proposed to determine the similarity between industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database. The accuracy and efficiency of similarity measurement are improved by combining the similarity of character positions, the similarity of character sequences and structures, and the continuity consistency between texts.
[0067] Specifically, if Figure 3 As shown, the following steps can be used to determine the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol in the protocol database:
[0068] Step 310, determining all common subsequences and the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0069] Step 320, determining a difference factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the sequence length of the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0070] Step 330, determining a sequence consistency factor based on the sum of sequence lengths of all common subsequences between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, the sequence lengths of the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the difference factor;
[0071] Step 340, calculating the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and determining a sequence similarity factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol and the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0072] Step 350: Determine the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol based on the sequence consistency factor and the sequence similarity factor.
[0073] Here, all common subsequences between the industrial control protocol data and the protocol rule template of any type of industrial control protocol and the longest common subsequence therein can be determined. The difference factor is determined based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of this type of industrial control protocol, and the sequence lengths of the industrial control protocol data and the protocol rule template of this type of industrial control protocol. Among them, the difference factor is used to limit the repeated effects of the longest common subsequence and the common subsequence on the similarity. In some embodiments, the difference factor can be calculated using the following formula:
[0074]
[0075] Among them, d is the difference factor, L LCS is the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of this type of industrial control protocol, p is the sequence length of the industrial control protocol data, q is the sequence length of each protocol rule template of this type of industrial control protocol, and α is the first adjustment factor, which can be set in advance.
[0076] Subsequently, the sequence consistency factor can be determined based on the sum of the sequence lengths of all common subsequences between the industrial control protocol data and the protocol rule template of the industrial control protocol of this type, the sequence lengths of the industrial control protocol data and the protocol rule template of the industrial control protocol of this type, and the difference factors obtained above. Among them, the sequence consistency factor can reflect the impact of continuous consistency on text similarity. In some embodiments, the sequence consistency factor can be calculated using the following formula:
[0077]
[0078] Among them, suc is a sequence consistency factor, Sop(D, T) is the sum of the sequence lengths of all common subsequences between the industrial control protocol data D and the protocol rule template T of this type of industrial control protocol, and β is a second adjustment factor, which can be preset.
[0079] Calculate the edit distance between the industrial control protocol data and the protocol rule template of the industrial control protocol of this type, and determine the sequence similarity factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of the industrial control protocol of this type and the edit distance between the industrial control protocol data and the protocol rule template of the industrial control protocol of this type. Here, the sequence similarity factor comprehensively considers the longest common subsequence and edit distance between the two texts, and reflects the similarity of the character positions between the two texts and the similarity of the character sequences and structures. In some embodiments, the sequence similarity factor can be calculated using the following formula:
[0080]
[0081] Among them, sos is the sequence similarity factor, L ED It is the edit distance between the industrial control protocol data and the protocol rule template of this type of industrial control protocol.
[0082] Based on the above sequence consistency factor and the above sequence similarity factor, the similarity between the industrial control protocol data and the protocol rule template of the industrial control protocol of the same type can be determined. For example, the above sequence consistency factor and the above sequence similarity factor can be summed or weighted to obtain the similarity between the industrial control protocol data and the protocol rule template of the industrial control protocol of the same type.
[0083] In other embodiments, the protocol rule templates of various industrial control protocols in the protocol database can be constructed based on the following steps:
[0084] Feature extraction step: extracting text features of each sample industrial control protocol data in the protocol database; wherein the text features of any sample industrial control protocol data are determined based on the word frequency and inverse document frequency of each paragraph in the any sample industrial control protocol data;
[0085] Clustering step: clustering each sample industrial control protocol data based on the current cluster number setting value and the text features of each sample industrial control protocol data to obtain multiple current clusters and obtain the cluster center of each cluster;
[0086] Iteration step: clustering and evaluating the multiple current clusters to obtain a current cluster evaluation value; if the current cluster evaluation value is greater than the current optimal evaluation value, updating the current optimal evaluation value based on the current cluster evaluation value, and updating the current optimal cluster and the cluster centers of each current optimal cluster based on the multiple current clusters and their cluster centers; increasing the current cluster quantity setting value, and repeating the clustering step until the current cluster quantity setting value reaches a preset value;
[0087] Template determination step: based on the cluster centers of each current best clustering cluster, determine the protocol rule templates of various industrial control protocols.
[0088] Specifically, in the feature extraction step, the word frequency and inverse document frequency of each paragraph in each sample industrial control protocol data (the sample industrial control protocol data can be segmented based on a predetermined rule to obtain multiple paragraphs) can be extracted, and the text features of each sample industrial control protocol data can be extracted based on the TF-IDF method. Among them, for any sample industrial control protocol data, when determining the word frequency and inverse document frequency of each paragraph in the sample industrial control protocol data, the ratio of the number of times any paragraph appears in the sample industrial control protocol data to the total number of paragraphs in the sample industrial control protocol data can be used as the word frequency of the paragraph; the logarithm of the ratio of the total number of sample industrial control protocol data in the protocol database to the number of sample industrial control protocol data containing any paragraph in the protocol database can be used as the inverse document frequency of the paragraph. Then, the product of the word frequency and inverse document frequency of any paragraph is used as the feature value of the paragraph, and the vector composed of the feature values of all paragraphs in any sample industrial control protocol data is the text feature of the sample industrial control protocol data.
[0089] Subsequently, clustering can be performed iteratively and the cluster center of each cluster can be determined. In one round of iteration, based on the current cluster number setting value (initial 1), each sample industrial control protocol data can be clustered using a clustering algorithm (such as the KMeans algorithm) combined with the text features of each sample industrial control protocol data to obtain multiple current clusters and obtain the cluster center of each cluster. Here, for any cluster, the sample industrial control protocol data with the smallest sum of the edit distances between the text features of other sample industrial control protocol data in the cluster can be obtained as the cluster center of the cluster. Subsequently, multiple current clusters are clustered and evaluated to obtain the current cluster evaluation value. Here, the current cluster evaluation value can be determined based on the silhouette coefficient. If the current cluster evaluation value is greater than the current optimal evaluation value (0 in the initial case), the current optimal evaluation value is updated based on the current cluster evaluation value, and based on multiple current clusters and their cluster centers, the current optimal cluster cluster and the cluster centers of each current optimal cluster cluster are updated (the current optimal cluster cluster and the cluster centers of each current optimal cluster cluster are empty in the initial case). If the current cluster quantity setting value has reached the preset value, the iteration process ends; otherwise, the current cluster quantity setting value is increased (for example, plus 1), and the next round of iteration process is entered, and the above clustering steps are performed again. After the iteration is completed, the protocol rule templates of various industrial control protocols can be determined based on the cluster centers of each current optimal cluster cluster, thereby improving the extraction efficiency of the protocol rule templates of various industrial control protocols.
[0090] For the network behavior data, the second audit result can be determined based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data. Specifically, the network behavior data may include at least one of the network traffic per unit time and the current running program information per unit time. Among them, anomaly analysis can be performed based on the statistical characteristics of the network traffic per unit time in the network behavior data, or based on the difference between the current running program information and the historical running program information in the network behavior data. Anomaly analysis can also be performed in combination with the statistical characteristics of the network traffic per unit time in the network behavior data and the difference between the current running program information and the historical running program information in the network behavior data. The embodiments of the present invention do not specifically limit this.
[0091] In some embodiments, the statistical characteristics of the network traffic per unit time in the network behavior data may include the mean, variance, and quantile of the network traffic per unit time. The network traffic anomaly analysis result can be determined by comparing the statistical characteristics of the network traffic per unit time in the network behavior data with a preset threshold range. Here, if the statistical characteristics of the network traffic per unit time in the network behavior data are not within the preset threshold range, the network traffic anomaly analysis result can be determined to be abnormal.
[0092] In addition, based on the current running program information in the network behavior data and the historical running program information in the historical time period, the current running program information in the network behavior data that does not match the historical running program information can be determined as a suspected abnormal running program, that is, the suspected abnormal running program has not appeared in the historical time period; based on the number of times the suspected abnormal running program runs in each unit time of the time period to be audited, and the memory information of the suspected abnormal running program, the abnormal analysis result of the running program can be determined. Among them, if the number of times the suspected abnormal running program runs in the unit time of the preset length time period increases, the abnormal analysis result of the running program can be determined to be abnormal; otherwise, the memory information of the suspected abnormal running program can be obtained through the debugger, and the abnormal analysis result of the running program can be determined based on the memory information of the suspected abnormal running program.
[0093] Based on the above-mentioned network traffic anomaly analysis results and / or running program anomaly analysis results, a second audit result can be determined. In some embodiments, after the second audit result is determined, corresponding processing measures can be taken. Specifically, if the network traffic anomaly analysis results or the running program anomaly analysis results are abnormal, a network security alarm is issued without disconnecting the power supply or the network, so that technical personnel can remove malware and repair vulnerabilities; if the network traffic anomaly analysis results and the running program anomaly analysis results are both abnormal, a network security alarm is issued without disconnecting the network or the power supply, so that technical personnel can remove malware and repair vulnerabilities.
[0094] By combining the above first audit result and the above second audit result, the network security incident can be graded and evaluated based on the preset rules, and the network security evaluation result of the audited time period can be obtained, so that the network security evaluation result can be sent to the staff for timely processing. That is, the embodiment of the present invention performs a dual industrial control security audit on the industrial control protocol data and the network behavior data, and can timely and accurately find out whether a network security incident occurs in the industrial control network, and promptly notify the staff to handle it, thereby greatly reducing the risk of the industrial control network being attacked by the network.
[0095] In other embodiments, in addition to performing a dual industrial control security audit on industrial control protocol data and network behavior data, a third audit result can be determined based on the binding status of the IP address and MAC address during the audit period, the access relationship between at least two devices, and the devices appearing in the industrial control network, so as to comprehensively evaluate the level of network security events and obtain the network security evaluation result of the audit period. Among them, a security audit can be performed on whether the binding of the IP address and the MAC address has changed, a security audit can be performed on whether the access relationship between at least two devices has changed, and a security audit can be performed on whether unknown devices appear in the industrial control network.
[0096] To summarize, the method provided by the embodiment of the present invention determines the protocol rule template corresponding to the industrial control protocol data through the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parses the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determines the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; determines the second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data; thereby, the network security incidents are graded and evaluated based on the first audit result and the second audit result, and the network security evaluation result of the audited time period is obtained. By performing dual industrial control security audits on the industrial control protocol data and the network behavior data, it is possible to timely and accurately discover whether a network security incident has occurred in the industrial control network, thereby greatly reducing the risk of the industrial control network being attacked by a network.
[0097] The industrial control audit device based on the industrial Internet provided by the present invention is described below. The industrial control audit device based on the industrial Internet described below and the industrial control audit method based on the industrial Internet described above can be referenced to each other.
[0098] Based on any of the above embodiments, Figure 4 Schematic diagram of the structure of the industrial control audit device based on the industrial Internet provided by the present invention, such as Figure 4 As shown, the device comprises:
[0099] The data acquisition unit 410 is used to acquire the industrial control protocol data and network behavior data within the audit period;
[0100] A first audit unit 420, configured to determine the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parse the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determine a first audit result based on the control information, complete message data, and data area message data of the industrial control protocol data;
[0101] A second audit unit 430, configured to determine a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data;
[0102] The security assessment unit 440 is used to perform a level assessment on the network security event based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited.
[0103] The device provided by the embodiment of the present invention determines the protocol rule template corresponding to the industrial control protocol data through the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parses the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determines the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; determines the second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data; thereby, the network security incident is graded and evaluated based on the first audit result and the second audit result, and the network security evaluation result of the time period to be audited is obtained. By performing dual industrial control security audits on the industrial control protocol data and the network behavior data, it is possible to timely and accurately discover whether a network security incident occurs in the industrial control network, thereby greatly reducing the risk of the industrial control network being attacked by a network.
[0104] Based on any of the above embodiments, the determining of the first audit result based on the control information, the complete message data, and the data area message data of the industrial control protocol data includes:
[0105] Determining a control anomaly analysis result of the industrial control protocol data based on sample control information of the sample industrial control protocol data marked as normal and control information of the industrial control protocol data;
[0106] Based on the trained global anomaly analysis model, an anomaly analysis is performed on the complete message data of the industrial control protocol data to obtain an anomaly analysis result of the complete message of the industrial control protocol data; wherein the global anomaly analysis model is obtained by training based on the sample complete message data of the sample industrial control protocol data and the label of the sample industrial control protocol data;
[0107] Based on the trained local anomaly analysis model, an anomaly analysis is performed on the data area message data of the industrial control protocol data to obtain an anomaly analysis result of the data area message of the industrial control protocol data; wherein the local anomaly analysis model is obtained by training based on the sample data area message data of the sample industrial control protocol data and the label of the sample industrial control protocol data;
[0108] The first audit result is determined based on the control anomaly analysis result, the complete message anomaly analysis result and the data area message anomaly analysis result of the industrial control protocol data.
[0109] Based on any of the above embodiments, the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol in the protocol database is determined based on the following steps:
[0110] Determine all common subsequences and the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0111] Determine the difference factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the sequence length of the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0112] Determine a sequence consistency factor based on the sum of the sequence lengths of all common subsequences between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, the sequence lengths of the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the difference factor;
[0113] Calculating the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and determining a sequence similarity factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol and the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol;
[0114] Based on the sequence consistency factor and the sequence similarity factor, the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol is determined.
[0115] Based on any of the above embodiments, the protocol rule templates of various industrial control protocols in the protocol database are constructed based on the following steps:
[0116] Feature extraction step: extracting text features of each sample industrial control protocol data in the protocol database; wherein the text features of any sample industrial control protocol data are determined based on the word frequency and inverse document frequency of each paragraph in the any sample industrial control protocol data;
[0117] Clustering step: clustering each sample industrial control protocol data based on the current cluster number setting value and the text features of each sample industrial control protocol data to obtain multiple current clusters and obtain the cluster center of each cluster;
[0118] Iteration step: clustering and evaluating the multiple current clusters to obtain a current cluster evaluation value; if the current cluster evaluation value is greater than the current optimal evaluation value, updating the current optimal evaluation value based on the current cluster evaluation value, and updating the current optimal cluster and the cluster centers of each current optimal cluster based on the multiple current clusters and their cluster centers; increasing the current cluster quantity setting value, and repeating the clustering step until the current cluster quantity setting value reaches a preset value;
[0119] Template determination step: based on the cluster centers of each current best clustering cluster, determine the protocol rule templates of various industrial control protocols.
[0120] Based on any of the above embodiments, the determining of the second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data and / or based on the difference between the current running program information and the historical running program information in the network behavior data includes:
[0121] Based on the statistical characteristics of the network traffic per unit time in the network behavior data, determine the network traffic anomaly analysis result; wherein the statistical characteristics include the average value, variance and quantile of the network traffic per unit time;
[0122] And / or, based on the current running program information in the network behavior data and the historical running program information in the historical time period, determine the current running program information that does not match the historical running program information as a suspected abnormal running program; based on the number of times the suspected abnormal running program runs in each unit time of the time period to be audited, and the memory information of the suspected abnormal running program, determine the running program abnormality analysis result;
[0123] The second audit result is determined based on the network traffic anomaly analysis result and / or the running program anomaly analysis result.
[0124] Based on any of the above embodiments, the device further includes an exception handling unit, which is configured to execute, after determining the second audit result:
[0125] If the network traffic anomaly analysis result or the running program anomaly analysis result is abnormal, a network security alarm is issued without interrupting power or network;
[0126] If both the network traffic anomaly analysis result and the running program anomaly analysis result are abnormal, a network security alarm is issued under the premise of disconnecting the network but not the power supply.
[0127] Based on any of the above embodiments, the step of performing a level assessment on the network security event based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited includes:
[0128] Determine a third audit result based on the binding status of the IP address and the MAC address, the access relationship between at least two devices, and the devices present in the industrial control network during the audit period;
[0129] Based on the first audit result, the second audit result and the third audit result, a level assessment is performed on the network security event to obtain a network security assessment result for the time period to be audited.
[0130] Figure 5 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor (processor) 510, a memory (memory) 520, a communication interface (Communications Interface) 530 and a communication bus 540, wherein the processor 510, the memory 520, and the communication interface 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 520 to execute an industrial control audit method based on the industrial Internet, which includes: obtaining industrial control protocol data and network behavior data within the time period to be audited; determining the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parsing the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determining a first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; determining a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data; and performing a level assessment on network security events based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited.
[0131] In addition, the logic instructions in the above-mentioned memory 520 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0132] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the industrial control audit method based on the industrial Internet provided by the above-mentioned methods, and the method includes: obtaining industrial control protocol data and network behavior data within the time period to be audited; determining the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parsing the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determining a first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; determining a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data; and performing a level assessment on network security events based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited.
[0133] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned industrial control audit method based on the industrial Internet, the method comprising: obtaining industrial control protocol data and network behavior data within a time period to be audited; determining the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various types of industrial control protocols in the protocol database, parsing the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determining a first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; determining a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the currently running program information and the historical running program information in the network behavior data; and performing a level assessment on network security events based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited.
[0134] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An industrial control audit method based on the industrial Internet, characterized in that: include: Obtain industrial control protocol data and network behavior data within the audit period; Determine the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parse the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determine the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; Determine a second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data, and / or based on the difference between the current running program information and the historical running program information in the network behavior data; Based on the first audit result and the second audit result, a level assessment is performed on the network security incident to obtain a network security assessment result for the time period to be audited; The similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol in the protocol database is determined based on the following steps: Determine all common subsequences and the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol; Determine the difference factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the sequence length of the industrial control protocol data and the protocol rule template of any type of industrial control protocol; Determine a sequence consistency factor based on the sum of the sequence lengths of all common subsequences between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, the sequence lengths of the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the difference factor; Calculating the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and determining a sequence similarity factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol and the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol; Determining the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol based on the sequence consistency factor and the sequence similarity factor; The protocol rule templates of various industrial control protocols in the protocol database are constructed based on the following steps: Feature extraction step: extracting text features of each sample industrial control protocol data in the protocol database; wherein the text features of any sample industrial control protocol data are determined based on the word frequency and inverse document frequency of each paragraph in the any sample industrial control protocol data; Clustering step: clustering each sample industrial control protocol data based on the current cluster number setting value and the text features of each sample industrial control protocol data to obtain multiple current clusters and obtain the cluster center of each cluster; Iteration step: clustering and evaluating the multiple current clusters to obtain a current cluster evaluation value; if the current cluster evaluation value is greater than the current optimal evaluation value, updating the current optimal evaluation value based on the current cluster evaluation value, and updating the current optimal cluster and the cluster centers of each current optimal cluster based on the multiple current clusters and their cluster centers; increasing the current cluster quantity setting value, and repeating the clustering step until the current cluster quantity setting value reaches a preset value; Template determination step: based on the cluster centers of each current best clustering cluster, determine the protocol rule templates of various industrial control protocols.
2. The industrial control audit method based on the industrial Internet according to claim 1 is characterized in that: The determining of the first audit result based on the control information, complete message data and data area message data of the industrial control protocol data includes: Determining a control anomaly analysis result of the industrial control protocol data based on sample control information of the sample industrial control protocol data marked as normal and control information of the industrial control protocol data; Based on the trained global anomaly analysis model, an anomaly analysis is performed on the complete message data of the industrial control protocol data to obtain an anomaly analysis result of the complete message of the industrial control protocol data; wherein the global anomaly analysis model is obtained by training based on the sample complete message data of the sample industrial control protocol data and the label of the sample industrial control protocol data; Based on the trained local anomaly analysis model, an anomaly analysis is performed on the data area message data of the industrial control protocol data to obtain an anomaly analysis result of the data area message of the industrial control protocol data; wherein the local anomaly analysis model is obtained by training based on the sample data area message data of the sample industrial control protocol data and the label of the sample industrial control protocol data; The first audit result is determined based on the control anomaly analysis result, the complete message anomaly analysis result and the data area message anomaly analysis result of the industrial control protocol data.
3. The industrial control audit method based on the industrial Internet according to claim 1 is characterized in that: The determining of the second audit result based on the statistical characteristics of the network traffic per unit time in the network behavior data and / or based on the difference between the current running program information and the historical running program information in the network behavior data includes: Based on the statistical characteristics of the network traffic per unit time in the network behavior data, determine the network traffic anomaly analysis result; wherein the statistical characteristics include the average value, variance and quantile of the network traffic per unit time; And / or, based on the current running program information in the network behavior data and the historical running program information in the historical time period, determine the current running program information that does not match the historical running program information as a suspected abnormal running program; based on the number of times the suspected abnormal running program runs in each unit time of the time period to be audited, and the memory information of the suspected abnormal running program, determine the running program abnormality analysis result; The second audit result is determined based on the network traffic anomaly analysis result and / or the running program anomaly analysis result.
4. The industrial control audit method based on the industrial Internet according to claim 3 is characterized in that: The determining of the second audit result further includes: If the network traffic anomaly analysis result or the running program anomaly analysis result is abnormal, a network security alarm is issued without interrupting power or network; If both the network traffic anomaly analysis result and the running program anomaly analysis result are abnormal, a network security alarm is issued under the premise of disconnecting the network but not the power supply.
5. The industrial control audit method based on the industrial Internet according to claim 1 is characterized in that: The step of performing a level assessment on the network security event based on the first audit result and the second audit result to obtain a network security assessment result for the time period to be audited includes: Determine a third audit result based on the binding status of the IP address and the MAC address, the access relationship between at least two devices, and the devices present in the industrial control network during the audit period; Based on the first audit result, the second audit result and the third audit result, a level assessment is performed on the network security event to obtain a network security assessment result for the time period to be audited.
6. An industrial control audit device based on the industrial Internet, characterized in that: include: A data acquisition unit, used to acquire industrial control protocol data and network behavior data within the audit period; A first audit unit is used to determine the protocol rule template corresponding to the industrial control protocol data based on the similarity between the industrial control protocol data and the protocol rule templates of various industrial control protocols in the protocol database, parse the control information of the industrial control protocol data based on the protocol rule template corresponding to the industrial control protocol data, and determine a first audit result based on the control information, complete message data and data area message data of the industrial control protocol data; A second audit unit, configured to determine a second audit result based on statistical characteristics of network traffic per unit time in the network behavior data and / or based on a difference between current running program information and historical running program information in the network behavior data; A security assessment unit, configured to perform a level assessment on the network security event based on the first audit result and the second audit result, and obtain a network security assessment result for the time period to be audited; The similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol in the protocol database is determined based on the following steps: Determine all common subsequences and the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol; Determine the difference factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the sequence length of the industrial control protocol data and the protocol rule template of any type of industrial control protocol; Determine a sequence consistency factor based on the sum of the sequence lengths of all common subsequences between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, the sequence lengths of the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and the difference factor; Calculating the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol, and determining a sequence similarity factor based on the sequence length of the longest common subsequence between the industrial control protocol data and the protocol rule template of any type of industrial control protocol and the edit distance between the industrial control protocol data and the protocol rule template of any type of industrial control protocol; Determining the similarity between the industrial control protocol data and the protocol rule template of any type of industrial control protocol based on the sequence consistency factor and the sequence similarity factor; The protocol rule templates of various industrial control protocols in the protocol database are constructed based on the following steps: Feature extraction step: extracting text features of each sample industrial control protocol data in the protocol database; wherein the text features of any sample industrial control protocol data are determined based on the word frequency and inverse document frequency of each paragraph in the any sample industrial control protocol data; Clustering step: clustering each sample industrial control protocol data based on the current cluster number setting value and the text features of each sample industrial control protocol data to obtain multiple current clusters and obtain the cluster center of each cluster; Iteration step: clustering and evaluating the multiple current clusters to obtain a current cluster evaluation value; if the current cluster evaluation value is greater than the current optimal evaluation value, updating the current optimal evaluation value based on the current cluster evaluation value, and updating the current optimal cluster and the cluster centers of each current optimal cluster based on the multiple current clusters and their cluster centers; increasing the current cluster quantity setting value, and repeating the clustering step until the current cluster quantity setting value reaches a preset value; Template determination step: based on the cluster centers of each current best clustering cluster, determine the protocol rule templates of various industrial control protocols.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, an industrial control audit method based on the industrial Internet as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, an industrial control audit method based on the industrial Internet as described in any one of claims 1 to 5 is implemented.
