A method, device, equipment and readable medium for detecting power data attacks
By analyzing the node voltage, current, power and phase angle of power data, calculating the standard value of voltage difference and power prediction range, the problem of bypassing power network attack detection is solved, and effective detection of power data attacks is achieved.
Patent Information
- Application Number
- CN202210447580.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-26
AI Technical Summary
Existing power data attack detection methods cannot effectively detect attacks on power networks. Attackers can bypass the physical characteristics mechanism by modifying data, causing detection to fail.
By obtaining power data, calculating node voltage, current, power and phase angle, determining active power and reactive power, and performing data detection based on the voltage difference standard value and power prediction range, judging the validity of the data, and then detecting data attacks.
Effectively detects and identifies tampering of power data, solves the problem of power network attacks bypassing the physical characteristics mechanism, and achieves effective detection of power data attacks.
Smart Images

Figure CN114722394B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a method, device, equipment and readable medium for detecting power data attacks. Background Art
[0002] With the development of technology, the collection and transmission of power data has changed from traditional manual collection to automatic collection, making the collection and transmission of power data more efficient.
[0003] Due to the plain text transmission of power data and the openness of the protocol, power data is easily tampered with, which not only causes economic losses but also affects the normal operation of the power network.
[0004] At present, the attack detection on power data mainly compares the power data with the historical power data, and determines whether the data has been tampered with according to the physical characteristics of the circuit. However, the current attacks on the power network can coordinate the modified power data to bypass the physical characteristics mechanism, so the existing methods can no longer effectively detect attacks on power data. Summary of the invention
[0005] The present invention provides a power data attack detection method, device, equipment and readable medium to solve the problem that attacks on power data cannot be effectively detected.
[0006] According to one aspect of the present invention, a data attack detection method is provided, which is performed by a data attack detection device, which is communicatively connected to at least one detection object, and the method comprises: acquiring power data of each of the detection objects; determining a data detection result of each of the detection objects based on the power data; and performing data attack detection based on the data detection result of each of the detection objects.
[0007] Optionally, the power data includes node voltage, node current, node power and phase angle;
[0008] Correspondingly, determining the data detection result of each detection object according to the power data includes: for each detection object, executing: determining the active power and reactive power of the current detection object through the node power and phase angle of the current detection object; determining a target detection object having a connection relationship with the current detection object; determining the voltage difference standard value between the current detection object and the target detection object through the following formula, the formula including:
[0009]
[0010] ΔU is the standard value of the voltage difference, α is the error coefficient, Pj is the active power of the current detection object, R ij is the resistance value between the current detection object and the target detection object, Q j is the reactive power of the current detection object, X ij is the electrical impedance between the current detection object and the target detection object, U j is the node voltage of the current detection object; when the node voltage difference between the current detection object and the target detection object is not greater than the voltage difference standard value, the data detection result of the current detection object is valid; when the node voltage difference between the current detection object and the target detection object is greater than the voltage difference standard value, the data detection result of the current detection object is invalid.
[0011] Optionally, for each of the detection objects, the following is performed: determining whether the product of the node voltage and the node current of the current detection object is equal to the node power of the current detection object; when the product of the node voltage and the node current of the current detection object is equal to the node voltage of the current detection object, the data detection result of the current detection object is valid; when the product of the node voltage and the node current of the current detection object is not equal to the node voltage of the current detection object, the data detection result of the current detection object is invalid.
[0012] Optionally, determining the data detection result of each of the detection objects based on the power data includes: at each preset detection time point, for each of the detection objects, executing: determining the active power prediction range of the current detection time point based on the active power of the current detection object at at least one historical detection time point before the current detection time point; when the active power of the current detection object at the current time point is within the active power prediction range, the data detection result of the current detection object is valid; when the active power of the current detection object at the current time point is outside the active power prediction range, the data detection result of the current detection object is invalid.
[0013] Optionally, determining the data detection result of each of the detection objects based on the power data includes: at each detection time point, for each of the detection objects, executing: determining a state estimation value of the current detection object and each associated detection object in at least one target association group to which the current detection object belongs at the current detection time point; wherein each of the detection objects corresponds to a functional category, each of the association groups includes at least two detection objects that are mutually associated and have the same functional category, and each of the detection objects belongs to at least one association group; determining a state estimation range of each target association group at the current detection time point based on the state estimation value of the current detection object and each associated detection object in at least one target association group to which the current detection object belongs; determining an actual state value of other associated detection objects of the current detection object in each of the target association groups at the current detection time point; and determining the data detection result of the current detection object based on each of the state estimation ranges and the actual state values.
[0014] Optionally, the state estimated value is an estimated ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at the current detection time point; the state estimated value is obtained by using the actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at at least one historical detection time point before the current detection time point; the state actual value is the actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at the current detection time point.
[0015] Optionally, determining the data detection result of the current detection object based on each of the state estimation ranges and the state actual value includes: for each of the target association groups, executing: determining whether the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group; when the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group, determining that the current target association group is a valid association group of the current detection object; determining whether the ratio of the number of valid association groups of the current detection object to the number of association groups of the current detection object is greater than a preset ratio; if it is greater than the preset ratio, the data detection result of the current detection object is valid; if it is not greater than the preset ratio, the data detection result of the current detection object is invalid.
[0016] Optionally, performing data attack detection according to the data detection result of each detection object includes: determining a target invalid number of detection objects whose data detection results are invalid; and determining a data attack level according to a correspondence between the target invalid number and a preset invalid number and a data attack level.
[0017] According to another aspect of the present invention, a data attack detection device is provided, which is communicatively connected to at least one detection object, and comprises: a power data acquisition unit, used to acquire power data of each of the detection objects; a data detection result determination unit, used to determine the data detection result of each of the detection objects according to the power data; and a data attack detection unit, used to perform data attack detection according to the data detection result of each of the detection objects.
[0018] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0019] at least one processor; and
[0020] a memory communicatively connected to the at least one processor; wherein,
[0021] 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 data attack detection method described in any embodiment of the present invention.
[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data attack detection method described in any embodiment of the present invention when executed.
[0023] The technical solution of the embodiment of the present invention detects the power data of the detection object to obtain the data detection result of the power data, and detects the data attack based on the detection result, thereby solving the problem that the current attacks on the power network can coordinate the modified power data to bypass the physical characteristic mechanism, and can effectively detect the attacks on the power data.
[0024] 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
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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.
[0026] Figure 1 A flow chart of a data attack detection method provided in Embodiment 1 of the present invention;
[0027] Figure 2 A flowchart of a method for determining a data detection result provided in Embodiment 2 of the present invention;
[0028] Figure 3 A flowchart of another method for determining data detection results provided in Embodiment 2 of the present invention;
[0029] Figure 4 A flowchart of another method for determining data detection results provided in Embodiment 3 of the present invention;
[0030] Figure 5 A schematic diagram of a state estimation range applicable to the third embodiment of the present invention;
[0031] Figure 6 A flowchart of another method for determining data detection results provided in Embodiment 3 of the present invention;
[0032] Figure 7 A flowchart of a data attack detection method provided in Embodiment 4 of the present invention;
[0033] Figure 8 A schematic diagram of the structure of a data attack detection device provided in Embodiment 5 of the present invention;
[0034] Fig. 9 It is a structural schematic diagram of an electronic device for implementing the data attack detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] 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.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] Embodiment 1
[0038] Figure 1 This is a flow chart of a data attack detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of performing data attack detection on terminal equipment in a power network. The method can be executed by a data attack detection device, which can be implemented in the form of hardware and / or software. Figure 1 As shown, the method includes:
[0039] S110: Acquire power data of each of the detection objects.
[0040] Among them, the power data is the valid data generated by the detection object during operation. Taking the detection object as the power network intelligent terminal as an example, the power data includes node voltage, current, power and phase angle data, etc. For the convenience of calculation, the above power data can be converted into standard measurements, such as the standard measurement of voltage is V, the standard measurement of current is A, the standard measurement of power is W, and the standard measurement of phase angle is Rad.
[0041] S120: Determine a data detection result of each detection object according to the power data.
[0042] Among them, by analyzing and processing the power data, the data detection result of the detection object represented by the power data is determined. For example, based on the calculation and comparison of various power parameters in the power data, it is determined whether the integrity of the power data is affected or whether the power data is tampered with, etc. Therefore, based on the situation of the power data, the data detection result of the detection object can be determined.
[0043] S130: Perform data attack detection according to the data detection result of each detection object.
[0044] Among them, since the data detection results can reflect the changes in power data and will inevitably have an impact on the power data when a data attack occurs, data attack detection can be performed based on the data detection results, and the type of data attack can be further determined based on the detection results.
[0045] The technical solution of the embodiment of the present invention detects the power data of the detection object to obtain the data detection result of the power data, and detects the data attack based on the detection result, thereby solving the problem that the current attacks on the power network can coordinate the modified power data to bypass the physical characteristic mechanism, and can effectively detect the attacks on the power data.
[0046] Embodiment 2
[0047] Figure 2 This is a flow chart of a method for determining data detection results provided by Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment. Figure 2 As shown, when the power data includes node voltage, node current, node power and phase angle, the data detection result of each detection object is determined according to the power data, and the following steps are performed for each detection object:
[0048] S210. Determine the active power and reactive power of the current detection object through the node power and phase angle of the current detection object.
[0049] Among them, active power and reactive power can be used to confirm the node power detection of the detection object. For the current detection object, the active power can be obtained by multiplying the node power of the current detection object and the cosine value of the phase angle, and the reactive power can be obtained by multiplying the node power of the current detection object and the sine value of the phase angle.
[0050] S220: Determine a target detection object that has a connection relationship with the current detection object.
[0051] Among them, when the current monitoring object and the target detection object have a physical connection relationship, they are considered to have a connection relationship. Since the two are connected in a physical form, the power data should conform to certain physical laws, which can be used as the basis for the data detection results.
[0052] S230, determining the node voltage difference between the current detection object and the target detection object, and determining whether the node voltage difference is greater than a voltage difference standard value; if not, executing S240; if so, executing S250.
[0053] S240: The data detection result of the current detection object is valid.
[0054] S250: The data detection result of the current detection object is invalid.
[0055] The voltage difference standard value is the voltage difference between the current monitoring object and the target detection object under physical connection when there is no abnormality in the power data. The voltage difference standard value is calculated by the following formula:
[0056]
[0057] ΔU is the standard value of the voltage difference, α is the error coefficient, P j is the active power of the current detection object, R ij is the resistance value between the current detection object and the target detection object, Q j is the reactive power of the current detection object, X ij is the electrical impedance between the current detection object and the target detection object, U j is the node voltage of the current detection object.
[0058] The node voltage difference is the absolute value of the actual voltage difference between the current detection object and the target detection object. By comparing the node voltage difference with the voltage difference standard value, it can be determined whether the data detection result is valid; when the node voltage difference is within the voltage difference standard value range, the data detection result is that the power data is valid, otherwise it is invalid. In order to prevent the influence of factors such as errors and line losses, the detection margin can be set when calculating the voltage difference standard value, for example, set to 20%.
[0059] Figure 3 A flowchart of another method for determining data detection results provided in Embodiment 2 of the present invention is shown in FIG. Figure 3 As shown, at each preset detection time point, the following steps are performed on each detection object:
[0060] S310: Determine an active power prediction range at the current detection time point according to the active power of the current detection object at at least one historical detection time point before the current detection time point.
[0061] Among them, the active power of the current detection object is predicted to determine whether the active power prediction value meets the detection conditions, and the detection conditions include a prediction upper limit value and a prediction lower limit value. The prediction upper limit value and the prediction lower limit value are between the prediction upper limit value and the prediction lower limit value. The prediction upper limit value and the prediction lower limit value are determined by calculating the active power prediction value, and increasing or decreasing the corresponding difference of the detection margin on the basis of the active power prediction value to obtain the prediction upper limit value and the prediction lower limit value respectively. The active power prediction value can be predicted by the weighted average method of value and trend, and the active power data from n previous several historical detection time points to n consecutive detection time points are recorded to predict. When calculating the active power prediction value, the weighting coefficients of several consecutive historical detection time points and the weighting coefficients of the active power trend of several consecutive historical detection time points can be introduced, and the weighting coefficients can be adjusted according to the different properties of the detection object.
[0062] S320: When the active power of the current detection object at the current time point is within the active power prediction range, the data detection result of the current detection object is valid; when the active power of the current detection object at the current time point is outside the active power prediction range, the data detection result of the current detection object is invalid.
[0063] Among them, the active power of the current detection object at the current time point is within the active power prediction range, indicating that the power-related data of the current detection object has not been tampered with or modified. At this time, the data detection result is that the power data is valid, otherwise the power data is invalid.
[0064] Optionally, in the second embodiment of the present invention, when the power data includes node voltage, node current, node power and phase angle, correspondingly, determining the data detection result of each of the detection objects based on the power data includes: for each of the detection objects, executing: determining whether the product of the node voltage and the node current of the current detection object is equal to the node power of the current detection object; when the product of the node voltage and the node current of the current detection object is equal to the node voltage of the current detection object, the data detection result of the current detection object is valid; when the product of the node voltage and the node current of the current detection object is not equal to the node voltage of the current detection object, the data detection result of the current detection object is invalid.
[0065] Among them, in the embodiment of the present invention, basic power parameters can also be detected, such as whether the product of the node voltage and node current of the detection object is the same as the measured node power, to determine whether any of the three parameters has been tampered with, or the node current of different connected detection objects can be used to determine whether the sum of the inflow and outflow currents of a certain detection object is zero. If it is not zero, data tampering may exist.
[0066] Embodiment 3
[0067] Figure 4 This is a flow chart of another method for determining data detection results provided by Embodiment 3 of the present invention. This embodiment is optimized based on the above embodiment. Figure 4 As shown, at each detection time point, the following steps are performed for each detection object:
[0068] S410, determining the estimated state of the current detection object and each associated detection object in at least one target association group to which the current detection object belongs at the current detection time point; wherein each of the detection objects corresponds to a functional category, each of the association groups includes at least two of the detection objects that are mutually associated and have the same functional category, and each of the detection objects belongs to at least one association group.
[0069] Among them, the functional category can be determined by the application scenario of the detection object, such as the power network terminal used in the home and the power network terminal used in the factory, which correspond to the home category and the factory category respectively. Since the power data of the detection objects corresponding to different functional categories cannot be compared with each other, such as the power consumption of the home and the power consumption of the factory are very different, when establishing the association group, the detection objects with similar functional characteristics are associated.
[0070] In a feasible embodiment, the detection object is an intelligent terminal in the power network, each intelligent terminal is connected to a local computing device in the power network area to which it belongs, and the local computing device is connected to a computing center. When transmitting power data, the intelligent terminal transmits the data packet to the local computing device through a local communication channel, and the local computing device transmits the data packet in the power network area to which it belongs to to the computing center through a remote communication channel, and the local computing device and the computing center extract the data packet through an open protocol.
[0071] The local computing device preferably uses a computer with a main frequency of not less than 400MHz, a word length of not less than 16 bits, a memory of not less than 32MB, and a storage of not less than 1G; the computing center refers to a computer with a main frequency of not less than 4GHz, a word length of not less than 32 bits, a memory of not less than 4GB, and a storage of not less than 1TB. The local computing device is the smallest unit divided in the power network, usually a community, school, village, factory, etc. The local computing device is used to perform simple power data processing and calculation. The computing tasks that cannot be completed by the local computing device can be transmitted to the computing center for calculation.
[0072] The association group can be randomly generated by the computing center. The two associated smart terminals come from the area to which the same local computing device belongs or from the areas to which different local computing devices belong. Each terminal device in the power network belongs to at least one association group and can belong to at most three association groups.
[0073] S420: Determine a state estimation range of each target association group at the current detection time point according to the state estimation value of the current detection object and each associated detection object in at least one target association group to which the current detection object belongs at the current detection time point.
[0074] S430: Determine actual state values of other associated detection objects of the current detection object in each of the target association groups at the current detection time point.
[0075] Among them, the state estimation value can be reflected in the form of a state estimation sequence, which is a sequence composed of the state estimation values of several detection time points before the current detection time point. For each association group, the state estimation values of the current detection object and the associated detection objects in the association group at the current monitoring time point are determined.
[0076] In the third embodiment of the present invention, optionally, an elliptical area is constructed by predicting the state estimation sequence of the current monitored object and the associated detected objects at several historical detection time points before the current detection time point, and the elliptical area is used as the state estimation range.
[0077] Figure 5 This is a schematic diagram of the state estimation range applicable to Example 3 of the present invention. The center point of the ellipse is the state estimation value of the current monitored object and the associated detected object at the current detection time point, the major axis is 2α×the state estimation value of the current monitored object, and the minor axis is 2α×the state estimation value of the associated detected object, where α is the detection margin.
[0078] S440: Determine a data detection result of the current detection object according to each of the state estimation ranges and the state actual value.
[0079] Among them, after the state estimation range is obtained, the data detection result of the current detection object can be determined according to the relationship between the actual state value and the state estimation range.
[0080] In the third embodiment of the present invention, the state estimated value is the estimated ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at the current detection time point; the state estimated value is obtained by the actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at at least one historical detection time point before the current detection time point; the state actual value is the actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at the current detection time point.
[0081] Figure 6 This is a flow chart of another method for determining data detection results provided in Embodiment 3 of the present invention. The method is optimized based on the above embodiment. The method includes the following steps:
[0082] S610: Determine whether the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group.
[0083] Among them, the state estimation range can be the elliptical range mentioned above, and a two-dimensional coordinate system is established. The horizontal and vertical coordinates of the coordinates of the center point of the ellipse are the state estimation values of the current monitored object and the associated detection object at the current detection time point, respectively. The actual state values of the current detection object and the associated detection object are used as the horizontal and vertical coordinates, respectively, to determine whether the coordinate value is within the elliptical range, that is, to determine whether the actual state values of the current detection object and the associated detection object are both within the state estimation range.
[0084] S620: When the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group, determine that the current target association group is a valid association group of the current detection object.
[0085] Among them, if the actual state values of the current detection object and the associated detection object are both within the state estimation range, it means that the actual parameters of the detection objects in the association group do not exceed the expected normal values, and the association group is a valid association group.
[0086] S630, determine whether the ratio of the number of valid associated groups of the current detection object to the number of associated groups described by the current detection object is greater than a preset ratio; if it is greater than the preset ratio, the data detection result of the current detection object is valid; if it is not greater than the preset ratio, the data detection result of the current detection object is invalid.
[0087] After determining the number of valid association groups of the current detection object, all association groups are evaluated. For example, when the number of valid association groups accounts for more than 50% of the number of all association groups, the power data of the current detection object is considered valid, otherwise it is invalid.
[0088] Embodiment 4
[0089] Figure 7 This is a flow chart of a data attack detection method provided in Embodiment 4 of the present invention. This embodiment is optimized based on the above embodiments. The method includes the following steps:
[0090] S710: Determine the target invalid number of detection objects whose data detection results are invalid.
[0091] Among the multiple detection objects included in an electric power network, if a data detection result of one of the detection objects is invalid in any test item, the detection object is marked, and the number of the marked detection objects is recorded.
[0092] S720: Determine a data attack level according to a correspondence between the target invalid number, a preset invalid number, and a data attack level.
[0093] Among them, a power network can be composed of a local computing device and its corresponding detection object. The data attack level of the power network is determined according to the number of marked detection objects in the power network. For example, each marked detection object is recorded as 1, and the weight is set according to the importance of each detection object. The detection object with a weight of 0.8 is recorded as 0.8, and so on. The recorded values of each detection object in the power network are accumulated to obtain the complete attack situation of the power network, and the data attack level is determined accordingly.
[0094] In addition, according to the data attack level of different power networks, the data attack level of the area to which each local computing device belongs can be displayed in real time using a display panel through a visualization unit. The display method is colors of different depths, and the depth of the color is determined according to the data attack level. In addition, the power network status of the area to which each local computing device belongs can be marked with borders of different colors, which can be respectively not subjected to integrity attack, subjected to integrity attack, and subjected to integrity attack and being processed.
[0095] For power grids that have been attacked, the objective function and constraints can be established to solve the problem by optimally arranging and dispatching the power company's handling of attack events. The objective function represents the comprehensive cost of the power company, and the constraints include: the number of resources that need to be configured does not exceed the limited resources that can be dispatched, and the event processing uses the area to which the local computing device belongs as the minimum unit. The objective function needs to consider the ratio of resources for handling integrity attack events to the corresponding costs, and the ratio between the corresponding losses caused by not handling integrity attack events and the integrity attack situation of the node where the unhandled integrity attack event is located.
[0096] Embodiment 5
[0097] Figure 8 This is a schematic diagram of the structure of a data attack detection device provided in Embodiment 5 of the present invention. Figure 8 As shown, the device comprises:
[0098] The power data acquisition unit 810 is used to acquire the power data of each of the detection objects.
[0099] The data detection result determination unit 820 is used to determine the data detection result of each of the detection objects according to the power data.
[0100] The data attack detection unit 830 is used to perform data attack detection according to the data detection result of each detection object.
[0101] Optionally, when the power data includes node voltage, node current, node power and phase angle, the data detection result determination unit 820 is used to perform, for each of the detection objects: determining the active power and reactive power of the current detection object through the node power and phase angle of the current detection object; determining a target detection object having a connection relationship with the current detection object; and determining a standard value of the voltage difference between the current detection object and the target detection object through the following formula, wherein the formula includes:
[0102]
[0103] ΔU is the standard value of the voltage difference, α is the error coefficient, P j is the active power of the current detection object, R ij is the resistance value between the current detection object and the target detection object, Q j is the reactive power of the current detection object, X ij is the electrical impedance between the current detection object and the target detection object, U j is the node voltage of the current detection object;
[0104] When the node voltage difference between the current detection object and the target detection object is not greater than the voltage difference standard value, the data detection result of the current detection object is valid; when the node voltage difference between the current detection object and the target detection object is greater than the voltage difference standard value, the data detection result of the current detection object is invalid.
[0105] Optionally, the data detection result determination unit 820 is used to perform, for each of the detection objects, the following operations: determining whether the product of the node voltage and the node current of the current detection object is equal to the node power of the current detection object; when the product of the node voltage and the node current of the current detection object is equal to the node voltage of the current detection object, the data detection result of the current detection object is valid; when the product of the node voltage and the node current of the current detection object is not equal to the node voltage of the current detection object, the data detection result of the current detection object is invalid.
[0106] Optionally, the data detection result determination unit 820 is used to perform, at each preset detection time point, for each detection object: determining the active power prediction range of the current detection time point based on the active power of the current detection object at at least one historical detection time point before the current detection time point; when the active power of the current detection object at the current time point is within the active power prediction range, the data detection result of the current detection object is valid; when the active power of the current detection object at the current time point is outside the active power prediction range, the data detection result of the current detection object is invalid.
[0107] Optionally, the data detection result determination unit 820 is configured to perform, at each detection time point, for each detection object:
[0108] Determine a state estimate value of a current detection object and each associated detection object in at least one target association group to which the current detection object belongs at a current detection time point; wherein each of the detection objects corresponds to a functional category, each of the association groups includes at least two detection objects that are mutually associated and have the same functional category, and each of the detection objects belongs to at least one association group;
[0109] Determine a state estimation range of each target association group at the current detection time point according to the current detection object and the state estimation value of each associated detection object in at least one target association group to which the current detection object belongs at the current detection time point;
[0110] Determine the actual state value of other associated detection objects of the current detection object in each target association group at the current detection time point;
[0111] The data detection result of the current detection object is determined according to each of the state estimation ranges and the state actual value.
[0112] Optionally, the state estimated value is an estimated ratio value of the active power to the maximum nominal power of each of the detection objects included in each of the associated groups at the current detection time point;
[0113] The actual state value is the actual ratio value of the active power to the maximum nominal power of each detection object included in each associated group at the current detection time point;
[0114] The state estimation value is obtained by obtaining an actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at at least one historical detection time point before the current detection time point.
[0115] Optionally, the data detection result determination unit 820, when executing the method of determining the data detection result of the current detection object according to each of the state estimation ranges and the state actual value, performs, for each of the target association groups: determining whether the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group; when the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group, determining that the current target association group is a valid association group of the current detection object; determining whether the ratio of the number of valid association groups of the current detection object to the number of association groups of the current detection object is greater than a preset ratio; if it is greater than the preset ratio, the data detection result of the current detection object is valid; if it is not greater than the preset ratio, the data detection result of the current detection object is invalid.
[0116] Optionally, the data attack detection unit 830 is used to determine the target invalid number of detection objects whose data detection results are invalid; and determine the data attack level according to the corresponding relationship between the target invalid number and a preset invalid number and the data attack level.
[0117] The data attack detection device provided in the fifth embodiment of the present invention can execute the data attack detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0118] Embodiment 6
[0119] Fig. 9A schematic diagram of the structure of an electronic device 10 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.
[0120] like Fig. 9 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0121] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0122] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 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, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a data attack detection method.
[0123] In some embodiments, the data attack detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data attack detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data attack detection method in any other appropriate manner (e.g., by means of firmware).
[0124] 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), load 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.
[0125] 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.
[0126] 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.
[0127] 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).
[0128] 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.
[0129] 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.
[0130] 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.
[0131] 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 data attack detection method, characterized in that: The data attack detection method is performed by a data attack detection device, which is communicatively connected to at least one detection object. The method includes: Acquiring power data of each of the detection objects; Determine a data detection result of each of the detection objects according to the power data; Performing data attack detection according to the data detection result of each detection object; Determining the data detection result of each detection object according to the power data includes: At each detection time point, for each detection object, execute: Determine a state estimate value of a current detection object and each associated detection object in at least one target association group to which the current detection object belongs at a current detection time point; wherein each of the detection objects corresponds to a functional category, each of the association groups includes at least two detection objects that are mutually associated and have the same functional category, and each of the detection objects belongs to at least one association group; Determine a state estimation range of each target association group at the current detection time point according to the current detection object and the state estimation value of each associated detection object in at least one target association group to which the current detection object belongs at the current detection time point; Determine the actual state value of other associated detection objects of the current detection object in each target association group at the current detection time point; Determine the data detection result of the current detection object according to each of the state estimation ranges and the state actual value; The state estimated value is an estimated ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at the current detection time point; the state estimated value is obtained by the actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at at least one historical detection time point before the current detection time point; The actual state value is the actual ratio value of the active power to the maximum nominal power of each detection object included in each associated group at the current detection time point; The determining the data detection result of the current detection object according to each of the state estimation ranges and the state actual value includes: For each target association group, execute: Determine whether the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group; When the actual state value of the current detection object and the actual state value of each associated detection object are both within the state estimation range of the current target association group, determining the current target association group as a valid association group of the current detection object; Determine whether the ratio of the number of valid association groups of the current detection object to the number of association groups of the current detection object is greater than a preset ratio; If it is greater than the preset ratio, the data detection result of the current detection object is valid; If it is not greater than the preset ratio, the data detection result of the current detection object is invalid.
2. The method according to claim 1, characterized in that The power data includes node voltage, node current, node power and phase angle; Correspondingly, determining the data detection result of each detection object according to the power data includes: For each of the detection objects, execute: Determine the active power and reactive power of the current detection object by using the node power and phase angle of the current detection object; Determine a target detection object that has a connection relationship with the current detection object; The voltage difference standard value between the current detection object and the target detection object is determined by the following formula, which includes: ΔU is the voltage difference standard value, α is the error coefficient, Pj is the active power of the current detection object, Rij is the resistance value between the current detection object and the target detection object, Qj is the reactive power of the current detection object, Xij is the electrical impedance between the current detection object and the target detection object, and Uj is the node voltage of the current detection object; When the node voltage difference between the current detection object and the target detection object is not greater than the voltage difference standard value, the data detection result of the current detection object is valid; When the node voltage difference between the current detection object and the target detection object is greater than the voltage difference standard value, the data detection result of the current detection object is invalid; and / or, The power data includes node voltage, node current, node power and phase angle; Correspondingly, determining the data detection result of each detection object according to the power data includes: For each of the detection objects, execute: Determine whether the product of the node voltage and the node current of the current detection object is equal to the node power of the current detection object; When the product of the node voltage and the node current of the current detection object is equal to the node voltage of the current detection object, the data detection result of the current detection object is valid; When the product of the node voltage and the node current of the current detection object is not equal to the node voltage of the current detection object, the data detection result of the current detection object is invalid.
3. The method according to claim 2, characterized in that Determining the data detection result of each detection object according to the power data includes: At each preset detection time point, for each detection object, execute: Determine the active power prediction range of the current detection time point according to the active power of the current detection object at at least one historical detection time point before the current detection time point; When the active power of the current detection object at the current time point is within the active power prediction range, the data detection result of the current detection object is valid; When the active power of the current detection object at the current detection time point is outside the active power prediction range, the data detection result of the current detection object is invalid.
4. The method according to claim 1, characterized in that: The performing data attack detection according to the data detection result of each detection object includes: Determine the target invalid number of test objects whose data test results are invalid; The data attack level is determined according to the corresponding relationship between the target invalid number, the preset invalid number and the data attack level.
5. A data attack detection device, characterized in that: The data attack detection device is communicatively connected to at least one detection object, and the device includes: A power data acquisition unit, used to acquire power data of each of the detection objects; a data detection result determination unit, configured to determine a data detection result of each of the detection objects according to the power data; A data attack detection unit, configured to perform data attack detection according to the data detection result of each detection object; The data detection result determination unit is used to perform, at each detection time point, for each detection object: Determine a state estimate value of a current detection object and each associated detection object in at least one target association group to which the current detection object belongs at a current detection time point; wherein each of the detection objects corresponds to a functional category, each of the association groups includes at least two detection objects that are mutually associated and have the same functional category, and each of the detection objects belongs to at least one association group; Determine a state estimation range of each target association group at the current detection time point according to the current detection object and the state estimation value of each associated detection object in at least one target association group to which the current detection object belongs at the current detection time point; Determine the actual state value of other associated detection objects of the current detection object in each target association group at the current detection time point; Determine the data detection result of the current detection object according to each of the state estimation ranges and the state actual value; The state estimated value is an estimated ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at the current detection time point; The actual state value is the actual ratio value of the active power to the maximum nominal power of each detection object included in each associated group at the current detection time point; The state estimation value is obtained by calculating the actual ratio value of the active power to the maximum nominal power of each detection object included in each of the associated groups at at least one historical detection time point before the current detection time point; The data detection result determination unit, when executing the determination of the data detection result of the current detection object according to each of the state estimation ranges and the state actual value, executes, for each of the target association groups: determining whether the state actual value of the current detection object and the state actual value of each associated detection object are both within the state estimation range of the current target association group; when the state actual value of the current detection object and the state actual value of each associated detection object are both within the state estimation range of the current target association group, determining that the current target association group is a valid association group of the current detection object; determining whether the ratio of the number of valid association groups of the current detection object to the number of association groups of the current detection object is greater than a preset ratio; if it is greater than the preset ratio, the data detection result of the current detection object is valid; if it is not greater than the preset ratio, the data detection result of the current detection object is invalid.
6. 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 data attack detection method according to any one of claims 1 to 4.
7. 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 data attack detection method according to any one of claims 1 to 4 when executed.
