Cloud-edge collaborative message unknown attack sensing system and method
Through the cloud-edge collaborative message unknown attack perception system, edge proxy devices and secure access gateways are used for encryption processing and attack detection, which solves the problems of malicious attacks and risk processing in power system network security, and realizes the detection of unknown attack behaviors. Timely discovery and proactive defense at the edge improve system security and stability.
Patent Information
- Application Number
- CN202410868704.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-27
AI Technical Summary
Power system network security faces the problem of malicious attacks and risk management affecting normal business processing. It is difficult to completely eradicate the security vulnerabilities of business applications themselves and discover unknown attack behaviors in a timely manner with existing technology.
Design a cloud-edge collaborative message-based unknown attack awareness system, including edge proxy equipment, secure access gateways, and power management and control subsystems. It detects attacks by encrypting and decrypting messages, and generates abnormal behavior notification instructions based on the detection results. , to achieve active defense at the edge.
It achieves timely attack detection on business messages, avoids security loopholes, improves system security, and improves the operational stability of the power business system without affecting normal business processing.
Smart Images

Figure CN118713896A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technologies, and in particular to a cloud-edge collaborative message unknown attack perception system and method. Background Art
[0002] With the continuous deepening of informatization, network information security has received more and more attention, and the risks faced by network security have also increased significantly. The network security of the power system is of great significance to national security and social stability.
[0003] In recent years, the large-scale construction of intelligent fusion terminals in substations has provided an effective technical means to achieve decentralized self-discipline, dynamic aggregation and collaborative control of massive distributed resources. Through the "cloud-pipe-edge-end" architecture, the deployment of substation fusion terminals and downward extension construction have laid a good foundation for local data interaction and coordinated interaction of substation resources. However, at the same time, the changes in network architecture and data interaction brought about by the needs of intelligent perception of controllable resources, local data interaction in substations, and coordinated interaction of substation resources have brought new challenges to network security protection. At present, the security protection of edge devices is mainly achieved through traditional security protection measures such as identity authentication, data encryption, and security auditing. The security vulnerabilities of its business applications are inevitable and difficult to completely eradicate. When problems are discovered and patches are loaded, it will not only affect the normal business development, but also easily introduce new security risks, making it difficult to ensure the avoidance of security risks for unknown vulnerabilities in business applications. Summary of the invention
[0004] In order to overcome the problem that the above-mentioned power grid system is susceptible to malicious attacks and risk processing affects normal business processing, the present invention provides a cloud-edge collaborative message unknown attack perception system, the system comprising:
[0005] An edge proxy device, a secure access gateway, a power business system, and a power management and control subsystem, wherein the edge proxy device is respectively connected to the secure access gateway and the power management and control subsystem in communication, and the secure access gateway is respectively connected to the power business system and the power management and control subsystem in communication;
[0006] The edge proxy device is used to receive the service data reported by the service terminal, encrypt and forward the service data;
[0007] The secure access gateway is configured to receive the encrypted message of the business data forwarded by the edge agent, decrypt the encrypted message to obtain a decrypted message; and send the decrypted message to the power business system and the power management and control subsystem in the cloud;
[0008] The power control subsystem is used to perform attack detection on the received decrypted message, generate an abnormal behavior notification instruction when the attack detection result is abnormal, and send the abnormal behavior notification instruction to the edge proxy device;
[0009] The edge proxy device is further configured to isolate the service terminal that reports the service data based on the received abnormal behavior notification instruction.
[0010] Optionally, the secure access gateway includes a bypass message analysis module, and the bypass message analysis module is respectively communicatively connected with the power business system and the power management and control subsystem;
[0011] The bypass message analysis module is used to divide each frame data of the decrypted message into multiple segments, parse the multiple segments in parallel, and send the parsing results to the power business system and the power management and control subsystem.
[0012] Optionally, the bypass message analysis module includes: a first field division submodule, a second field division submodule and a field parsing submodule, the first field division submodule and the second field division submodule are communicatively connected, and the second field division submodule and the field parsing submodule are communicatively connected;
[0013] The first field division submodule is used to divide each frame of data into fields based on the variability of the positions of the fields, and obtain corresponding fixed position fields and variable position fields;
[0014] A second field division submodule divides the fixed position field and the variable position field into subfields to obtain a corresponding plurality of fixed position subfields and a plurality of variable position subfields;
[0015] The field parsing submodule is used to parse the fixed position subfield according to the fixed length of the field for each of the fixed position subfields; for each of the variable position subfields, determine the corresponding target key field through field scanning, and parse the target field value associated with the variable position subfield based on the target key field.
[0016] Optionally, the edge proxy device includes an active defense module, and the active defense module is communicatively connected to the bypass message analysis module;
[0017] The active defense module is used to obtain the terminal identification and terminal type of the service terminal that reports the service data, and send the terminal identification and the terminal type to the secure access gateway;
[0018] The bypass message analysis module is further used to determine the frame sequence number of the frame data corresponding to the analysis result, and send the analysis result, the terminal identifier, the terminal type and the frame sequence number to the power management and control subsystem.
[0019] Optionally, the bypass message analysis module is further used to send the analysis result, the terminal identifier, the terminal type and the frame sequence number to the power management and control subsystem through a message queue.
[0020] Optionally, the power management and control subsystem includes:
[0021] The first attack detection module is used to match the corresponding target business protocol based on the terminal type, determine the corresponding target whitelist based on the target business protocol, perform attack detection on the parsing result based on the target whitelist, and determine that the attack detection result is abnormal if the parsing result does not belong to the target whitelist.
[0022] Optionally, the power management and control subsystem includes:
[0023] The second attack detection module is used to count the keyword-related indicator information corresponding to each frame data based on the frame sequence number, and determine the attack detection result by traversing a pre-built anomaly detection model based on the keyword-related indicator corresponding to each frame data.
[0024] Optionally, the keyword-related index includes at least one of a keyword occurrence frequency index, a two-keyword co-occurrence frequency index, and a time interval index between two adjacent occurrences of each keyword.
[0025] Optionally, the second attack detection module is further used to:
[0026] Obtain historical business data;
[0027] Parse each frame of data in the historical business data to extract keywords from each frame of data; use each keyword as a node, use the keyword occurrence frequency as the first attribute of the node, and use the time interval between two adjacent occurrences of each keyword as the second attribute of the node;
[0028] An edge is constructed between the corresponding nodes of two keywords that appear at the same time, and the anomaly detection model is constructed by taking the co-occurrence frequency of the two keywords as the attribute of the edge.
[0029] Optionally, the second attack detection module is further used to determine whether the keyword-related indicator satisfies at least one of the following:
[0030] whether the keyword occurrence frequency index exceeds the value of the first attribute of the corresponding node in the anomaly detection model;
[0031] whether the time interval between two consecutive occurrences of each of the keywords exceeds the value of the second attribute of the corresponding node in the anomaly detection model;
[0032] whether the co-occurrence frequency index of the two keywords exceeds the attribute value of the corresponding edge in the anomaly detection model;
[0033] If so, the attack detection result is determined to be abnormal.
[0034] Optionally, the service data includes the terminal identifier;
[0035] The edge proxy device is further used to forward the encrypted message carrying the terminal identification to the secure access gateway;
[0036] The power management and control subsystem is further used to receive the terminal identification sent by the secure access gateway.
[0037] Optionally, the service data does not include the terminal identifier;
[0038] The edge proxy device is also used to assign a terminal identifier to each service terminal and record the communication link between each service terminal and the edge proxy device to form an edge proxy connection relationship library, and forward the encrypted message carrying the terminal identifier to the secure access gateway;
[0039] The power management and control subsystem is further used to receive the terminal identification sent by the secure access gateway.
[0040] Optionally, the power control subsystem includes an instruction issuing module, and the instruction issuing module is communicatively connected to the first attack detection module and the second attack detection module respectively;
[0041] The instruction issuing module is used to receive the attack detection results sent by the first attack detection module and the second attack detection module, and generate a corresponding abnormal behavior notification instruction based on the attack detection results and the terminal identifier; determine a target communication link corresponding to the terminal identifier based on the edge proxy connection relationship library, and send the abnormal behavior notification instruction to the corresponding edge proxy device based on the target communication link;
[0042] The active defense module is used to parse the abnormal behavior notification instruction to obtain the terminal identifier, traverse the edge proxy connection relationship library based on the terminal identifier to filter out the target communication link, and close the target communication link.
[0043] Optionally, the edge proxy and the secure access gateway perform data transmission by constructing an encrypted channel serving the business.
[0044] On the other hand, the present invention also provides a cloud-edge collaborative message unknown attack perception method, comprising:
[0045] The edge proxy device receives the service data reported by the service terminal, and encrypts the service data to obtain an encrypted message;
[0046] Decrypting the encrypted message through the secure access gateway to obtain a decrypted message, and sending the decrypted message to the power business system and the power management and control subsystem in the cloud;
[0047] Performing attack detection on the decrypted message through the power control subsystem, generating an abnormal behavior notification instruction when the attack detection result is abnormal, and sending the abnormal behavior notification instruction to the edge proxy device;
[0048] The service terminal that reports the service data is isolated by the edge proxy device based on the received abnormal behavior notification instruction.
[0049] On the other hand, the present invention also provides an electronic device, comprising: at least one processor and a memory; the memory and the processor are connected via a bus;
[0050] The memory is used to store one or more programs;
[0051] When the one or more programs are executed by the at least one processor, the cloud-edge collaborative message unknown attack perception method described in any one of the above items is implemented.
[0052] On the other hand, the present invention also provides a readable storage medium having an execution program stored thereon. When the execution program is executed, the cloud-edge collaborative message unknown attack perception method described in any one of the above items is implemented.
[0053] Compared with the prior art, the present invention has the following beneficial effects:
[0054] The present invention provides a cloud-edge collaborative message unknown attack perception system. On the one hand, by simultaneously sending business messages to the power management and control subsystem and the power business system at the secure access gateway, the system can perform attack detection on the business messages, thereby timely discovering unknown attack behaviors against the business, avoiding security loopholes caused by the business itself, and improving system security; at the same time, the access attack detection capability attack detection serves as a business system bypass, does not affect the normal business processing process, and the terminal business message is normally transmitted to the power business system before the abnormality is detected; on the other hand, by performing attack detection in the power management and control subsystem and generating an abnormal behavior notification instruction based on the detection result and issuing it to the edge end, the edge end can realize active defense of the edge end based on the instruction, thereby improving the operating stability of the power business system. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is one of the structural schematic diagrams of a cloud-edge collaborative message unknown attack perception system of the present invention;
[0056] Figure 2 Schematic diagram of the parsing process of the fixed position field of the present invention;
[0057] Figure 3 Schematic diagram of the parsing process of the variable position field of the present invention;
[0058] Figure 4 A schematic diagram of the data processing flow of the bypass message analysis module, the first attack detection module and the second attack detection module of the present invention;
[0059] Figure 5 It is a structural schematic diagram of the anomaly detection model of the present invention;
[0060] Figure 6 This is the second structural diagram of the cloud-edge collaborative message unknown attack perception system of the present invention;
[0061] Figure 7 A flowchart of a cloud-edge collaborative message unknown attack perception method of the present invention;
[0062] Figure 8 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION
[0063] The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.
[0064] Embodiment 1:
[0065] The present invention provides a cloud-edge collaborative message unknown attack perception system, the system diagram is as follows Figure 1 As shown, it includes: an edge proxy device 110, a secure access gateway 120, an electric power business system 130 and an electric power management and control subsystem 140. The edge proxy device 110 is respectively communicated with the secure access gateway 120 and the electric power management and control subsystem 140, and the secure access gateway 120 is respectively communicated with the electric power business system 130 and the electric power management and control subsystem 140.
[0066] The edge proxy device 110 is used to receive the service data reported by the service terminal, encrypt the service data and forward it;
[0067] The secure access gateway 120 is used to receive the encrypted message of the business data forwarded by the edge proxy device 110, decrypt the encrypted message to obtain the decrypted message; and send the decrypted message to the power business system 130 and the power management and control subsystem 140 in the cloud;
[0068] The power control subsystem 140 is used to perform attack detection on the received decrypted message, generate an abnormal behavior notification instruction when the attack detection result is abnormal, and send the abnormal behavior notification instruction to the edge proxy device 110;
[0069] The edge proxy device 110 is further configured to isolate the service terminal that reports the service data based on the received abnormal behavior notification instruction.
[0070] In this example implementation, the business terminal can be various terminal devices in the power system, such as smart meter devices, and the edge proxy device 110 is used to transfer part of the cloud data processing and analysis tasks from the cloud to the edge node where the business terminal is located, so as to reduce data transmission delay, reduce network bandwidth occupancy, and improve the real-time and stability of the system. The business terminal and the edge proxy device 110 are deployed at the edge. The secure access gateway 120 is used to securely access the edge node to the power business system 130, and the secure access gateway 120, the power business system 130 and the electronic control subsystem 140 are deployed in the cloud. The edge device forms an access channel to the cloud through the 5G DNN (Data Network Name) network. After the system is started, a message unknown attack perception and analysis channel is established between the secure access gateway 120 and the electronic control subsystem 140, a secure encryption channel for business services is established between the edge proxy device 110 and the secure access gateway 120, and an active defense channel for cloud-edge collaboration is established between the edge proxy device 110 and the electronic control subsystem 140. After the channel is built, when the business terminal accesses the business service of the power business system 130, the secure access gateway 120 parses the business data sent by the edge proxy device 110, and reports the analysis result to the electronic control subsystem 140. The electronic control subsystem 140 performs attack detection based on the reported analysis result, finds terminal abnormalities, and actively notifies the edge proxy device 110 to isolate the abnormal business terminal.
[0071] The present invention provides a cloud-edge collaborative message unknown attack perception system. On the one hand, by sending the business message to the power control subsystem and the power business system at the same time in the secure access gateway, the system can perform attack detection on the business message, thereby timely discovering unknown attack behaviors against the business, avoiding security vulnerabilities caused by the business itself, and improving system security; at the same time, the attack detection capability of the access is used as a bypass of the business system, which does not affect the normal business processing process. Before the abnormality is detected, the terminal business message is normally transmitted to the power business system; on the other hand, by performing attack detection in the power control subsystem and generating an abnormal behavior notification instruction based on the detection result and sending it to the edge end, the edge end can realize active defense of the edge end based on the instruction, thereby improving the operation stability of the power business system. Specifically, on the basis of the secure channel, by analyzing the business message in the cloud, the unknown attack behavior of the business terminal is detected, and through the interactive control instruction between the power control subsystem and the edge end device, the edge proxy device is triggered to actively interrupt the abnormal terminal, thereby enhancing the active defense capability of the power business system and improving the stable operation of the power business system.
[0072] At present, in terms of vulnerability and hidden danger investigation, attack threat identification and confirmation, etc., there are deficiencies in the efficiency of hidden danger discovery and disposal due to the complex and large number of target types and the lack of universal technical solutions.
[0073] In view of the above problems, in an exemplary implementation of the present invention, the secure access gateway includes a bypass message analysis module, which is respectively connected to the power business system and the power management and control subsystem in communication;
[0074] The bypass message analysis module is used to divide each frame data of the decrypted message into multiple fragments, parse the multiple fragments in parallel, and send the parsing results to the power business system and the power management and control subsystem.
[0075] In this example implementation, the decrypted message is analyzed frame by frame, and the segments can be divided according to a certain field length. For example, the message is divided into multiple segments, and the multiple segments are parsed in parallel. The parsing results are sent to the power business system and the power control subsystem respectively, and the business service is accessed normally through the power business system, and abnormal behavior detection is performed through the power control subsystem. This example can improve the message parsing efficiency and system processing efficiency through segment division and parallel parsing, thereby improving the efficiency of handling system security risks.
[0076] Exemplarily, the bypass message analysis module includes: a first field division submodule, a second field division submodule and a field parsing submodule, the first field division submodule and the second field division submodule are communicatively connected, and the second field division submodule and the field parsing submodule are communicatively connected;
[0077] The first field division submodule is used to divide each frame of data into fields based on the position variability of the key field to obtain corresponding fixed position fields and variable position fields;
[0078] The second field division submodule divides the fixed position field and the variable position field into subfields to obtain a corresponding plurality of fixed position subfields and a plurality of variable position subfields;
[0079] The field parsing submodule is used to parse the fixed position subfield according to the fixed length of each fixed position subfield; for each variable position subfield, determine the corresponding target key field through field scanning, and parse the target field value associated with the variable position subfield based on the target key field.
[0080] In this example implementation, the first field division submodule can divide the service message into fixed position fields and variable position fields according to the service message type and based on the message protocol format of the service message type. The service message types may include power consumption information messages and distribution automation messages, and the corresponding message protocols are the power consumption information collection protocol and the distribution automation protocol, respectively. The fixed fields and variable fields of the message are determined based on the corresponding protocols. The second field division submodule can divide the fixed position field and the variable position field into subfields, respectively, and then parse the divided subfields through the field parsing submodule. For each fixed position subfield, such as Figure 2 As shown, each subfield and its corresponding content, i.e., keyword and corresponding value, are parsed in parallel according to the fixed size. For variable position subfield parsing, such as Figure 3 As shown, for each segmented segment (segment 1 to segment N), the key field is scanned, and after the key field is found, the associated field value is parsed.
[0081] In some example implementations, the edge proxy device includes an active defense module, the active defense module being communicatively connected to the bypass message analysis module;
[0082] An active defense module, used to obtain the terminal identification and terminal type of the service terminal reporting the service data, and send the terminal identification and terminal type to the secure access gateway;
[0083] The bypass message analysis module is also used to determine the frame sequence number of the frame data corresponding to the analysis result, and send the analysis result, terminal identification, terminal type and frame sequence number to the power control subsystem.
[0084] In this example implementation, for the business data reported by the business terminal, the terminal identifier of the business terminal reporting the business data will be used as a mark to connect the business message with the business terminal during its transmission process, and the corresponding business terminal will be located by the terminal identifier to achieve accurate defense. The power control subsystem matches the corresponding business protocol based on the terminal type, and counts the keywords in the same frame based on the frame sequence number to achieve attack detection.
[0085] Exemplarily, the business data includes a terminal identifier; the edge proxy device is further used to forward an encrypted message carrying the terminal identifier to a secure access gateway; and the power management and control subsystem is further used to receive the terminal identifier sent by the secure access gateway.
[0086] In this example implementation, the service data reported by the service terminal carries the terminal identifier of the reported service data. In this case, the edge proxy device can carry the terminal identifier during message processing and forwarding to facilitate subsequent terminal isolation when abnormalities are detected.
[0087] In other examples, the business data does not include the terminal identification; the edge proxy device is also used to assign a terminal identification to each business terminal and record the communication link between each business terminal and the edge proxy device to form an edge proxy connection relationship library, and forward the encrypted message carrying the terminal identification to the secure access gateway; the power control subsystem is also used to receive the terminal identification sent by the secure access gateway.
[0088] In this example implementation, some service terminals cannot carry their own information when reporting service data. In this case, the edge proxy device can be used to assign corresponding terminal identifiers to each service terminal, and record the communication link (i.e., connection relationship) between the service terminal and the edge proxy device to form an edge proxy connection relationship library, and perform subsequent information transmission based on the assigned terminal identifiers. The above implementation method can broaden the terminal types applicable to this solution.
[0089] In some example implementations, the bypass message analysis module is further used to send the analysis result, terminal identification, terminal type and frame sequence number to the power management and control subsystem through the message queue.
[0090] In this example implementation, the bypass message analysis module can send attack detection related information (analysis results, terminal identification, terminal type and frame sequence number) to the management and control subsystem through the message queue. Information transmission through the message queue can address the rate mismatch problem between the message parsing end and the attack detection end to achieve real-time data processing for attack detection.
[0091] In terms of current security risk handling, although automated disposal measures such as "one-click blocking" can be implemented, a large amount of manual intervention is still required in the early stage, and it can only deal with problems such as IP blocking involving protection tasks with a single type of security protection equipment and simple protection strategies. In another example implementation of the present invention, the power management and control subsystem includes: a first attack detection module, which is used to match the corresponding target business protocol based on the terminal type, determine the corresponding target whitelist based on the target business protocol, perform attack detection on the parsing result based on the target whitelist, and if the parsing result does not belong to the target whitelist, determine that the attack detection result is abnormal.
[0092] In this example implementation, different terminal types may correspond to different service protocol types. For example, the service protocol type may be a power consumption information collection service protocol (corresponding to a smart meter terminal or concentrator), a distribution automation protocol (corresponding to various distribution terminals), etc. A corresponding whitelist may be configured for each service protocol type, and corresponding keywords and corresponding values or ranges may be configured in the whitelist. Figure 4 As shown in the upper part of , the keywords and values (parsing results) obtained after the parallel parsing of the message are matched against the whitelist, and when the parsing results exceed the range of the corresponding target whitelist, the detection result is determined to be abnormal. This implementation method performs attack detection based on terminal type, so that this solution can be applied to various terminals, which can broaden the scope of terminals applicable to this solution, and no manual intervention is required in the early stage, realizing a fully automated attack detection process.
[0093] At present, physical and communication networks are gradually merged into a single network, and it is possible to destroy information network facilities by operating physical devices. The large number of distributed terminal devices connected in new business applications makes it possible to use Trojan programs to control terminals, form botnets, launch DDOS (Distributed Denial of Service) attacks and other malicious attacks. Because the above-mentioned malicious attack methods are usually encrypted and produce a variety of malware variants over time, they are highly concealed and act at the distributed terminal level. Existing perception and detection methods are difficult to detect. In response to this problem, in another example implementation of the present invention, the power control subsystem includes a second attack detection module. Before the second attack detection module performs attack detection, it is necessary to first build an anomaly detection model. The specific process is as follows:
[0094] Obtain historical business data;
[0095] Parse each frame of historical business data to extract keywords from each frame; use each keyword as a node, the keyword occurrence frequency as the first attribute of the node, and the time interval between two adjacent occurrences of each keyword as the second attribute of the node;
[0096] An edge is constructed between the corresponding nodes of two keywords that appear at the same time, and the co-occurrence frequency of the two keywords is used as the attribute of the edge to build an anomaly detection model.
[0097] In this example implementation, the historical business data may be the normal access business data of the power system in a specified historical period. For the historical business data, each frame of business data is first parsed to extract all the keywords in each frame; for each keyword, if the keyword node does not exist, a new keyword node is created, and the frequency attribute of the node is added (the first attribute of the node), and the frequency attribute value of the keyword is increased by 1, and all nodes are traversed. If there is no relationship between two keywords that appear at the same time, a new edge of the keyword association relationship is created, and the edge attributes corresponding to the co-occurrence frequency of the two keywords are added. The time interval between two adjacent occurrences of each keyword (the second attribute of the node) is counted, and the second attribute of the node is updated. When two keywords appear at the same time, the edge attribute value is increased by 1. After traversing all historical business data, an anomaly detection model is obtained. Figure 5 As shown in the figure, it is a structural diagram of the constructed anomaly detection model. The key fields 1, 2, 3, etc. in the figure are nodes. The nodes have a first attribute (frequency of occurrence) and a second attribute (the time interval between two adjacent occurrences). There are connecting edges between the nodes, and the edge attribute is the co-occurrence frequency of the two nodes, that is, the frequency / number of times the two nodes appear at the same time.
[0098] After the anomaly detection model is obtained, the second attack detection module is used to count the keyword-related index information corresponding to each frame data based on the frame sequence number, and determine the attack detection result by traversing the pre-built anomaly detection model based on the keyword-related index corresponding to each frame data.
[0099] In this example implementation, the keyword-related index may include at least one of a keyword occurrence frequency index, a two-keyword co-occurrence frequency index, and a time interval index between two adjacent occurrences of each keyword. The keyword-related index is statistically analyzed for each frame of data, and the statistical result is matched with the anomaly detection model to determine the attack detection result.
[0100] Exemplarily, the specific process of matching the statistical results with the anomaly detection model in the second attack detection module is as follows:
[0101] Determine whether the keyword-related indicators meet at least one of the following:
[0102] Whether the keyword occurrence frequency index exceeds the value of the first attribute of the corresponding node in the anomaly detection model;
[0103] Whether the time interval between two consecutive occurrences of each keyword exceeds the value of the second attribute of the corresponding node in the anomaly detection model;
[0104] Whether the co-occurrence frequency index of two keywords exceeds the attribute value of the corresponding edge in the anomaly detection model;
[0105] If so, the attack detection result is determined to be abnormal.
[0106] In this example implementation, it can be determined that if any one of the frequency of a keyword, the co-occurrence frequency of two keywords, and the time interval between two adjacent occurrences of each keyword exceeds the corresponding threshold range in the anomaly detection model, then the detection result can be determined to be abnormal, such as Figure 4 As shown in the lower part. In addition, it can be set that when a certain keyword cannot be matched in the model, it can also be considered an abnormality. By designing keyword-related indicators, anomaly detection is performed from multiple aspects such as keyword occurrence frequency, time interval between adjacent keywords, and co-occurrence frequency between keywords. Detection is performed based on the statistical laws of abnormal behavior, improving the system's ability to identify various hidden malicious attacks based on newly connected distributed terminals.
[0107] In some embodiments, the power control subsystem includes an instruction issuing module, which is communicatively connected to the first attack detection module and the second attack detection module respectively;
[0108] The instruction issuing module is used to receive the attack detection results sent by the first attack detection module and the second attack detection module, and generate a corresponding abnormal behavior notification instruction based on the attack detection results and the terminal identifier; determine the target communication link corresponding to the terminal identifier based on the edge agent connection relationship library, and send the abnormal behavior notification instruction to the corresponding edge agent device based on the target communication link;
[0109] The active defense module is used to parse the abnormal behavior notification instruction to obtain the terminal identification, and based on the terminal identification, traverse the edge proxy connection relationship library to filter out the target communication link and close the target communication link.
[0110] In this example implementation, when the instruction issuing module receives the attack detection results of the first attack detection module and the second attack detection module, it determines whether the attack detection results are abnormal. If the detection results are abnormal, it generates a corresponding abnormal behavior notification instruction based on the terminal identification. For example, the terminal ID is used as the KEY to generate an abnormal behavior notification instruction and send it to the edge proxy device corresponding to the terminal ID. The edge proxy connection relationship library maintained by the instruction issuing module can be used to determine the specific edge proxy device and then issue the instruction. After receiving the notification instruction, the edge proxy device determines the corresponding target communication link based on the terminal ID, that is, the edge proxy device is the edge proxy connection of the service terminal, and closes the proxy connection to achieve a precise active defense process at the edge.
[0111] In some implementations, the edge proxy and the secure access gateway transmit data by building an encrypted channel that serves the business. For example, communication can be performed through a power-specific security protocol to ensure security during data transmission.
[0112] The present invention will be described below with a specific embodiment. Figure 6 As shown, the attack perception system may include an edge proxy device, a secure access gateway, a power business system and a power management and control subsystem. The edge proxy device includes an active defense module, the secure access gateway includes a bypass message analysis module, and the power management and control subsystem includes an instruction issuing module, a first attack detection module and a second attack detection module. In addition, the edge proxy device and the secure access gateway both include a message forwarding module, a power safety protocol processing module and an encryption module. The specific implementation process includes:
[0113] (1) System initialization.
[0114] (1.1) Initialization of the first attack detection module and the second attack detection module. After the secure access gateway is started, the bypass message analysis module is loaded. After the bypass message analysis module is started, the message queue is initialized and the service message is obtained from the (non-blocking) message queue. After the bypass message analysis module is started, a connection is established to the power control subsystem, such as a TCP (transmission Control Protocol) connection. After the power control subsystem is started, the first attack detection module, the second attack detection module, the whitelist of key fields, etc. are loaded.
[0115] (1.2) Initialization of the encrypted channel. After the secure access gateway is started, the encryption module, power safety protocol processing module and message forwarding module are loaded. The power safety protocol processing module starts the monitoring service and receives the request to establish an encrypted channel initiated by the edge proxy device; the message forwarding module loads the configured business service address, power control subsystem address and message queue, and after receiving the business data from the business terminal, forwards it to the power business system, and at the same time provides it to the first attack detection module and the second attack detection module of the power control subsystem through the message queue.
[0116] (1.3) Initialization of the cloud-edge collaboration mechanism. After the encrypted channel between the edge proxy device and the secure access gateway is established, the active defense module of the edge proxy device initiates a request to establish a communication channel with the power control subsystem through the encrypted channel for issuing instructions.
[0117] (2) Business message anomaly detection and analysis.
[0118] (2.1) After the encrypted channel between the edge proxy device and the secure access gateway is established, the business terminal and the power business system establish a business communication channel through the encrypted channel and start business data interaction.
[0119] (2.2) The business terminal reports the business data, which is encapsulated by the power safety protocol processing module of the edge proxy device and then forwarded to the security access gateway through an encrypted channel by the data forwarding module.
[0120] (2.3) After the power safety protocol processing module in the secure access gateway decrypts the business data, it forwards the decrypted business data to the power business system through the data forwarding module, and forwards it to the first attack detection module and the second attack detection module of the power management and control subsystem through the message queue.
[0121] (2.4) Syntax parsing of business messages.
[0122] (2.4.1) For each type of service message, the key fixed fields and variable fields of the message are divided according to the message protocol format. For a specific frame of service data message to be parsed, the fixed positions and variable positions of the key fields are divided into multiple equal parts, and each equal part is parsed in parallel.
[0123] (2.4.2) Fixed position field parsing: For each equal part, parse the keyword and the corresponding value according to the fixed size, and report the parsing result with the terminal ID, terminal type and frame number to the power control subsystem.
[0124] (2.4.3) Variable position field analysis: For each equal part, scan the key field, find the key field, and parse the associated field value. Report the analysis result with the terminal ID, terminal type and frame number to the power control subsystem.
[0125] (2.4.4) Whitelist matching: The power control subsystem receives the parsing result, matches the corresponding business protocol according to the terminal type, and compares it with the data in the whitelist according to the keyword and value. If it does not belong to the whitelist, it determines that the message is abnormal. When the message is judged to be abnormal, the terminal ID is used as the KEY to generate an abnormal behavior notification instruction.
[0126] (2.5) Semantic-based business message analysis.
[0127] (2.5.1) Build an anomaly detection model: You can use machine learning methods to train a large amount of historical business data collected in advance to build a model. The specific process is as follows:
[0128] Parse each frame of service message in the historical service data and extract all keywords in each frame.
[0129] Construct nodes: For each keyword, if the keyword node does not exist, create the corresponding keyword node, add the first attribute corresponding to the frequency of occurrence and the second attribute corresponding to the time interval between two adjacent occurrences, and add 1 to the first attribute value.
[0130] Build the relationship between nodes: traverse all nodes. If there is no relationship between two keywords that appear at the same time, create an edge corresponding to the keyword association relationship, increase the attribute value of the co-occurrence frequency attribute edge of the two keywords by 1, and count the time interval between the two keywords appearing at the same time.
[0131] (2.5.2) Attribute information of data keywords.
[0132] After receiving the analysis result sent by the bypass message analysis module, the power control subsystem counts the keywords of the same frame according to the frame sequence number.
[0133] Count the frequency of keyword appearance, the frequency of two keywords appearing at the same time, and the time interval between two keyword appearances.
[0134] (2.5.3) Model-based detection.
[0135] Iterate over the anomaly detection model.
[0136] Compare whether the frequency of the keyword exceeds the corresponding frequency threshold in the model. If it exceeds, the terminal ID is used as the KEY and an abnormal behavior notification instruction is generated.
[0137] Compare whether the frequency of the two keywords appearing at the same time exceeds the corresponding co-occurrence frequency threshold in the model. If it exceeds, the terminal ID is used as the KEY and an abnormal behavior notification instruction is generated.
[0138] Compare whether the time interval of the keyword appearance deviates from the corresponding time interval range in the model. If it exceeds, the terminal ID is used as the KEY to generate an abnormal behavior notification instruction.
[0139] (3) Abnormal behavior triggers active defense.
[0140] (3.1) Based on the terminal ID in the abnormal behavior notification instruction, the relationship database between the terminal and the edge agent is traversed, and the abnormal behavior notification instruction is sent to the corresponding edge agent device.
[0141] (3.2) The active defense module of the edge proxy device parses the terminal ID in the abnormal behavior notification instruction, and through the terminal ID, traverses the table data between the terminal ID and the proxy connection, finds the proxy connection of the abnormal terminal, and actively closes the proxy connection.
[0142] Based on the secure channel, the present invention analyzes the business messages in the cloud to detect unknown attack behaviors of the business terminals, and triggers the edge devices to actively interrupt the abnormal terminals through the interactive control instructions between the power management and control subsystem in the cloud and the edge devices. Through the automated collaborative defense solution, the active defense capability of the power grid system is enhanced, and the stable operation of the power business system is improved.
[0143] Embodiment 2:
[0144] Based on the same inventive concept, the present invention also provides a cloud-edge collaborative message unknown attack perception method, the flow chart of which is as follows: Figure 7 As shown, the following steps are included:
[0145] Step S710, receiving service data reported by the service terminal through the edge proxy device, and encrypting the service data to obtain an encrypted message;
[0146] Step S720: decrypt the encrypted message through the secure access gateway to obtain a decrypted message, and send the decrypted message to the power business system and power management and control subsystem in the cloud;
[0147] Step S730, performing attack detection on the decrypted message through the power control subsystem, generating an abnormal behavior notification instruction when the attack detection result is abnormal, and sending the abnormal behavior notification instruction to the edge proxy device;
[0148] Step S740: Isolate the service terminal that reports the service data based on the received abnormal behavior notification instruction through the edge proxy device.
[0149] In a possible implementation, the method further includes:
[0150] Each frame data of the decrypted message is divided into multiple fragments through the secure access gateway, the multiple fragments are parsed in parallel, and the parsing results are sent to the power business system and the power management and control subsystem.
[0151] In a possible implementation, each frame of the decrypted message is divided into multiple segments, and the multiple segments are parsed in parallel, including:
[0152] Based on the position variability of the fields, each frame of data is divided into fields to obtain corresponding fixed position fields and variable position fields;
[0153] Divide the fixed position field and the variable position field into subfields respectively to obtain corresponding multiple fixed position subfields and multiple variable position subfields;
[0154] For each fixed position subfield, the fixed position subfield is parsed according to the fixed length of the field; for each variable position subfield, the corresponding target key field is determined by field scanning, and the target field value associated with the variable position subfield is parsed based on the target key field.
[0155] In a possible implementation, the method further includes:
[0156] Obtain the terminal identification and terminal type of the service terminal that reports the service data through the edge proxy device, and send the terminal identification and terminal type to the secure access gateway;
[0157] The frame number of the frame data corresponding to the analysis result is determined through the secure access gateway, and the analysis result, terminal identification, terminal type and frame number are sent to the power control subsystem.
[0158] In a possible implementation, sending the parsing result, the terminal identifier, the terminal type, and the frame sequence number to the power management and control subsystem includes:
[0159] The parsing results, terminal identification, terminal type and frame number are sent to the power control subsystem through the message queue.
[0160] In a possible implementation, attack detection is performed on the decrypted message by the power control subsystem, including:
[0161] The power control subsystem matches the corresponding target business protocol based on the terminal type, determines the corresponding target whitelist based on the target business protocol, and performs attack detection on the parsed result based on the target whitelist. If the parsed result does not belong to the target whitelist, the attack detection result is determined to be abnormal.
[0162] In a possible implementation, attack detection is performed on the decrypted message by the power control subsystem, including:
[0163] The power control subsystem collects keyword-related indicator information corresponding to each frame data based on the frame sequence number, and determines the attack detection result by traversing the pre-built anomaly detection model based on the keyword-related indicators corresponding to each frame data.
[0164] In a possible implementation, the keyword-related index includes at least one of a keyword occurrence frequency index, a two-keyword co-occurrence frequency index, and a time interval index between two adjacent occurrences of each keyword.
[0165] In a possible implementation, the method further includes:
[0166] Obtain historical business data;
[0167] Parse each frame of historical business data to extract keywords from each frame; use each keyword as a node, the keyword occurrence frequency as the first attribute of the node, and the time interval between two adjacent occurrences of each keyword as the second attribute of the node;
[0168] An edge is constructed between the corresponding nodes of two keywords that appear at the same time, and the co-occurrence frequency of the two keywords is used as the attribute of the edge to build an anomaly detection model.
[0169] In a possible implementation, based on the keyword-related indicators corresponding to each frame data, the attack detection result is determined by traversing a pre-built anomaly detection model, including:
[0170] Determine whether the keyword-related indicators meet at least one of the following:
[0171] Whether the keyword occurrence frequency index exceeds the value of the first attribute of the corresponding node in the anomaly detection model;
[0172] Whether the time interval between two consecutive occurrences of each keyword exceeds the value of the second attribute of the corresponding node in the anomaly detection model;
[0173] Whether the co-occurrence frequency index of two keywords exceeds the attribute value of the corresponding edge in the anomaly detection model;
[0174] If so, the attack detection result is determined to be abnormal.
[0175] In a possible implementation manner, the service data includes a terminal identifier; and the method further includes:
[0176] The encrypted message carrying the terminal identification is forwarded to the secure access gateway through the edge proxy device;
[0177] The terminal identification sent by the secure access gateway is received through the power management and control subsystem.
[0178] In a possible implementation manner, the service data does not include a terminal identifier; and the method further includes:
[0179] The edge proxy device allocates a terminal identifier to each service terminal and records the communication link between each service terminal and the edge proxy device to form an edge proxy connection relationship database, and forwards the encrypted message carrying the terminal identifier to the secure access gateway;
[0180] The terminal identification sent by the secure access gateway is received through the power management and control subsystem.
[0181] In a possible implementation, generating an abnormal behavior notification instruction and sending the abnormal behavior notification instruction to an edge proxy device includes:
[0182] Generate a corresponding abnormal behavior notification instruction based on the attack detection result and the terminal identifier; determine a target communication link corresponding to the terminal identifier based on the edge proxy connection relationship library, and send the abnormal behavior notification instruction to the corresponding edge proxy device based on the target communication link;
[0183] Based on the received abnormal behavior notification instructions, the business terminal that reports the business data is isolated, including:
[0184] Parse the abnormal behavior notification instruction to obtain the terminal identification, traverse the edge proxy connection relationship library based on the terminal identification to filter out the target communication link, and close the target communication link.
[0185] In a possible implementation, the method further includes:
[0186] Data is transmitted by building an encrypted channel between the edge proxy and the secure access gateway to serve the business.
[0187] Embodiment 3:
[0188] like Figure 8 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.
[0189] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a cloud-edge collaborative message unknown attack perception method in the above embodiment.
[0190] Example 4
[0191] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It can be understood that the storage medium here can include both built-in storage media in electronic devices and extended storage media supported by electronic devices. The storage medium provides a storage space that stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more execution programs (including program codes). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a cloud-edge collaborative message unknown attack perception method in the above embodiment.
[0192] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0193] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0194] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0195] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0196] 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 its protection scope. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that after reading the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the protection scope of the claims to be approved.
Claims
1. A cloud-edge collaborative message unknown attack perception system, characterized in that: include: An edge proxy device, a secure access gateway, a power business system, and a power management and control subsystem, wherein the edge proxy device is respectively connected to the secure access gateway and the power management and control subsystem in communication, and the secure access gateway is respectively connected to the power business system and the power management and control subsystem in communication; The edge proxy device is used to receive the service data reported by the service terminal, encrypt and forward the service data; The secure access gateway is used to receive the encrypted message of the service data forwarded by the edge proxy device, and decrypt the encrypted message to obtain a decrypted message; And sending the decrypted message to the power business system and the power management and control subsystem in the cloud; The power control subsystem is used to perform attack detection on the received decrypted message, generate an abnormal behavior notification instruction when the attack detection result is abnormal, and send the abnormal behavior notification instruction to the edge proxy device; The edge proxy device is further configured to isolate the service terminal that reports the service data based on the received abnormal behavior notification instruction.
2. The system according to claim 1, characterized in that The secure access gateway includes a bypass message analysis module, which is respectively connected to the power business system and the power management and control subsystem in communication; The bypass message analysis module is used to divide each frame data of the decrypted message into multiple segments, parse the multiple segments in parallel, and send the parsing results to the power business system and the power management and control subsystem.
3. The system according to claim 2, characterized in that The bypass message analysis module includes: a first field division submodule, a second field division submodule and a field parsing submodule, wherein the first field division submodule and the second field division submodule are communicatively connected, and the second field division submodule and the field parsing submodule are communicatively connected; The first field division submodule is used to divide each frame of data into fields based on the variability of the positions of the fields, and obtain corresponding fixed position fields and variable position fields; A second field division submodule divides the fixed position field and the variable position field into subfields to obtain a corresponding plurality of fixed position subfields and a plurality of variable position subfields; The field parsing submodule is used to parse the fixed position subfield according to the fixed length of the field for each of the fixed position subfields; for each of the variable position subfields, determine the corresponding target key field through field scanning, and parse the target field value associated with the variable position subfield based on the target key field.
4. The system according to claim 2, characterized in that The edge proxy device includes an active defense module, and the active defense module is communicatively connected with the bypass message analysis module; The active defense module is used to obtain the terminal identification and terminal type of the service terminal that reports the service data, and send the terminal identification and the terminal type to the secure access gateway; The bypass message analysis module is further used to determine the frame sequence number of the frame data corresponding to the analysis result, and send the analysis result, the terminal identifier, the terminal type and the frame sequence number to the power management and control subsystem.
5. The system according to claim 4, characterized in that The bypass message analysis module is further used to send the analysis result, the terminal identifier, the terminal type and the frame sequence number to the power management and control subsystem through a message queue.
6. The system according to claim 4, characterized in that The power control subsystem includes: The first attack detection module is used to match the corresponding target business protocol based on the terminal type, determine the corresponding target whitelist based on the target business protocol, perform attack detection on the parsing result based on the target whitelist, and determine that the attack detection result is abnormal if the parsing result does not belong to the target whitelist.
7. The system according to claim 4 or 6, characterized in that: The power control subsystem includes: The second attack detection module is used to count the keyword-related indicator information corresponding to each frame data based on the frame sequence number, and determine the attack detection result by traversing a pre-built anomaly detection model based on the keyword-related indicator corresponding to each frame data.
8. The system according to claim 7, characterized in that The second attack detection module is further used for: Obtain historical business data; Parsing each frame of data in the historical business data to extract keywords from each frame of data; Each keyword is a node, the keyword occurrence frequency is the first attribute of the node, and the time interval between two adjacent occurrences of each keyword is the second attribute of the node; An edge is constructed between the corresponding nodes of two keywords that appear at the same time, and the anomaly detection model is constructed by taking the co-occurrence frequency of the two keywords as the attribute of the edge.
9. The system according to claim 8, characterized in that The keyword-related index includes at least one of a keyword occurrence frequency index, a two-keyword co-occurrence frequency index, and a time interval index for two adjacent occurrences of each keyword. The second attack detection module is further used to determine whether the keyword-related index satisfies at least one of the following: whether the keyword occurrence frequency index exceeds the value of the first attribute of the corresponding node in the anomaly detection model; whether the time interval between two consecutive occurrences of each of the keywords exceeds the value of the second attribute of the corresponding node in the anomaly detection model; whether the co-occurrence frequency index of the two keywords exceeds the attribute value of the corresponding edge in the anomaly detection model; If so, the attack detection result is determined to be abnormal.
10. The system according to claim 4, characterized in that If the service data includes the terminal identification; The edge proxy device is further used to forward the encrypted message carrying the terminal identification to the secure access gateway; The power control subsystem is further configured to receive the terminal identification sent by the secure access gateway; If the service data does not include the terminal identifier; The edge proxy device is also used to assign a terminal identifier to each service terminal and record the communication link between each service terminal and the edge proxy device to form an edge proxy connection relationship library, and forward the encrypted message carrying the terminal identifier to the secure access gateway; The power management and control subsystem is further used to receive the terminal identification sent by the secure access gateway.
11. The system according to claim 10, characterized in that The power control subsystem includes an instruction issuing module, which is communicatively connected to the first attack detection module and the second attack detection module respectively; The instruction issuing module is used to receive the attack detection results sent by the first attack detection module and the second attack detection module, and generate a corresponding abnormal behavior notification instruction based on the attack detection results and the terminal identifier; Determine a target communication link corresponding to the terminal identifier based on the edge proxy connection relationship library, and send the abnormal behavior notification instruction to a corresponding edge proxy device based on the target communication link; The active defense module is used to parse the abnormal behavior notification instruction to obtain the terminal identifier, traverse the edge proxy connection relationship library based on the terminal identifier to filter out the target communication link, and close the target communication link.
12. The system according to any one of claims 1-6, 8-11, characterized in that: The edge proxy and the secure access gateway perform data transmission by constructing an encrypted channel serving the business.
13. A cloud-edge collaborative message unknown attack perception method, characterized in that: include: The edge proxy device receives the service data reported by the service terminal, and encrypts the service data to obtain an encrypted message; Decrypting the encrypted message through the secure access gateway to obtain a decrypted message, and sending the decrypted message to the power business system and the power management and control subsystem in the cloud; Performing attack detection on the decrypted message through the power control subsystem, generating an abnormal behavior notification instruction when the attack detection result is abnormal, and sending the abnormal behavior notification instruction to the edge proxy device; The service terminal that reports the service data is isolated by the edge proxy device based on the received abnormal behavior notification instruction.
14. The method according to claim 13, characterized in that The method further comprises: Determine the key field of each frame data of the decrypted message through a secure access gateway and divide the key field into a plurality of key subfields; The multiple key subfields are parsed in parallel, and the parsing results are sent to the power business system and the power management and control subsystem.
15. The method according to claim 14, characterized in that The decrypted message includes a parsing result and a terminal type, and the attack detection on the decrypted message includes: Matching a corresponding target service protocol based on the terminal type; Determine a corresponding target whitelist based on the target service protocol; An attack detection is performed on the parsing result based on the target whitelist, and if the parsing result does not belong to the target whitelist, it is determined that the attack detection result is abnormal.
16. The method according to claim 14, characterized in that The decrypted message includes a parsing result and a frame sequence number of its corresponding frame data, and the attack detection on the decrypted message includes: The keyword-related index information corresponding to each frame data is counted based on the frame sequence number, and the attack detection result is determined by traversing a pre-built anomaly detection model based on the keyword-related index corresponding to each frame data.
17. The method according to claim 16, characterized in that The method further comprises: Obtain historical business data; Parse each frame of data in the historical business data to extract keywords from each frame of data; use each keyword as a node and the frequency of keyword occurrence as a node attribute; An edge is constructed between the corresponding nodes of two keywords that appear at the same time, the co-occurrence frequency of the two keywords is used as the first attribute of the edge, and the time interval between two adjacent occurrences of each keyword is used as the second attribute of the edge, to construct the anomaly detection model.
18. The method according to claim 17, characterized in that The keyword-related index includes at least one of a keyword occurrence frequency index, a two-keyword co-occurrence frequency index, and a time interval index for two adjacent occurrences of each keyword. The attack detection on the decrypted message includes: Determine whether the keyword-related index satisfies at least one of the following: whether the co-occurrence frequency index of the two keywords exceeds the value of the first attribute of the corresponding edge in the anomaly detection model; whether the time interval between two consecutive occurrences of each of the keywords exceeds the value of the second attribute of the corresponding edge in the anomaly detection model; If so, the attack detection result is determined to be abnormal.
19. An electronic device, characterized in that: include: at least one processor and memory; The memory and the processor are connected via a bus; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, the cloud-edge collaborative message unknown attack perception method as described in any one of claims 13 to 18 is implemented.
20. A readable storage medium, characterized in that: An execution program is stored thereon, and when the execution program is executed, the cloud-edge collaborative message unknown attack perception method as described in any one of claims 13 to 18 is implemented.
Citation Information
Cited By
Unit communication method and system
CN119299187A
