Unknown industrial control protocol semantic inference method based on pattern sequence

Through the semantic analysis method based on pattern sequences, the convolutional neural network model is used to learn the changing rules of field values ​​​​of industrial control protocols, the semantic types are defined, and the probability maximization selection algorithm is used to solve the problem of accurate semantic analysis of industrial control protocols in the existing technology. solve the problem and achieve high-accuracy semantic recognition of unknown fields.

CN118798209APending Publication Date: 2024-10-18NORTHEASTERN UNIV CHINA +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410773795.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology relies on semantic knowledge in the semantic analysis of industrial control protocols, lacks rules for industrial control protocols, and is difficult to effectively identify the semantics of unknown industrial protocol fields. Moreover, methods based on template matching have difficulty in measuring the impact of analysis results.

Method used

A semantic analysis method based on pattern sequences is proposed, and the convolutional neural network model is used to learn the changing rules of field values, define 7 semantic types, and use the optimal field type selection algorithm to maximize probability to optimize field division to improve prediction accuracy.

Benefits of technology

It significantly improves the accuracy of field semantic analysis and can effectively identify unknown field semantics in industrial control protocols. Experimental results show that the accuracy rate exceeds 90% on three types of standard industrial control protocols and their hybrid protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798209A_ABST
    Figure CN118798209A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of industrial internet, and discloses an unknown industrial control protocol semantic inference method based on a pattern sequence. The method comprises the following steps: generating a stream of which the number of data messages meets a number interval requirement, performing field extraction, and sorting values of extracted target fields according to a time sequence of the data messages to form a field mode sequence; building a classification model, and inputting the field mode sequence into the classification model for field semantic type recognition; according to a classification result of the classification model, adjusting division of field boundaries; and an optimal field pattern sequence is obtained through judgment. The method disclosed by the invention is evaluated on three types of standard industrial control protocols and a mixed protocol thereof, and experimental results show that the accuracy of field semantic analysis is greatly improved by the method disclosed by the invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial Internet, and in particular to a semantic inference method for unknown industrial control protocols based on pattern sequences. Background Art

[0002] Industrial control networks are the "core brain" of industrial production, used to monitor and manage physical equipment in the industrial production process to ensure the stability and reliability of production. However, there are a large number of non-standard and private industrial control protocols in industrial control networks, which poses severe challenges to security analysis such as intrusion detection, malicious behavior analysis, and fuzz testing.

[0003] Protocol reverse engineering based on network traffic is widely used to reverse explore ICPs protocols. Protocol reverse engineering aims to discover the message type, message format, semantics, and protocol behavior without any prior knowledge of the protocol. In this type of analysis, semantic analysis is one of the most time-consuming tasks. For ICPs, semantics refers to information about the function of each field in a message, such as transmission ID, sequence number, length field, etc.

[0004] Existing semantic analysis methods can be divided into two categories: one is rule-based semantic analysis, which proposes corresponding heuristic rules for pre-defined field semantic types and uses probability statistics, causal analysis and other methods to achieve semantic inference; the other is template matching-based semantic analysis, which generates feature templates of various field semantics based on prior knowledge, and then determines the semantics of the field by judging the relationship between the unknown semantic field and the template.

[0005] The paper "Liu O, Zheng B, Sun W, et al. A data-driven approach for reverse engineering electric power protocols [J]. Journal of Signal Processing Systems, 2021, 93: 769-777." proposed a rule-based semantic analysis method IPRFW. Based on the traditional network protocol reverse engineering, it defined four types of semantics for industrial control protocols: constant, length, transmission ID, and function code, and designed or improved corresponding identification rules for each type of semantics.

[0006] The paper "Wang Q, Sun Z, Wang Z, et al. A practical format and semantic reverse analysis approach for industrial control protocols [J]. Security and Communication Networks, 2021, 2021: 1-11." proposed an industrial control protocol semantic analysis method MSERA based on template matching, defined 7 types of semantic types: protocol identifier, length, sequence number, CRC checksum, etc., generated semantic templates based on their value characteristics and position characteristics, and corrected the analysis results through multiple iterations based on the DBSCAN clustering algorithm.

[0007] The paper "Liu O, Zheng B, Sun W, et al. A data-driven approach for reverse engineering electric power protocols [J]. Journal of Signal Processing Systems, 2021, 93: 769-777." proposed a rule-based semantic analysis method IPRFW, and proposed corresponding heuristic rules and assumptions for different field types. If a new field type appears, it is necessary to adjust or design a new analysis rule.

