Power equipment protocol vulnerability detection method based on fuzzy test
Through the fuzzy testing method, a simulated power equipment transmission model and a fuzzy test case are constructed, which solves the problems of low vulnerability recognition rate and high missed rate in vulnerability detection in traditional power equipment protocols, and improves the safety and stability of the power system , ensuring the continuity of power supply.
Patent Information
- Application Number
- CN202411148144.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-21
AI Technical Summary
Traditional power equipment protocol vulnerability detection has problems with low new vulnerability recognition rate and high vulnerability report rate, making it difficult to effectively identify and detect potential security threats, affecting the safe and stable operation of the power system.
Using a method based on fuzzy testing, by obtaining the log data of the power equipment transmission, building a simulated power equipment transmission model, performing historical abnormal state analysis and abnormal correction, generating fuzzy test cases, performing simulation transmission protocol fuzzy testing, and monitoring the abnormal response and Vulnerability detection to identify and fix potential vulnerabilities.
It significantly improves the security and stability of power equipment protocols, reduces security risks caused by vulnerabilities, enhances the power system's ability to resist network attacks, ensures the continuity and stability of power supply, and provides a reliable operating environment for the smart grid. .
Smart Images

Figure CN118972136A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power equipment protocol vulnerability detection methods, and in particular to a power equipment protocol vulnerability detection method based on fuzzy testing. Background Art
[0002] With the acceleration of modernization and intelligentization of power systems, the transmission protocols between power equipment have become increasingly complex. These protocols not only include traditional power transmission and control, but also involve smart grids, automated monitoring, data acquisition and other aspects. In order to improve the interoperability between devices, as the complexity of the protocol increases, potential security vulnerabilities and attack risks also increase, which directly threatens the safety and stable operation of the power system. In the past few decades, with the improvement of the automation and digitalization level of the power system, the design and implementation of transmission protocols have experienced a development process from simple serial communication to complex network communication. Early power equipment used serial communication for data transmission, mainly relying on the basic protocols of the physical layer and link layer. With the development of network technology, more and more power equipment began to adopt Ethernet-based transmission protocols, which made large-scale data transmission possible. However, traditional vulnerability detection has the problems of low new vulnerability recognition rate and high vulnerability missed reporting rate. Summary of the invention
[0003] Based on this, it is necessary to provide a power equipment protocol vulnerability detection method based on fuzzy testing to solve at least one of the above technical problems.
[0004] To achieve the above object, a method for detecting power equipment protocol vulnerabilities based on fuzzy testing is provided, the method comprising the following steps:
[0005] Step S1: Acquire power equipment transmission log data; extract the power equipment transmission protocol and the power equipment transmission path according to the power equipment transmission log file to obtain the power equipment transmission protocol and the power equipment transmission path data; construct a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model;
[0006] Step S2: Analyze the historical abnormal state according to the transmission log data of the power equipment to obtain the historical abnormal transmission data of the power equipment; perform equipment transmission abnormality correction according to the historical abnormal transmission data of the power equipment to obtain the abnormal transmission correction data of the power equipment; perform transmission protocol rate deviation abnormality analysis on the historical abnormal transmission data of the power equipment using the abnormal transmission correction data of the power equipment to obtain the abnormal transmission protocol rate deviation data of the history;
[0007] Step S3: Generate a fuzzy test case based on the historical transmission protocol abnormal data and the historical transmission abnormal data of the power equipment to obtain transmission fuzzy test case data; perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model based on the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data;
[0008] Step S4: Perform protocol abnormal response monitoring on the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data; perform protocol vulnerability detection based on the fuzzy test protocol abnormal response data to obtain protocol vulnerability detection data.
[0009] The present invention can construct a real simulation power equipment transmission model by acquiring power equipment transmission log data and extracting protocols and transmission paths. This model provides an accurate basis for subsequent tests, ensuring the validity and reliability of the test results. The process of historical abnormal state analysis and abnormal correction can not only identify and repair potential problems in historical data, but also effectively reduce abnormal risks in future transmissions, improve the stability and reliability of the system, and the generated fuzzy test cases can fully cover the boundary conditions of various protocols to ensure full security assessment in different scenarios. This comprehensive test can timely discover potential vulnerabilities and help the power system have stronger resistance to network attacks. Finally, through protocol abnormal response monitoring and vulnerability detection, a safer operating environment can be provided for power equipment, significantly improving the safety of the power system, ensuring the continuity and stability of power supply, and reducing the potential safety hazards caused by vulnerabilities, thereby laying a solid foundation for the reliable operation of the smart grid. Therefore, the present invention is an optimization processing of a traditional power equipment protocol vulnerability detection method based on fuzzy testing, which solves the problems of high difficulty in identifying new vulnerabilities and high rate of missed vulnerability reports in the traditional power equipment protocol vulnerability detection method based on fuzzy testing, and reduces the problems of high difficulty in identifying new vulnerabilities and high rate of missed vulnerability reports.
[0010] Preferably, step S1 comprises the following steps:
[0011] Step S11: Acquire power equipment transmission log data;
[0012] Step S12: performing data preprocessing according to the power equipment transmission log data to obtain standardized power equipment transmission log data;
[0013] Step S13: extracting the power equipment transmission protocol and the power equipment transmission path according to the standardized power equipment transmission log data, and obtaining the power equipment transmission protocol and the power equipment transmission path data;
[0014] Step S14: constructing a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model.
[0015] The present invention obtains the transmission log data of the power equipment and performs data preprocessing, which can effectively clean and normalize the original data, eliminate noise and inconsistency, and ensure the accuracy of subsequent analysis. This process lays a solid foundation for extracting the transmission protocol and transmission path of the power equipment, reduces the risk of misjudgment due to data quality issues, and the extracted power equipment transmission protocol and transmission path data can help system engineers fully understand the communication mode and data flow between devices, and provide an important basis for the subsequent construction of simulation models. The construction of the simulated power equipment transmission model enables the transmission process of the power equipment to be deeply analyzed and tested without affecting the actual operating environment. This simulation environment can be used to verify the security and stability of the protocol, discover potential vulnerabilities and anomalies in advance, and then optimize the system design and improve the security of the equipment.
[0016] Preferably, step S14 comprises the following steps:
[0017] Step S141: performing protocol normalization processing on the power equipment transmission protocol to obtain power equipment protocol normalization data;
[0018] Step S142: performing transmission bandwidth analysis according to the power equipment protocol normalized data to obtain power equipment transmission bandwidth data;
[0019] Step S143: Calculating the transmission rate of the power equipment according to the power equipment transmission bandwidth data and the power equipment transmission path data to obtain the power equipment transmission rate data;
[0020] Step S144: setting the initial data of the power equipment simulation according to the power equipment transmission rate data and the power equipment protocol normalization data to obtain the initial data of the power equipment simulation;
[0021] Step S145: constructing a simulated power equipment transmission model according to the power equipment simulation initial data, the power equipment protocol normalization data, and the power equipment transmission path data to obtain a simulated power equipment transmission model.
[0022] The present invention can eliminate the differences between different devices caused by protocol formats or data representation methods by normalizing the transmission protocol of power equipment, so that the data is more consistent during processing and analysis. This process enhances the comparability of data and provides a reliable basis for subsequent bandwidth analysis and rate calculation. Transmission bandwidth analysis can evaluate the performance of power equipment in actual operation, help identify potential bandwidth bottlenecks, and ensure the stability and efficiency of data transmission. On this basis, the transmission rate calculation combined with the transmission path data can accurately reflect the transmission capacity of power equipment under different working conditions and improve the operating efficiency of the system. By setting the initial simulation data of the power equipment, a scientific basis can be provided for the subsequent construction of the simulation model, so that the model is closer to the actual operation situation, thereby improving the accuracy and reliability of the simulation. Finally, the constructed simulation power equipment transmission model can not only be used for the security testing of the protocol, but also provide an important reference for the optimization and improvement of the power system, and promote the development and innovation of the smart grid. On the whole, this process improves the systematicness and scientificity of the analysis of the power equipment transmission protocol.
[0023] Preferably, step S2 comprises the following steps:
[0024] Step S21: Analyze the historical transmission abnormality state according to the power equipment transmission log data to obtain the historical transmission abnormality data of the power equipment;
[0025] Step S22: Analyze the abnormal operation status of the power equipment hardware according to the historical transmission abnormal data of the power equipment to obtain the abnormal operation data of the power equipment hardware;
[0026] Step S23: performing power equipment transmission abnormality correction according to the power equipment hardware abnormal operation data to obtain power equipment transmission abnormality correction data;
[0027] Step S24: performing transmission protocol rate deviation anomaly analysis on the historical transmission anomaly data of the power equipment according to the power equipment transmission anomaly correction data to obtain the historical transmission protocol rate deviation anomaly data.
[0028] The present invention can systematically identify and record abnormal situations that occurred in the past operation of the equipment by analyzing the historical transmission abnormal state of the transmission log data of the power equipment. This process not only improves the utilization efficiency of historical data, but also provides an important basis for subsequent fault diagnosis and prevention. The hardware abnormal operation state analysis based on the historical transmission abnormal data can deeply understand the hardware health status of the equipment and identify the hardware failure that causes the transmission abnormality. This analysis can help maintenance personnel to discover and solve potential problems in a timely manner, avoid system downtime or data loss caused by hardware failure, and improve the reliability of the power equipment. By correcting the transmission abnormality of the power equipment, the data deviation caused by equipment failure or transmission abnormality can be effectively eliminated, thereby ensuring the accuracy and consistency of the data. The corrected data is used to perform transmission protocol rate deviation abnormality analysis on the historical transmission abnormal data, which can reveal the performance changes of the equipment under different operating conditions. This series of analysis and correction processes not only improves the operating safety and stability of the power equipment, but also provides a scientific basis for the efficient operation of the smart grid, and promotes the intelligent and modern development of the power system.
[0029] Preferably, step S23 includes the following steps:
[0030] Step S231: extracting heat load fluctuations under the operation state of the power equipment according to the abnormal operation data of the power equipment hardware, and obtaining heat load fluctuation data of the power equipment;
[0031] Step S232: converting the heat load fluctuation spectrum diagram according to the heat load fluctuation data of the power equipment to obtain the heat load fluctuation spectrum diagram; calculating the heat load frequency fluctuation interval according to the heat load fluctuation spectrum diagram to obtain the heat load frequency fluctuation interval;
[0032] Step S233: simulating the electromagnetic enhancement effect of the equipment under the operation state according to the heat load frequency fluctuation range to obtain heat load electromagnetic enhancement effect data;
[0033] Step S234: Calculate the transmission attenuation gradient of the communication equipment according to the electromagnetic enhancement effect data of the heat load and the frequency fluctuation range of the heat load to obtain the transmission attenuation gradient data;
[0034] Step S235: performing heat load frequency fluctuation correction according to the heat load frequency fluctuation interval data of the power equipment to obtain heat load frequency fluctuation correction data;
[0035] Step S236: performing power equipment transmission anomaly correction on the transmission attenuation gradient data according to the thermal load frequency fluctuation correction data and the thermal load electromagnetic enhancement effect data to obtain power equipment transmission anomaly correction data.
[0036] By extracting the thermal load fluctuation data under the operating state of the power equipment, the present invention can deeply analyze the thermal load changes borne by the equipment in actual operation and identify potential thermal load problems. This process provides basic data for the subsequent thermal load spectrum analysis, enhances the understanding of the operating state of the equipment, and the conversion of the thermal load fluctuation spectrum diagram and the calculation of the frequency fluctuation range make the change law of the thermal load more intuitive, which is convenient for engineers to quickly identify the frequency range of abnormal fluctuations. This analysis helps to evaluate the impact of thermal load on equipment performance, and then provide data support for the optimized operation of the equipment. The electromagnetic enhancement effect simulation based on the thermal load frequency fluctuation range can reveal the impact of thermal load changes on the transmission performance of power equipment and prevent potential communication attenuation. Through the calculation of the transmission attenuation gradient, the signal attenuation characteristics of the equipment under different thermal load conditions can be quantified, providing practical information for network performance optimization. The correction of thermal load frequency fluctuations and the transmission anomaly correction combined with the electromagnetic enhancement effect data can effectively eliminate the transmission errors caused by thermal load changes and ensure the accuracy and reliability of data transmission. Through the comprehensive analysis and correction of the thermal load and power transmission performance of the power equipment, this process significantly improves the operating safety of the power equipment and the reliability of data transmission, and lays a solid foundation for the efficient management and intelligent operation of the power system. This innovative approach not only improves the performance and stability of equipment, but also helps extend the service life of equipment, reduce maintenance costs, and promote the sustainable development of the power industry.
[0037] Preferably, the thermal load frequency fluctuation correction comprises the following steps:
[0038] Performing power equipment load temperature analysis based on power equipment thermal load frequency fluctuation interval data to obtain power equipment load temperature data;
[0039] When the power equipment load temperature data is greater than or equal to the preset equipment load temperature threshold, dynamic load frequency reduction is performed to obtain the power equipment dynamic load frequency reduction data; when the power equipment load temperature data is less than the preset power equipment load temperature threshold, the power equipment load temperature data is fed back to the terminal;
[0040] Thermal load frequency fluctuation correction is performed according to the dynamic load frequency reduction data of the power equipment to obtain thermal load frequency fluctuation correction data.
[0041] By analyzing the load temperature data of the power equipment, the present invention can monitor the temperature changes of the equipment in the operation process in real time and discover potential overheating problems in time. This process provides an important basis for the safe operation of the equipment and ensures that the equipment works effectively within a safe range. When the load temperature data reaches or exceeds the preset threshold, the implementation of dynamic load frequency reduction can effectively reduce the load of the equipment, thereby reducing heat generation. This dynamic adjustment mechanism can not only protect the equipment from overheating damage, but also extend the service life of the equipment and reduce the risk of failure caused by overheating. At the same time, this measure can also improve the overall operating efficiency of the equipment, optimize energy consumption, and reduce unnecessary costs. For the case where the load temperature data is lower than the threshold, timely feedback to the terminal can realize real-time data monitoring, provide accurate information for operators, and make corresponding adjustments. This information feedback mechanism helps to realize the intelligent management of equipment and improve the reliability and responsiveness of the power system. By correcting the thermal load frequency fluctuation of the dynamic load frequency reduction data, the frequency fluctuation caused by load changes can be effectively eliminated to ensure the stable operation of the system. Overall, the process significantly improves the safety and efficiency of power equipment through the combination of temperature monitoring and dynamic adjustment, and provides strong support for the intelligent management and sustainable development of the power system.
[0042] Preferably, step S3 comprises the following steps:
[0043] Step S31: extracting the protocol abnormal structure according to the historical transmission protocol rate deviation abnormal data to obtain the historical protocol abnormal structure data;
[0044] Step S32: setting a fuzzy test case generation criterion according to the historical protocol abnormal structure data and the historical transmission abnormal data of the power equipment to obtain a fuzzy test case generation criterion;
[0045] Step S33: generating fuzzy test cases according to the historical protocol abnormal structure data and the power equipment transmission protocol and the fuzzy test case generation criteria to obtain transmission fuzzy test case data;
[0046] Step S34: Perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model according to the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data.
[0047] The present invention can systematically identify and analyze the abnormal patterns that occurred in the past by extracting the protocol abnormal structure of the historical transmission protocol rate deviation abnormal data. This structured data extraction provides a valuable information basis for subsequent fault diagnosis and protocol optimization, which is helpful to improve the operational safety and reliability of power equipment. The setting of fuzzy test case generation criteria in combination with historical protocol abnormal structure data and historical transmission abnormal data of power equipment can ensure that the generated test cases are more in line with actual application scenarios and potential risks. Such criterion setting improves the pertinence of fuzzy testing, so that the test cases can effectively cover various boundary conditions and abnormal states in the protocol, and enhance the comprehensiveness of detection. By testing the simulated power equipment transmission model with the generated transmission fuzzy test case data, the safety and stability of the power transmission protocol can be effectively evaluated without affecting the actual equipment operation. This simulation test process can help engineers discover potential protocol loopholes and anomalies in a timely manner, provide necessary improvement suggestions, and thus improve the overall risk resistance of the power system. The invention process significantly improves the safety detection and optimization capabilities of the power equipment transmission protocol through systematic abnormal data analysis and scientific test case generation, and promotes the safe management and efficient operation of the smart grid.
[0048] Preferably, step S33 includes the following steps:
[0049] Step S331: extracting protocol anomaly fields according to historical protocol anomaly structure data to obtain protocol anomaly field data;
[0050] Step S332: Perform protocol anomaly timestamp analysis according to protocol anomaly field data to obtain protocol anomaly timestamp data;
[0051] Step S333: Calculate the protocol anomaly rate according to the protocol anomaly timestamp data to obtain protocol anomaly rate data;
[0052] Step S334: performing protocol potential anomaly estimation according to the protocol anomaly occurrence rate data and the protocol anomaly field data to obtain protocol potential anomaly estimation data;
[0053] Step S335: Generate fuzzy test cases based on the protocol potential anomaly prediction data and the power equipment transmission protocol according to the fuzzy test case generation criteria to obtain transmission fuzzy test case data.
[0054] The present invention can systematically identify the specific factors that cause the anomaly by extracting the protocol anomaly field according to the historical protocol anomaly structure data. The extraction of this information provides an in-depth perspective for subsequent anomaly analysis and troubleshooting, which helps to enhance the understanding of the equipment operation status. The protocol anomaly timestamp analysis can effectively track the time pattern of the anomaly occurrence, helping engineers to identify when and under what circumstances the anomaly occurred. This analysis provides a basis for formulating targeted maintenance strategies and optimization measures, which helps to reduce the risk of future failures. The calculation of the protocol anomaly incidence rate provides quantitative data for evaluating the reliability of the system, so that the frequency of anomalies can be clearly presented. By combining the protocol anomaly field and the incidence rate data for potential anomaly prediction, the risk points that cause system failures can be identified in advance, providing important guidance for the maintenance and upgrade of power equipment. The fuzzy test cases generated by the protocol potential anomaly prediction data will greatly improve the pertinence and effectiveness of the test. These cases can cover the potential risks in the protocol, thereby comprehensively evaluating the security and stability of the protocol. The process significantly enhances the security detection capability of the power equipment transmission protocol through systematic abnormal data analysis and scientific test case generation, and provides strong support for the reliable operation of the smart grid.
[0055] Preferably, step S4 comprises the following steps:
[0056] Step S41: using a preset fuzzy test anomaly detection model to perform protocol abnormal response monitoring on the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data;
[0057] Step S42: marking a protocol crash event according to the abnormal response data of the fuzzy test protocol to obtain a protocol abnormal crash event;
[0058] Step S43: extracting crash event stack information according to the protocol abnormal crash event to obtain protocol abnormal crash event stack data;
[0059] Step S44: Perform protocol vulnerability detection according to the protocol abnormal crash event stack data to obtain protocol vulnerability detection data.
[0060] The present invention can timely capture the abnormal response of the protocol in actual operation by using a preset fuzzy test anomaly detection model to monitor the protocol abnormal response of the simulation transmission protocol fuzzy test data. This monitoring process lays the foundation for subsequent fault analysis and vulnerability detection, ensures the safety and stability of system operation, and effectively identifies the potential crash risk in the system by marking the crash event of the fuzzy test protocol abnormal response data. This marking process not only facilitates subsequent analysis, but also provides an important reference basis for engineers to quickly take corresponding measures to prevent the system from causing heavy losses due to crashes. By extracting stack information from protocol abnormal crash events, the causes and effects of the crash can be deeply analyzed, helping developers to locate the problem and propose targeted repair solutions. This process provides strong support for improving the security and stability of the protocol. The protocol vulnerability detection based on the protocol abnormal crash event stack data can systematically identify potential security vulnerabilities and weaknesses and ensure the reliability of the protocol under various conditions. Overall, the process not only improves the security and reliability of the power equipment transmission protocol through system abnormal monitoring, crash analysis and vulnerability detection, but also provides a guarantee for the safe operation of the smart grid, and promotes the sustainable development and intelligent process of the power industry.
[0061] Preferably, step S44 includes the following steps:
[0062] Step S441: performing stack data analysis according to the protocol abnormal crash stack data to obtain protocol abnormal crash stack analysis data;
[0063] Step S442: performing protocol stack abnormal behavior analysis according to the protocol abnormal crash stack parsing data to obtain protocol stack crash behavior data;
[0064] Step S443: performing stack crash cycle analysis according to the protocol stack crash behavior data to obtain protocol stack crash cycle data;
[0065] Step S444: performing protocol vulnerability feature analysis according to the protocol stack crash behavior data and the protocol stack crash cycle data to obtain protocol vulnerability feature data;
[0066] Step S445: Perform protocol vulnerability detection on the fuzzy test protocol abnormal response data according to the protocol vulnerability feature data to obtain protocol vulnerability detection data.
[0067] The present invention can extract detailed information when the crash occurs and form protocol abnormal crash stack parsing data by parsing the protocol abnormal crash stack data. This parsing process provides basic data for subsequent abnormal behavior analysis, which helps to deeply understand the specific cause of the crash. By performing protocol stack abnormal behavior analysis, the abnormal operation mode of the system during the crash can be clearly identified, and protocol stack crash behavior data can be generated. This analysis helps developers to quickly locate problems and ensure that these defects can be effectively repaired in future versions. Through the analysis of the stack crash cycle, the regularity of the occurrence of crash events can be revealed, providing data support for the formulation of targeted preventive measures. Understanding the periodic characteristics of the crash helps operation and maintenance personnel to monitor and intervene in advance, reduce the incidence of system failures, and combine the protocol stack crash behavior data and crash cycle data to perform protocol vulnerability feature analysis, which can systematically identify potential security vulnerabilities. This process provides an important basis for improving protocol design and ensures the security and stability of the protocol under various working conditions.
[0068] The beneficial effects of the present invention are as follows: by acquiring the transmission log data of the power equipment and extracting the protocol and transmission path, the present invention can construct a real simulation power equipment transmission model. This model provides an accurate basis for subsequent tests, ensuring the validity and reliability of the test results. The process of historical abnormal state analysis and abnormal correction can not only identify and repair potential problems in historical data, but also effectively reduce the abnormal risks in future transmissions, improve the stability and reliability of the system, and the generated fuzzy test cases can fully cover the boundary conditions of various protocols, ensuring sufficient security assessments in different scenarios. This comprehensive test can timely discover potential vulnerabilities and help the power system have stronger resistance to network attacks. Finally, through protocol abnormal response monitoring and vulnerability detection, a safer operating environment can be provided for power equipment, significantly improving the safety of the power system, ensuring the continuity and stability of power supply, and reducing the potential safety hazards caused by vulnerabilities, thereby laying a solid foundation for the reliable operation of the smart grid. Therefore, the present invention is an optimization processing of a traditional power equipment protocol vulnerability detection method based on fuzzy testing, which solves the problems of high difficulty in identifying new vulnerabilities and high rate of missed vulnerability reports in the traditional power equipment protocol vulnerability detection method based on fuzzy testing, and reduces the problems of high difficulty in identifying new vulnerabilities and high rate of missed vulnerability reports. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A schematic diagram of the steps of a method for detecting power equipment protocol vulnerabilities based on fuzz testing;
[0070] Figure 2 for Figure 1 Detailed implementation steps of step S2 in the flowchart;
[0071] Figure 3 for Figure 1 Detailed implementation steps of step S3 in FIG.
[0072] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0073] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0074] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0075] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0076] To achieve this, please refer to Figures 1 to 3 , a method for detecting power equipment protocol vulnerabilities based on fuzzy testing, the method comprising the following steps:
[0077] Step S1: Acquire power equipment transmission log data; extract the power equipment transmission protocol and the power equipment transmission path according to the power equipment transmission log file to obtain the power equipment transmission protocol and the power equipment transmission path data; construct a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model;
[0078] Step S2: Analyze the historical abnormal state according to the transmission log data of the power equipment to obtain the historical abnormal transmission data of the power equipment; perform equipment transmission abnormality correction according to the historical abnormal transmission data of the power equipment to obtain the abnormal transmission correction data of the power equipment; perform transmission protocol rate deviation abnormality analysis on the historical abnormal transmission data of the power equipment using the abnormal transmission correction data of the power equipment to obtain the abnormal transmission protocol rate deviation data of the history;
[0079] Step S3: Generate a fuzzy test case based on the historical transmission protocol abnormal data and the historical transmission abnormal data of the power equipment to obtain transmission fuzzy test case data; perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model based on the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data;
[0080] Step S4: Perform protocol abnormal response monitoring on the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data; perform protocol vulnerability detection based on the fuzzy test protocol abnormal response data to obtain protocol vulnerability detection data.
[0081] In the embodiment of the present invention, reference Figure 1 The above is a schematic diagram of the steps of a method for detecting a power device protocol vulnerability based on fuzzy testing of the present invention. In this example, the method for detecting a power device protocol vulnerability based on fuzzy testing includes the following steps:
[0082] Step S1: Acquire power equipment transmission log data; extract the power equipment transmission protocol and the power equipment transmission path according to the power equipment transmission log file to obtain the power equipment transmission protocol and the power equipment transmission path data; construct a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model;
[0083] In the embodiment of the present invention, a special log collection tool is first used to extract transmission log data from the power equipment. These log data are usually stored in CSV or JSON format, and contain information such as communication records between devices, timestamps, data packet sizes, and protocol types. The log files are analyzed using a data parsing algorithm to extract the power equipment transmission protocol and transmission path (such as the link from the sensor to the controller). Based on the extracted information, a simulated power equipment transmission model is constructed to simulate the communication process between devices to ensure that the model accurately reflects the working conditions of the actual equipment.
[0084] Step S2: Analyze the historical abnormal state according to the transmission log data of the power equipment to obtain the historical abnormal transmission data of the power equipment; perform equipment transmission abnormality correction according to the historical abnormal transmission data of the power equipment to obtain the abnormal transmission correction data of the power equipment; perform transmission protocol rate deviation abnormality analysis on the historical abnormal transmission data of the power equipment using the abnormal transmission correction data of the power equipment to obtain the abnormal transmission protocol rate deviation data of the history;
[0085] In an embodiment of the present invention, a historical data analysis tool is first used to perform a retrospective analysis on the transmission log data of the power equipment to identify historical abnormal states. The analysis uses statistical methods (such as mean and standard deviation) to detect indicators such as transmission delay, packet loss rate and error rate. The obtained historical transmission abnormality data of the power equipment will be used for subsequent abnormality correction. Based on these abnormal data, a machine learning algorithm (for example, a correction model based on a support vector machine) is used to perform transmission abnormality correction, and correction data is calculated to eliminate deviations in historical data. Finally, the transmission abnormality correction data of the power equipment is used to analyze the historical transmission protocol rate deviation and generate corresponding deviation data.
[0086] Step S3: Generate a fuzzy test case based on the historical transmission protocol abnormal data and the historical transmission abnormal data of the power equipment to obtain transmission fuzzy test case data; perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model based on the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data;
[0087] In an embodiment of the present invention, a fuzzy test case is generated using a fuzzy testing tool (such as AFL or Burp Suite) based on historical transmission protocol anomaly data and historical transmission anomaly data of power equipment. In a specific implementation, the input range of the fuzzy test is first set, including valid values and invalid values of various protocol fields, data type boundaries, etc. When generating test cases, a genetic algorithm-based method is used to automatically mutate the input data to generate a variety of test scenarios. The generated transmission fuzzy test case data will be used for testing in a simulated power equipment transmission model to ensure that different protocol anomalies can be covered, thereby identifying potential vulnerabilities.
[0088] Step S4: Perform protocol abnormal response monitoring on the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data; perform protocol vulnerability detection based on the fuzzy test protocol abnormal response data to obtain protocol vulnerability detection data.
[0089] In an embodiment of the present invention, a protocol abnormal response monitoring tool (such as Wireshark or a custom monitoring system) is first used to monitor the simulated transmission protocol fuzzy test data in real time. The monitoring system captures all protocol response data generated during the test and records the abnormal response situation. By setting a threshold (such as timeout, error code, etc.), the abnormal response data is filtered out, and protocol vulnerability detection is performed based on these data. A vulnerability scanning tool (such as Nessus or a custom scanning module) is used to analyze the cause of the abnormal response, identify and record the security vulnerabilities in the protocol. This process not only helps to discover potential security risks, but also provides a basis for subsequent protocol optimization and security reinforcement.
[0090] Preferably, step S1 comprises the following steps:
[0091] Step S11: Acquire power equipment transmission log data;
[0092] Step S12: performing data preprocessing according to the power equipment transmission log data to obtain standardized power equipment transmission log data;
[0093] Step S13: extracting the power equipment transmission protocol and the power equipment transmission path according to the standardized power equipment transmission log data, and obtaining the power equipment transmission protocol and the power equipment transmission path data;
[0094] Step S14: constructing a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model.
[0095] In an embodiment of the present invention, a network monitoring tool (such as Wireshark) is used to capture real-time data packets transmitted over the network, or log files stored locally in the device are captured regularly, and the log formats of different devices and manufacturers are identified and parsed to ensure that the data can be effectively used by subsequent processing steps. For example, by configuring the network monitoring device, the data packets transmitted by the generator controller through the Modbus protocol are captured, or the status logs recorded periodically are extracted from the local system of the transformer. Invalid or duplicate data are removed, and abnormal values or error records in the data are processed to ensure that the data quality meets the analysis requirements. Log data in different formats are converted into a unified data structure or standard format, such as CSV or JSON format, for subsequent processing and analysis. Timestamps are processed and uniformly formatted to facilitate subsequent analysis and modeling. For example, for the Modbus data packets obtained from the generator controller, they are parsed and converted into a time series format for subsequent protocol extraction and path analysis. Through data packet analysis or content recognition technology, the specific communication protocol type is extracted from the log data, and the communication path or network topology between the devices is inferred based on the source address and destination address of the data packet, and the communication relationship between the key devices is identified. For example, identify communication packets using the Modbus protocol from the local log of the transformer and infer the communication paths between devices, such as the communication path between the transformer and the monitoring system. : Based on the actual data and analysis results, select appropriate simulation tools or programming languages (such as MATLAB, Python, or professional simulation software) to establish a mathematical or computational model for communication between devices. Adjust the parameters and inputs of the model according to the actual data to ensure the authenticity and accuracy of the model and verify the consistency of the simulation results with the actual situation. Analyze the performance and stability of the simulation model and optimize the model to better reflect the actual transmission behavior and system response between devices. For example, use the Python programming language and modules (such as SimPy) to establish a simulation model to simulate the communication behavior between the generator controller and the main monitoring system to evaluate the stability and responsiveness of the system under different conditions.
[0096] Preferably, step S14 comprises the following steps:
[0097] Step S141: performing protocol normalization processing on the power equipment transmission protocol to obtain power equipment protocol normalization data;
[0098] Step S142: performing transmission bandwidth analysis according to the power equipment protocol normalized data to obtain power equipment transmission bandwidth data;
[0099] Step S143: Calculating the transmission rate of the power equipment according to the power equipment transmission bandwidth data and the power equipment transmission path data to obtain the power equipment transmission rate data;
[0100] Step S144: setting the initial data of the power equipment simulation according to the power equipment transmission rate data and the power equipment protocol normalization data to obtain the initial data of the power equipment simulation;
[0101] Step S145: constructing a simulated power equipment transmission model according to the power equipment simulation initial data, the power equipment protocol normalization data, and the power equipment transmission path data to obtain a simulated power equipment transmission model.
[0102] In the embodiment of the present invention, a protocol analysis tool is used to identify and parse the transmission protocols used by different devices, and the data formats of various protocols are converted into a unified standard format, such as XML or JSON, for subsequent processing and analysis. Key fields (such as data frames, addresses, command codes, etc.) are extracted from the protocol data and mapped to a unified data structure for further data processing and simulation modeling. For example, the device address, function code and data content are extracted from the Modbus TCP data packet of the generator controller, and mapped to a unified JSON format, which is convenient for subsequent transmission bandwidth analysis and simulation settings, and the network traffic analysis tool is used to count the data traffic and communication frequency between different devices. Based on historical data and protocol characteristics, the bandwidth required for transmission between devices is predicted, and factors such as data packet size, transmission frequency and network delay are considered. Optimize network configuration and bandwidth allocation to meet the real-time and stability requirements of communication between devices. For example, by analyzing the communication frequency and data packet size between the transformer and the monitoring system, the bandwidth required per second is predicted, and the network equipment is adjusted to ensure the efficiency and stability of transmission. Analyze the transmission path and network topology between devices to determine the optimal path and bottleneck of data transmission. Calculate the actual transmission rate or transmission efficiency based on bandwidth data, network latency, and communication requirements between devices. Evaluate the latency and response time in data transmission to ensure that the real-time requirements of power equipment monitoring and control are met. For example, based on the transmission path data from the transformer to the switchboard and the predicted bandwidth requirements, calculate the actual data transmission rate, and analyze and adjust the network configuration to improve the transmission efficiency. Convert the actual transmission rate and protocol data into input parameters of the simulation model to ensure that the simulation results are close to the actual situation. Determine the initial state and environmental conditions of the simulation model, including the initial connection state and communication frequency between devices. Verify whether the initial settings of the simulation model can accurately reflect the transmission behavior and system response between devices, and adjust parameters to optimize the simulation results. For example, based on the transmission rate data of the Modbus protocol and the communication path between devices, set the initial communication conditions between the generator controller and the monitoring system in the simulation model to evaluate the system performance under different workloads. Select an appropriate simulation tool (such as MATLAB Simulink, etc.) and establish a simulation model based on the communication protocol and transmission path between devices. Based on real-time data and simulation models, simulate the communication process and system response between devices, and analyze the performance and stability under different conditions. Analyze simulation results and optimize communication strategies and network configurations between devices to improve system efficiency and responsiveness. For example, build an event-driven simulation model based on actual Modbus data to simulate the communication process between the generator controller and the monitoring system, and evaluate system performance under different transmission rates and network loads.
[0103] Preferably, step S2 comprises the following steps:
[0104] Step S21: Analyze the historical transmission abnormality state according to the power equipment transmission log data to obtain the historical transmission abnormality data of the power equipment;
[0105] Step S22: Analyze the abnormal operation status of the power equipment hardware according to the historical transmission abnormal data of the power equipment to obtain the abnormal operation data of the power equipment hardware;
[0106] Step S23: performing power equipment transmission abnormality correction according to the power equipment hardware abnormal operation data to obtain power equipment transmission abnormality correction data;
[0107] Step S24: performing transmission protocol rate deviation anomaly analysis on the historical transmission anomaly data of the power equipment according to the power equipment transmission anomaly correction data to obtain the historical transmission protocol rate deviation anomaly data.
[0108] As an example of the present invention, refer to Figure 2 As shown, in this example, step S2 includes:
[0109] Step S21: Analyze the historical transmission abnormality state according to the power equipment transmission log data to obtain the historical transmission abnormality data of the power equipment;
[0110] In an embodiment of the present invention, transmission log data of power equipment is collected and organized. These data include information such as the transmission rate, transmission delay, and packet loss rate of each device. By analyzing these log data, it is possible to identify abnormal conditions that occur during device transmission, such as a sudden drop in transmission rate or an abnormal increase in transmission delay. For power equipment, due to the importance of its data transmission, these abnormal conditions can cause data loss or transmission delays, thereby affecting the operating efficiency and stability of the equipment. For example, for a digital protection device in a substation, its daily communication log data is collected, including communication with other devices. By analyzing these log data, it is possible to detect an abnormal interruption in communication between devices on a certain day, which is caused by a network interruption or a hardware failure of the device.
[0111] Step S22: Analyze the abnormal operation status of the power equipment hardware according to the historical transmission abnormal data of the power equipment to obtain the abnormal operation data of the power equipment hardware;
[0112] In an embodiment of the present invention, the obtained historical transmission abnormal data is used to analyze the abnormal operation status of the hardware of the power equipment. This includes detecting the operation of the equipment hardware (such as sensors, controllers, etc.) under abnormal transmission status. By analyzing the abnormal hardware operation data, it is possible to identify hardware problems existing in the equipment, such as sensor failure, circuit board short circuit, etc. For example, for the control module of a power transformer, by analyzing its hardware operation data under abnormal transmission status, it can be found that the output frequency of a certain controller fluctuates abnormally. This fluctuation is caused by a circuit failure inside the controller, which in turn affects the stability of the transformer's power output. Further analysis can provide a detailed fault diagnosis report so that technicians can take precise repair and replacement measures.
[0113] Step S23: performing power equipment transmission abnormality correction according to the power equipment hardware abnormal operation data to obtain power equipment transmission abnormality correction data;
[0114] In an embodiment of the present invention, the transmission anomaly of the power equipment is corrected. This involves adjusting the transmission parameters of the equipment or resetting the communication protocol of the equipment to restore the normal data transmission function. The corrected data can ensure that the transmission process of the equipment is stable and reliable. For example, for a control system of a generator set, after discovering its transmission anomaly, the transmission rate and data packet size of its communication protocol can be adjusted according to the hardware abnormal operation data. Through this correction, the rate deviation in the transmission process can be reduced, ensuring the timeliness and accuracy of the data, thereby improving the operating efficiency and stability of the equipment.
[0115] Step S24: performing transmission protocol rate deviation anomaly analysis on the historical transmission anomaly data of the power equipment according to the power equipment transmission anomaly correction data to obtain the historical transmission protocol rate deviation anomaly data.
[0116] In an embodiment of the present invention, an abnormal analysis of the transmission protocol rate deviation is performed. This includes detecting the rate deviation in the historical transmission data, and analyzing its changing trends and abnormal fluctuations in different time periods. By analyzing these data, the specific causes of the abnormal rate deviation can be identified, such as network congestion, excessive equipment load, etc. For example, for the data transmission of a power grid monitoring system, by performing an abnormal rate deviation analysis on the corrected transmission data, it can be found that the device transmission rate drops significantly during high-load periods. This abnormal rate deviation is caused by increased data packet retransmission or network communication congestion. By adjusting the transmission priority of the device or increasing the network bandwidth.
[0117] Preferably, step S23 includes the following steps:
[0118] Step S231: extracting heat load fluctuations under the operation state of the power equipment according to the abnormal operation data of the power equipment hardware, and obtaining heat load fluctuation data of the power equipment;
[0119] Step S232: converting the heat load fluctuation spectrum diagram according to the heat load fluctuation data of the power equipment to obtain the heat load fluctuation spectrum diagram; calculating the heat load frequency fluctuation interval according to the heat load fluctuation spectrum diagram to obtain the heat load frequency fluctuation interval;
[0120] Step S233: simulating the electromagnetic enhancement effect of the equipment under the operation state according to the heat load frequency fluctuation range to obtain heat load electromagnetic enhancement effect data;
[0121] Step S234: Calculate the transmission attenuation gradient of the communication equipment according to the electromagnetic enhancement effect data of the heat load and the frequency fluctuation range of the heat load to obtain the transmission attenuation gradient data;
[0122] Step S235: performing heat load frequency fluctuation correction according to the heat load frequency fluctuation interval data of the power equipment to obtain heat load frequency fluctuation correction data;
[0123] Step S236: performing power equipment transmission anomaly correction on the transmission attenuation gradient data according to the thermal load frequency fluctuation correction data and the thermal load electromagnetic enhancement effect data to obtain power equipment transmission anomaly correction data.
[0124] In an embodiment of the present invention, the hardware abnormal operation data of the power equipment includes real-time collection of parameters such as equipment temperature, current, and voltage. For example, by installing temperature sensors and current sensors on the generator set, the operating status and various parameters of the equipment are monitored in real time. Based on these data, the thermal load fluctuation data of the power equipment can be extracted. These data reflect the thermal load changes of the equipment during operation, including load increase and decrease, temperature fluctuation, etc. The obtained thermal load fluctuation data is used to convert and analyze the thermal load fluctuation spectrum. This involves using digital signal processing technology, such as Fourier transform, to convert the thermal load fluctuation data in the time domain to the frequency domain to obtain a thermal load fluctuation spectrum. By analyzing this spectrum, the specific interval of the thermal load frequency fluctuation can be calculated, for example, the amplitude and duration of the frequency fluctuation within a specific frequency range are determined. Based on the data of the thermal load frequency fluctuation interval, the electromagnetic enhancement effect is simulated. This can be done by using electromagnetic field simulation software, such as ANSYS, to simulate the changes in the electromagnetic field strength of the power equipment under different frequency fluctuation conditions. The obtained electromagnetic enhancement effect data reflects the electromagnetic interference of the equipment under specific frequency fluctuations. The transmission attenuation gradient of the communication equipment is calculated using the thermal load electromagnetic enhancement effect data and the thermal load frequency fluctuation interval. Combined with the transmission line loss model and the electromagnetic field strength model, the attenuation of the communication signal during transmission under the influence of the frequency fluctuation of the power equipment is analyzed. For example, the transmission loss of the signal at a specific frequency is calculated to evaluate the communication quality and efficiency, and the thermal load frequency fluctuation is corrected according to the thermal load frequency fluctuation interval data of the power equipment. Adjust the working parameters of the equipment or add load balancing equipment to reduce the impact of frequency fluctuations. For example, by optimizing the load distribution of the power system, reducing the frequency and amplitude of load fluctuations, improving the stability and efficiency of the system, and correcting the transmission anomaly of the power equipment according to the thermal load frequency fluctuation correction data and the electromagnetic enhancement effect data. This can be done by adjusting the operating frequency of the communication equipment or adding electromagnetic shielding measures to reduce the signal loss in the equipment transmission. For example, design and install an effective electromagnetic shielding cover or add a signal enhancer to reduce the impact of electromagnetic interference on the transmission of communication equipment and ensure the stable transmission of communication signals.
[0125] Preferably, the thermal load frequency fluctuation correction comprises the following steps:
[0126] Performing power equipment load temperature analysis based on power equipment thermal load frequency fluctuation interval data to obtain power equipment load temperature data;
[0127] When the power equipment load temperature data is greater than or equal to the preset equipment load temperature threshold, dynamic load frequency reduction is performed to obtain the power equipment dynamic load frequency reduction data; when the power equipment load temperature data is less than the preset power equipment load temperature threshold, the power equipment load temperature data is fed back to the terminal;
[0128] Thermal load frequency fluctuation correction is performed according to the dynamic load frequency reduction data of the power equipment to obtain thermal load frequency fluctuation correction data.
[0129] In an embodiment of the present invention, the load temperature data of the power equipment is collected and recorded. These data can be monitored in real time by sensors, or uploaded to the data processing system for analysis after regular sampling. For example, temperature sensors are installed at key parts (such as motors, transformers, etc.), and temperature data is collected at regular intervals and transmitted to the central monitoring system. Compare with the preset equipment load temperature threshold. Assume that the preset threshold is 60 degrees Celsius. If the load temperature of a monitored device is greater than or equal to 60 degrees Celsius, the system will trigger dynamic load frequency reduction measures. Adjust the working state or output power of the equipment to reduce the load temperature. For example, the temperature of the equipment is reduced by adjusting the fan speed, reducing the output power or increasing the cooling water flow. If the load temperature data of the power equipment is lower than the preset threshold, the system will feed back these data to the terminal operator or the monitoring system for further analysis or recording. This feedback can be achieved by displaying it on the monitoring interface or sending an alarm, so that the operator can understand the equipment status in time and perform thermal load frequency fluctuation correction based on the data of the power equipment that has undergone dynamic load frequency reduction. It includes re-evaluating the thermal load characteristics of the equipment and adjusting the system's operating strategy to better cope with load changes. For example, the thermal load frequency fluctuation characteristics of the equipment can be improved by optimizing the equipment's operating temperature range or adjusting the cooling system settings.
[0130] Preferably, step S3 comprises the following steps:
[0131] Step S31: extracting the protocol abnormal structure according to the historical transmission protocol rate deviation abnormal data to obtain the historical protocol abnormal structure data;
[0132] Step S32: setting a fuzzy test case generation criterion according to the historical protocol abnormal structure data and the historical transmission abnormal data of the power equipment to obtain a fuzzy test case generation criterion;
[0133] Step S33: generating fuzzy test cases according to the historical protocol abnormal structure data and the power equipment transmission protocol and the fuzzy test case generation criteria to obtain transmission fuzzy test case data;
[0134] Step S34: Perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model according to the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data.
[0135] As an example of the present invention, refer to Figure 3 As shown, in this example, step S3 includes:
[0136] Step S31: extracting the protocol abnormal structure according to the historical transmission protocol rate deviation abnormal data to obtain the historical protocol abnormal structure data;
[0137] In the embodiment of the present invention, the anomaly detection algorithm based on the chi-square test is used to analyze the collected historical transmission protocol rate deviation data. First, the significance level α is set to 0.05, and the chi-square statistic of the expected value and the actual value of the protocol rate in each time window is calculated. If the chi-square statistic is greater than the critical value, it is determined that there is an abnormal deviation in the protocol rate in the time window, and the corresponding protocol data packet in the abnormal time window is extracted, and its structure is parsed, including the data unit identifier, information object address, data type, data value, etc. of the application layer ASDU. Finally, the structural information of these abnormal data packets, such as the abnormal combination of DOI and IOA, and the abnormal range of data type and data value, are stored in the database to form historical protocol abnormal structure data. For example, it is found that there are telemetry data packets with DOI of 100 and IOA of 1.2.3 in the historical data, and its value frequently exceeds the normal range, then the combination and the abnormal value range are recorded as abnormal structure data.
[0138] Step S32: setting a fuzzy test case generation criterion according to the historical protocol abnormal structure data and the historical transmission abnormal data of the power equipment to obtain a fuzzy test case generation criterion;
[0139] In the embodiment of the present invention, this step combines the historical protocol abnormal structure data and the historical transmission abnormal data of the power equipment to formulate the fuzzy test case generation criteria, based on the historical protocol abnormal structure data, the focused protocol fields, the abnormal DOI and IOA combinations found, and the abnormal data value range, and the abnormal scenarios simulated according to the historical transmission abnormal data of the power equipment, such as communication interruption, data loss, etc. Finally, the above information is integrated to formulate the fuzzy test case generation criteria.
[0140] Step S33: generating fuzzy test cases according to the historical protocol abnormal structure data and the power equipment transmission protocol and the fuzzy test case generation criteria to obtain transmission fuzzy test case data;
[0141] In an embodiment of the present invention, the Peach Fuzzer tool is used to automatically generate transmission fuzzy test case data according to the fuzzy test case generation criteria formulated in step S32. First, based on the IEC 61850 protocol specification used by power equipment, the structure of the protocol data packet is defined using Peach Pit, including the data type, length, value range, etc. of each field. According to the fuzzy test case generation criteria, the mutation strategy of Peach Fuzzer is configured. For example, for a telemetry data packet with a DOI of 100 and an IOA of 1.2.3, a numerical mutator is configured to generate a value that exceeds the normal range of ±20%; a protocol state mutator is configured to generate an abnormal data packet containing a TCP connection reset message. Finally, Peach Fuzzer will automatically generate a large amount of fuzzy test case data according to the configuration, such as a data packet containing an abnormal DOI and IOA combination, a data packet containing a data value that exceeds the normal range, and a data packet containing an abnormal TCP control message, and save these data as a file in a specific format, such as XML format.
[0142] Step S34: Perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model according to the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data.
[0143] In an embodiment of the present invention, this step uses the constructed OPNET-based simulated power equipment transmission model to simulate the fuzzy test case data generated in step S33. First, the simulated power equipment transmission model is configured to have the same network environment and protocol parameters as the actual power equipment, such as IP address, port number, IEC 61850 protocol version, etc. The fuzzy test case data generated in step S33 is used as input and injected into the simulated power equipment transmission model through the simulation interface of OPNET. During the test, OPNET will monitor the operating status of the simulated power equipment in real time, such as CPU occupancy, memory usage, communication delay and other indicators, and record all abnormal situations that occur, such as program crashes, data loss, communication interruptions, etc. Finally, these test results and data are saved to form simulated transmission protocol fuzzy test data for subsequent analysis and vulnerability repair.
[0144] Preferably, step S33 includes the following steps:
[0145] Step S331: extracting protocol anomaly fields according to historical protocol anomaly structure data to obtain protocol anomaly field data;
[0146] Step S332: Perform protocol anomaly timestamp analysis according to protocol anomaly field data to obtain protocol anomaly timestamp data;
[0147] Step S333: Calculate the protocol anomaly rate according to the protocol anomaly timestamp data to obtain protocol anomaly rate data;
[0148] Step S334: performing protocol potential anomaly estimation according to the protocol anomaly occurrence rate data and the protocol anomaly field data to obtain protocol potential anomaly estimation data;
[0149] Step S335: Generate fuzzy test cases based on the protocol potential anomaly prediction data and the power equipment transmission protocol according to the fuzzy test case generation criteria to obtain transmission fuzzy test case data.
[0150] In an embodiment of the present invention, known historical protocol abnormal structure data, such as network packet capture data, system log, etc., are used to extract protocol abnormal fields. First, the historical protocol abnormal structure data is parsed using a protocol parser (such as Wireshark, Scapy), and converted into a structured data format, such as JSON or XML, and the fields related to protocol abnormalities are identified and extracted according to the predefined protocol specification and abnormal feature library, such as field values exceeding the normal range, field type mismatch, field missing, etc. For example, for the Modbus TCP protocol, the abnormal fields include function code errors, register address out of bounds, illegal data length, etc. Finally, the extracted protocol abnormal field data is stored in a database or file for use in subsequent steps. For example, MongoDB database can be used to store protocol abnormal field data in JSON format, and indexes can be established to improve query efficiency. The extracted protocol abnormal field data extracts fields related to time, such as timestamps, dates, etc. For different data sources, the formats of the time field are different, and corresponding format conversion and unification are performed. For example, convert the date and time in different time zones to a unified UTC time, perform statistical analysis on the extracted timestamp data, such as calculating the frequency and periodicity of anomalies, and identify the time pattern of anomalies. For example, it is found that a certain protocol anomaly occurs more frequently in a specific time period every day, or shows an obvious periodic pattern. Finally, store the analyzed protocol anomaly timestamp data in a database or file, such as using the time series database InfluxDB to store timestamp data, and use its powerful query and analysis functions for subsequent analysis. Calculate the incidence rate of protocol anomalies. Divide the time axis into multiple time windows, such as hourly, daily, or weekly, and count the number of protocol anomalies in each time window. For example, use Python's Pandas library to group and count the timestamp data, and calculate the number of anomalies in each time window. Divide the number of anomalies by the total observation time to get the incidence rate of protocol anomalies. Store the calculated protocol anomaly incidence rate data in a database or file, such as using the relational database MySQL to store incidence data, and create an index to improve query efficiency. Estimate potential protocol anomalies. Use machine learning algorithms, such as time series prediction models ARIMA and LSTM, to predict the occurrence rate of protocol anomalies, and combine the protocol anomaly field data, such as the type and value of the anomaly field, to estimate the protocol anomalies that will occur in the future. For example, use Python's Scikit-learn library to train an ARIMA model to predict the occurrence rate of protocol anomalies in the next 24 hours, and combine historical anomaly field data to estimate the specific anomaly types and field values that will occur in the future.Finally, the estimated potential abnormal data of the protocol is stored in a database or file. For example, the NoSQL database Redis is used to store the estimated data, and an expiration time is set to ensure the timeliness of the data. The estimated potential abnormal data of the protocol is combined with the power equipment transmission protocol specification and the fuzz test case generation criteria to generate targeted fuzz test cases. For example, based on the estimated abnormal fields and values, fuzz testing tools (such as Peach Fuzzer and Sulley) are used to generate mutation test cases for these fields. For example, for the function code field of the Modbus TCP protocol, a function code value that exceeds the normal range is generated, or for the data length field, a data packet that exceeds the maximum length allowed by the protocol is generated. At the same time, combined with the power equipment transmission protocol specifications, such as IEC 61850, DNP3, etc., the generated test cases are constrained to ensure the completeness of the test cases.
[0151] Preferably, step S4 comprises the following steps:
[0152] Step S41: using a preset fuzzy test anomaly detection model to perform protocol abnormal response monitoring on the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data;
[0153] Step S42: marking a protocol crash event according to the abnormal response data of the fuzzy test protocol to obtain a protocol abnormal crash event;
[0154] Step S43: extracting crash event stack information according to the protocol abnormal crash event to obtain protocol abnormal crash event stack data;
[0155] Step S44: Perform protocol vulnerability detection according to the protocol abnormal crash event stack data to obtain protocol vulnerability detection data.
[0156] In an embodiment of the present invention, AFL is used to perform fuzz testing to generate a large number of test cases. By monitoring the response of the transmission protocol, all abnormal response patterns are identified, such as response times exceeding expectations, unexpected error codes, or abnormal response data packets. According to the characteristics of the abnormal response data, such as abnormal data packets triggered by the crash or specific abnormal response patterns, the protocol crash events are marked. For example, a specific response is detected that causes the server port to be closed or enter an infinite loop. Use debugging tools or log analysis software to extract the stack information of the captured protocol abnormal crash events. For example, the abnormal call stack of a specific protocol processing module is extracted from the log file on the server side to locate the problem. Analyze the stack information to identify common vulnerability patterns, such as buffer overflows or formatted string vulnerabilities. Use static code analysis tools or manually review the stack trace to confirm the existence of the vulnerability and generate a detailed vulnerability detection report, including the vulnerability type, the scope of impact, and the recommended repair measures.
[0157] Preferably, step S44 includes the following steps:
[0158] Step S441: performing stack data analysis according to the protocol abnormal crash stack data to obtain protocol abnormal crash stack analysis data;
[0159] Step S442: performing protocol stack abnormal behavior analysis according to the protocol abnormal crash stack parsing data to obtain protocol stack crash behavior data;
[0160] Step S443: performing stack crash cycle analysis according to the protocol stack crash behavior data to obtain protocol stack crash cycle data;
[0161] Step S444: performing protocol vulnerability feature analysis according to the protocol stack crash behavior data and the protocol stack crash cycle data to obtain protocol vulnerability feature data;
[0162] Step S445: Perform protocol vulnerability detection on the fuzzy test protocol abnormal response data according to the protocol vulnerability feature data to obtain protocol vulnerability detection data.
[0163] In an embodiment of the present invention, a debugger or stack tracing tool is used to analyze the captured exception stack information. For example, the function call sequence, memory address and parameter value in the stack are identified to determine the root cause of the crash. If the pointer is found to be null or points to an invalid memory area, this indicates that a memory access error has occurred. The stack parsing data is analyzed to identify abnormal behavior patterns, such as stack overflow caused by recursive function calls or buffer overflow caused by unchecked array access. For example, by checking the repeated function call paths or abnormal parameter values in the exception stack, potential logical errors in the program can be inferred. The captured protocol stack exception data is counted and analyzed to calculate the frequency of crash events and the time interval between occurrences. For example, if a specific abnormal crash occurs repeatedly under certain specific inputs, there is a vulnerability for the input. This can be periodically analyzed and recorded by automated testing tools or scripts. Different types of protocol vulnerabilities are identified and classified based on the abnormal behavior data and periodic analysis results. For example, based on the memory access pattern in the stack information, buffer overflow, format string vulnerability or integer overflow vulnerability can be distinguished. These feature data can be used to generate vulnerability reports or perform vulnerability verification tests. Based on the vulnerability feature data, a special vulnerability detection tool or script is designed and executed to verify the abnormal response data generated by the fuzz test. For example, verify whether a specific input triggers a previously identified vulnerability pattern to confirm the vulnerability in the protocol implementation. Finally, a vulnerability detection report is generated, including a detailed vulnerability description, reproduction steps, and repair suggestions.
[0164] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0165] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for detecting power equipment protocol vulnerabilities based on fuzz testing. It is characterized in that The following steps are involved: Step S1: Obtaining power equipment transmission log data; Extract the power equipment transmission protocol and the power equipment transmission path according to the power equipment transmission log file to obtain the power equipment transmission protocol and the power equipment transmission path data; Constructing a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model; Step S2: Analyze the historical abnormal state according to the power equipment transmission log data to obtain the historical abnormal transmission data of the power equipment; perform equipment transmission abnormality correction according to the historical abnormal transmission data of the power equipment to obtain the abnormal transmission correction data of the power equipment; Using the power equipment transmission anomaly correction data, the power equipment historical transmission anomaly data is analyzed for transmission protocol rate deviation anomaly, to obtain historical transmission protocol rate deviation anomaly data; Step S3: Generate a fuzzy test case based on the historical transmission protocol abnormal data and the historical transmission abnormal data of the power equipment to obtain transmission fuzzy test case data; perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model based on the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data; Step S4: monitoring the protocol abnormal response of the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data; Protocol vulnerability detection is performed based on the abnormal response data of the fuzz test protocol to obtain protocol vulnerability detection data.
2. According to the method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 1, It is characterized in that Step S1 includes the following steps: Step S11: Acquire power equipment transmission log data; Step S12: performing data preprocessing according to the power equipment transmission log data to obtain standardized power equipment transmission log data; Step S13: extracting the power equipment transmission protocol and the power equipment transmission path according to the standardized power equipment transmission log data, and obtaining the power equipment transmission protocol and the power equipment transmission path data; Step S14: constructing a simulated power equipment transmission model according to the power equipment transmission protocol and the power equipment transmission path data to obtain a simulated power equipment transmission model.
3. According to claim 2, the method for detecting power equipment protocol vulnerabilities based on fuzzy testing, It is characterized in that Step S14 includes the following steps: Step S141: performing protocol normalization processing on the power equipment transmission protocol to obtain power equipment protocol normalization data; Step S142: performing transmission bandwidth analysis according to the power equipment protocol normalized data to obtain power equipment transmission bandwidth data; Step S143: Calculating the transmission rate of the power equipment according to the power equipment transmission bandwidth data and the power equipment transmission path data to obtain the power equipment transmission rate data; Step S144: setting the initial data of the power equipment simulation according to the power equipment transmission rate data and the power equipment protocol normalization data to obtain the initial data of the power equipment simulation; Step S145: constructing a simulated power equipment transmission model according to the power equipment simulation initial data, the power equipment protocol normalization data, and the power equipment transmission path data to obtain a simulated power equipment transmission model.
4. The method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 1, It is characterized in that Step S2 includes the following steps: Step S21: Analyze the historical transmission abnormality state according to the power equipment transmission log data to obtain the historical transmission abnormality data of the power equipment; Step S22: Analyze the abnormal operation status of the power equipment hardware according to the historical transmission abnormal data of the power equipment to obtain the abnormal operation data of the power equipment hardware; Step S23: performing power equipment transmission abnormality correction according to the power equipment hardware abnormal operation data to obtain power equipment transmission abnormality correction data; Step S24: performing transmission protocol rate deviation anomaly analysis on the historical transmission anomaly data of the power equipment according to the power equipment transmission anomaly correction data to obtain the historical transmission protocol rate deviation anomaly data.
5. According to claim 4, the method for detecting power equipment protocol vulnerabilities based on fuzzy testing, It is characterized in that Step S23 includes the following steps: Step S231: extracting heat load fluctuations under the operation state of the power equipment according to the abnormal operation data of the power equipment hardware, and obtaining heat load fluctuation data of the power equipment; Step S232: converting the heat load fluctuation spectrum diagram according to the heat load fluctuation data of the power equipment to obtain the heat load fluctuation spectrum diagram; calculating the heat load frequency fluctuation interval according to the heat load fluctuation spectrum diagram to obtain the heat load frequency fluctuation interval; Step S233: simulating the electromagnetic enhancement effect of the equipment under the operation state according to the heat load frequency fluctuation range to obtain heat load electromagnetic enhancement effect data; Step S234: Calculate the transmission attenuation gradient of the communication equipment according to the electromagnetic enhancement effect data of the heat load and the frequency fluctuation range of the heat load to obtain the transmission attenuation gradient data; Step S235: performing heat load frequency fluctuation correction according to the heat load frequency fluctuation interval data of the power equipment to obtain heat load frequency fluctuation correction data; Step S236: performing power equipment transmission anomaly correction on the transmission attenuation gradient data according to the thermal load frequency fluctuation correction data and the thermal load electromagnetic enhancement effect data to obtain power equipment transmission anomaly correction data.
6. The method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 5, It is characterized in that The heat load frequency fluctuation correction includes the following steps: Performing power equipment load temperature analysis based on power equipment thermal load frequency fluctuation interval data to obtain power equipment load temperature data; When the power equipment load temperature data is greater than or equal to a preset equipment load temperature threshold, dynamic load frequency reduction is performed to obtain dynamic load frequency reduction data of the power equipment; When the power equipment load temperature data is less than a preset power equipment load temperature threshold, the power equipment load temperature data is fed back to the terminal; Thermal load frequency fluctuation correction is performed according to the dynamic load frequency reduction data of the power equipment to obtain thermal load frequency fluctuation correction data.
7. The method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 1, It is characterized in that Step S3 includes the following steps: Step S31: extracting the protocol abnormal structure according to the historical transmission protocol rate deviation abnormal data to obtain the historical protocol abnormal structure data; Step S32: setting a fuzzy test case generation criterion according to the historical protocol abnormal structure data and the historical transmission abnormal data of the power equipment to obtain a fuzzy test case generation criterion; Step S33: generating fuzzy test cases according to the historical protocol abnormal structure data and the power equipment transmission protocol and the fuzzy test case generation criteria to obtain transmission fuzzy test case data; Step S34: Perform a simulated transmission protocol fuzzy test on the simulated power equipment transmission model according to the transmission fuzzy test case data to obtain simulated transmission protocol fuzzy test data.
8. The method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 6, It is characterized in that Step S33 includes the following steps: Step S331: extracting protocol anomaly fields according to historical protocol anomaly structure data to obtain protocol anomaly field data; Step S332: Perform protocol anomaly timestamp analysis according to protocol anomaly field data to obtain protocol anomaly timestamp data; Step S333: Calculate the protocol anomaly rate according to the protocol anomaly timestamp data to obtain protocol anomaly rate data; Step S334: performing protocol potential anomaly estimation according to the protocol anomaly occurrence rate data and the protocol anomaly field data to obtain protocol potential anomaly estimation data; Step S335: Generate fuzzy test cases based on the protocol potential anomaly prediction data and the power equipment transmission protocol according to the fuzzy test case generation criteria to obtain transmission fuzzy test case data.
9. The method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 1, It is characterized in that Step S4 includes the following steps: Step S41: using a preset fuzzy test anomaly detection model to perform protocol abnormal response monitoring on the simulated transmission protocol fuzzy test data to obtain fuzzy test protocol abnormal response data; Step S42: marking a protocol crash event according to the abnormal response data of the fuzzy test protocol to obtain a protocol abnormal crash event; Step S43: extracting crash event stack information according to the protocol abnormal crash event to obtain protocol abnormal crash event stack data; Step S44: Perform protocol vulnerability detection according to the protocol abnormal crash event stack data to obtain protocol vulnerability detection data.
10. The method for detecting power equipment protocol vulnerabilities based on fuzzy testing according to claim 9, It is characterized in that Step S44 includes the following steps: Step S441: performing stack data analysis according to the protocol abnormal crash stack data to obtain protocol abnormal crash stack analysis data; Step S442: performing protocol stack abnormal behavior analysis according to the protocol abnormal crash stack parsing data to obtain protocol stack crash behavior data; Step S443: performing stack crash cycle analysis according to the protocol stack crash behavior data to obtain protocol stack crash cycle data; Step S444: performing protocol vulnerability feature analysis according to the protocol stack crash behavior data and the protocol stack crash cycle data to obtain protocol vulnerability feature data; Step S445: Perform protocol vulnerability detection on the fuzzy test protocol abnormal response data according to the protocol vulnerability feature data to obtain protocol vulnerability detection data.
Citation Information
Patent Citations
Power grid industrial control protocol vulnerability mining system adopting fuzzy test
CN117640199A
Fuzzy test-based power terminal vulnerability detection method and system
CN117688571A
Fuzzy test method and system for power protocol
CN117978702A
System and method for detecting vulnerability of internet of things in power systems (iotips) protocol based on fuzz testing
US20230188556A1
Cited By
Inspection device and inspection program
WO2026203085A1
