Network abnormal information extraction method and device, electronic equipment and storage medium
By constructing a network communication topology map in the power Internet of Things system and screening abnormal nodes, the problems of high false alarm rate and high missed detection rate in traditional methods are solved, and the accuracy of identifying network abnormal information and the security of the power Internet of Things are improved. .
Patent Information
- Application Number
- CN202410878565.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional network anomaly identification methods have high false positive rates and missed detection rates in power Internet of Things data communications, and cannot accurately identify network abnormal information, which affects the network security of the Power Internet of Things.
By collecting the network communication data of the power Internet of Things system, a network communication topology diagram is constructed, and target abnormal nodes are screened out based on the traffic data and the connectivity of the equipment nodes, thereby reducing the false alarm rate and missed detection rate.
It improves the recognition rate of network abnormal information, reduces the false alarm rate and missed detection rate, enhances the security of the power Internet of Things network, and provides a tracking tool for attack paths.
Smart Images

Figure CN118740459A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network anomaly information extraction, and in particular to a network anomaly information extraction method, device, electronic equipment and storage medium. Background Art
[0002] With the rapid development of IoT technology, the power system is gradually being integrated into a wider intelligent Internet network, forming the Power IoT. However, this progress also brings certain information security challenges, including data leakage, illegal intrusion, malware propagation, and targeted attacks on critical infrastructure.
[0003] Traditional network anomaly identification methods often focus on static rule matching or simple statistical analysis when extracting network anomaly information from power Internet of Things data communication data. They are unable to accurately identify network anomaly information, resulting in a high false alarm rate and a large missed detection rate of network anomaly information, which is not conducive to the network security of the power Internet of Things. Summary of the invention
[0004] The present invention provides a network anomaly information extraction method to solve the problems of high false alarm rate and large missed detection rate in the existing network anomaly identification method.
[0005] In a first aspect, the present invention provides a method for extracting network abnormal information, comprising:
[0006] Collecting raw data of network communication in the power Internet of Things system, wherein the raw data includes network traffic data and device nodes;
[0007] Determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device node in the abnormal data as a candidate abnormal node;
[0008] Constructing a network communication topology graph based on the network traffic data and the device nodes, wherein each node in the network communication topology graph represents one of the device nodes, the line segments in the network communication topology graph represent the communication between the nodes, and the length of the line segments represents the connectivity between the nodes;
[0009] Distinguishing and marking the candidate abnormal nodes in the network communication topology diagram;
[0010] After the marking is completed, based on the nodes in the network communication topology diagram and the connectivity between the nodes, a target abnormal node is determined from the candidate abnormal nodes;
[0011] The abnormal data corresponding to the target abnormal node is used as network abnormality information.
[0012] In a second aspect, the present invention provides a network abnormality information extraction device, comprising:
[0013] A data acquisition module is used to collect the original data of network communication in the power Internet of Things system, wherein the original data includes network flow data and device nodes;
[0014] An abnormal data and node acquisition module, used to determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device node in the abnormal data as a candidate abnormal node;
[0015] A topology map construction module is used to construct a network communication topology map based on the network traffic data and the device nodes, each node in the network communication topology map represents one of the device nodes, the line segment edges in the network communication topology map represent the communication between the nodes, and the length of the line segment edges represents the connectivity between the nodes;
[0016] A distinguishing marking module, used for distinguishing the candidate abnormal nodes in the network communication topology diagram;
[0017] A target abnormal node determination module is used to determine a target abnormal node from the candidate abnormal nodes based on the nodes in the network communication topology diagram and the connectivity between the nodes after the marking is completed;
[0018] The network abnormality information determination module is used to use the abnormal data corresponding to the target abnormal node as the network abnormality information.
[0019] In a third aspect, the present invention provides an electronic device, the electronic device comprising:
[0020] at least one processor; and
[0021] a memory communicatively connected to the at least one processor; wherein,
[0022] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network anomaly information extraction method described in the first aspect of the present invention.
[0023] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network anomaly information extraction method described in the first aspect of the present invention when executed.
[0024] The embodiment of the present invention provides a method for extracting network abnormal information, which collects the original data of network communication in the power Internet of Things system, the original data includes network flow data and device nodes; determines the abnormal data from the original data based on the communication characteristics of the network flow data, and uses the device nodes in the abnormal data as candidate abnormal nodes; constructs a network communication topology map based on the network flow data and the device nodes, each node in the network communication topology map represents a device node, the line segment edge in the network communication topology map represents the communication between nodes, and the length of the line segment edge represents the connectivity between nodes; distinguishes and marks the candidate abnormal nodes in the network communication topology map; after the marking is completed, based on the nodes in the network communication topology map and the connectivity between nodes, determines the target abnormal node from the candidate abnormal nodes, and uses the abnormal data corresponding to the target abnormal node as network abnormal information. Among them, the length of the line segment edge can be proportional to the connectivity between nodes, that is, the larger the connectivity, the longer the length of the line segment edge. Of course, the length of the line segment edge can also be inversely proportional to the connectivity between nodes, and the present invention is not limited to this.
[0025] In this embodiment, a preliminary screening is first performed based on the communication characteristics of the network traffic data to obtain abnormal data and candidate abnormal nodes, and then a network communication topology diagram is constructed. Based on the nodes in the network communication topology diagram and the connectivity between the nodes, the target abnormal nodes are determined from the candidate abnormal nodes. This is equivalent to screening the abnormal nodes multiple times, and the network abnormal information corresponding to the abnormal nodes can be accurately screened out, thereby improving the recognition rate of the network abnormal information, reducing the false alarm rate and missed detection rate of the network abnormal information, and facilitating the network security of the power Internet of Things.
[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 is a flow chart of a method for extracting network abnormal information provided by Embodiment 1 of the present invention;
[0029] Figure 2 is a flow chart of a method for extracting network abnormal information provided by Embodiment 2 of the present invention;
[0030] Figure 3It is a structural diagram of a network abnormality information extraction device provided by Embodiment 3 of the present invention;
[0031] Figure 4 It is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] Embodiment 1
[0034] Figure 1 This is a flowchart of a method for extracting network anomaly information provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of extracting network anomaly information. The method can be executed by a network anomaly information extraction device. The network anomaly information extraction device can be implemented in the form of hardware and / or software. The network anomaly information extraction device can be configured in an electronic device. Figure 1 As shown, the network abnormal information extraction method includes:
[0035] S101. Collect original data of network communication in the power Internet of Things system, where the original data includes network traffic data and device nodes.
[0036] Each device node in the power Internet of Things system is a physical or virtual node. The device node is equipped with a data acquisition interface, which can collect data in real time or periodically. In addition, when the raw data is obtained, data preprocessing can also be performed, including checking and removing abnormal values, duplicate records, null values or non-compliant formats in the data, and converting data types into a unified format.
[0037] S102: Determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device nodes in the abnormal data as candidate abnormal nodes.
[0038] The communication characteristics of network traffic data are mainly obtained from the communication-related information in the network traffic data. The communication-related information in the network traffic data includes at least one of the protocol type, source IP address, destination IP address, source port number, and destination port number.
[0039] To determine abnormal data from original data based on the communication characteristics of network traffic data, the network traffic data is compared, and network traffic data that is greatly different from most other network traffic data is screened out as abnormal traffic data, and then part of the original data corresponding to the abnormal traffic data is taken as abnormal data.
[0040] Optionally, the original data also includes a timestamp. After the original data is collected, the original data can be divided into multiple sub-data, specifically including: defining the time window size according to the needs, segmenting the original data by time window, and obtaining multiple sub-data. It is also possible to group the network traffic data in the sub-data according to the communication characteristics, form a sub-data set with common characteristics, and then analyze the sub-data in each sub-data set. Dividing the original data into multiple sub-data and classifying them helps to subdivide a large amount of data into smaller analysis units (sub-data sets) with more similar characteristics, so as to facilitate more focused and efficient analysis.
[0041] In an optional embodiment, determining abnormal data from raw data based on communication characteristics of network traffic data includes:
[0042] For each network traffic data, characteristic feature information is extracted from the network traffic data; a time series is constructed according to the communication characteristic information; the time series is converted into a spectrum diagram; based on the changing trend and amplitude of the waveform in the spectrum diagram, it is determined whether the network traffic data is abnormal traffic; when the network traffic data is abnormal traffic, part of the original data corresponding to the abnormal traffic is used as abnormal data.
[0043] Among them, the time series is converted into a spectrogram, that is, the time domain information is converted into frequency domain information. Specifically, the fast Fourier transform can be applied to convert the time series into a spectrogram. Whether the network traffic data is abnormal traffic is determined based on the change trend and amplitude of the waveform in the spectrogram. For example, in the spectrogram, a high-frequency peak may represent periodic abnormal communication activities, that is, the network traffic data is abnormal traffic. Since the abnormal data obtained in this step is not the final abnormal data, but only belongs to the initial screening stage, the network traffic data corresponding to the high-frequency peak can be roughly regarded as abnormal traffic.
[0044] The communication characteristic information includes at least one of the protocol type, source IP address, destination IP address, source port number, and destination port number.
[0045] In an optional embodiment, abnormal data is determined from the original data based on the communication characteristics of the network traffic data, including: for each network traffic data, extracting communication characteristic information from the network traffic data; constructing a time series of the network traffic data based on the communication characteristic information; dividing the time series into multiple subsequences according to a preset unit time period; for each subsequence, calculating an evaluation value of the communication characteristic information of the network traffic data in the subsequence, the evaluation value including the mean, variance and kurtosis; for each evaluation value, determining whether the evaluation value is greater than a preset evaluation value threshold; if so, marking part of the original data corresponding to the subsequence as abnormal data.
[0046] The evaluation value of the communication characteristic information of the network traffic data in the subsequence is calculated, specifically, the communication characteristic information of the network traffic data in the subsequence is quantified to obtain a communication characteristic value, and the evaluation value is calculated based on the communication characteristic value. In this embodiment, when a certain value is calculated based on the communication characteristic information, it means that the communication characteristic information is quantified before calculation.
[0047] The calculation formula for the mean of communication characteristic information is:
[0048]
[0049] The calculation formula for the variance of the mean of the communication characteristic information is:
[0050]
[0051] The calculation formula for the kurtosis of the mean of the communication characteristic information is:
[0052]
[0053] Among them, u is the mean, N is the total number of data points of the quantized value of the communication characteristic information in the subsequence, and x i is the quantized value of the i-th communication characteristic information in the subsequence; σ 2 is the variance; K is the kurtosis.
[0054] For the kurtosis calculation formula, The data points are normalized relative to the mean u and divided by the standard deviation σ, which ensures the scale invariance of the measurement and allows data of different units or scales to be directly compared. It is to take the fourth power of the standardized data points, which is actually a step to calculate the fourth-order central moment, which reflects the sharpness and flatness of the data distribution. Compared with the second-order central moment (variance), the fourth-order central moment is more sensitive to the extreme values at both ends of the data distribution. The coefficients in the formula are The (N-1)(N-2)(N-3) in the denominator is to provide an unbiased estimator. This adjustment can reduce the error caused by sampling when the sample size is not very large. Finally, subtract from the calculated result This section is about converting the kurtosis values we get to excess kurtosis relative to a normal distribution. The ratio of the fourth central moment to the square of the second central moment (variance) of a normal distribution is 3 (adjusted slightly differently for unbiased estimates). This gives the normal distribution an excess kurtosis of 0, allowing us to tell whether other distributions have higher (peaked, fatter tails) or lower (flatter) kurtosis relative to the normal distribution.
[0055] The evaluation value is a digital embodiment of the communication characteristics of network data traffic. By checking abnormal network data traffic through the mean, variance, and kurtosis of each evaluation value, abnormal subsequences can be accurately detected, and then part of the original data corresponding to the abnormal subsequence can be marked as abnormal data.
[0056] S103: construct a network communication topology map based on network traffic data and device nodes.
[0057] Each node in the network communication topology diagram represents a device node. The line segment edge in the network communication topology diagram represents the communication between nodes, and the length of the line segment edge represents the connectivity between nodes.
[0058] Specifically, a network communication topology diagram is constructed based on network traffic data and device nodes, including: arranging each device node as a node of the network communication topology diagram; determining whether any two device nodes communicate with each other based on the network traffic data; connecting the two communicating device nodes with line segment edges respectively; for the two communicating device nodes, obtaining the communication frequency and communication data volume of the communication based on the network traffic data of the two device nodes; determining the length of the line segment edge between the two device nodes based on the communication frequency and the communication data volume; after the line segment edges between all communicating device nodes are set, the line segment edges between the device nodes are obtained to form a network communication topology diagram.
[0059] The connectivity size indicates the closeness of communication between nodes. For example, the connectivity size can be determined based on at least one of the communication frequency and the communication data volume.
[0060] In addition, the line segment edge may also be a directed line segment, and the directed line segment may be a unidirectional line segment or a bidirectional line segment, which is specifically determined according to the communication direction between the device nodes.
[0061] S104: Differentiate and mark the candidate abnormal nodes in the network communication topology diagram.
[0062] That is, candidate abnormal nodes are marked among the nodes in the initial network communication topology diagram.
[0063] S105 . After the marking is completed, based on the nodes in the network communication topology diagram and the connectivity between the nodes, a target abnormal node is determined from the candidate abnormal nodes.
[0064] The network communication topology diagram presents the communication relationship and connectivity between nodes, and the nodes include normal device nodes and candidate abnormal nodes. Therefore, the target abnormal node can be determined from all candidate abnormal nodes by comparing the communication relationship and connectivity between the normal device node and each candidate abnormal node. Specifically, the candidate abnormal node whose communication relationship or connectivity is greatly different from that of the normal device node can be used as the target abnormal node, and the candidate abnormal node whose communication relationship and connectivity are greatly different from that of the normal device node can also be used as the target abnormal node.
[0065] In an optional embodiment, based on the connectivity between nodes and nodes in the network communication topology diagram, a target abnormal node is determined from the candidate abnormal nodes, including: digitizing the connectivity of the line segment edge in the network communication topology diagram to obtain the connectivity value of the line segment edge; for each node in the network communication topology diagram, calculating the sum of the connectivity values of the line segment edges connected to the node to obtain the communication representation value of the node; determining the safety range of the communication representation value based on the communication representation value of the normal node; and determining the target abnormal node from the candidate abnormal nodes based on the safety range. In addition, by analyzing the connectivity and weight distribution, a powerful tool is provided for tracking and understanding the attack path.
[0066] Among them, the safe range of the communication representation value is determined based on the communication representation value of the normal node. Specifically, the mean, median, mode, etc. of the communication representation value of the normal node can be used as the reference value, and then the upper and lower floating values of the reference value are set, and the safe range is obtained according to the reference value and the upper and lower floating values. By setting the safe range of the communication representation value through the communication representation value of the normal node, the target abnormal point with abnormal communication representation value can be accurately and effectively screened out.
[0067] In another optional embodiment, based on the connectivity between nodes and nodes in the network communication topology graph, the target abnormal node is determined from the candidate abnormal nodes, which may also include: digitizing the connectivity of the line segment edge in the network communication topology graph to obtain the connectivity value of the line segment edge; for each node in the network communication topology graph, calculating the sum of the connectivity values of the line segment edge connected to the node to obtain the communication representation value of the node; determining the safety reference value of the communication representation value based on the communication representation value of the normal node; and determining the target abnormal point according to the difference between the communication representation value and the safety reference value of the candidate abnormal node. Specifically, determining the target abnormal point according to the difference between the communication representation value and the safety reference value of the candidate abnormal node includes: arranging each difference in order from small to large to obtain a difference sequence, slidingly sampling the difference sequence with a window of a preset width to obtain multiple sliding windows, and calculating the average of the differences in the sliding window when the amount of difference data is the largest; for each candidate abnormal node, if the ratio of the difference corresponding to the candidate abnormal node to the difference average exceeds the preset ratio range, the candidate abnormal node is used as the target abnormal node.
[0068] S106: Use the abnormal data corresponding to the target abnormal node as network abnormality information.
[0069] After determining the target abnormal node, the abnormal data corresponding to the target abnormal node can be used as network abnormality information, which is used to analyze the security status of the power Internet of Things.
[0070] In this embodiment, the communication characteristics of the network traffic data are firstly screened to obtain abnormal data and candidate abnormal nodes, and then the target abnormal node is determined from the candidate abnormal nodes based on the nodes in the network communication topology and the connectivity between the nodes, which is equivalent to screening the abnormal nodes multiple times, and the network abnormal information corresponding to the abnormal node can be accurately screened, the recognition rate of network abnormal information can be improved, and the false alarm rate and missed detection rate of network abnormal information can be reduced, which is beneficial to the network security of the power Internet of Things. In addition, by analyzing the connectivity and weight distribution, a powerful tool is provided for tracking and understanding the attack path.
[0071] Embodiment 2
[0072] Figure 2 A flowchart of a method for extracting abnormal network information provided by Embodiment 2 of the present invention is provided. Embodiment 2 of the present invention is optimized based on Embodiment 1 above. Figure 2 As shown, the network abnormal information extraction method includes:
[0073] S201. Collect original data of network communication in the power Internet of Things system, where the original data includes network traffic data and device nodes.
[0074] S202: Determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device nodes in the abnormal data as candidate abnormal nodes.
[0075] S203. Construct a network communication topology diagram based on network traffic data and device nodes. Each node in the network communication topology diagram represents a device node. The line segments in the network communication topology diagram represent communication between nodes. The length of the line segments represents the connectivity between nodes.
[0076] S204: Differentiate and mark the candidate abnormal nodes in the network communication topology diagram.
[0077] S205 . After the marking is completed, based on the nodes in the network communication topology diagram and the connectivity between the nodes, a target abnormal node is determined from the candidate abnormal nodes.
[0078] S206: Use the abnormal data corresponding to the target abnormal node as network abnormality information.
[0079] S201-S206 are similar to S101-S106 in the first embodiment, and the details can be referred to the relevant description of S101-S106.
[0080] S207: For each piece of network anomaly information, extract communication feature information from the network traffic data in the network anomaly information.
[0081] The communication characteristic information includes at least one of the protocol type, source IP address, destination IP address, source port number, and destination port number.
[0082] S208: Convert the communication characteristic information to the same scale.
[0083] Converting the communication feature information to the same scale is feature scaling. The conversion formula is:
[0084]
[0085] x represents the value of the single communication characteristic information to be scaled; x s is the value of the converted communication characteristic information; x min 、x max are the maximum and minimum values of the communication characteristic information.
[0086] S209: Perform dimensionality reduction processing on the communication feature information to obtain reconstructed features.
[0087] S210: Perform weighted fusion on the communication feature information and the reconstruction feature to obtain the importance score of each communication feature information.
[0088] Through feature scaling, dimensionality reduction of communication feature information, reconstruction feature extraction and feature fusion, not only the data dimension is greatly reduced, but also the expressive ability of the features is improved and the generalization performance of the model is enhanced.
[0089] S211. Eliminate some communication feature information based on the distribution characteristics of the importance scores.
[0090] For example, clustering may be performed based on importance scores, and a central range may be set according to the clustering result, and communication feature information corresponding to importance scores outside the central range may be removed.
[0091] S212: Evaluate the network security status of the Internet of Things based on the remaining communication characteristic information.
[0092] The network security status of the Internet of Things is evaluated based on the remaining communication feature information, including: constructing a feature vector based on the remaining communication features; and evaluating the network security based on the feature vector.
[0093] In addition, the remaining communication feature information can also be feature normalized to ensure that they have the same proportion and scale. The normalization formula is:
[0094]
[0095] Wherein, u is the mean value of the communication characteristic information (after quantization), and σ is the standard deviation of the value of the communication characteristic information.
[0096] In this embodiment, through feature scaling, communication feature information dimension reduction, reconstruction feature extraction and feature fusion, not only the data dimension is greatly reduced, but also the feature expression ability is improved and the generalization performance of the model is enhanced. When evaluating the network security status of the Internet of Things based on the remaining communication features, security assessment can be performed quickly and efficiently, improving the efficiency of network security assessment.
[0097] Embodiment 3
[0098] Figure 3 This is a schematic diagram of the structure of a network anomaly information extraction device provided by Embodiment 3 of the present invention. Figure 3 As shown, the network abnormal information extraction device includes:
[0099] The data acquisition module 301 is used to collect the original data of network communication in the power Internet of Things system, wherein the original data includes network flow data and device nodes;
[0100] An abnormal data and node acquisition module 302, used to determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device node in the abnormal data as a candidate abnormal node;
[0101] A topology map construction module 303 is used to construct a network communication topology map based on the network traffic data and the device nodes, wherein each node in the network communication topology map represents one of the device nodes, and the line segments in the network communication topology map represent the communication between nodes, and the length of the line segments represents the connectivity between nodes;
[0102] A distinguishing marking module 304, configured to distinguish and mark the candidate abnormal nodes in the network communication topology diagram;
[0103] A target abnormal node determination module 305 is used to determine a target abnormal node from the candidate abnormal nodes based on the nodes in the network communication topology diagram and the connectivity between the nodes after the marking is completed;
[0104] The network abnormality information determination module 306 is configured to use the abnormal data corresponding to the target abnormal node as the network abnormality information.
[0105] Optionally, the abnormal data and node acquisition module 302 includes:
[0106] A feature information extraction submodule, used for extracting communication feature information from each network traffic data;
[0107] A time series construction submodule, used to construct a time series of the network traffic data according to the communication characteristic information;
[0108] A subsequence division submodule, used to divide the time series into a plurality of subsequences according to a preset unit time period;
[0109] An evaluation value calculation submodule, used for calculating, for each of the subsequences, an evaluation value of the communication characteristic information of the network traffic data in the subsequence, wherein the evaluation value includes a mean, a variance and a kurtosis;
[0110] An evaluation value judgment submodule is used to judge, for each evaluation value, whether the evaluation value is greater than a preset threshold value of the evaluation value; if so, execute the content of the abnormal data marking submodule;
[0111] The abnormal data marking submodule is used to mark the part of the original data corresponding to the subsequence as abnormal data.
[0112] Optionally, the calculation formula for the mean value of the communication characteristic information is:
[0113]
[0114] The calculation formula of the variance of the mean of the communication characteristic information is:
[0115]
[0116] The calculation formula of the kurtosis of the mean value of the communication characteristic information is:
[0117]
[0118] Wherein, u is the mean value, N is the total number of data points of the quantized value of the communication characteristic information in the subsequence, and x i is the quantized value of the i-th communication characteristic information in the subsequence; σ 2 is the variance; K is the kurtosis.
[0119] Optionally, the topology map construction module 303 includes:
[0120] A node arrangement submodule, used for arranging each of the device nodes as a node of a network communication topology diagram;
[0121] A communication determination submodule, used to determine whether any two of the device nodes communicate with each other according to the network traffic data;
[0122] A connection submodule, used to connect the two communicating device nodes with line segments respectively;
[0123] A connectivity information acquisition submodule, for obtaining, for two communicating device nodes, a communication frequency and a communication data volume according to the network traffic data of the two device nodes;
[0124] A side length setting submodule, used to determine the side length of a line segment side between two of the device nodes based on the communication frequency and the communication data volume;
[0125] The network communication topology map obtaining submodule is used to obtain the line segment edges between the device nodes and the device nodes to form the network communication topology map after the line segment edges between all the communicating device nodes are set.
[0126] Optionally, the target abnormal node determination module 305 includes:
[0127] A connectivity value obtaining submodule is used to digitize the connectivity of the line segment edge in the network communication topology diagram to obtain the connectivity value of the line segment edge;
[0128] A communication representation value calculation submodule, used for calculating the sum of the connectivity values of the line segment edges connected to each node in the network communication topology graph to obtain the communication representation value of the node;
[0129] A safety range determination submodule, configured to determine a safety range of the communication representation value based on the communication representation value of a normal node;
[0130] The target abnormal node determination submodule is used to determine a target abnormal node from the candidate abnormal nodes based on the safety range.
[0131] Optionally, the network abnormality information extraction device further includes:
[0132] A communication characteristic information extraction module, used for extracting communication characteristic information from the network traffic data in each network abnormality information;
[0133] A feature scaling module, used to convert the communication feature information to the same scale;
[0134] A feature reconstruction module, used for performing dimensionality reduction processing on the communication feature information to obtain reconstructed features;
[0135] An importance score calculation module, used for performing weighted fusion on the communication feature and the reconstruction feature to obtain an importance score of each communication feature information;
[0136] A communication feature information elimination module, used to eliminate part of the communication feature information in combination with the distribution characteristics of the importance score;
[0137] The security status assessment module is used to assess the network security status of the Internet of Things based on the remaining communication feature information.
[0138] Optionally, the security status assessment module includes:
[0139] A feature vector construction submodule, used to construct a feature vector based on the remaining communication feature information;
[0140] The security status assessment submodule is used to assess network security based on the feature vector.
[0141] The network anomaly information extraction device provided in the embodiment of the present invention can execute the network anomaly information extraction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0142] Embodiment 4
[0143] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0144] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0145] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0146] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as a network anomaly information extraction method.
[0147] In some embodiments, the network anomaly information extraction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the network anomaly information extraction method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the network anomaly information extraction method in any other appropriate manner (e.g., by means of firmware).
[0148] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0149] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0150] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0151] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0152] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0153] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0154] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0155] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for extracting network abnormal information, characterized in that: include: Collecting raw data of network communication in the power Internet of Things system, wherein the raw data includes network traffic data and device nodes; Determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device node in the abnormal data as a candidate abnormal node; Constructing a network communication topology graph based on the network traffic data and the device nodes, wherein each node in the network communication topology graph represents one of the device nodes, the line segments in the network communication topology graph represent the communication between the nodes, and the length of the line segments represents the connectivity between the nodes; Distinguishing and marking the candidate abnormal nodes in the network communication topology diagram; After the marking is completed, based on the nodes in the network communication topology diagram and the connectivity between the nodes, a target abnormal node is determined from the candidate abnormal nodes; The abnormal data corresponding to the target abnormal node is used as network abnormality information.
2. The network abnormality information extraction method according to claim 1, characterized in that: The determining of abnormal data from the original data based on the communication characteristics of the network traffic data includes: For each of the network traffic data, extracting communication characteristic information from the network traffic data; constructing a time series of the network traffic data according to the communication characteristic information; Dividing the time series into a plurality of subsequences according to a preset unit time period; For each of the subsequences, calculating an evaluation value of the communication characteristic information of the network traffic data in the subsequence, the evaluation value including a mean, a variance, and a kurtosis; For each of the evaluation values, determining whether the evaluation value is greater than a preset threshold of the evaluation value; If so, the portion of the original data corresponding to the subsequence is marked as abnormal data.
3. The network abnormality information extraction method according to claim 2, characterized in that: The calculation formula of the mean value of the communication characteristic information is: The calculation formula of the variance of the mean of the communication characteristic information is: The calculation formula of the kurtosis of the mean value of the communication characteristic information is: Wherein, u is the mean value, N is the total number of data points of the quantized value of the communication characteristic information in the subsequence, and x i is the quantized value of the i-th communication characteristic information in the subsequence; σ 2 is the variance; K is the kurtosis.
4. The network abnormality information extraction method according to claim 1, characterized in that: The constructing a network communication topology diagram based on the network traffic data and the device nodes includes: Arranging each of the device nodes as a node of a network communication topology diagram; Determine whether any two of the device nodes communicate with each other according to the network traffic data; Connecting two communicating device nodes with line segments respectively; For the two communicating device nodes, obtaining the communication frequency and the communication data volume of the communication according to the network traffic data of the two device nodes; Determine the length of a line segment edge between two of the device nodes based on the communication frequency and the communication data volume; After the line segment edges between all the communicating device nodes are set, the line segment edges between the device nodes form a network communication topology graph.
5. The network abnormality information extraction method according to claim 1, characterized in that: The determining a target abnormal node from the candidate abnormal nodes based on the nodes in the network communication topology diagram and the connectivity between the nodes includes: Numerically quantifying the connectivity of the line segment edges in the network communication topology graph to obtain the connectivity value of the line segment edges; For each node in the network communication topology graph, calculate the sum of the connectivity values of the line segment edges connected to the node to obtain the communication representation value of the node; Determine a safety range of the communication representation value based on the communication representation value of the normal node; A target abnormal node is determined from the candidate abnormal nodes based on the safety range.
6. The network abnormality information extraction method according to any one of claims 1 to 5, characterized in that: After taking the abnormal data corresponding to the target abnormal node as the network abnormal information, the method further includes: For each piece of network abnormality information, extracting communication feature information from the network traffic data in the network abnormality information; Converting the communication characteristic information to the same scale; Performing dimensionality reduction processing on the communication feature information to obtain reconstructed features; Performing weighted fusion on the communication feature and the reconstruction feature to obtain an importance score of each communication feature information; Eliminating part of the communication feature information based on the distribution characteristics of the importance score; The network security status of the Internet of Things is evaluated based on the remaining communication characteristic information.
7. The network abnormality information extraction method according to claim 6, characterized in that: The evaluating the network security status of the Internet of Things based on the remaining communication characteristics includes: constructing a feature vector based on the remaining communication feature information; The network security is evaluated based on the feature vector.
8. A network abnormality information extraction device, characterized in that: include: A data acquisition module is used to collect the original data of network communication in the power Internet of Things system, wherein the original data includes network flow data and device nodes; An abnormal data and node acquisition module, used to determine abnormal data from the original data based on the communication characteristics of the network traffic data, and use the device node in the abnormal data as a candidate abnormal node; A topology map construction module is used to construct a network communication topology map based on the network traffic data and the device nodes, each node in the network communication topology map represents one of the device nodes, the line segment edges in the network communication topology map represent the communication between the nodes, and the length of the line segment edges represents the connectivity between the nodes; A distinguishing marking module, used for distinguishing the candidate abnormal nodes in the network communication topology diagram; A target abnormal node determination module is used to determine a target abnormal node from the candidate abnormal nodes based on the nodes in the network communication topology diagram and the connectivity between the nodes after the marking is completed; The network abnormality information determination module is used to use the abnormal data corresponding to the target abnormal node as the network abnormality information.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network abnormality information extraction method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network abnormality information extraction method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Power distribution network topology automatic checking method and device, terminal equipment and storage medium
CN119884189A