[0008] The paper "Wang Q, Sun Z, Wang Z, et al. A practical format and semantic reverse analysis approach for industrial control protocols [J]. Security and Communication Networks, 2021, 2021: 1-11." proposed an industrial control protocol semantic analysis method MSERA based on template matching. In the process of explicitly measuring the matching degree between unknown fields and feature templates, the selection of measurement method will inevitably affect the results of semantic analysis, thereby increasing the difficulty of analysis.

[0009] In summary, current semantic analysis methods all rely on semantic knowledge, and most of these methods are semantic rule bases established for common protocols, lacking rules for industrial control protocols ICPs. Moreover, the field semantic types defined for common protocols do not completely exist in industrial control protocols. Therefore, it is challenging to define the semantic types of industrial control protocols based on semantic knowledge and to recognize the semantics of unknown industrial protocol fields. Summary of the invention

[0010] The purpose of the present invention is to propose a new semantic analysis method for industrial control protocols based on the discovery that the numerical changes of different field types have obvious differences and in combination with the characteristics of industrial control protocols: (1) Taking the flow as the smallest analysis unit, the existing protocol format analysis tool is used to obtain the field boundary and extract the value of each field, and the concept of field pattern sequence is proposed, which provides a new idea for semantic inference; (2) Based on the idea of ​​classification, a convolutional neural network model is used to learn the value change rules of different fields, and then the semantic type of the input field is predicted, and 7 semantic types are defined, namely protocol identifier, serial number, function code, length, timestamp, address and checksum; (3) Based on the observation that the closer the inferred field boundary is to the real boundary, the more concentrated the probability value of the constructed pattern sequence predicted by the model, an optimal field type selection algorithm based on probability maximization is proposed, and the field division is optimized according to the prediction results of the model, thereby promoting prediction accuracy.

[0011] The technical solution of the present invention is as follows: a method for semantic inference of unknown industrial control protocols based on pattern sequences, comprising the following steps;

[0012] Step 1: Analyze and process the flow to generate a flow whose number of data packets meets the quantity interval requirement;

[0013] Step 2: Based on the existing field boundary division tool, perform field extraction on the stream obtained in step 1, sort the values ​​of the extracted target fields according to the time sequence of the data message, eliminate the interference of the field value itself and the time sequence on the classification model, and form a field pattern sequence; the values ​​of the same target field in the same stream are represented as a field pattern sequence χ = {x1, x2, ..., x m ,...,x M},in Indicates the value of the field pattern sequence x in the mth data message, where M is the number of data messages;

[0014] Step 3: Build a classification model, and input the field pattern sequence x into the classification model to identify the field semantic type;

[0015] Step 4: According to the classification results of the classification model, adjust the division of the field boundaries; the obtained field pattern sequence χ is different, and the classification results of the classification model are different; the optimal field pattern sequence is obtained by judgment, and the result closest to the real field information is obtained.

[0016] The step 1 is specifically as follows:

[0017] Step 1.1, flow analysis: use network traffic analysis tools to analyze a series of data packets at the same time; the flow is mainly composed of a series of data packets with the same source address, destination address, source port, destination port and protocol type; based on the number of data packets actually contained in the flow, screening is performed, and it is stipulated that flows with a number greater than the required interval are long flows, and flows with a number less than the required interval are short flows;

[0018] Step 1.2, process the flow: Based on the principle of "splitting long flows and aggregating short flows", aggregate the flows that meet the following rules: (i) have the same source address and the same destination address, (ii) use the same protocol type, and (iii) the number of data packets is not less than 100 short flows;

[0019] For a flow containing multiple field value change periods, the data packets of each change period are converted into a separate flow.

[0020] The method of eliminating the interference of the field value itself and the time sequence on the classification model is specifically as follows:

[0021] The numerical sequence S = {s1, s2, ..., s M} to traverse and count the number of occurrences of each value, using key-value pairs s i ,cnt i Save to dictionary D, where s i Is the field value, cnt i is the number of times the value of this field appears;

[0022] For dictionary D, use cnt i Sort in ascending order for the comparison principle;

[0023] For each element d in the dictionary D i Perform traversal operations to establish a mapping between field values ​​and indexes i ,idx i , where idx i Indicates i The index in the sorted dictionary D uses the dictionary β to record the mapping relationship between field values ​​and indexes, according to the index idx i Get the value of the field i Number, the specific mapping relationship is:

