Threat self-sensing and processing method and system for distributed power supply
By deploying threat self-awareness and processing devices in distributed power plants and stations, analyzing communication traffic and using state machine models to determine threat status, the problem of distributed power plants being unable to detect network threats in a timely manner is solved, and self-awareness of distributed power sources is realized. and security processing, improving security response capabilities.
Patent Information
- Application Number
- CN202410787181.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Due to investment restrictions, distributed power plant stations cannot deploy type II monitoring devices, which results in the inability to detect network threats in time and isolate them from the dispatching main station to prevent the vertical spread of threats. Moreover, 5G power all-in-one converged terminals lack the self-awareness of distributed power terminals. , resulting in untimely safety warnings.
Deploy threat self-sensing and processing devices on the uplinks of distributed power plant stations, collect communication traffic through vertical encrypted channels, analyze data packets, design abnormal traffic models based on state machines, determine threat status and execute disposal processes to realize distributed power Self-perception and threat processing.
It realizes security perception and threat processing in the distributed power environment, reduces the data processing pressure of the main station, improves the speed of security threat response, and is suitable for distributed power scenarios with limited resources.
Smart Images

Figure CN118784277A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power systems, and more specifically, to a method and system for self-sensing and processing threats to distributed power sources. Background Art
[0002] The vertical encryption device is a device that uses technical measures such as authentication, encryption, and access control to achieve secure transmission of power secondary system data and vertical boundary security protection. Generally speaking, the vertical encryption device is deployed on the master station side and the plant station side to provide a secure communication tunnel between the master station and the plant station.
[0003] The vertical encryption device can realize encrypted transmission of data, ensure the security of information during transmission, realize identity authentication and access control of communication equipment, and prevent access and attacks of illegal devices. In addition, the vertical encryption device also supports the security analysis of multiple power-specific protocols and adopts different application strategies for messages with different functions. This means that for different power data transmission requirements, the vertical encryption device can provide flexible and efficient solutions.
[0004] At present, the multi-level blocking scheme in the power system is divided into main station side blocking and plant side blocking. The main station side blocking uses Type I network security monitoring devices and security management platforms to perform session blocking, equipment blocking and regional blocking on the main station side; the plant side blocking uses Type II monitoring devices and security management platforms to perform session blocking, equipment blocking and regional blocking on the plant side. The network security monitoring device is responsible for collecting the operation information and security events of network equipment (such as data network switches, industrial control switches, etc.), host equipment (servers and workstations), general security equipment (such as firewalls, intrusion detection / defense devices, etc.), special security equipment (such as network security isolation devices) and databases, and merges the operation information and security events into alarm information and reports them to the main station platform, and executes various control commands issued by the main station platform. Among them, Type I network security monitoring devices are mainly deployed on the main station side, responsible for the collection and processing of security information on the main station side, and Type II network security monitoring devices are mainly deployed on the plant side, responsible for the collection and processing of security information on the plant side. However, plant-side blocking of traffic threats relies on Type II network security monitoring devices, which are currently only deployed in centralized power plants and substations.
[0005] Background technology document CN115623433A discloses a system and method for sharing and value-added photovoltaic data in the whole county based on 5G and federated learning. The solution effectively balances the requirements and costs of power safety protection. It uses the 5G power production control private network to collect photovoltaic data from photovoltaic terminals to the 5G power all-in-one fusion terminal. The all-in-one fusion terminal uploads the collected data to the power dispatching center to realize the monitoring and regulation of photovoltaic terminals by the power dispatching center. At the same time, considering the communication needs and data privacy of each demand party, the power grid company uniformly builds a photovoltaic monitoring data sharing and value-added platform, establishes a data transmission channel between the data sharing and value-added platform and the management platforms of all parties, and realizes the multi-party sharing of photovoltaic data. It can be seen that the distributed power plant is limited by investment restrictions and cannot deploy type II monitoring devices or other types of monitoring devices, so that the network threats of distributed power sources cannot be discovered in time.
[0006] In addition, when a distributed power plant discovers a network threat, it cannot be isolated from the dispatching master station in time to prevent the vertical propagation of the threat. The massive access of distributed power sources will greatly increase the data processing pressure on the master station side, which may cause untimely security warnings. Although the 5G power all-in-one fusion terminal integrates vertical encryption functions, it still tends to be biased towards power business and cannot realize the self-perception capability of distributed power terminals.
[0007] In response to the above problems, there is an urgent need for a method and system for self-perception and processing of threats to distributed power sources. Summary of the invention
[0008] In order to solve the deficiencies in the prior art, the present invention provides a method and system for self-sensing and processing threats for distributed power sources. By deploying a threat self-sensing and processing device for distributed power sources on the uplink of a distributed power source plant, the flow information between the distributed power source and the main station is monitored, and whether the distributed power source environment is safe is sensed. When a security threat occurs, the threat is processed according to a preset strategy.
[0009] The present invention adopts the following technical solution.
[0010] The first aspect of the present invention relates to a method for self-sensing and processing threats for distributed power sources, and the method includes the following steps: connecting a distributed power source threat self-sensing and processing device to a longitudinal encrypted channel between a distributed power source and a dispatching master station, and collecting communication traffic on the longitudinal encrypted channel; obtaining mirror traffic of the communication traffic, parsing the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets; based on the protocol type obtained by the preliminary classification, parsing the preset position field of each data packet in the mirror traffic to verify the result of the preliminary classification and obtain the traffic type; extracting key data in the current data packet according to the traffic type of the current data packet, and parsing the key data through preset data extraction rules to obtain the state change of the current data packet; designing an abnormal traffic model based on a state machine, interpreting the state changes in multiple data packets under the same traffic type, judging the threat state of the distributed power source and executing the threat disposal process.
[0011] Preferably, the mirror traffic of the communication traffic is obtained, and the IP header and TCP header of each data packet in the mirror traffic are parsed to preliminarily classify the data packets, including: collecting the mirror traffic of the communication traffic, the mirror traffic is a plurality of independent data packets, and each data packet is a protocol message encapsulated in a TCP header and an IP header in sequence; extracting the destination port field in the TCP header and the protocol type field in the IP header, and obtaining the protocol type of the data packet through the destination port field and the protocol type field; and preliminarily classifying the data packets through the protocol type.
[0012] Preferably, based on the protocol type obtained by the preliminary classification, the preset position field of each data packet in the mirrored traffic is parsed to verify the result of the preliminary classification and obtain the traffic type, including: presetting the preset position field for each protocol type, and extracting the preset position field in the data packet according to the protocol type obtained by each data packet in the preliminary classification; using the extracted preset position field of the current data packet to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type.
[0013] Preferably, the preset position field of the current data packet extracted is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type, including: the preset secondary classification confirmation table includes one-to-one corresponding protocol types, preset position fields, and preset position field values; when the preset position field of the current data packet extracted is used to query the secondary classification confirmation table, if the corresponding result is obtained, it is determined whether the corresponding protocol type is consistent with the result of the preliminary classification, and if so, it is confirmed that the result of the preliminary classification is accurate and passes the verification; if the corresponding result cannot be obtained or the corresponding protocol type is inconsistent with the result of the preliminary classification, it is confirmed that the result of the preliminary classification is inaccurate and fails the verification; the protocol type in the verified preliminary classification result is used as the traffic type of the current data packet.
[0014] Preferably, key data in the current data packet is extracted according to the traffic type of the current data packet, and the key data is parsed through preset data extraction rules to obtain state changes in the current data packet, including: preset data extraction rules, defining the position of key data to be extracted and the meaning of key data according to the traffic type of the current data packet; extracting key data based on the position of key data, and parsing the state changes existing in the current data packet according to the meaning of key data.
[0015] Preferably, the state changes existing in the current data packet are parsed according to the meaning of the key data, including: for each traffic type, defining the state change rules of the data packet, the state change rules including the correspondence between the state change type and the data example; the data example fills the extracted one or more key data into the data example template based on the respective key data meanings to generate the state change of the current data packet containing the internal logic between the one or more key data.
[0016] Preferably, an abnormal traffic model based on a state machine is designed to interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat disposal process, including: the abnormal traffic model based on the state machine includes multiple states and state changes between multiple states; the number of cycles of state changes between multiple states in the abnormal traffic model is set, and if the state changes in multiple data packets under the same traffic type exceed the number of cycles, it is determined that the business of the current traffic type has abnormal behavior.
[0017] Preferably, the abnormal traffic model based on the state machine includes multiple states and state changes between the multiple states, including: the multiple states include a username verification state, a waiting identity information state, a login failure state and a closed state; the number of cycles of state changes between the multiple states in the abnormal traffic model is set, including: in multiple consecutive data packets within a preset time period, if the number of cycles between the waiting identity information state and the login failure state reaches 4 times, and the number of cycles between the username verification state and the closed state reaches 5 times, then it is judged that the business of the current traffic type has abnormal behavior.
[0018] Preferably, an abnormal traffic model based on a state machine is designed to interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat handling process, including: when it is determined that the business of the current traffic type has abnormal behavior, the traffic type, state change, and number of state changes corresponding to the abnormal behavior are sent to the main station security management platform as alarm information to determine the threat status of the distributed power supply and execute the threat handling process.
[0019] The second aspect of the present invention relates to a threat self-perception and processing system for distributed power sources using the method in the first aspect of the present invention, the system comprising an acquisition module, a parsing module, a verification module, an extraction module and a disposal module; wherein the acquisition module is used to connect the distributed power source threat self-perception and processing device to the longitudinal encrypted channel between the distributed power source and the dispatching master station, and collect the communication traffic on the longitudinal encrypted channel; the parsing module is used to obtain the mirror traffic of the communication traffic, and parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets; the verification module is used to parse the preset position field of each data packet in the mirror traffic based on the protocol type obtained by the preliminary classification, so as to verify the result of the preliminary classification and obtain the traffic type; the extraction module is used to extract the key data in the current data packet according to the traffic type of the current data packet, and parse the key data through the preset data extraction rules to obtain the state change of the current data packet; the disposal module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, judge the threat state of the distributed power source and execute the threat disposal process.
[0020] Preferably, the acquisition module is used to obtain the mirror traffic of the communication traffic, parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets, including: collecting the mirror traffic of the communication traffic, the mirror traffic is a plurality of independent data packets, each data packet is a protocol message encapsulated in a TCP header and an IP header in sequence; extracting the destination port field in the TCP header and the protocol type field in the IP header, and obtaining the protocol type of the data packet through the destination port field and the protocol type field; and preliminarily classifying the data packets through the protocol type.
[0021] Preferably, the verification module is used to parse the preset position field of each data packet in the mirrored traffic based on the protocol type obtained by the preliminary classification to verify the result of the preliminary classification and obtain the traffic type, including: presetting the preset position field for each protocol type, and extracting the preset position field in the data packet according to the protocol type obtained by each data packet in the preliminary classification; using the extracted preset position field of the current data packet to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type.
[0022] Preferably, in the verification module, the preset position field of the extracted current data packet is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type, including: the preset secondary classification confirmation table includes one-to-one corresponding protocol types, preset position fields, and preset position field values; when the preset position field of the extracted current data packet is used to query the secondary classification confirmation table, if the corresponding result is obtained, it is determined whether the corresponding protocol type is consistent with the result of the preliminary classification, and if so, it is confirmed that the result of the preliminary classification is accurate and passes the verification; if the corresponding result cannot be obtained or the corresponding protocol type is inconsistent with the result of the preliminary classification, it is confirmed that the result of the preliminary classification is inaccurate and fails the verification; the protocol type in the verified preliminary classification result is used as the traffic type of the current data packet.
[0023] Preferably, an extraction module is used to extract key data in the current data packet according to the traffic type of the current data packet, and parse the key data through preset data extraction rules to obtain state changes in the current data packet, including: preset data extraction rules, defining the position of key data to be extracted and the meaning of key data according to the traffic type of the current data packet; extracting key data based on the position of key data, and parsing the state changes existing in the current data packet according to the meaning of key data.
[0024] Preferably, the extraction module is used to parse the state changes existing on the current data packet according to the meaning of the key data, including: for each traffic type, defining the state change rules of the data packet, the state change rules including the correspondence between the state change type and the data example; the data example fills the extracted one or more key data into the data example template based on the respective key data meanings to generate the state change of the current data packet containing the internal logic between the one or more key data.
[0025] Preferably, the handling module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat handling process, including: the abnormal traffic model based on the state machine includes multiple states and state changes between multiple states; the number of cycles of state changes between multiple states in the abnormal traffic model is set, and if the state changes in multiple data packets under the same traffic type exceed the number of cycles, it is judged that the business of the current traffic type has abnormal behavior.
[0026] Preferably, in the handling module, the abnormal traffic model based on the state machine includes multiple states and state changes between the multiple states, including: the multiple states include a user name verification state, a waiting identity information state, a login failure state and a closed state; the number of cycles of state changes between the multiple states in the abnormal traffic model is set, including: in multiple consecutive data packets within a preset time period, if the number of cycles between the waiting identity information state and the login failure state reaches 4 times, and the number of cycles between the user name verification state and the closed state reaches 5 times, then it is judged that the business of the current traffic type has abnormal behavior.
[0027] Preferably, the handling module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat handling process, including: when it is determined that the business of the current traffic type has abnormal behavior, the traffic type, state change, and number of state changes corresponding to the abnormal behavior are sent to the main station security management platform as alarm information to determine the threat status of the distributed power supply and execute the threat handling process.
[0028] The third aspect of the present invention relates to a distributed power source threat self-perception and processing device, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method in the first aspect of the present invention.
[0029] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in the first aspect of the present invention.
[0030] The beneficial effect of the present invention lies in that, compared with the prior art, the method and system for self-sensing and processing threats for distributed power sources in the present invention deploy the self-sensing and processing device for threats of distributed power sources on the uplink of the distributed power source plant, monitor the flow information between the distributed power source and the main station, sense whether the distributed power source environment is safe, and when a security threat occurs, handle the threat according to a preset strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of the deployment of the threat self-sensing and processing device of the distributed power source in the present invention;
[0032] Figure 2 A schematic diagram of threat self-perception in a threat self-perception and processing method of a distributed power source according to the present invention;
[0033] Figure 3 A schematic diagram of upstream traffic classification analysis and event handling in a distributed power source threat self-perception and processing method of the present invention;
[0034] Figure 4 A schematic diagram of downstream traffic classification analysis and event handling in a distributed power source threat self-perception and processing method of the present invention;
[0035] Figure 5 A schematic diagram of data packet parsing and process processing in a method for self-sensing and processing threats of a distributed power source according to the present invention;
[0036] Figure 6 A schematic diagram of preliminary classification of data packets in a method for self-sensing and processing threats of a distributed power source according to the present invention;
[0037] Figure 7 A schematic diagram of verifying the preliminary classification results of data packets in a method for self-perceiving and processing threats of a distributed power source according to the present invention;
[0038] Figure 8 It is a schematic diagram related to SSH brute force cracking behavior in an abnormal traffic model based on a state machine in a threat self-perception and processing method for distributed power sources of the present invention;
[0039] Fig. 9 A schematic diagram of an alarm transmission process in a threat self-perception and processing method for a distributed power source according to the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in the present invention are only embodiments of a part of the present invention, not all embodiments. Based on the spirit of the present invention, all other embodiments not recorded in the present invention obtained by ordinary technicians in this field according to the embodiments recorded in the present invention without making creative work should belong to the protection scope of the present invention.
[0041] A first aspect of the present invention relates to a method for self-perception and processing of threats to distributed power sources, the method comprising steps 1 to 5.
[0042] Step 1: Connect the distributed power source threat self-sensing and processing device to the longitudinal encrypted channel between the distributed power source and the dispatching master station, and collect the communication traffic on the longitudinal encrypted channel.
[0043] Figure 1 FIG. 1 is a schematic diagram of the deployment of the threat self-sensing and processing device of the distributed power source in the present invention. Figure 1As shown, the threat self-sensing and processing device of distributed power is serially connected to the link between the distributed power plant and the master station. All traffic between the distributed power plant and the dispatching master station will pass through this device. This device checks the traffic between the plant and the master station, and automatically cuts off the data channel between the plant and the master station when malicious traffic is found, thereby realizing the threat self-sensing and processing capabilities of distributed power.
[0044] In one embodiment, in a 10(6)KV voltage level grid-connected distributed power source, a threat self-sensing and processing device of the distributed power source is deployed on the uplink of the distributed power source plant, and a vertical encrypted tunnel is established between the device and the dispatching master station. The present invention collects the traffic sent by the distributed power source plant in real time, such as power business related traffic such as remote adjustment and remote control, security monitoring related traffic generated by the agent deployed on the plant host equipment, security log information, operation information and other traffic. Subsequently, these traffics are classified and matched, and threat log information is formed for unknown traffic and threat traffic, and reported to the master station side security management platform for processing; at the same time, the link between the distributed power source plant and the master station is cut off to realize the threat self-sensing and processing capabilities of the distributed power source.
[0045] Step 2: Obtain mirror traffic of the communication traffic, and parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets.
[0046] Figure 3 The figure is a schematic diagram of upstream traffic classification analysis and event handling in a distributed power source threat self-perception and processing method of the present invention. Figure 3 As shown, the device detects the upstream flow of the distributed power plant. Figure 4 The schematic diagram of the classification and analysis of downlink traffic and event handling in the threat self-perception and processing method of a distributed power source of the present invention. Figure 4 As shown, the device detects the downstream flow of the distributed power plant.
[0047] In the power system, the protocols mainly used by the remote terminal unit include 104 protocol, 101 protocol, DNP3 protocol, and MODBUS protocol. In addition, the power secondary equipment should deploy a security agent to monitor the equipment status, and the transmission between the agent and the server adopts a power-specific protocol.
[0048] The data exchange component will copy the original data packet P.ori to obtain the mirror data packet P.mirror, and send P.mirror to the service classification component to complete the traffic collection operation. Generally speaking, to analyze the content carried in the network data packet, it is necessary to decapsulate the network data packet layer by layer. In this process, various protocol functions need to be called in the kernel, and finally the data is passed to the user-mode protocol software for further analysis.
[0049] Figure 5 The figure is a schematic diagram of data packet parsing and process processing in a method for self-sensing and processing threats of a distributed power source according to the present invention. Figure 5 As shown, in general, after the network card obtains the flow data, the Ethernet header is removed to obtain the communication flow including the IP header, TCP header and data content. The data analysis and processing device is parsed and classified layer by layer in the system kernel to finally obtain the protocol data. The protocol data content is parsed by the protocol software, such as by pre-set data extraction rules, to finally obtain the behavior content and threat perception of the data message.
[0050] Figure 5 A more concise and effective data processing method is adopted in the . For the traffic classification function, detailed protocol content information is not required. In order to achieve the ability to quickly classify traffic, the network card and the user-mode program are connected through the netmap framework. The data packets processed by the network card are directly transmitted to the service classification program in the user mode to classify the services. Since the data packets are not parsed by the kernel protocol stack, the service classification program will directly operate on the binary code stream.
[0051] Preferably, the mirror traffic of the communication traffic is obtained, and the IP header and TCP header of each data packet in the mirror traffic are parsed to preliminarily classify the data packets, including: collecting the mirror traffic of the communication traffic, the mirror traffic is a plurality of independent data packets, and each data packet is a protocol message encapsulated in a TCP header and an IP header in sequence; extracting the destination port field in the TCP header and the protocol type field in the IP header, and obtaining the protocol type of the data packet through the destination port field and the protocol type field; and preliminarily classifying the data packets through the protocol type.
[0052] In the power system, distributed power devices will communicate with other power devices of different types using different protocols. In order to ensure the standardization of network communication in power equipment, the addresses and target ports of each auxiliary communication device are usually reasonably allocated according to the type of device and the functions provided by the device. Therefore, based on the content of some data in the target port, it is possible to roughly infer the type of device where the target port is located and the way the device communicates with the distributed power source.
[0053] In actual data transmission, the option fields of the IP header and the TCP header are both empty, so the IP header and the TCP header have a fixed length. Figure 6 This is a schematic diagram of the preliminary classification of data packets in a distributed power source threat self-perception and processing method of the present invention. Figure 6 As shown, in the preliminary classification process, the content of the 73bit-80bit (protocol type field in the IP header) of the data packet is f1, and the content of the 177bit-192bit (destination port field in the TCP header) is f2. The feature values of f1 and f2 are calculated by the algorithm for preliminary classification. The algorithm is a feature extraction algorithm commonly used in the prior art. For example, it can be inferred that the method of extracting feature values in Table 1 is a feature extraction method commonly used for data packets such as CRC check. In one embodiment, after the protocol feature value extraction is implemented for different protocol types and different target ports of the data packet, the obtained protocol feature value table is as follows:
[0054]
[0055]
[0056] Table 1 Protocol characteristic value table
[0057] After calculating the characteristic value of the current data packet through the algorithm, the protocol characteristic value table is queried to obtain the protocol type in the preliminary classification.
[0058] Step 3: Based on the protocol type obtained by the preliminary classification, parse the preset position field of each data packet in the mirrored traffic to verify the result of the preliminary classification and obtain the traffic type.
[0059] Preferably, based on the protocol type obtained by the preliminary classification, the preset position field of each data packet in the mirrored traffic is parsed to verify the result of the preliminary classification and obtain the traffic type, including: presetting the preset position field for each protocol type, and extracting the preset position field in the data packet according to the protocol type obtained by each data packet in the preliminary classification; using the extracted preset position field of the current data packet to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type.
[0060] After the initial classification is completed, the data packets are secondary classified and confirmed to ensure the correctness of the classification results. According to the initial classification results, different position bit values are selected for secondary confirmation. DNP3, 104 and Modbus protocol messages are directly encapsulated in the message header format based on the initial classification. Therefore, for different types of protocols, after the fixed-length message header, the data message content usually starts from the 321st bit, and the content of the message starting position is usually fixed. According to the actual format of the above-mentioned protocol, for example, DNP3 starts with the START identifier and the 104 protocol starts with a fixed character, thereby determining the preset position fields of different lengths and the standard content of the fields.
[0061] Table 2 is a secondary classification confirmation table, which describes the corresponding preset position fields and field values under different protocol types.
[0062] Serial number Protocol Type Preset location field Preset location field values 1 DNP3 Protocol 321bit-336bit 0000 0101 0110 0100 2 104 Protocol 321bit-328bit 0110 1000 3 Modbus Protocol 325bit-328bit 0000 …… …… …… ……
[0063] Table 2 Secondary classification confirmation table
[0064] Figure 7 Schematic diagram of verification of preliminary classification results of data packets in a method for self-sensing and processing threats of distributed power sources of the present invention, such as Figure 7 As shown, the effective information in the mirrored traffic is extracted. If the length of the mirrored data packet is n bits, the content of 321bit-n bits is extracted, and according to the traffic classification results in Table 2, the corresponding protocol parsing program is used to perform protocol parsing.
[0065] Preferably, the preset position field of the current data packet extracted is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type, including: the preset secondary classification confirmation table includes one-to-one corresponding protocol types, preset position fields, and preset position field values; when the preset position field of the current data packet extracted is used to query the secondary classification confirmation table, if the corresponding result is obtained, it is determined whether the corresponding protocol type is consistent with the result of the preliminary classification, and if so, it is confirmed that the result of the preliminary classification is accurate and passes the verification; if the corresponding result cannot be obtained or the corresponding protocol type is inconsistent with the result of the preliminary classification, it is confirmed that the result of the preliminary classification is inaccurate and fails the verification; the protocol type in the verified preliminary classification result is used as the traffic type of the current data packet.
[0066] Step 4: extract key data in the current data packet according to the traffic type of the current data packet, and parse the key data according to preset data extraction rules to obtain the state change of the current data packet.
[0067] Preferably, key data in the current data packet is extracted according to the traffic type of the current data packet, and the key data is parsed through preset data extraction rules to obtain state changes in the current data packet, including: preset data extraction rules, defining the position of key data to be extracted and the meaning of key data according to the traffic type of the current data packet; extracting key data based on the position of key data, and parsing the state changes existing in the current data packet according to the meaning of key data.
[0068] Considering that the methods of extracting key data related to state changes in different types of protocols are not the same, it is necessary to extract key fields from the data packet and understand the meaning of the key fields to obtain the state changes related to traffic threats actually expressed in the data packet.
[0069] For each different protocol, its inherent data content can characterize the communication connection mode between the data packet sender and the data packet receiver, whether there is a communication failure, whether the data transmission is normal, etc. The data message under each protocol supports the description of various communication states. Here, SSH is used as an example to illustrate various state changes. Table 3 shows the data content related to SSH state changes. In Table 3, different state changes can be described using a pre-designed data example template. After the template extracts the data of one or more fields in the protocol, it characterizes the actual state of the message. The process of filling different fields into the data example template is implemented according to the data extraction rules. In order to implement the data extraction rules, it is necessary to define the location of the key data, such as the location from mbit to nbit in the message, and it is also necessary to understand the essential meaning of the key data. This requires a simple definition of the meaning of the key data, such as the target port mentioned above, etc. For the data content of the protocol transport layer and application layer, it can include user name, port number, etc.
[0070] On the one hand, the key data is filled into the corresponding sample template through the data extraction rules. On the other hand, the key data is only analyzed according to the data value, and the key data is matched with a sample template. For example, a bit in the message has a value of 1 when the user identity authentication is successful, and a value of 0 when the identity authentication fails, then the corresponding sample template is called.
[0071] Preferably, the state changes existing in the current data packet are parsed according to the meaning of the key data, including: for each traffic type, defining the state change rules of the data packet, the state change rules including the correspondence between the state change type and the data example; the data example fills the extracted one or more key data into the data example template based on the respective key data meanings to generate the state change of the current data packet containing the internal logic between the one or more key data.
[0072] Table 3 is a state change table of messages under SSH type protocols. Table 3 describes that the key data extraction methods for state changes involving different types of protocols are different.
[0073]
[0074]
[0075] Table 3 SSH status change table
[0076] Obviously, not all state changes can describe problems such as traffic threats in protocol packets or communication connection errors. Therefore, it is necessary to simplify the SSH state change table. Table 4 shows the state changes related to threats in SSH.
[0077]
[0078] Table 4 SSH status changes related to threats
[0079] Step 5: Design an abnormal traffic model based on a state machine to interpret the state changes in multiple data packets under the same traffic type, determine the threat status of distributed power sources and execute the threat disposal process.
[0080] After completing the protocol parsing, the abnormal behavior model is matched according to the protocol content. According to the purpose of the model, the protocol model can be divided into two types, namely business model and security model. Business model: mainly 104 protocol abnormal traffic model, DNP3 protocol abnormal traffic model, Modbus protocol abnormal traffic model. Security model: mainly terminal security traffic model, according to the content of security monitoring, including login behavior abnormal model, trust behavior abnormal model, etc.
[0081] The present invention uses a state machine mechanism to build a model. Preferably, an abnormal traffic model based on a state machine is designed to interpret the state changes in multiple data packets under the same traffic type, thereby determining the threat state of the distributed power supply and executing the threat handling process, including: the abnormal traffic model based on the state machine includes multiple states and state changes between multiple states; the number of cycles of state changes between multiple states in the abnormal traffic model is set, and if the state changes in multiple data packets under the same traffic type exceed the number of cycles, it is determined that the business of the current traffic type has abnormal behavior.
[0082] Since the abnormal traffic model constructed based on the state machine in the present invention is actually divided into multiple different models according to different protocols, the present invention only describes one model as an example. Figure 8This is a schematic diagram of the abnormal traffic model based on the state machine in the distributed power supply threat self-perception and processing method of the present invention and the SSH brute force cracking behavior. Taking the SSH program as an example, an abnormal behavior model of the SSH program is as follows Figure 8 , where ×4 represents 4 cycles and ×5 represents 5 cycles.
[0083] After the data rules in step 4 are established, the state changes of the data packets can be collected and compared with the abnormal traffic model. If they can be fully matched, for example, the state changes can be matched from the entry point to the exit point of the abnormal model, then it is determined that there is abnormal behavior in the data traffic, the threat handling process is executed, and the corresponding alarm information is generated and sent to the main station.
[0084] In this process, the parsed data packets are first sorted according to the timestamp or counter information in the protocol; based on the order obtained by sorting, the state changes corresponding to each data packet are analyzed, and the multiple state changes arranged in sequence are compared with the abnormal traffic model to analyze whether the multiple state changes can constitute an abnormal behavior.
[0085] In an SSH embodiment, the multiple states include a username verification state, a waiting identity information state, a login failure state, and a closed state; in multiple consecutive data packets within a preset time period, if the number of cycles between the waiting identity information state and the login failure state reaches 4 times, and the number of cycles between the username verification state and the closed state reaches 5 times, it is determined that the current traffic type of business has abnormal behavior.
[0086] Preferably, an abnormal traffic model based on a state machine is designed to interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat handling process, including: when it is determined that the business of the current traffic type has abnormal behavior, the traffic type, state change, and number of state changes corresponding to the abnormal behavior are sent to the main station security management platform as alarm information to determine the threat status of the distributed power supply and execute the threat handling process.
[0087] Fig. 9 FIG. 1 is a schematic diagram of an alarm transmission process in a method for self-sensing and processing threats of a distributed power source according to the present invention. Fig. 9 As shown in the figure, after the service classification error and the abnormal model matching are successful, the device will generate alarm information for these threat information and send the alarm information to the main station security management platform through the vertical encryption component. After the threat disposal component receives the threat disposal request issued by the traffic classification component and the model matching component, it sends the instruction to cut off the encryption channel to the vertical encryption component through the internal interface. After receiving the instruction, the vertical encryption component cuts off the vertical encryption channel with the main station by deleting the tunnel, etc., and completes the threat disposal process.
[0088] When the device senses a security threat and cuts off the vertical encryption channel, if the terminal wants to restore the channel, it needs to apply to the master station for restoration. After the master station confirms that the threat to the terminal has been eliminated, it can actively initiate a vertical encryption link with the terminal to restore the communication between the terminal and the master station. In order to avoid malicious links from terminals, the terminals that have been cut off by this device will be marked on the master station side, and the vertical encryption device on the master station side will not receive link requests actively initiated by the marked terminals.
[0089] As mentioned above, the traffic classification method and protocol parsing method based on binary code stream skip the IP parsing and TCP parsing steps, perform feature extraction and model matching on the binary code stream of the data packet, save system resources and improve traffic classification efficiency. The matching method of the abnormal behavior model based on the state machine builds the abnormal state model of the application through the state machine method, which is more refined and has higher matching efficiency than the decision tree model. In addition, by constructing data extraction rules, extracting the key data content of state change, and streamlining the collected data, the matching efficiency of the abnormal state model can be further improved. The method uses traffic replication and collaborative processing to perform state perception and threat disposal, and the terminal devices connected to it do not need to perform redundant settings. In the distributed threat discovery and disposal architecture, the relevant information is processed by distributed computing. The device, as a distributed computing node, directly perceives and processes the local threats of the distributed power supply, and reports the unknown threat information to the master side through the threat log reporting method, and the master side performs threat analysis and model iteration.
[0090] Figure 2 FIG. 1 is a schematic diagram of threat self-perception in a distributed power source threat self-perception and processing method of the present invention. Figure 2As shown, the second aspect of the present invention relates to a threat self-perception and processing system for distributed power sources using the method in the first aspect of the present invention, the system comprising an acquisition module, a parsing module, a verification module, an extraction module and a disposal module; wherein the acquisition module is used to connect the distributed power source threat self-perception and processing device to the longitudinal encrypted channel between the distributed power source and the dispatching master station, and collect the communication traffic on the longitudinal encrypted channel; the parsing module is used to obtain the mirror traffic of the communication traffic, and parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packet; the verification module is used to parse the preset position field of each data packet in the mirror traffic based on the protocol type obtained by the preliminary classification, so as to verify the result of the preliminary classification and obtain the traffic type; the extraction module is used to extract the key data in the current data packet according to the traffic type of the current data packet, and parse the key data through the preset data extraction rules to obtain the state change of the current data packet; the disposal module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, judge the threat state of the distributed power source and execute the threat disposal process.
[0091] Compared with the power multi-level blocking technology, the functions of the device are highly integrated. Since distributed power sources are limited by investment constraints, most sites will not deploy Type II network security monitoring devices. To address this issue, the device highly integrates some functions of the Type II network security monitoring device with the vertical encryption device, and adds a model matching function. The device can sense the status of the distributed power terminal through a preset model, and cut off the link with the main station when a security threat is found. Compared with the multi-level blocking solution that centrally processes security log information on the main station side, it uses distributed computing to process relevant information, and can perceive threats locally on the device through various preset security models and traffic replication. At the same time, the abnormal data reporting function reports abnormal data packets to the main station to achieve an iterative cycle of the monitoring model.
[0092] Since the number of distributed power sources is much higher than that of centralized power sources, if all security logs are processed centrally on the master station side, very high requirements will be placed on the computing resources on the master station side, which may lead to problems such as untimely threat discovery and long response time. The traffic classification method based on binary code stream, the protocol reorganization method, and the abnormal behavior model matching method based on the state machine in the device fully reduce the computing resource pressure of the master station and are more suitable for resource-constrained scenarios.
[0093] In addition, the security functions in the device are separated from the business functions, and all security capabilities are highly integrated. Since it does not involve functions related to power business, it has a wider applicability.
[0094] Preferably, the acquisition module obtains the mirror traffic of the communication traffic, and parses the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets, including: collecting the mirror traffic of the communication traffic, the mirror traffic is a plurality of independent data packets, each data packet is a protocol message encapsulated in a TCP header and an IP header in sequence; extracting the destination port field in the TCP header and the protocol type field in the IP header, and obtaining the protocol type of the data packet through the destination port field and the protocol type field; and preliminarily classifying the data packets through the protocol type.
[0095] Preferably, the verification module is used to parse the preset position field of each data packet in the mirrored traffic based on the protocol type obtained by the preliminary classification to verify the result of the preliminary classification and obtain the traffic type, including: presetting the preset position field for each protocol type, and extracting the preset position field in the data packet according to the protocol type obtained by each data packet in the preliminary classification; using the extracted preset position field of the current data packet to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type.
[0096] Preferably, in the verification module, the preset position field of the extracted current data packet is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type, including: the preset secondary classification confirmation table includes one-to-one corresponding protocol types, preset position fields, and preset position field values; when the preset position field of the extracted current data packet is used to query the secondary classification confirmation table, if the corresponding result is obtained, it is determined whether the corresponding protocol type is consistent with the result of the preliminary classification, and if so, it is confirmed that the result of the preliminary classification is accurate and passes the verification; if the corresponding result cannot be obtained or the corresponding protocol type is inconsistent with the result of the preliminary classification, it is confirmed that the result of the preliminary classification is inaccurate and fails the verification; the protocol type in the verified preliminary classification result is used as the traffic type of the current data packet.
[0097] Preferably, an extraction module is used to extract key data in the current data packet according to the traffic type of the current data packet, and parse the key data through preset data extraction rules to obtain state changes in the current data packet, including: preset data extraction rules, defining the position of key data to be extracted and the meaning of key data according to the traffic type of the current data packet; extracting key data based on the position of key data, and parsing the state changes existing in the current data packet according to the meaning of key data.
[0098] Preferably, the extraction module is used to parse the state changes existing on the current data packet according to the meaning of the key data, including: for each traffic type, defining the state change rules of the data packet, the state change rules including the correspondence between the state change type and the data example; the data example fills the extracted one or more key data into the data example template based on the respective key data meanings to generate the state change of the current data packet containing the internal logic between the one or more key data.
[0099] Preferably, the handling module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat handling process, including: the abnormal traffic model based on the state machine includes multiple states and state changes between multiple states; the number of cycles of state changes between multiple states in the abnormal traffic model is set, and if the state changes in multiple data packets under the same traffic type exceed the number of cycles, it is judged that the business of the current traffic type has abnormal behavior.
[0100] Preferably, in the handling module, the abnormal traffic model based on the state machine includes multiple states and state changes between the multiple states, including: the multiple states include a user name verification state, a waiting identity information state, a login failure state and a closed state; the number of cycles of state changes between the multiple states in the abnormal traffic model is set, including: in multiple consecutive data packets within a preset time period, if the number of cycles between the waiting identity information state and the login failure state reaches 4 times, and the number of cycles between the user name verification state and the closed state reaches 5 times, then it is judged that the business of the current traffic type has abnormal behavior.
[0101] Preferably, the handling module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, so as to determine the threat status of the distributed power supply and execute the threat handling process, including: when it is determined that the business of the current traffic type has abnormal behavior, the traffic type, state change, and number of state changes corresponding to the abnormal behavior are sent to the main station security management platform as alarm information to determine the threat status of the distributed power supply and execute the threat handling process.
[0102] The third aspect of the present invention relates to a distributed power source threat self-perception and processing device, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method in the first aspect of the present invention.
[0103] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in the first aspect of the present invention.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for self-sensing and processing threats to distributed power sources, characterized in that: The method comprises the following steps: Connecting the distributed power source threat self-sensing and processing device to the longitudinal encrypted channel between the distributed power source and the dispatching master station, and collecting the communication traffic on the longitudinal encrypted channel; Acquire mirror traffic of the communication traffic, and parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets; Based on the protocol type obtained by the preliminary classification, parsing the preset position field of each data packet in the mirrored traffic to verify the result of the preliminary classification and obtain the traffic type; Extracting key data in the current data packet according to the traffic type of the current data packet, and parsing the key data according to a preset data extraction rule to obtain a state change of the current data packet; An abnormal traffic model based on a state machine is designed to interpret the state changes in multiple data packets under the same traffic type, determine the threat status of the distributed power source and execute the threat disposal process.
2. The method for self-sensing and processing threats to distributed power sources according to claim 1, characterized in that: The obtaining of the mirrored traffic of the communication traffic, and parsing the IP header and the TCP header of each data packet in the mirrored traffic to preliminarily classify the data packets, includes: Collecting mirror traffic of the communication traffic, the mirror traffic is a plurality of independent data packets, each data packet is a protocol message encapsulated in a TCP header and an IP header in sequence; Extracting the destination port field in the TCP header and the protocol type field in the IP header, and obtaining the protocol type of the data packet through the destination port field and the protocol type field; The data packets are preliminarily classified according to the protocol type.
3. The method for self-sensing and processing threats to distributed power sources according to claim 2 is characterized in that: The protocol type obtained based on the preliminary classification, parsing the preset position field of each data packet in the mirrored traffic to verify the result of the preliminary classification and obtain the traffic type, includes: Preset a preset position field for each protocol type, and extract the preset position field in each data packet according to the protocol type obtained in the preliminary classification; The preset position field of the extracted current data packet is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type.
4. The method for self-sensing and processing threats to distributed power sources according to claim 3 is characterized in that: The method of using the preset position field of the extracted current data packet to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type includes: The preset secondary classification confirmation table includes one-to-one corresponding protocol types, preset position fields, and preset position field values; When the preset position field of the extracted current data packet is used to query the secondary classification confirmation table, if a corresponding result is obtained, it is determined whether the corresponding protocol type is consistent with the result of the preliminary classification, and if so, it is confirmed that the result of the preliminary classification is accurate and passes the verification; If the corresponding result cannot be obtained or the corresponding protocol type is inconsistent with the result of the preliminary classification, the result of the preliminary classification is confirmed to be inaccurate and does not pass the verification; The protocol type in the verified preliminary classification result is used as the traffic type of the current data packet.
5. The method for self-sensing and processing threats to distributed power sources according to claim 4 is characterized in that: The step of extracting key data in the current data packet according to the traffic type of the current data packet, and parsing the key data according to a preset data extraction rule to obtain a state change in the current data packet includes: The preset data extraction rule defines the key data location and key data meaning to be extracted according to the traffic type of the current data packet; The key data is extracted based on the key data position, and the state change existing in the current data packet is analyzed according to the meaning of the key data.
6. The method for self-sensing and processing threats to distributed power sources according to claim 5 is characterized in that: The step of parsing the state change existing in the current data packet according to the meaning of the key data includes: For each traffic type, define a state change rule for a data packet, wherein the state change rule includes a corresponding relationship between a state change type and a data example; The data example fills the extracted one or more key data into the data example template based on the respective key data meanings to generate the state change of the current data packet containing the internal logic between one or more key data.
7. The method for self-sensing and processing threats to distributed power sources according to claim 6 is characterized in that: The design is based on an abnormal traffic model of a state machine, interprets the state changes in multiple data packets under the same traffic type, thereby determining the threat state of the distributed power source and executing a threat handling process, including: The abnormal traffic model based on the state machine includes multiple states and state changes between multiple states; The number of cycles for state changes between multiple states in the abnormal traffic model is set. If the state changes in multiple data packets under the same traffic type exceed the number of cycles, it is determined that the business of the current traffic type has abnormal behavior.
8. The method for self-sensing and processing threats to distributed power sources according to claim 7 is characterized in that: The abnormal traffic model based on the state machine includes multiple states and state changes between multiple states, including: The multiple states include a username verification state, a waiting identity information state, a login failure state, and a closed state; The setting of the number of cycles of state changes between multiple states in the abnormal traffic model includes: In multiple consecutive data packets within a preset time period, if the number of cycles between the waiting identity information state and the login failure state reaches 4 times, and the number of cycles between the username verification state and the closed state reaches 5 times, it is determined that the current traffic type of business has abnormal behavior.
9. A method for self-sensing and processing threats to distributed power sources according to claim 8, characterized in that: The design is based on an abnormal traffic model of a state machine, interprets the state changes in multiple data packets under the same traffic type, thereby determining the threat state of the distributed power source and executing a threat handling process, including: When it is determined that the business of the current traffic type has abnormal behavior, the traffic type, state change, and number of state changes corresponding to the abnormal behavior are sent to the main station security management platform as alarm information to determine the threat status of the distributed power supply and execute the threat handling process.
10. A threat self-sensing and processing system for distributed power sources, characterized in that: The system is implemented by a threat self-perception and processing method for distributed power sources in any one of claims 1 to 9; The system includes a collection module, an analysis module, a verification module, an extraction module and a disposal module; wherein, The acquisition module is used to connect the distributed power source threat self-sensing and processing device to the longitudinal encrypted channel between the distributed power source and the dispatching master station, and collect the communication traffic on the longitudinal encrypted channel; The parsing module is used to obtain the mirror traffic of the communication traffic, and parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets; The verification module is used to parse the preset position field of each data packet in the mirrored traffic based on the protocol type obtained by the preliminary classification to verify the result of the preliminary classification and obtain the traffic type; The extraction module is used to extract key data in the current data packet according to the traffic type of the current data packet, and parse the key data according to a preset data extraction rule to obtain a state change of the current data packet; The handling module is used to design an abnormal traffic model based on a state machine, interpret the state changes in multiple data packets under the same traffic type, determine the threat state of the distributed power source and execute the threat handling process.
11. The threat self-sensing and processing system for distributed power sources according to claim 10, characterized in that: A collection module, used to obtain the mirror traffic of the communication traffic, parse the IP header and TCP header of each data packet in the mirror traffic to preliminarily classify the data packets, including: Collecting mirror traffic of the communication traffic, the mirror traffic is a plurality of independent data packets, each data packet is a protocol message encapsulated in a TCP header and an IP header in sequence; Extracting the destination port field in the TCP header and the protocol type field in the IP header, and obtaining the protocol type of the data packet through the destination port field and the protocol type field; The data packets are preliminarily classified according to the protocol type.
12. A threat self-sensing and processing system for distributed power sources according to claim 11, characterized in that: The verification module is used to parse the preset position field of each data packet in the mirrored traffic based on the protocol type obtained by the preliminary classification to verify the result of the preliminary classification and obtain the traffic type, including: Preset a preset position field for each protocol type, and extract the preset position field in each data packet according to the protocol type obtained in the preliminary classification; The preset position field of the extracted current data packet is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type.
13. A threat self-sensing and processing system for distributed power sources according to claim 12, characterized in that: In the verification module, the preset position field of the extracted current data packet is used to query the preset secondary classification confirmation table to verify the result of the preliminary classification and obtain the traffic type, including: The preset secondary classification confirmation table includes one-to-one corresponding protocol types, preset position fields, and preset position field values; When the preset position field of the extracted current data packet is used to query the secondary classification confirmation table, if a corresponding result is obtained, it is determined whether the corresponding protocol type is consistent with the result of the preliminary classification, and if so, it is confirmed that the result of the preliminary classification is accurate and passes the verification; If the corresponding result cannot be obtained or the corresponding protocol type is inconsistent with the result of the preliminary classification, the result of the preliminary classification is confirmed to be inaccurate and does not pass the verification; The protocol type in the verified preliminary classification result is used as the traffic type of the current data packet.
14. A threat self-sensing and processing system for distributed power sources according to claim 13, characterized in that: The step of extracting key data in the current data packet according to the traffic type of the current data packet, and parsing the key data according to a preset data extraction rule to obtain a state change in the current data packet includes: The preset data extraction rule defines the key data location and key data meaning to be extracted according to the traffic type of the current data packet; The key data is extracted based on the key data position, and the state change existing in the current data packet is analyzed according to the meaning of the key data.
15. A threat self-sensing and processing system for distributed power sources according to claim 14, characterized in that: The extraction module is used to analyze the state change existing in the current data packet according to the meaning of the key data, including: For each traffic type, define a state change rule for a data packet, wherein the state change rule includes a corresponding relationship between a state change type and a data example; The data example fills the extracted one or more key data into the data example template based on the respective key data meanings to generate the state change of the current data packet containing the internal logic between one or more key data.
16. A threat self-sensing and processing system for distributed power sources according to claim 15, characterized in that: The design is based on an abnormal traffic model of a state machine, interprets the state changes in multiple data packets under the same traffic type, thereby determining the threat state of the distributed power source and executing a threat handling process, including: The abnormal traffic model based on the state machine includes multiple states and state changes between multiple states; The number of cycles for state changes between multiple states in the abnormal traffic model is set. If the state changes in multiple data packets under the same traffic type exceed the number of cycles, it is determined that the business of the current traffic type has abnormal behavior.
17. A threat self-sensing and processing system for distributed power sources according to claim 16, characterized in that: In the handling module, the abnormal traffic model based on the state machine includes multiple states and state changes between multiple states, including: The multiple states include a username verification state, a waiting identity information state, a login failure state, and a closed state; The setting of the number of cycles of state changes between multiple states in the abnormal traffic model includes: In multiple consecutive data packets within a preset time period, if the number of cycles between the waiting identity information state and the login failure state reaches 4 times, and the number of cycles between the username verification state and the closed state reaches 5 times, it is determined that the current traffic type of business has abnormal behavior.
18. A threat self-sensing and processing system for distributed power sources according to claim 17, characterized in that: The design is based on an abnormal traffic model of a state machine, interprets the state changes in multiple data packets under the same traffic type, thereby determining the threat state of the distributed power source and executing a threat handling process, including: When it is determined that the business of the current traffic type has abnormal behavior, the traffic type, state change, and number of state changes corresponding to the abnormal behavior are sent to the main station security management platform as alarm information to determine the threat status of the distributed power supply and execute the threat handling process.
19. A distributed power source threat self-sensing and processing device, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 9.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
System and method for carrying out threat analysis based on Internet of Things flow
CN110120950A
Flow security analysis modeling method and system
CN112804239A
Situation awareness method based on brain-like calculation
CN113242267A
Industrial internet security threat detection method and system based on flow analysis
CN113556354A
Switch flow threat discovery method based on artificial intelligence
CN116155599A
