Power equipment protocol vulnerability feature extraction method
By conducting security testing and abnormal evaluation of power equipment, combined with equipment status, network communication and performance indicators, the problem of inapplicable existing vulnerability feature extraction methods is solved, and the accurate extraction and storage of vulnerability features of power equipment is achieved, and the security is improved and resource utilization efficiency.
Patent Information
- Application Number
- CN202411181681.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The existing vulnerability feature extraction methods are inconvenient to the actual use situation, resulting in the extracted vulnerability features that may not be applicable to actual equipment, resulting in waste of resources and misjudgment.
By obtaining power equipment protocols with vulnerability characteristics from the authorized database, performing security tests, combining device status, network communication and performance indicator data, calculate anomaly evaluation index, and determine whether the device is abnormal, thereby determining whether to extract vulnerability characteristics.
It realizes the extraction of vulnerability features based on the actual situation of power equipment, improves security, reduces security risks, and avoids resource waste and misjudgment.
Smart Images

Figure CN119094187A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vulnerability feature extraction, and in particular to a method for extracting vulnerability features of a power equipment protocol. Background Art
[0002] In order to ensure network security, traffic analysis and detection for vulnerability attacks are indispensable. In the current actual business development, the feature extraction of vulnerability attack traffic mainly relies on security researchers to reverse analyze the sample code, obtain the relatively fixed parts of the sample communication protocol from the code as features, and write them into rules in the language of the corresponding product and add them to the product. Generally speaking, a mid-to-senior analyst spends a few hours or several days analyzing software vulnerabilities on a daily basis, but after the analysis is completed, it is possible that the features cannot be added to the product due to reasons such as product engine not supporting or protocol being encrypted, wasting time and resources.
[0003] The Chinese invention patent application with publication number CN115701020A discloses a vulnerability feature extraction system and method for network traffic based on the HTTP protocol, including a collection module, a clustering module, a feature extraction module and a conversion module; the collection module is used to obtain payload data; the clustering module is used to obtain a set of payload data belonging to the same vulnerability; the feature extraction module is used to extract a valid feature string of the vulnerability; the conversion module is used to convert the valid feature string and its related information into a corresponding Yara rule.
[0004] However, the existing vulnerability feature extraction methods are not convenient for extracting protocol vulnerability features in accordance with actual usage conditions, resulting in the extracted vulnerability features being unsuitable for actual devices. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides a method for extracting protocol vulnerability features of power equipment, which solves the problem that the existing vulnerability feature extraction methods are not convenient for extracting protocol vulnerability features in accordance with actual usage conditions, resulting in the extracted vulnerability features may not be applicable to actual equipment.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for extracting vulnerability features of power equipment protocols, comprising the following steps: obtaining a number of power equipment protocols with vulnerability features from an authorized database; applying the power equipment protocols with vulnerability features one by one to the power equipment safety test; obtaining a test data set of the power equipment during the safety test; judging whether the power equipment is abnormal based on the test data set of the power equipment during the safety test: if the power equipment is abnormal, extracting the vulnerability features in the power equipment protocol with vulnerability features corresponding to the power equipment safety test, and storing them in the vulnerability feature database; if the power equipment is not abnormal, not extracting the vulnerability features in the power equipment protocol with vulnerability features corresponding to the power equipment safety test.
[0007] Furthermore, the method of judging whether the power equipment is abnormal based on the test data set of the power equipment during the safety test process includes the following steps: obtaining a reference test data set stored in a database; fusing and analyzing the reference test data set stored in the database with the test data set to obtain a test anomaly assessment index, wherein the test anomaly assessment index is used as an analysis basis for judging whether the power equipment is abnormal; obtaining a test anomaly assessment threshold stored in the database; judging whether the power equipment is abnormal based on the test anomaly assessment threshold and the test anomaly assessment index stored in the database.
[0008] Furthermore, the method of judging whether the power equipment is abnormal based on the test abnormality assessment threshold and the test abnormality assessment index stored in the database includes the following steps: judging whether the test abnormality assessment threshold stored in the database is greater than the test abnormality assessment index: if the test abnormality assessment threshold stored in the database is greater than the test abnormality assessment index, then the power equipment is judged to be abnormal; if the test abnormality assessment threshold stored in the database is not greater than the test abnormality assessment index, then the power equipment is judged to be not abnormal.
[0009] Furthermore, the test data set includes device status data, network communication data and performance indicator data, and the parameter test data set stored in the database includes device status parameter data, network communication parameter data and performance indicator parameter data.
[0010] Furthermore, the fusion analysis of the parameter test data set stored in the database with the test data set to obtain the test anomaly evaluation index includes the following steps: fusion analysis of the device status data with the device status parameter data to obtain the device status evaluation coefficient; fusion analysis of the network communication data with the network communication parameter data to obtain the network communication evaluation coefficient; fusion analysis of the performance indicator data with the performance indicator parameter data to obtain the performance indicator evaluation coefficient; any analysis of the device status evaluation coefficient, the network communication evaluation coefficient and the performance indicator evaluation coefficient to obtain the test anomaly evaluation index.
[0011] Furthermore, the calculation formula of the test abnormality evaluation index is as follows: ; In the formula, To test the anomaly assessment index, is the equipment status assessment coefficient, is the network communication evaluation coefficient, is the performance index evaluation coefficient, is the equipment status evaluation coefficient weight factor stored in the database, is the network communication evaluation coefficient weight factor stored in the database, The weighting factor for the performance indicator evaluation coefficient stored in the database.
[0012] Furthermore, the equipment status data includes the energy consumption within the set time and the number of alarms within the set time, and the equipment status parameter data includes the energy parameter consumption within the set time and the alarm parameter number within the set time; the fusion analysis of the equipment status data and the equipment status parameter data to obtain the equipment status evaluation coefficient includes the following steps: obtaining the difference between the energy consumption within the set time and the energy parameter consumption within the set time; obtaining the ratio of the number of alarms within the set time to the alarm parameter number within the set time; determining the equipment status evaluation coefficient based on the difference between the energy consumption within the set time and the energy parameter consumption within the set time and the ratio of the number of alarms within the set time to the alarm parameter number within the set time.
[0013] Furthermore, the network communication data includes communication frequency, the number of incomplete TCP three-way handshakes, and the number of reconnections, and the network communication parameter data includes the parameterized communication frequency, the parameterized number of incomplete TCP three-way handshakes, and the parameterized number of reconnections; the fusing and analyzing the network communication data with the network communication parameter data to obtain the network communication evaluation coefficient includes the following steps: obtaining the difference between the communication frequency and the parameterized communication frequency; obtaining the ratio of the number of incomplete TCP three-way handshakes to the parameterized number of incomplete TCP three-way handshakes; obtaining the ratio of the number of reconnections to the parameterized number of reconnections; determining the network communication evaluation coefficient based on the difference between the communication frequency and the parameterized communication frequency, the ratio of the number of incomplete TCP three-way handshakes to the parameterized number of incomplete TCP three-way handshakes, and the ratio of the number of reconnections to the parameterized number of reconnections.
[0014] Furthermore, the performance indicator data includes CPU usage and response delay time, and the performance indicator parameter data includes CPU parameter usage and parameter response delay time; the fusion analysis of the performance indicator data and the performance indicator parameter data to obtain the performance indicator evaluation coefficient includes the following steps: obtaining the difference between the CPU usage and the CPU parameter usage; obtaining the ratio of the response delay time to the parameter response delay time; and determining the performance indicator evaluation coefficient based on the difference between the CPU usage and the CPU parameter usage and the ratio of the response delay time to the parameter response delay time.
[0015] Furthermore, the calculation formula of the performance index evaluation coefficient is as follows: ; In the formula, is the performance index evaluation coefficient, It is the difference between CPU usage and CPU parameter usage. is the ratio of the response delay time to the parameter response delay time, is a natural constant.
[0016] The present invention has the following beneficial effects: The method for extracting vulnerability features of power equipment protocols can determine whether the power equipment is normal or not by comprehensively analyzing the equipment status, network stability and system performance of the power equipment, so as to determine whether the vulnerability features in the corresponding power equipment protocol are stored in a database, thereby extracting the vulnerability features in the power equipment protocol according to the actual situation of the power equipment.
[0017] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The present invention is a flow chart of the method for extracting protocol vulnerability features of power equipment. DETAILED DESCRIPTION
[0019] The embodiment of the present application uses a method for extracting vulnerability features from a power equipment protocol to determine whether the power equipment is normal or not by comprehensively analyzing the equipment status, network stability, and system performance of the power equipment, thereby determining whether the vulnerability features in the corresponding power equipment protocol are stored in a database, and thereby extracting the vulnerability features in the power equipment protocol based on the actual situation of the power equipment.
[0020] See also Figure 1The embodiment of the present invention provides a technical solution: a method for extracting vulnerability features of power equipment protocols, comprising the following steps: obtaining a number of power equipment protocols with vulnerability features from an authorization database; applying the power equipment protocols with vulnerability features to power equipment safety tests one by one; obtaining a test data set of the power equipment during the safety test; judging whether the power equipment is abnormal based on the test data set of the power equipment during the safety test: if the power equipment is abnormal, extracting the vulnerability features in the power equipment protocol with vulnerability features corresponding to the power equipment safety test, and storing them in a vulnerability feature database; if the power equipment is not abnormal, not extracting the vulnerability features in the power equipment protocol with vulnerability features corresponding to the power equipment safety test.
[0021] Known power equipment protocols with vulnerability features are extracted from the authorized database, and these power equipment protocols with vulnerability features are applied one by one to the security test of actual power equipment, simulating possible attack or failure scenarios to test the response of the equipment. During the security test, the response and performance data of the power equipment are collected to form a test data set. If the power equipment behaves abnormally during the test, it means that the protocol used in the test successfully triggers a potential vulnerability. At this time, the vulnerability features of this protocol are extracted and stored in the vulnerability feature database. If the device behaves normally, it means that the protocol fails to trigger any vulnerability and no feature extraction is performed. It can effectively solve the problem of vulnerability identification and management of power equipment in security testing. By identifying abnormal behaviors from the test data set and associating these anomalies with specific vulnerability features, this method can help build a more complete vulnerability feature database, thereby improving the security of power equipment and reducing security risks caused by protocol vulnerabilities.
[0022] Specifically, the method of judging whether the power equipment is abnormal based on the test data set of the power equipment during the safety test process includes the following steps: obtaining a parameter test data set stored in a database; fusing and analyzing the parameter test data set stored in the database with the test data set to obtain a test anomaly assessment index, and the test anomaly assessment index is used as an analysis basis for judging whether the power equipment is abnormal; obtaining a test anomaly assessment threshold stored in the database; judging whether the power equipment is abnormal based on the test anomaly assessment threshold and the test anomaly assessment index stored in the database.
[0023] Specifically, the method of judging whether the power equipment is abnormal based on the test abnormality assessment threshold and the test abnormality assessment index stored in the database includes the following steps: judging whether the test abnormality assessment threshold stored in the database is greater than the test abnormality assessment index: if the test abnormality assessment threshold stored in the database is greater than the test abnormality assessment index, then the power equipment is judged to be abnormal; if the test abnormality assessment threshold stored in the database is not greater than the test abnormality assessment index, then the power equipment is judged to be not abnormal.
[0024] Specifically, the test data set includes device status data, network communication data and performance indicator data, and the parameter test data set stored in the database includes device status parameter data, network communication parameter data and performance indicator parameter data.
[0025] In this implementation scheme, a preset parameter test data set is first obtained from the database. These data usually contain the expected response and performance indicators of the equipment under normal operating conditions. The actual test data set is fused and analyzed with the parameter test data set. By comparison and calculation, a test anomaly assessment index is obtained. This index reflects the degree of deviation between the actual test data and the expected standard, and a set test anomaly assessment threshold is extracted from the database. This threshold defines what level of deviation is considered abnormal. If the test anomaly assessment threshold stored in the database is greater than the test anomaly assessment index, the power equipment is judged to be abnormal; if the test anomaly assessment threshold stored in the database is not greater than the test anomaly assessment index, the power equipment is judged to be normal.
[0026] The test anomaly assessment threshold stored in the database collects and evaluates data from power equipment during normal operation and historical fault events, and uses statistical methods to calculate the mean, variance and other statistical indicators of these data, thereby determining the boundary between normal and abnormal behavior of the equipment. The test anomaly assessment threshold is set accordingly to accurately identify the equipment status in future tests and ensure timely detection and response to potential equipment problems.
[0027] By setting specific anomaly assessment thresholds, we can more accurately identify which device behaviors may indicate security issues or vulnerabilities, avoiding over-generalization and misjudgment. By numerically testing anomaly assessment indexes and thresholds, we can quantify the security status of the device, making the assessment process more objective and standardized.
[0028] The method of fusing and analyzing the parameter test data set stored in the database with the test data set to obtain the test anomaly evaluation index includes the following steps: fusing and analyzing the device status data with the device status parameter data to obtain the device status evaluation coefficient; fusing and analyzing the network communication data with the network communication parameter data to obtain the network communication evaluation coefficient; fusing and analyzing the performance indicator data with the performance indicator parameter data to obtain the performance indicator evaluation coefficient; and performing any analysis on the device status evaluation coefficient, the network communication evaluation coefficient and the performance indicator evaluation coefficient to obtain the test anomaly evaluation index.
[0029] Collect the device status data of the equipment, compare and analyze it with the pre-defined normal status data (device status parameter data), and calculate the device status evaluation coefficient. This coefficient reflects the deviation between the current status of the equipment and the normal operating status. Analyze the network communication data of the equipment and compare it with the preset standard communication data (network communication parameter data) to obtain the network communication evaluation coefficient. This coefficient is used to measure the communication health status and data integrity of the equipment. Evaluate the performance indicators of the equipment, compare them with the established performance standards (performance indicator parameter data), and calculate the performance indicator evaluation coefficient. This coefficient shows the performance of the equipment on key performance indicators. Combine the above three evaluation coefficients and calculate a comprehensive test anomaly evaluation index through weighting. This index comprehensively reflects the performance of the equipment in various aspects and is used to determine whether there are any abnormalities in the equipment.
[0030] By evaluating devices from three different perspectives: device status, network communication, and performance indicators, we can gain a comprehensive understanding of the health status of the device and reduce misjudgments caused by single indicator evaluation.
[0031] The calculation formula of the test abnormality evaluation index is as follows: ; In the formula, To test the anomaly assessment index, is the equipment status assessment coefficient, is the network communication evaluation coefficient, is the performance index evaluation coefficient, is the equipment status evaluation coefficient weight factor stored in the database, is the network communication evaluation coefficient weight factor stored in the database, The weighting factor for the performance indicator evaluation coefficient stored in the database.
[0032] In this implementation scheme, first, each evaluation coefficient (device status evaluation coefficient, network communication evaluation coefficient, performance index evaluation coefficient) is multiplied by a corresponding weight factor. These weight factors are provided by the database and reflect the degree of influence of different evaluation coefficients on the final abnormal evaluation index. The result of the weight summation is used as the power of the exponent to obtain the test abnormal evaluation index. The use of the exponential function can enhance the sensitivity of the model to changes in the evaluation coefficients, so that even small changes can significantly affect the final evaluation index, thereby enhancing the discrimination.
[0033] These three sets of parameters monitor the status of equipment from all aspects, namely physical, network and performance. Their combination provides a comprehensive equipment health assessment. For example, physical failure of equipment may lead to performance degradation, while network problems may affect the accuracy and timeliness of equipment status data. The physical status of equipment not only affects its own performance, but may also indirectly affect the stability of network communications through communication failures. At the same time, abnormal performance degradation may be caused by physical loss of equipment or improper network data processing. The selection of these three parameters and their interrelationships provide a comprehensive, multi-dimensional evaluation framework for the maintenance and management of power equipment, making anomaly detection more accurate and timely. This approach helps to achieve preventive maintenance, avoid major failures, optimize equipment performance and extend its service life.
[0034] Stored in the database , and , which can be obtained through historical data analysis. This process involves collecting a large amount of historical operating data of power equipment, including data under normal operation and fault conditions. Through statistical analysis methods, such as multivariate regression analysis, the contribution of different parameters (equipment status, network communication, performance indicators) to equipment abnormalities is determined, and weights are assigned accordingly. These weights reflect the relative importance of each evaluation coefficient to the final abnormality evaluation index, ensuring accuracy and sensitivity in predicting equipment abnormalities.
[0035] Specifically, the equipment status data includes the energy consumption within a set period and the number of alarms within a set time, and the equipment status parameter data includes the energy parameter consumption within a set period and the alarm parameter number within a set time; the fusion analysis of the equipment status data and the equipment status parameter data to obtain the equipment status evaluation coefficient includes the following steps: obtaining the difference between the energy consumption within the set time and the energy parameter consumption within the set time; obtaining the ratio of the number of alarms within the set time to the alarm parameter number within the set time; determining the equipment status evaluation coefficient based on the difference between the energy consumption within the set time and the energy parameter consumption within the set time and the ratio of the number of alarms within the set time to the alarm parameter number within the set time.
[0036] Obtain the actual energy consumption of the equipment within the set time, compare it with the predetermined (parameterized) energy consumption within the set time, and calculate the difference between the two. This difference reflects the deviation between the equipment in actual operation and the expected performance. Count the actual number of alarms within the set time, compare it with the predetermined (parameterized) number of alarms in the same time period, and calculate the ratio. This ratio reveals the difference between the frequency of abnormal activities in the operation of the equipment and the expected. Combine the energy consumption difference and the alarm number ratio to determine the equipment status assessment coefficient. By considering both energy consumption and the number of alarms, the operating status of the equipment can be evaluated from different perspectives. Energy consumption data provides an indicator of equipment efficiency, while the number of alarms reflects the safety and stability of the equipment. Combining these two parameters can increase sensitivity to early equipment failures or abnormalities. Even if a single indicator does not show significant abnormalities, the combination of the two may reveal potential problems.
[0037] Energy consumption uses power sensors and metering devices to monitor and record the energy consumption of the device in real time over a set period of time. These devices can accurately measure parameters such as current and voltage to calculate energy consumption. The number of alarms can be detected by the device's built-in monitoring system. If the energy consumption of the device suddenly increases, accompanied by an increase in the number of alarms, this may indicate that the device is operating less efficiently or there is a malfunction. For example, increased friction or malfunction of mechanical parts may cause the system to require more energy to complete the same work, and the device's monitoring system may trigger an alarm.
[0038] The calculation formula of the equipment status assessment coefficient is as follows: ; In the formula, is the equipment status assessment coefficient, It is the difference between the energy consumption within the set time and the energy parameter consumption within the set time. It is the ratio of the number of alarms within the set time to the number of alarm parameters within the set time. The weight factor for the difference between the energy consumption stored in the database and the energy parameter consumption set, The weight factor is the ratio of the number of alarms within the set time stored in the database to the number of alarm parameters within the set time. is a natural constant.
[0039] In this embodiment, an exponential function is used to process the deviation value of energy consumption. This processing method is more sensitive to large deviation values and can amplify the impact of large deviations, making small changes significant in the evaluation. The combination of exponents and square roots can smooth the data while retaining high sensitivity to outliers. The natural logarithm is used to process the ratio of the number of alarms. This method can handle the relative changes in the number of alarms, especially when the ratio of the number of alarms is large. The logarithmic transformation can prevent the value from becoming too large, which helps to maintain the stability of the evaluation coefficient. The logarithmic transformation can also improve the skewed distribution of the ratio data, making it closer to the normal distribution, which is convenient for analysis and calculation.
[0040] Weight factors stored in the database and , which can be obtained through historical data analysis, which involves collecting a large amount of historical data on power equipment in normal operation and fault conditions. Statistical analysis or machine learning methods, such as multivariate regression analysis, are used to evaluate the sensitivity and importance of changes in energy consumption and alarm times to equipment performance. These analyses help determine the relative weight of each factor in the overall equipment status assessment to ensure and It reflects the real impact of energy consumption and alarm frequency on equipment health, making status assessment more accurate and effective.
[0041] Specifically, the network communication data includes communication frequency, the number of incomplete TCP three-way handshakes, and the number of reconnections, and the network communication parameter data includes the parameterized communication frequency, the parameterized number of incomplete TCP three-way handshakes, and the parameterized number of reconnections; the fusing and analyzing the network communication data with the network communication parameter data to obtain the network communication evaluation coefficient includes the following steps: obtaining the difference between the communication frequency and the parameterized communication frequency; obtaining the ratio of the number of incomplete TCP three-way handshakes to the parameterized number of incomplete TCP three-way handshakes; obtaining the ratio of the number of reconnections to the parameterized number of reconnections; determining the network communication evaluation coefficient based on the difference between the communication frequency and the parameterized communication frequency, the ratio of the number of incomplete TCP three-way handshakes to the parameterized number of incomplete TCP three-way handshakes, and the ratio of the number of reconnections to the parameterized number of reconnections.
[0042] Calculate the difference between the actual communication frequency and the preset (preset) communication frequency. This difference can indicate the increase or decrease of network activity, reflecting changes in network load and bandwidth usage. Calculate the ratio of the number of incomplete TCP three-way handshakes to its preset number. This ratio helps identify problems that may be encountered during the process of establishing a network connection, such as network latency, excessive server load, or configuration errors. Calculate the ratio of the actual number of reconnections to the preset number of reconnections. Frequent reconnections may indicate an unstable network connection and problems with the server or network equipment.
[0043] Based on the analysis results of the above three parameters, the network communication evaluation coefficient is comprehensively determined. This coefficient provides a quantitative network communication health indicator by comprehensively considering the changes in communication frequency, the success rate of connection establishment and the stability of the connection.
[0044] The communication frequency reflects the intensity of network activity and the amount of data traffic. A high communication frequency may indicate a heavy network load, while an abnormally low frequency may indicate blocked network activity or device failure. The TCP three-way handshake is the standard process for establishing a TCP connection, and the number of incomplete handshakes reflects the interruption or failure of the connection attempt. This can be due to network delays, unresponsive servers, or configuration errors. The number of reconnections refers to the number of attempts to reestablish a connection after the connection is interrupted. Frequent reconnections may indicate an unstable network connection, which requires investigation of network equipment, server status, or external network environment issues.
[0045] Typically, if the network frequency is high, it may cause network congestion, thereby increasing the number of incomplete TCP three-way handshakes. Similarly, if there are many incomplete handshakes, this may in turn affect the overall communication frequency because data packets are not successfully sent or received. If the network frequency suddenly becomes low, it may be because the network connection is unstable, resulting in frequent reconnections. Conversely, frequent reconnection attempts may also reduce the effective communication frequency because it occupies network resources and bandwidth. Through the comprehensive evaluation of these three parameters, you can more comprehensively understand the current status of the network, identify potential problems, and take appropriate measures to improve the stability and performance of the network.
[0046] The calculation formula of the network communication evaluation coefficient is as follows: ; In the formula, is the network communication evaluation coefficient, is the difference between the communication frequency and the reference communication frequency, It is the ratio of the number of incomplete TCP three-way handshakes to the number of incomplete TCP three-way handshake parameters. is the ratio of the number of reconnections to the number of reference reconnections, is a natural constant.
[0047] In this embodiment, an exponential function is used to process the absolute value of the communication frequency difference. The application of the exponential function enhances the sensitivity to large frequency differences, so that any significant deviation will significantly affect the evaluation coefficient. The sum of the reciprocals of the two ratios is processed by using the reciprocal of the exponential function. This processing method emphasizes that even a small ratio (i.e., a relatively small number of incomplete handshakes and reconnections) can significantly affect the evaluation coefficient, thereby increasing the ability to identify situations with high network stability. The above two calculation results are added and added by one, and then the natural logarithm is taken. The use of natural logarithms helps to scale and balance the results so that the evaluation coefficient remains within a reasonable numerical range and avoids distortion of the evaluation results due to extreme values of a certain indicator.
[0048] Specifically, the performance indicator data includes CPU usage and response delay time, and the performance indicator parameter data includes CPU parameter usage and parameter response delay time; the fusion analysis of the performance indicator data and the performance indicator parameter data to obtain the performance indicator evaluation coefficient includes the following steps: obtaining the difference between the CPU usage and the CPU parameter usage; obtaining the ratio of the response delay time to the parameter response delay time; and determining the performance indicator evaluation coefficient based on the difference between the CPU usage and the CPU parameter usage and the ratio of the response delay time to the parameter response delay time.
[0049] Calculate the difference between the actual CPU usage and the preset (parameterized) CPU usage. This difference reflects the deviation between the CPU load and the expected setting, which can indicate overload or underutilization. Calculate the ratio of the actual response delay time to the preset (parameterized) response delay time. This ratio helps to understand the degree of compliance of the system response efficiency with the predetermined standards and reflects the speed at which the system processes requests. Combine the difference in CPU usage and the ratio of response delay time to form a comprehensive performance indicator evaluation coefficient. This coefficient provides a quantitative performance health indicator by combining the analysis results of the two key performance indicators.
[0050] CPU usage is a key indicator of system resource utilization. It reflects the CPU's ability to handle tasks and the current load. High CPU usage may indicate that the system is processing a large number of tasks, while low usage may mean that resources are not fully utilized. Response delay time is an important indicator of system response speed and directly affects the user experience. Long delay time may cause user dissatisfaction, while short delay time usually means that the system responds quickly and the user experience is good. When the CPU usage rate is extremely high, the system may not have enough processing power to respond to new requests quickly, resulting in increased response delay time. Conversely, if the response delay time is long, it may be because the CPU is under high load or the system resources are improperly allocated.
[0051] The calculation formula of the performance index evaluation coefficient is as follows: ; In the formula, is the performance index evaluation coefficient, It is the difference between CPU usage and CPU parameter usage. is the ratio of the response delay time to the parameter response delay time, is a natural constant.
[0052] In this implementation, the square root of the absolute value of the CPU usage difference is used as the exponent. This process reduces the over-amplification effect caused by large differences while maintaining sensitivity to smaller differences, so that even small deviations can be properly reflected in the evaluation coefficient. The natural logarithm of the ratio of the response delay time plus one can be taken to mitigate the drastic impact of the ratio change, especially when When the value is large, logarithmic processing can prevent the evaluation result from being too large, maintaining the stability and manageability of the data. The formula takes into account the CPU load and the system's responsiveness, which are the key aspects of judging system performance. Combining these two processing methods can more comprehensively reflect the system's performance.
[0053] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0054] The present invention is described with reference to flowcharts and / or block diagrams of systems, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0055] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0056] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0057] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0058] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for extracting features of power equipment protocol vulnerabilities, characterized in that: The following steps are involved: Obtain several power equipment protocols with vulnerability characteristics from the authorized database; Apply power equipment protocols with vulnerability characteristics one by one to power equipment security testing; Obtain test data sets of power equipment during safety testing; Determine whether the power equipment is abnormal based on the test data set during the safety test of the power equipment: If the power equipment is abnormal, the vulnerability features in the power equipment protocol with vulnerability features corresponding to the power equipment security test are extracted and stored in the vulnerability feature database; If the power equipment is not abnormal, the vulnerability features in the power equipment protocol with vulnerability features corresponding to the power equipment security test will not be extracted.
2. According to claim 1, the method for extracting features of power equipment protocol vulnerabilities is characterized in that: The method of judging whether the electric equipment is abnormal based on the test data set of the electric equipment during the safety test process comprises the following steps: Obtain the test data set stored in the database; The reference test data set stored in the database is integrated and analyzed with the test data set to obtain a test anomaly evaluation index, which is used as an analysis basis for determining whether the power equipment is abnormal; Obtain the test anomaly assessment threshold stored in the database; Whether the power equipment is abnormal is determined based on the test abnormality assessment threshold and the test abnormality assessment index stored in the database.
3. According to claim 2, the method for extracting features of power equipment protocol vulnerabilities is characterized in that: The method of judging whether the power equipment is abnormal based on the test abnormality assessment threshold and the test abnormality assessment index stored in the database comprises the following steps: Determine whether the test anomaly assessment threshold stored in the database is greater than the test anomaly assessment index: If the test abnormality assessment threshold stored in the database is greater than the test abnormality assessment index, it is determined that the power equipment is abnormal; If the test abnormality assessment threshold stored in the database is not greater than the test abnormality assessment index, it is determined that the power equipment is not abnormal.
4. According to claim 2, the method for extracting features of power equipment protocol vulnerabilities is characterized by: The test data set includes device status data, network communication data and performance index data, and the parameter test data set stored in the database includes device status parameter data, network communication parameter data and performance index parameter data.
5. According to claim 4, the method for extracting features of power equipment protocol vulnerabilities is characterized in that: The method of fusing and analyzing the reference test data set stored in the database with the test data set to obtain the test anomaly evaluation index comprises the following steps: The equipment status data and equipment status parameter data are integrated and analyzed to obtain the equipment status evaluation coefficient; The network communication data and the network communication parameter data are integrated and analyzed to obtain the network communication evaluation coefficient; The performance indicator data and the performance indicator parameter data are integrated and analyzed to obtain the performance indicator evaluation coefficient; The device status evaluation coefficient, the network communication evaluation coefficient and the performance index evaluation coefficient are analyzed to obtain the test abnormality evaluation index.
6. The method for extracting features of power equipment protocol vulnerabilities according to claim 5 is characterized in that: The calculation formula of the test abnormality evaluation index is as follows: ; In the formula, To test the anomaly assessment index, is the equipment status assessment coefficient, is the network communication evaluation coefficient, is the performance index evaluation coefficient, is the equipment status evaluation coefficient weight factor stored in the database, is the network communication evaluation coefficient weight factor stored in the database, The weighting factor for the performance indicator evaluation coefficient stored in the database.
7. The method for extracting features of power equipment protocol vulnerabilities according to claim 5 is characterized in that: The equipment status data includes the energy consumption within a set time and the number of alarms within a set time, and the equipment status parameter data includes the energy parameter consumption within a set time and the number of alarm parameters within a set time; The method of fusing and analyzing the device status data with the device status parameter data to obtain the device status evaluation coefficient includes the following steps: Obtain the difference between the energy consumption within the set time and the energy parameter consumption within the set time; Get the ratio of the number of alarms within the set time to the number of alarm parameters within the set time; The equipment status evaluation coefficient is determined based on the difference between the energy consumption within the set time and the energy parameter consumption within the set time and the ratio of the number of alarms within the set time to the number of alarm parameters within the set time.
8. The method for extracting features of power equipment protocol vulnerabilities according to claim 5 is characterized in that: The network communication data includes the communication frequency, the number of uncompleted TCP three-way handshakes, and the number of reconnections; the network communication parameter data includes the parameterized communication frequency, the number of uncompleted TCP three-way handshakes, and the number of parameterized reconnections; The method of fusing and analyzing the network communication data with the network communication parameter data to obtain the network communication evaluation coefficient comprises the following steps: Obtain the difference between the communication frequency and the reference communication frequency; Get the ratio of the number of incomplete TCP three-way handshakes to the number of incomplete TCP three-way handshake parameters; Get the ratio of the number of reconnections to the specified number of reconnections; The network communication evaluation coefficient is determined based on the difference between the communication frequency and the referenced communication frequency, the ratio of the number of incomplete TCP three-way handshakes to the referenced number of incomplete TCP three-way handshakes, and the ratio of the number of reconnections to the referenced number of reconnections.
9. The method for extracting features of power equipment protocol vulnerabilities according to claim 5 is characterized in that: The performance indicator data includes CPU usage and response delay time, and the performance indicator parameter data includes CPU parameter usage and parameter response delay time; The step of fusing and analyzing the performance indicator data with the performance indicator parameter data to obtain the performance indicator evaluation coefficient includes the following steps: Get the difference between CPU usage and CPU parameter usage; Obtain the ratio of the response delay time to the parameter response delay time; The performance indicator evaluation coefficient is determined based on the difference between the CPU usage and the CPU parameter usage and the ratio of the response delay time to the parameter response delay time.
10. The method for extracting features of power equipment protocol vulnerabilities according to claim 9 is characterized in that: The calculation formula of the performance index evaluation coefficient is as follows: ; In the formula, is the performance index evaluation coefficient, It is the difference between CPU usage and CPU parameter usage. is the ratio of the response delay time to the parameter response delay time, is a natural constant.
Citation Information
Patent Citations
Modbus TCP protocol fuzzy test method based on abnormal field positioning
CN110336827A
Cloud network vulnerability mining method and device, electronic equipment and medium
CN111901327A
Power grid intelligent terminal protocol vulnerability detection method based on high-order attribute grammar
CN117254964A
Security test method and device for equipment
CN117527442A
Data center architecture that supports attack detection and mitigation
US20160036838A1