[0024] β[d i .s]←d i .idx+1

[0025] Traverse the original numerical sequence S = {s1, s2, ..., s M}, use the field value number in the dictionary β to replace the original field value, and generate a new sequence L = {l1,l2,...,l M}, the specific replacement method is:

[0026] l i ←β[s i ]

[0027] Normalize the values ​​in L and save them as a field pattern sequence χ={x1,x2,...,x M}, eliminate the interference of field data value itself on the model, and the normalization method is:

[0028]

[0029] Among them, L min is the minimum value in the sequence L, L max is the maximum value in the sequence L, and x is the normalized data;

[0030] After the above operation, the field pattern sequence χ={x1,x2,...,x M}The processing is completed and used as the input sequence of the classification model.

[0031] The classification model uses a CNN model to identify field semantic types;

[0032] The classification model includes a convolutional layer, a pooling layer, a fully connected layer and an activation function;

[0033] After the field pattern sequence is input, multiple spatial local features are extracted by sliding on the input data using convolutional layers and pooling layers respectively. The calculation formula is as follows:

[0034] v1=CNN1(x)

[0035] v2=MaxPooling1(v1)

[0036] v3=CNN2(v2)

[0037] v4=MaxPooling2(v3)

[0038] Among them, CNN i ,i∈{1,2} represents the i-th convolutional layer, MaxPooling i ,i∈{1,2} represents the i-th pooling layer, v i ,i∈{1,2,3,4} is the hidden vector in the feature extraction process;

[0039] The hidden vectors extracted by the convolutional neural network in the convolutional layer and the pooling layer are sequentially passed through two fully connected layers FC to obtain the hidden vector of the fully connected layer. The calculation formula is as follows:

[0040] o1=FC1(v4)

[0041] h=FC2(o1)

[0042] The hidden vector of the fully connected layer is input into the activation function to obtain the probability of each classification, so as to perform classification. The calculation formula is as follows:

[0043] P h =σ(h)

[0044] Where σ is the softmax activation function;

[0045] The classification result with the highest classification probability is selected as the classification result of the classification model operation.

[0046] The step 4 is specifically as follows:

[0047] The optimal field pattern sequence is Its minimum standard deviation is The specific steps are as follows:

[0048] Use the field boundary demarcation toolω i Perform field division and process flow to obtain the numerical sequence s i ;

[0049] According to the numerical sequence s i Proceed to step 2 to construct the field pattern sequence x i And train the classification model;

[0050] χ i Input into the classification model and get the classification result P i ;

[0051] Calculate the classification result P i The standard deviation μ;

[0052] if Then the optimal field sequence is The minimum standard deviation is To update, the specific operations are:

[0053]

[0054] Repeat the operations of field division, training classification models and updating the optimal field sequence to obtain results close to the actual field information.

[0055] Beneficial effects of the present invention: Based on the key discovery that the numerical variation patterns of different field types show obvious differences, the present invention proposes to use this difference as a feature to distinguish different field types, and use the idea of ​​classification to solve the problem of semantic analysis. Semantic analysis is performed from a new perspective of time series classification; by proposing the definition of field pattern sequence Pattern Series, semantic inference is converted into a field type classification framework. Based on the definition, a pattern sequence extraction method is proposed, and a new deep learning-based solution is demonstrated to predict field semantic types by learning the features of different pattern sequences. According to the probability maximization semantic type selection method, the optimal semantic analysis result is selected according to the distribution of model prediction results. The method of the present invention was evaluated on three types of standard industrial control protocols and their hybrid protocols. The experimental results show that the present invention greatly improves the accuracy of field semantic analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 This is the overall framework diagram of the semantic inference method of unknown industrial control protocols based on pattern sequences;

[0057] Figure 2 It is the structural diagram of the classification model;

[0058] Figure 3 Semantic inference results for different scenarios. DETAILED DESCRIPTION

[0059] Figure 1 This is an overall flow chart of a semantic inference method for unknown industrial control protocols based on pattern sequences. This method constructs flows, generates field pattern sequences, and uses deep learning models to classify field types. It also adjusts the division of field boundaries according to the classification results of the model until the optimal semantic analysis results are obtained.

[0060] The specific implementation of the present invention is further described in detail below in conjunction with the drawings and examples.

