Internal attack sensing method based on PLC honey spot
By deploying an internal attack sensing method based on PLC honey points in the industrial control system, using data generation models to imitate PLC device behavior, identify and respond to internal attacks, it solves the problem of traditional honeypot technology being difficult to detect internal attacks, and achieves efficient internal Attack defense and low-cost deployment.
Patent Information
- Application Number
- CN202410832065.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional honeypot technology is difficult to detect and defend against attacks within industrial control systems, and deployment and migration costs are high, making it unable to effectively respond to internal attack threats.
An internal attack perception method based on PLC honey points is adopted, and a PLC honey point is constructed through training data generation model, which is deployed in the system's internal network to imitate the behavior of PLC equipment, sense and identify internal attacks, and generate communication data similar to that of PLC equipment for feedback. To deceive attackers and reduce the risk of internal attacks.
It achieves active defense against internal attacks, reduces deployment and migration costs, improves attack detection efficiency, avoids the direct impact of internal attacks on PLC equipment, and enhances system security.
Smart Images

Figure CN118740447A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security, and in particular to an internal attack perception method based on a PLC honey spot. Background Art
[0002] In the development trend of widespread automation in industrial manufacturing, the importance of infrastructure has been highly valued. With the increase in security incidents in which economic or other benefits are obtained by destroying industrial equipment, it has become particularly important to ensure the safety of the industrial production environment.
[0003] Industrial Control System (ICS) is a system used to control and manage industrial equipment, among which Programmable Logic Controller (PLC) is an important device specifically used to manage ICS. For ICS, conventional defense systems are deployed at the boundaries of the protected internal network to defend against attacks and intrusions from outside the system.
[0004] With the rise of emerging technologies such as social engineering strategies and technical development, the effectiveness of traditional defense systems and mechanisms has been greatly weakened. In order to make up for the shortcomings of the border defense system, deception defense systems represented by honeypot technology can effectively resist attacks from public networks.
[0005] However, traditional honeypot technology still has many defects: first, the configuration and deployment of honeypot technology has the same workload as deploying an actual PLC system; second, because honeypot technology is a passive defense system, it will be exposed and lose its protection function after being attacked, and at the same time be damaged by the attack; finally, due to the particularity of independent deployment of honeypot technology, it cannot resist attacks from within the system.
[0006] Internal attacks are attacks that come from the intranet. Due to their high concealment, they are inherently difficult to detect and pose a serious threat to ICS. Therefore, a solution needs to be provided to improve the above problems. Summary of the invention
[0007] The purpose of the present invention is to provide an internal attack perception method based on PLC honey spots, which can improve the problem that the existing technology cannot effectively detect or capture internal attacks.
[0008] The present invention provides a PLC honeypoint-based internal attack perception method, comprising:
[0009] The data generation model is trained based on the training data set to obtain the trained data generation model; the training data set is the communication data when communicating with the PLC device to be protected in the internal network of the system;
[0010] A PLC honey spot is constructed based on the trained data generation model and deployed in the internal network of the system. The PLC honey spot is used to obtain access requests from the system to the PLC device to be protected.
[0011] When the PLC honey spot obtains the access request and establishes communication with the visitor, the PLC honey spot senses the attack access issued from within the system to the PLC device to be protected.
[0012] Its beneficial effects are:
[0013] As an active defense technology, PLC honey spots are deployed in the internal network of the system and will not be accessed by normal working devices in the system. When a visitor accesses the device, the PLC honey spot will imitate the behavior of the PLC device to be protected to send feedback data to the visitor and establish a connection with it. When communication is established, it senses an attack access from within the system. The visitor can basically be determined as an internal attacker. When the internal total is sensed and communication with the attacker is maintained, the PLC honey spot sends the relevant data to the detection device for subsequent detection.
[0014] Optionally, when the data generation model is trained based on the training data set, the data generation model can generate data of the same type as the communication data of the PLC device to be protected when receiving data input after the training is completed.
[0015] Its beneficial effects are:
[0016] When the PLC sweet spot of the present invention establishes communication with an attacker, it is necessary to make the visitor believe that it is a real PLC device. After the data generation model in the PLC sweet spot is trained based on the communication data of the PLC device during communication, it can generate communication data similar to that of a conventional PLC device, so that when the PLC sweet spot sends feedback data to the visitor, the visitor can believe that the feedback data is the communication data of the PLC device.
[0017] Optionally, when the PLC honey spot obtains an access request, it parses the access request and obtains a parsing result, queries matching data based on the parsing result, and generates feedback data based on the matching data.
[0018] Its beneficial effects are:
[0019] In order to solve the problem of slow deployment in different environments in previous technologies, the PLC honey spot of the present invention constructs a data generation model through a data-driven method, converts the deployment process into a data model training process, and completes the model training in a short time.
[0020] In addition, in order to address the problem of inefficient migration in previous technologies, the PLC honey spot used in the present invention adopts a data-driven approach, which is not restricted by the type of data and only requires the historical usage records or historical data of the corresponding equipment to build the model, and the migration cost is low.
[0021] Optionally, when establishing communication with the visitor, the PLC honey spot sends feedback data to the visitor and releases a communication establishment signal to inform the visitor that the communication is established.
[0022] Its beneficial effects are:
[0023] In view of the problem that the previous technology cannot resist the attack on the PLC itself, the PLC honey spot in the present invention adopts a data-driven approach, does not actually deploy a real or simulated system, and is not affected by internal PLC attacks.
[0024] Optionally, when parsing the access request, the process includes: the PLC honey spot obtains a corresponding data format of the PLC device to be protected when facing the access request, and parses the access request based on the data format.
[0025] Its beneficial effects are:
[0026] The PLC honey spot obtains the response data and the format of the response data of the PLC device to be protected, and parses the access request based on the data format. This process enables the PLC honey spot to generate targeted feedback data for the access request.
[0027] Optionally, when parsing the access request and obtaining the parsing result, the parsing result includes query information and auxiliary data, the query information is used for matching data, and the auxiliary data is used for participating in the generation of feedback data.
[0028] Optionally, when querying matching data based on the parsing results, it includes: based on the query information, querying the memory information matching the query information in the historical data, the memory information is used to generate content to obtain a vector sequence, the historical data is initially the pre-collected communication data of the PLC device to be protected, and after the PLC honey spot is deployed, the communication data generated by the subsequent protected PLC devices is continuously collected.
[0029] Its beneficial effects are:
[0030] The PLC honey spot searches the historical data for matching memory information based on the query information obtained through analysis. The purpose of this step is to make the feedback data generated based on the memory information difficult for visitors to identify in a short time, at low cost, and with low impact, so that the feedback data generated by the PLC honey spot has a higher degree of confidence for visitors.
[0031] Optionally, when content generation is performed based on memory information to obtain a vector sequence, it includes:
[0032] The queried memory information is filled to obtain data that meets the input length of the data generation model, the filled data is embedded into the feature vector, the feature vector is positionally encoded, and a vector sequence is learned and generated based on the feature vector with position encoding.
[0033] Its beneficial effects are:
[0034] In this step, the queried memory information is converted into a form that can be understood by the data generation model through multiple steps. The data generation model learns the converted data and then generates similar data. The generated data is similar to the communication data during normal PLC device communication. However, since the data itself is generated in a targeted manner, when it is sent to the visitor as feedback data, it will not cause data leakage or equipment damage due to potential attacks.
[0035] Optionally, when generating feedback data based on a vector sequence, include:
[0036] The vector sequence is restored to the length of the memory information by truncation, and the truncated vector sequence is converted into content data of the same type as the memory information. Complete feedback data is constructed based on the content data and auxiliary data.
[0037] Its beneficial effects are:
[0038] This step converts the data generated by the data generation model and the auxiliary data obtained after parsing the access request to form complete feedback data. The feedback data is extremely deceptive to the visitor after this step. For the visitor, the feedback data is the communication data returned by the PLC device, so the visitor receives the feedback data and establishes a communication connection with the PLC honey spot.
[0039] Optionally, when searching for memory information matching the query information in historical data based on the query information, if no matching memory information is found, an error message is fed back to the visitor.
[0040] Its beneficial effects are:
[0041] When the PLC honey spot fails to query the matching memory information, the model has not learned this type of information, so the feedback error information is used to complete the complete information interaction process, simulating the characteristics of feedback errors in some instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is an overall flow chart of an internal attack perception method based on PLC honey spots;
[0043] Figure 2 A flow chart for generating feedback data for a PLC honey spot upon receiving a visitor's access request;
[0044] Figure 3 Flowchart for the data generation module to generate a vector sequence based on the queried memory information. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. 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. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meanings understood by people with general skills in the field to which the present invention belongs.
[0046] refer to Figure 1 The embodiment of the present invention provides an internal attack perception method based on a PLC honey point, comprising the following steps:
[0047] S1. Train the data generation model based on the training data set to obtain a trained data generation model;
[0048] S2, construct PLC honey spots based on the trained data generation model, and deploy the PLC honey spots in the system internal network;
[0049] S3. When the PLC honey spot obtains the access request and establishes communication with the visitor, the PLC honey spot senses the attack access issued from within the system to the PLC device to be protected.
[0050] Specifically, the training data set is the communication data when communicating with the PLC device to be protected in the system internal network; the PLC honey spot is used to obtain the access request sent from the system internally to the PLC device to be protected.
[0051] In fact, in step S1, when the data generation model is generated based on the training data set, after the training is completed, the data generation model can generate data of the same type as the communication data of the PLC device to be protected after receiving the data input.
[0052] Specifically, in industrial control systems, PLC devices follow dedicated communication protocols when communicating. These protocols vary depending on the vendors providing the service. All protocols are "request-response" protocols. In the communication between PC and PLC, the PC, as the initiator of the "request-response", is called the Master, and the PLC device, as the responder of the "request-response", is called the Slave.
[0053] The data generation model is trained using the communication data of the PLC device to be protected. The purpose is to enable the PLC honey spot to respond to access requests to the "request-response" communication data as a slave, just like the PLC device, after the data generation model is trained.
[0054] In fact, in step S2, when constructing the PLC honey spot based on the trained data generation model, the PLC honey spot includes three modules, an input parsing module, a memory query module and a message generation module, wherein the message generation module is the trained data generation model.
[0055] Specifically, the PLC honey spot, which includes three modules, can respond to the "request-response" as a slave like the PLC device after receiving the access request sent from the system internally, generate feedback data based on the access request and transmit it back to the visitor, and establish communication with the visitor. In the internal network, the PLC honey spot is a module that receives request data and feeds back response data.
[0056] When the devices inside the system are operating normally, the PLC honey spot cannot be accessed by the devices. When an attacker inside the system accesses the protected PLC device, the role of the PLC honey spot is to establish communication with the abnormal visitor when receiving the access request, so as to subsequently detect and identify the internal attacker.
[0057] In fact, reference Figure 2 In step S3, it also includes sub-step S3.1. When the PLC honey spot obtains an access request, it parses the access request and obtains a parsing result, queries matching data based on the parsing result, and generates feedback data based on the matching data.
[0058] In fact, reference Figure 2 , in step S3, it also includes sub-step S3.2, when the PLC honey spot establishes communication with the visitor, the PLC honey spot sends feedback data to the visitor and sends a communication establishment signal to inform the visitor that the communication is established.
[0059] Specifically, when establishing communication, the visitor first sends an access request, and the PLC honey spot replies with feedback data based on the access request. After sending requests and response data to each other multiple times, the PLC honey spot sends a communication establishment signal to the visitor, and then the PLC honey spot and the visitor establish a communication connection.
[0060] In fact, when parsing the access request, it includes: the PLC honey spot obtains the corresponding data format of the PLC device to be protected when facing the access request, and parses the access request based on the data format.
[0061] Specifically, in the communication between devices within the system, two devices will send data to each other multiple times, that is, multiple "request-response" data pairs. The data may be divided into various types of signals such as identity authentication, data transmission or communication termination. The PLC honey spot itself cannot classify the access request, so it is necessary to communicate with the PLC device to be protected to obtain the response data returned by the PLC device to be protected when facing the access request. The PLC honey spot will learn based on the response data and generate feedback data for the PLC honey spot to establish and maintain communication with the visitor.
[0062] In fact, reference Figure 2 In step S3.1, it also includes sub-step S3.1.1 to parse the access request and obtain the parsing result, the parsing result includes query information and auxiliary data, the query information is used to query the matching data, and the auxiliary data is used to participate in the generation of feedback data.
[0063] Specifically, when the PLC honey spot parses the access request, it parses the access request based on the correct information format obtained from the PLC device and the function code in the information format, and divides it into two parts: query information and auxiliary data. The query information is used by the PLC honey spot to query the response data that can match the access request. The auxiliary data does not contain the actual operating information or data of the device and is a necessary component structure of the communication data.
[0064] In fact, reference Figure 2 In step S3.1, it also includes sub-step S3.1.2. When querying matching data based on the parsing result, it includes: based on the query information, querying the memory information matching the query information in the historical data, the memory information is used to generate content to obtain a vector sequence, the historical data is initially the collected communication data of the PLC device to be protected, and after the PLC honey spot is deployed, the communication data generated by the subsequent PLC devices to be protected are continuously collected.
[0065] Specifically, the role of historical data is to provide a template that matches the access request when the PLC sweet spot receives an access request, so that the PLC sweet spot can generate similar data after learning. In this patent, when the PLC sweet spot is deployed, the historical data is consistent with the training data set. After the PLC sweet spot is deployed, the communication data generated by the PLC device during operation is continuously collected to reduce the situation where the PLC sweet spot has not learned some message data types.
[0066] In fact, step S3.1 also includes sub-step S3.1.3, in which the data generation module learns and generates a vector sequence based on the memory information, and generates complete feedback data based on the generated vector sequence and auxiliary data.
[0067] In fact, reference Figure 3In step S3.1.3, it also includes sub-step S3.1.3.1, when generating content based on memory information to obtain a vector sequence, it includes:
[0068] The queried memory message is filled to obtain data that meets the input length of the data generation model, the filled data is embedded into the feature vector, the feature vector is position-encoded, the feature vector with position encoding is input into the encoding layer for learning, and then input into the decoding layer to generate a vector sequence.
[0069] Specifically, the memory message is filled to a length that meets the input of the data generation model. The length is the length of the longest data in the training data set. After the filling is completed, the data is embedded into the feature vector and converted into a vector that can be processed by the model. The conversion expression is:
[0070] X embedded =Embedding(X input )=W embedding ·X input ;
[0071] Where X is an information vector or an intermediate vector, and its type is determined by the superscript. embedded is the feature vector after embedding the padded data, Embedding is the embedding layer function, X input is the initial eigenvector, W embedding is the weight matrix;
[0072] The feature vector is positionally encoded, and the expression of position encoding is:
[0073]
[0074] in is the i-th position of the vector sequence after position encoding, is the i-th position of the vector sequence after embedding the padding data and before position encoding, PosEnc(i) is the encoding function, and Length max is the maximum length of the sequence, i is the position in the vector sequence, and the encoding functions at odd and even positions are different;
[0075] When the feature vector with position encoding is input into the encoding layer for transformation and learning, the expression of the encoding layer is:
[0076] X encoded =Encoder(X positional );
[0077] X (n) =EncoderLayer (n) (X (n-1) ), n = 1, 2, ..., N;
[0078] Where X encoded is the vector sequence after the input encoding layer is encoded, Encoder() is the encoding function, X positional is a vector with positional encoding, X (n) EncoderLayer is the vector sequence after encoding the nth layer. (n) is the coding function of the nth layer, n is the number of coding layers, and is 3 in this patent;
[0079] The decoding layer formula is expressed as:
[0080] X decoded =Decoder(X input , X encoded );
[0081] Y (m) =DecoderLayer (m) (X input , Y (m-1) ), m=1,2,...,M;
[0082] Where X decoded is the vector sequence obtained after decoding the input decoding layer, Decoder() is the decoding function, X input is the initial eigenvector, Y (m) DecoderLayer is the decoded vector sequence of the mth layer. (m) is the decoding function of the mth layer, and m is the number of decoding layers, which is 3 in this patent.
[0083] For the scale of 11211 training data in the training data set, when the number of encoding layers and decoding layers is 3, the comprehensive evaluation of training effect and learning cost is optimal. When the number of encoding layers and decoding layers decreases, the learning result of the training data is poor and the generated result will not meet expectations. When the number of encoding layers and decoding layers increases, the cost of model training will increase significantly with the increase of each encoding layer and decoding layer.
[0084] For the training of different models, the number of encoding layers and decoding layers can be changed as needed. The number of encoding layers and decoding layers can be different. When there are high requirements for learning effects and a relatively high learning cost can be accepted, the number of encoding layers and decoding layers can be appropriately increased; when very accurate learning results are not required, the number of encoding layers and decoding layers can be appropriately reduced.
[0085] In fact, in step S3.1.3, it is also included in step S3.1.3.2, when generating feedback data based on the vector sequence, including:
[0086] The vector sequence is restored to the length of the memory information by truncation, the truncated vector sequence is converted into content data of the same type as the memory information, and complete feedback data is constructed based on the content data and auxiliary data.
[0087] Specifically, the generated vector sequence after inputting deep neural network learning is restored to the length of the memory information, thereby ensuring that the subsequently generated feedback data is consistent with the memory information format, and the vector sequence after the stage is converted into content data. Complete feedback data is constructed based on the content data and previously obtained auxiliary data. From the visitor's perspective, the feedback data is no different from the feedback data of the real PLC device and has a high degree of credibility.
[0088] In fact, in step S3.1.2, when searching for memory information matching the query information in historical data based on the query information, if no matching memory information is found, an error message is fed back to the visitor.
[0089] Specifically, when the PLC honey spot receives an access request and searches for matching memory information in historical data, if there is no matching memory message, it indicates that the data generation model has not learned this type of communication data. To ensure the integrity of the communication process, the PLC honey spot needs to feedback an error message to the access request, showing the visitor the characteristic of feedback errors when facing partial instructions.
[0090] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.
Claims
1. A system internal attack perception method based on PLC honey points, characterized in that: include: The data generation model is trained based on the training data set to obtain a trained data generation model; The training data set is the communication data when communicating with the PLC device to be protected in the internal network of the system; Building a PLC honey spot based on the trained data generation model, and deploying the PLC honey spot in the internal network of the system, wherein the PLC honey spot is used to obtain an access request issued from the system to the PLC device to be protected; When the PLC honey spot obtains the access request and establishes communication with the visitor, the PLC honey spot senses the attack access issued from within the system to the PLC device to be protected.
2. A sensing method according to claim 1, characterized in that: When the data generation model is trained based on the training data set, the data generation model can generate data of the same type as the communication data of the PLC device to be protected when receiving data input after the training is completed.
3. A sensing method according to claim 1, characterized in that: When the PLC honey spot obtains the access request, it parses the access request and obtains a parsing result, queries matching data based on the parsing result, and generates feedback data based on the matching data.
4. A sensing method according to claim 3, characterized in that: When establishing communication with a visitor, the PLC honey spot sends the feedback data to the visitor and sends a communication establishment signal to inform the visitor that the communication is established.
5. A sensing method according to claim 3, characterized in that: When parsing the access request, it includes: the PLC honey spot obtains the corresponding data format of the PLC device to be protected when facing the access request, and parses the access request based on the data format.
6. A sensing method according to claim 3, characterized in that: When the access request is parsed and a parsing result is obtained, the parsing result includes query information and auxiliary data, the query information is used to query matching data, and the auxiliary data is used to participate in the generation of feedback data.
7. A sensing method according to claim 6, characterized in that: When querying matching data based on the analysis result, it includes: based on the query information, querying the memory information matching the query information in the historical data, the memory information is used to generate content to obtain a vector sequence, the historical data is initially the communication data of the PLC device to be protected collected in advance, and after the PLC honey spot is deployed, the communication data generated by the subsequent PLC device to be protected is continuously collected.
8. A sensing method according to claim 7, characterized in that: When content generation is performed based on the memory information to obtain a vector sequence, the method includes: The queried memory message is filled to obtain data that meets the input length of the data generation model, the filled data is embedded into a feature vector, the feature vector is position-encoded, and a vector sequence is learned and generated based on the feature vector with the position encoding.
9. A sensing method according to claim 7, characterized in that: When generating feedback data based on the vector sequence, it includes: The vector sequence is restored to the length of the memory information by truncation, the truncated vector sequence is converted into content data of the same type as the memory information, and complete feedback data is constructed based on the content data and the auxiliary data.
10. A sensing method according to claim 7, characterized in that: When searching for memory information matching the query information in historical data based on the query information, if no matching memory information is found, error information is fed back to the visitor.