[0061] This example uses ICS / SCADA public data sets to comprehensively evaluate the method proposed in this invention. Based on the protocol type, the data sets are divided into four types: Modbus / TCP, DNP3.0, EtherNet / IP, and Hybrid. The Hybrid type refers to the data set containing data of multiple protocol types. This invention defines seven field semantic types, aiming to match fields with the defined semantic types based on the classification concept.

[0062] Step 1: Analyze and process the flow. Make each flow consist of about 400 data packets. Specific operations:

[0063] Analyze flows: Use the network traffic analysis tool Honeyeye to analyze a series of messages at the same time. A flow is composed of a series of messages with the same source address, destination address, source port, destination port, and protocol, which can more intuitively display an industrial process in an industrial control system. The number of messages actually contained in the flow is used as the standard to screen long and short flows.

[0064] Processing flow: Aggregate based on the principle of "splitting long flows and aggregating short flows". (i) Short flows have the same source / destination addresses, (ii) use the same protocol type, and (iii) the number of packets in the flow cannot be too small. For long flows containing multiple field data change cycles, convert the packets in each cycle into a separate flow.

[0065] Step 2: Use existing field boundary demarcation tools such as tshark, 2-bytes-fixed, Netzob, and NEMESYS to extract fields, and sort the values ​​of the target fields according to the time sequence of the message to form a field sequence.

[0066] Step 3: Pattern sequence generation. Since the values ​​of different field types may be completely different, and the time pattern of the value change of the same field type changes with the change of industrial scenarios, it is necessary to eliminate the interference of the field value itself and the time sequence on the classification model. The values ​​of the same target field in the same stream are represented as the field pattern sequence χ={x1,x2,...,x m ,...,x M},in Represents the value of the field pattern sequence χ in the mth data message, where M is the number of data messages.

[0067] The operation idea is:

[0068] For each sequence of values ​​in the stream S = {s1, s2, ..., s M} to traverse and count the number of occurrences of each value, using key-value pairs s i ,cnt i Save to dictionary D, where s i Is the field value, cnt i is the number of times the value occurs.

[0069] For dictionary D, use cnt i Sort in ascending order for comparison principle.

[0070] For each element d in the dictionary D i Perform traversal operations to establish a mapping between field values ​​and indexes i ,idx i , and use the dictionary β to record and implement numbering of values ​​according to frequency. The specific mapping relationship is:

[0071] β[d i .s]←d i .idx+1

[0072] Traverse the original numerical sequence S = {s1, s2, ..., s M}, use the numerical number to replace the original value, and generate a new sequence L = {l1,l2,...,l M}, the specific replacement method is:

[0073] l i ←β[s i ]

[0074] Normalize the values ​​in L and save them into the sequence χ={x1,x2,...,x M}, eliminate the interference of field data value itself on the model, and the normalization method is:

[0075]

[0076] Among them, L min is the minimum value in the sequence L, L max is the maximum value in the sequence L, and x is the normalized data.

[0077] After the above operation, the field pattern sequence χ={x1,x2,...,x M}The classification model input conditions are met and 10 .ts files similar to time series formats are generated.

[0078] Step 4: Build a classification model. CNN is widely used in time series classification tasks due to its excellent feature extraction capabilities. Since the field pattern sequence proposed in this invention is similar to the time series, we explore the use of CNN model for field semantic type recognition. The model structure is as follows: Figure 2 As shown in the figure, it consists of 2 one-dimensional convolutional layers, 2 pooling layers, and 2 fully connected layers. The convolution kernel size is 3, and the pooling layer size is 2. Adam is used as the optimizer, and CrossEntropyLoss is used as the loss function. Softmax is used as the activation function, and the output corresponds to the probability of 7 semantic types. The maximum probability is selected as the prediction result. 16 samples are processed at a time, and the learning rate is 0.001. The model calculation formula is as follows:

[0079] For the model input, that is, the field pattern sequence after the above steps, the convolution layer and the pooling layer are used to slide on the input data to extract multiple spatial local features. The calculation formula is as follows:

[0080] v1=CNN1(x)

[0081] v2=MaxPooling1(v1)

[0082] v3=CNN2(v2)

[0083] v4=MaxPooling2(v3)

[0084] Among them, CNN i ,i∈{1,2} represents the i-th convolutional layer, MaxPooling i ,i∈{1,2} represents the i-th pooling layer, v i ,i∈{1,2,3,4} is the hidden vector in the feature extraction process.

[0085] The hidden vector extracted by the convolutional neural network is passed through two fully connected layers (FC) in sequence to obtain the output of the neural network. The calculation formula is as follows:

[0086] o1=FC1(v4)

[0087] h=FC2(o1)

[0088] The hidden vector of the fully connected layer is input into the activation function to obtain the probability of each classification, so as to perform classification. The calculation formula is as follows:

[0089] P h =σ(h)

[0090] Where σ is the softmax activation function.

[0091] The classification with the highest probability is selected as the classification result of the model operation.

[0092] Step 5: Since different field boundary divisions lead to different pattern sequences χ, the classification results of the model are also different. Therefore, it is necessary to determine the optimal pattern sequence to obtain the result closest to the actual field information. Repeat steps 2 to 4, using different field boundary division tools each time. The optimal field sequence is recorded as The minimum standard deviation is The specific steps are as follows:

[0093] Use the field boundary demarcation toolω i Perform field division to obtain field value sequence s i .

[0094] According to the field value sequence s i Proceed to step 4 to construct the pattern sequence χ i And train the classification model.

[0095] χ i Input into the classification model and get the classification result P i .

[0096] Calculate the classification result Pi The standard deviation μ.

[0097] if Then for the optimal field sequence s, the minimum standard deviation is To update, the specific operations are:

[0098]

[0099] Repeat the operation to obtain a result that is close to the actual field information.

[0100] In order to verify the effectiveness of the method proposed in this paper, a set of experiments was conducted to compare the method with three more advanced industrial control protocol semantic analysis methods, including Stephan Kleber, IPRFW and FieldHunter, in terms of accuracy, recall and F1 value. The comparison results are shown in Table 1. The three indicators are defined as follows:

[0101] Precision: The ratio of the number of data flows that meet both the parsing criteria and semantic inference to the number of data flows that only meet the semantic inference.

[0102] Recall: Comparison of data streams that meet both parsing criteria and semantic inference with streams that only meet parsing criteria.

[0103] F1 value (F1): The value obtained by considering the precision and recall rate through the following calculation formula:

[0104]

[0105] Table 1 Comparison of semantic analysis methods for industrial control protocols

[0106]

[0107]

[0108] Overall, our method performs better, with all indicators exceeding 90% on various datasets, and an improvement of 10% over the F1 value of the best method.

[0109] At the same time, in order to verify that the method proposed in the present invention has the ability to identify the semantics of unknown protocol fields, experiments were conducted in 5 cases, indicating that different scenarios use different protocol types. As shown in Table 2, the protocols marked with # are used for model training; * is used for model verification, does not participate in model training at all, and is used to simulate unknown protocols.

[0110] Table 2 Protocol types used in different scenarios in the experiment

[0111]

[0112] Figure 3 By comparing the results, it can be seen that the method proposed in the present invention has the ability to identify the semantics of unknown protocol fields, and as the number of training set protocols increases, the prediction of unknown protocols will become more accurate until it stabilizes. This is because the same field type will show slightly different change patterns in different protocols or industrial scenarios, but generally follows a consistent change pattern, and the more change patterns the model has seen, the more conducive it is to identifying unknown protocol field types.

[0113] The above preferred implementation modes are only for illustrating the technical concept and features of the present invention, and the purpose is to enable technicians in this field to understand the content of the present invention and implement it. It cannot be used to limit the protection scope of the present invention. All equivalent changes or modifications made according to the essence of the present invention belong to the protection scope of the present invention.

Claims

1. A semantic inference method for unknown industrial control protocols based on pattern sequences, characterized in that: The steps include: Step 1: Analyze and process the flow to generate a flow whose number of data packets meets the quantity interval requirement; Step 2: Based on the existing field boundary division tool, perform field extraction on the stream obtained in step 1, sort the values ​​of the extracted target fields according to the time sequence of the data message, eliminate the interference of the field value itself and the time sequence on the classification model, and form a field pattern sequence; the values ​​of the same target field in the same stream are represented as a field pattern sequence χ = {x1, x2, ..., x m ,...,x M },in Indicates the value of the field pattern sequence x in the mth data message, where M is the number of data messages; Step 3: Build a classification model, and input the field pattern sequence x into the classification model to identify the field semantic type; Step 4: According to the classification results of the classification model, adjust the division of the field boundaries; the obtained field pattern sequence χ is different, and the classification results of the classification model are different; the optimal field pattern sequence is obtained by judgment, and the result closest to the real field information is obtained.

2. The method for semantic inference of unknown industrial control protocols based on pattern sequences according to claim 1 is characterized in that: The step 1 is specifically as follows: Step 1.1, flow analysis: use network traffic analysis tools to analyze a series of data packets at the same time; the flow is mainly composed of a series of data packets with the same source address, destination address, source port, destination port and protocol type; based on the number of data packets actually contained in the flow, screening is performed, and it is stipulated that flows with a number greater than the required interval are long flows, and flows with a number less than the required interval are short flows; Step 1.2, process the flow: Based on the principle of "splitting long flows and aggregating short flows", aggregate the flows that meet the following rules: (i) have the same source address and the same destination address, (ii) use the same protocol type, and (iii) have a short flow with no less than 100 data packets; For a flow containing multiple field value change periods, the data packets of each change period are converted into a separate flow.

3. The method for semantic inference of unknown industrial control protocols based on pattern sequences according to claim 1 or 2, characterized in that: The method of eliminating the interference of the field value itself and the time sequence on the classification model is specifically as follows: The numerical sequence S = {s1, s2, ..., s M } to traverse and count the number of occurrences of each value, using key-value pairs i ,cnt i >Save to dictionary D, where s i Is the field value, cnt i is the number of times the value of this field appears;​ For dictionary D, use cnt i Sort in ascending order for the comparison principle; For each element d in the dictionary D i Perform traversal operations to establish a mapping between field values ​​and indexes i ,idx i >, where idx i Indicates i The index in the sorted dictionary D uses the dictionary β to record the mapping relationship between field values ​​and indexes, according to the index idx i Get the value of the field i Number, the specific mapping relationship is:​ b[d i .s]←d i .idx+1 Traverse the original numerical sequence S = {s1, s2, ..., s M }, use the field value number in the dictionary β to replace the original field value, and generate a new sequence L = {l1,l2,...,l M }, the specific replacement method is: l i ←β[s i ] Normalize the values ​​in L and save them as a field pattern sequence χ={x1,x2,...,x M }, eliminate the interference of field data value itself on the model, the normalization method is: Among them, L min is the minimum value in the sequence L, L max is the maximum value in the sequence L, and x is the normalized data; After the above operation, the field pattern sequence χ={x1,x2,...,x M }The processing is completed and used as the input sequence of the classification model.

4. The method for semantic inference of unknown industrial control protocols based on pattern sequences according to claim 3 is characterized in that: The classification model uses a CNN model to identify field semantic types; The classification model includes a convolutional layer, a pooling layer, a fully connected layer and an activation function; After the field pattern sequence is input, multiple spatial local features are extracted by sliding on the input data using convolutional layers and pooling layers respectively. The calculation formula is as follows: v1=CNN1(x) v2=MaxPooling1(v1) v3=CNN2(v2) v4=MaxPooling2(v3) Among them, CNN i ,i∈{1,2} represents the i-th convolutional layer, MaxPooling i ,i∈{1,2} represents the i-th pooling layer, v i ,i∈{1,2,3,4} is the hidden vector in the feature extraction process; The hidden vectors extracted by the convolutional neural network in the convolutional layer and the pooling layer are sequentially passed through two fully connected layers FC to obtain the hidden vector of the fully connected layer. The calculation formula is as follows: o1=FC1(v4) h=FC2(o1) The hidden vector of the fully connected layer is input into the activation function to obtain the probability of each classification, so as to perform classification. The calculation formula is as follows: P h =σ(h) Where σ is the softmax activation function; The classification result with the highest classification probability is selected as the classification result of the classification model operation.

5. The method for semantic inference of unknown industrial control protocols based on pattern sequences according to claim 4 is characterized in that: The step 4 is specifically as follows: The optimal field pattern sequence is Its minimum standard deviation is The specific steps are as follows: Use the field boundary demarcation toolω i Perform field division and process flow to obtain the numerical sequence s i ; According to the numerical sequence s i Proceed to step 2 to construct the field pattern sequence x i And train the classification model; χ i Input into the classification model and get the classification result P i ; Calculate the classification result P i The standard deviation μ; if Then for the optimal field sequence s, the minimum standard deviation is To update, the specific operations are: Repeat the operations of field division, training classification models and updating the optimal field sequence to obtain results close to the actual field information.

Citation Information

Cited By

  • Automatic industrial control protocol reverse system and method based on global voting expert algorithm

    CN119105384A

  • Heterogeneous device attack identification method and system based on heterogeneous device behavior map and adaptive feature learning

    CN121283724A