A command monitoring method, device, electronic device and medium
Patent Information
- Application Number
- CN202311828239.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-12-27
Smart Images

Figure CN117787707B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of monitoring technology, and in particular to an instruction monitoring method, device, electronic equipment and medium. Background Art
[0002] With the vigorous development of State Grid's Internet of Things technology, a large number of intelligent instructions need to be monitored for security in the current Internet of Things environment.
[0003] However, traditional command monitoring methods mainly rely on manual labor, with a high rate of human error and relatively fixed monitoring strategies, resulting in relatively low monitoring efficiency. Summary of the invention
[0004] The present invention provides an instruction monitoring method, device, electronic equipment and medium to improve the reliability of instruction monitoring and effectively enhance the monitoring efficiency.
[0005] According to one aspect of the present invention, there is provided an instruction monitoring method, the method comprising:
[0006] Performing risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, wherein the IoT management instruction is used to manage the IoT management platform;
[0007] According to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction, the monitoring strategy of the IoT management platform is dynamically adjusted, and the monitoring results are collected.
[0008] According to another aspect of the present invention, there is provided an instruction monitoring device, the device comprising:
[0009] A risk assessment module, used to perform risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, wherein the IoT management instruction is used to manage the IoT management platform;
[0010] The dynamic adjustment module is used to dynamically adjust the monitoring strategy of the Internet of Things management platform according to the comprehensive evaluation results and the target device environment corresponding to the Internet of Things management instruction, and collect monitoring results.
[0011] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0012] at least one processor; and
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the instruction monitoring method described in any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the instruction monitoring method described in any embodiment of the present invention when executed.
[0016] The embodiment of the present invention provides a command monitoring method, device, electronic device and medium, the method comprising: performing risk assessment on IoT management commands based on a risk assessment model to obtain a comprehensive assessment result of the IoT management commands, the IoT management commands being used to manage an IoT management platform; dynamically adjusting the monitoring strategy of the IoT management platform according to the comprehensive assessment result and the target device environment corresponding to the IoT management command, and collecting the monitoring result. By utilizing the above technical solution, by performing risk assessment on IoT management commands based on a risk assessment model to obtain a comprehensive assessment result, automatic assessment of IoT management commands can be achieved, manual participation can be reduced, and the security and reliability of command monitoring can be improved. At the same time, by dynamically adjusting the monitoring strategy of the IoT management platform according to the comprehensive assessment result and the target device environment corresponding to the IoT management command, adaptive adjustment of the monitoring strategy is achieved, effectively improving the efficiency of monitoring.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flow chart of an instruction monitoring method provided according to Embodiment 1 of the present invention;
[0020] Figure 2 is a flowchart of an instruction monitoring adaptation provided according to the first embodiment of the present invention;
[0021] Figure 3 is a flow chart of an instruction monitoring method provided according to Embodiment 2 of the present invention;
[0022] Figure 4 is a schematic diagram of an instruction monitoring method provided according to Embodiment 2 of the present invention;
[0023] Figure 5 is a structural diagram of a risk assessment provided according to the second embodiment of the present invention;
[0024] Figure 6 is a structural diagram of an instruction monitoring device provided according to Embodiment 3 of the present invention;
[0025] Figure 7 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "initial", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 This is a flowchart of a command monitoring method provided according to the first embodiment of the present invention. This embodiment is applicable to the case of monitoring commands in the IoT management platform. The method can be executed by a command monitoring device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0030] S110: Perform risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, where the IoT management instruction is used to manage the IoT management platform.
[0031] IoT management instructions may refer to instructions for managing the IoT management platform, such as instructions for controlling a device in the IoT management platform; the IoT management platform may be understood as a management system based on IoT technology, such as the IoT management platform for State Grid.
[0032] Specifically, this embodiment can perform risk assessment on the received IoT management instructions based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instructions, so as to perform subsequent monitoring based on the comprehensive assessment result. The specific steps of risk assessment of the risk assessment model are not limited here. For example, risk assessment can be performed directly based on the content of the IoT management instructions, or other factors can be combined to comprehensively perform risk assessment on the IoT management instructions. As long as risk assessment of IoT management instructions can be achieved, it will be fine.
[0033] S120: dynamically adjust the monitoring strategy of the IoT management platform according to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction, and collect monitoring results.
[0034] The target device environment can be considered as the environment of the target device that executes the IoT management instruction, such as the physical environment of the target device.
[0035] After obtaining the comprehensive evaluation results of the IoT management instructions, the monitoring strategy of the IoT management platform can be dynamically adjusted according to the comprehensive evaluation results and the target device environment, and the corresponding monitoring results can be collected, so as to achieve accurate adjustment of the monitoring strategy.
[0036] In one embodiment, dynamically adjusting the monitoring strategy of the IoT management platform according to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction includes:
[0037] Determine an initial monitoring strategy corresponding to the comprehensive evaluation result based on a preset monitoring strategy;
[0038] Real-time perception of whether the target device environment has changed, and obtaining a perception result;
[0039] If the perception result is that the target device environment has not changed, then the initial monitoring strategy remains unchanged;
[0040] If the perception result is that the target device environment has changed, then return to the step of performing risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, obtain a re-evaluated comprehensive assessment result, and adjust the monitoring strategy of the IoT management platform according to the re-evaluated comprehensive assessment result.
[0041] The preset monitoring strategy may refer to a pre-configured monitoring strategy, such as different monitoring strategies can be designed in advance according to different evaluation results, and the content of the specific monitoring strategy can be configured according to actual conditions, which is not further limited here. The initial monitoring strategy can be considered as a monitoring strategy preliminarily determined based on the comprehensive evaluation results obtained.
[0042] In one embodiment, the monitoring strategy can be adjusted accordingly by sensing changes in the target device environment in real time. For example, the initial monitoring strategy corresponding to the comprehensive evaluation result can be first determined based on the preset monitoring strategy, and then the target device environment can be sensed in real time to obtain a perception result, and the monitoring strategy of the Internet of Things management platform can be dynamically adjusted according to the perception result. For example, if the perception result is that the target device environment has not changed, it means that the environment of the target device has not changed during the execution of the Internet of Things management instruction, then the initial monitoring strategy can be kept unchanged, that is, the Internet of Things management platform continues to be monitored according to the initial monitoring strategy; if the perception result is that the target device environment has changed, it means that the environment of the target device has changed during the execution of the Internet of Things management instruction, then the comprehensive evaluation result of the Internet of Things management instruction can be re-evaluated, that is, return to the step of performing a risk assessment on the Internet of Things management instruction based on the risk assessment model to obtain the comprehensive evaluation result of the Internet of Things management instruction, thereby obtaining a re-evaluated comprehensive evaluation result, and adjusting the monitoring strategy of the Internet of Things management platform according to the re-evaluated comprehensive evaluation result.
[0043] Take the comprehensive evaluation result to represent the risk level of IoT management instructions as an example. For example, the comprehensive evaluation result can be low risk, medium risk or high risk. Accordingly, different monitoring strategies can be designed for the high, medium and low risk levels of the comprehensive risk level of the instructions.
[0044] Exemplarily, the preset monitoring strategy may include: comprehensive monitoring of high-risk instructions, monitoring the entire process of the instruction, including parameter settings, device status, network transmission and other aspects; real-time monitoring of abnormal situations that may occur during the execution of instructions, and issuing alarms; playback analysis can be performed after the instruction is completed to detect whether there are potential hidden dangers.
[0045] For medium-risk instructions, you can choose to focus on monitoring two key links: instruction parameters and device status. After the instruction is completed, you can randomly select parts for playback analysis. By mining high-risk keywords based on historical data, you can enhance monitoring for this type of instruction.
[0046] For low-risk instructions, key links can be selectively monitored, such as hidden danger links shown in historical data; after the instruction is completed, sampling and playback analysis can be performed; cluster instruction types, and overall monitor the general indicators of instruction types.
[0047] Furthermore, if the risk level of instruction execution increases, the monitoring level of the corresponding instruction can be automatically increased immediately. Assuming that the original instruction risk level is medium risk, when the instruction environment is detected to have changed and the comprehensive risk level is recalculated to high risk, the system can automatically increase the instruction monitoring level to high risk. The corresponding monitoring strategy adjustment example can be as follows:
[0048] (1) The frequency of environmental parameter testing is adjusted from every 5 minutes to every 1 minute;
[0049] (2) Monitor the network transmission status in real time, pay attention to whether the network delay is normal, and confirm that the received instructions are consistent with the returned results;
[0050] (3) The time interval for making multi-directional backups of the parts of the operation record of the instruction is shortened from 10 minutes to 1 minute;
[0051] (4) The automatic rollback time for operation failure and abnormal alarm is shortened from 15 minutes to 5 minutes. If the monitoring parameters produce abnormal parameters, an alarm message is immediately generated and notified to the relevant personnel. If the alarm is not restored within 5 minutes, the command is automatically rolled back.
[0052] (5) Continuously monitor the execution environment. Once the risk is reduced, the system automatically lowers the monitoring level.
[0053] Therefore, by sensing environmental risk changes in real time, the monitoring policy can be flexibly adjusted. Taking risk as the guide, intelligently configuring monitoring points can effectively improve monitoring efficiency, focus monitoring on key indicators, and flexibly adjust monitoring strategies for different risk levels, thereby achieving the optimal physical configuration.
[0054] A command monitoring method provided in the first embodiment of the present invention performs risk assessment on IoT management commands based on a risk assessment model to obtain a comprehensive assessment result of the IoT management command, and the IoT management command is used to manage an IoT management platform; according to the comprehensive assessment result and the target device environment corresponding to the IoT management command, the monitoring strategy of the IoT management platform is dynamically adjusted, and the monitoring result is collected. By utilizing this method, by performing risk assessment on IoT management commands based on a risk assessment model to obtain a comprehensive assessment result, automatic assessment of IoT management commands can be achieved, manual participation can be reduced, and the security and reliability of command monitoring can be improved. At the same time, by dynamically adjusting the monitoring strategy of the IoT management platform according to the comprehensive assessment result and the target device environment corresponding to the IoT management command, adaptive adjustment of the monitoring strategy is achieved, effectively improving the efficiency of monitoring.
[0055] In one embodiment, after collecting the monitoring results, at least one of the following is further included:
[0056] Optimizing model parameters of the risk assessment model based on the monitoring results;
[0057] Adjust the monitoring indicators of the preset monitoring strategy based on the monitoring results;
[0058] The preset vocabulary is updated based on the monitoring result.
[0059] In one implementation, in order to improve the decision-making level, the embodiment of the present invention can collect monitoring results through closed-loop iteration to continuously optimize risk judgment and monitoring policies.
[0060] Specifically, first, the monitoring results can be classified and summarized, the monitoring status of various instructions can be recorded, and the consistency of various evaluation factors such as instruction content and execution subject with the actual monitoring results can be counted; then the monitoring alarm data can be analyzed to lock in common hidden danger types and links; secondly, the parameter settings of the risk assessment model can be checked to see whether the weight settings are reasonable; the monitoring results and risk judgments can be compared to evaluate the prediction accuracy of the risk model; and then, according to the analysis results, the risk model parameter settings can be adjusted, and the monitoring indicators in the monitoring strategy can be adjusted; thus, the effect of the adjusted monitoring strategy can be tested, the instruction risk can be re-evaluated, and whether the strategy optimization has a positive impact on the results. In addition, the monitoring experience and hidden danger analysis results can be used to continuously enrich the preset vocabulary (such as the hidden danger vocabulary library); applied to the monitoring of a new batch of instructions, and the monitoring system can be iteratively optimized.
[0061] Figure 2 is a flowchart of an instruction monitoring adaptation provided according to the first embodiment of the present invention, such as Figure 2As shown, first, the instruction evaluation result (i.e., the comprehensive evaluation result) can be obtained, and the corresponding monitoring strategy can be run according to the preset monitoring strategy. At the same time, whether the physical environment of the instruction changes can be sensed in real time (i.e., whether the target device environment corresponding to the IoT management instruction changes can be sensed in real time to obtain the perception result). If there is a change, the instruction evaluation result is re-evaluated and obtained, the corresponding monitoring strategy is dynamically adjusted, and the physical environment of the instruction is continuously sensed to see whether it changes, and the above steps are repeated; if the physical environment of the instruction does not change, the monitoring result can be obtained and the monitoring result is classified and summarized; by analyzing whether the weight setting is reasonable, it is determined whether to adjust the risk model parameters, and then the monitoring strategy indicators are adjusted, the instruction risk is re-evaluated, and whether the new strategy indicators are effective is judged. If effective, the strategy monitoring indicators are archived, and the hidden danger vocabulary is archived; if invalid, the strategy indicators are re-monitored to ensure the effectiveness of the readjusted strategy indicators.
[0062] In one embodiment, the method further comprises:
[0063] Creating a visual flowchart of the IoT management instruction throughout its entire life cycle, wherein the visual flowchart is embedded with target monitoring indicators and risk labels corresponding to the target monitoring indicators at each life cycle stage;
[0064] The risk label of the target monitoring indicator is updated in real time based on the execution status change of the IoT management instruction in the current life cycle stage.
[0065] In one embodiment, in order to more intuitively display each link of the instruction in the entire life cycle and the risk assessment results, and understand and analyze the process and state changes of the instruction in the system, the following visualization method can be used.
[0066] Exemplarily, a visual flowchart of the entire life cycle of IoT management instructions can be created. For example, the life cycle stage applicable to the instruction can be determined first, such as it can be defined according to the characteristics and requirements of the system, including instruction creation, parameter setting, review, execution, execution results, execution result inspection, and data backtracking analysis. The visual flowchart can be used to coherently represent the entire instruction life cycle from creation to execution to backtracking analysis. Furthermore, the corresponding indicator to be monitored can be embedded in each step, and a risk level label can be added to each indicator, and the corresponding level color indicates its risk level. As the instruction changes during the execution of each step, the indicator rating and level label can be updated in real time.
[0067] At the same time, the overall risk level of the execution can be uniformly displayed at the end of the entire flowchart, and the risk scores of each step can be accumulated.
[0068] In addition, you can also compare and analyze historical data of the same type of instructions to display the average risk level of the same type of instructions; the important events and judgment basis of the execution process can be described in text below the chart; the timeline can be set to make a visual comparison of multiple executions of instructions to observe the changing trend of risk levels.
[0069] Therefore, through the visualization of the instruction life cycle, this embodiment can intuitively reflect the risk points of the instruction in each link, and help users quickly understand and analyze the state changes and processes of the instruction in the system. At the same time, it shows the evaluation results and optimization effects of the model, which is easy to understand and monitor for decision-making reference.
[0070] Embodiment 2
[0071] Figure 3 It is a flow chart of an instruction monitoring method provided according to the second embodiment of the present invention, and the second embodiment is optimized on the basis of the above embodiments. In this embodiment, the risk assessment of the IoT management instruction is performed based on the risk assessment model, and the comprehensive assessment result of the IoT management instruction is further concretized as follows: the content of the IoT management instruction is risk assessed based on the preset vocabulary to obtain the content risk score of the IoT management instruction; the target device environment corresponding to the IoT management instruction is risk assessed to obtain the environmental risk score of the IoT management instruction; the execution subject of the IoT management instruction is risk assessed to obtain the subject risk score of the IoT management instruction; the historical related data of the IoT management instruction is risk assessed to obtain the historical data risk score of the IoT management instruction; the comprehensive assessment result of the IoT management instruction is calculated according to the content risk score, the environmental risk score, the subject risk score and the historical data risk score.
[0072] For details not yet provided in this embodiment, please refer to Embodiment 1.
[0073] like Figure 3 As shown, the method includes:
[0074] S210: Perform risk assessment on the content of the IoT management instruction based on a preset vocabulary to obtain a content risk score of the IoT management instruction.
[0075] The preset vocabulary may refer to a pre-set vocabulary, such as one or more hidden danger words. Furthermore, for each hidden danger word, a corresponding weight and risk score may be pre-configured according to experience values.
[0076] Taking the preset vocabulary as a hidden danger vocabulary list as an example, the specific process of establishing the preset vocabulary list may include, for example: collecting historical instruction samples and marking whether they have had problems; semantically analyzing the problem instructions and extracting high-frequency vocabulary; manually reviewing the vocabulary and establishing a hidden danger vocabulary list 1 (Hidden Danger Glossary, HDG), using HDG1 to match the problem instructions, statistically analyzing the correlation between the matching degree and the occurrence of the problem, and lowering the vocabulary standard in HDG1; further expanding the matching range, matching statistics again, extracting new vocabulary with the highest matching correlation, and merging it with HDG1 into an updated version HDG2; using HDG2 to match more samples, and statistically further optimizing the vocabulary selection criteria; repeatedly iterating the matching statistics and vocabulary optimization, and finally forming a stable hidden danger vocabulary list.
[0077] In one embodiment, the risk assessment of the content of the IoT management instruction based on a preset vocabulary to obtain the content risk score of the IoT management instruction includes:
[0078] Performing semantic analysis on the IoT management instruction to obtain at least one instruction vocabulary of the IoT management instruction;
[0079] For each instruction vocabulary, determining a vocabulary weight and a vocabulary risk score of the instruction vocabulary based on a preset vocabulary table;
[0080] The content risk score of the IoT management instruction is calculated based on the vocabulary weight and vocabulary risk score of each instruction vocabulary.
[0081] In one embodiment, the risk vocabulary and semantic analysis can be combined to assign weights (0-1) and scores (1-10) to the instruction vocabulary, thereby calculating the risk assessment level of the instruction content (ie, content risk score).
[0082] Assume that a command for controlling a switch device (i.e., IoT management command) is: open switch with ID "station1-sw1". First, the command is preprocessed to obtain at least one command word, and the legality of the command word is verified to ensure that the command format and syntax comply with regulations.
[0083] Then, the instruction action "open" can be matched from the hidden danger vocabulary HDG, which means opening the switch device, setting the weight act_w and the instruction action risk score act_s; the instruction object "switch" table
[0084] Object risk score obj_s; Authenticate the instruction identifier (ID) "station1-sw1" to ensure that the device identifier matches the known actual device identifier list to prevent unauthorized devices from being misoperated or attacked, and set the weight to id_w and risk score id_s; Match the access control permission vocabulary "with", set the access control permission weight auth_w and risk score auth_s; Since the instruction does not contain relevant information about the execution environment, the instruction execution environment weight envir_w and risk score envir_s can be preliminarily set to medium. Finally, combined with the above vocabulary for weighted calculation, the content risk score InsC_S can be obtained as InsC_S = (act_w×act_s)+(obj_w×obj_s)+(id_w×id_s)+(auth_w×auth_s)+(envir_w×envir_s).
[0085] S220: Perform a risk assessment on the target device environment corresponding to the IoT management instruction to obtain an environmental risk score for the IoT management instruction.
[0086] The calculation process of the environmental risk score can, for example, be to first obtain the environmental indicators of the target device corresponding to the IoT management instruction, where the environmental indicators may include physical environmental indicators and network environmental indicators; and obtain the environmental risk score of the IoT management instruction by weighted calculation of the physical environmental indicators and the network environmental indicators.
[0087] For example, the target device and device location and component switches corresponding to the environmental risk score (ID) can be detected, and the physical environment information of the device can be queried, including load information, load curve, temperature, humidity, pressure, device status, and work site; at the same time, the network environment information of the device can be queried, including network latency, network bandwidth, network congestion, whether the instruction uses a security protocol, whether the instruction involves sensitive data transmission, and whether it involves a public network connection. Then the above indicators can be weighted, scored according to actual conditions, and weighted calculations can be performed based on the weights and scores to obtain the environmental risk score Env_S. By regularly re-evaluating whether the environment has changed, real-time dynamic monitoring of the physical and network environment, and comprehensively evaluating the full range of environmental risks that may affect instruction security, a basis for security decision-making can be provided.
[0088] S230: Perform risk assessment on the subject executing the IoT management instruction to obtain a subject risk score of the IoT management instruction.
[0089] Specifically, we can mainly judge individual factors by analyzing the identity, authority and history of the subject of instruction execution, including: checking the operator's account identity and viewing authority; querying the account history to see if there are any improper operation records and querying the instruction success rate; counting recent operations: the time interval from the last instruction operation to obtain the operation volume; detecting the operation location, that is, the location where the instruction was issued; querying the operator's years of work, etc. Then, we assign weights to the above indicators, give them scores, and perform weighted calculations based on the weights and scores to obtain the execution subject risk score ExecSub_S.
[0090] S240: Perform risk assessment on historical data related to the IoT management instruction to obtain a risk score for the historical data of the IoT management instruction.
[0091] This embodiment can query the records of the same type of instructions at the same station in the past year from the historical database, count the abnormal rate (such as the number of executions, the number of abnormalities, the consequences of the abnormality), the type of abnormality, the severity, query the unique identifier of the abnormal instruction device (such as whether it matches the current device), query the equipment maintenance status, and check the current equipment status. Then, each abnormal result is classified and counted, the influencing factors and severity of its type are extracted, and the abnormal results are weighted to obtain the risk score HisD_S for the historical data assessment of the instruction.
[0092] S250: Calculate a comprehensive evaluation result of the IoT management instruction according to the content risk score, the environment risk score, the subject risk score, and the historical data risk score.
[0093] This step can quantitatively calculate the comprehensive assessment results based on the above multi-dimensional factors. For example, the comprehensive assessment results can be a complete comprehensive risk level CCRL (Command comprehensive risk level), that is, low risk, medium risk and high risk. Different weights are assigned to each dimension. Combined with the assessment results of the above four risk types, the final comprehensive assessment result can be obtained through weighted calculation, that is, CCR_l = InsC_S × InsC_W + Env_S × Env_W + ExecSub_S × ExecSub_W + HisD_S × HisD_W.
[0094] S260: Dynamically adjust the monitoring strategy of the IoT management platform according to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction, and collect monitoring results.
[0095] The second embodiment of the present invention provides a method for monitoring instructions. Based on a preset vocabulary, the content of the IoT management instruction is risk assessed to obtain the content risk score of the IoT management instruction; the target device environment corresponding to the IoT management instruction is risk assessed to obtain the environmental risk score of the IoT management instruction; the execution subject of the IoT management instruction is risk assessed to obtain the subject risk score of the IoT management instruction; the historical data related to the IoT management instruction is risk assessed to obtain the historical data risk score of the IoT management instruction; the comprehensive assessment result of the IoT management instruction is calculated according to the content risk score, the environmental risk score, the subject risk score and the historical data risk score; according to the comprehensive assessment result and the target device environment corresponding to the IoT management instruction, the monitoring strategy of the IoT management platform is dynamically adjusted, and the monitoring results are collected. By using this method, by performing multi-dimensional risk assessment on the IoT management instruction and quantifying each dimension, the comprehensive assessment result of the IoT management instruction can be calculated, thereby more accurately assessing the risk.
[0096] It can be considered that traditional instruction monitoring methods are difficult to cope with a large number of instructions. The monitoring strategy is fixed and the granularity is coarse, and it is impossible to perform differentiated monitoring for different risk levels. The monitoring results are separated from the risk assessment, and the two are difficult to optimize each other. In addition, the monitoring results of the instruction execution process are not intuitive.
[0097] In order to improve the security and reliability of the State Grid Internet of Things management platform, enhance the operational level, ensure the transmission quality, refine the management execution links, and improve the overall service quality, the present invention proposes an instruction monitoring method, which can realize the full-process monitoring of the instructions of the Internet of Things management platform. Its technical features mainly include: automatic assessment of comprehensive risk of instructions, adaptive instruction monitoring and visualization of instruction life cycle, a total of three parts.
[0098] Figure 4 is a schematic diagram of an instruction monitoring method provided according to Embodiment 2 of the present invention, such as Figure 4 As shown, first of all, in order to realize the automated assessment of the risks of IoT management instructions, improve the security and reliability of instruction execution, and reduce the potential risks and losses of instruction execution, the comprehensive risks of instructions can be automatically assessed based on the hidden danger vocabulary, mainly combining the four aspects of instruction content risk, physical and network environment risk, execution subject risk, and historical data risk. By automatically performing quantitative weighted calculation on each indicator, the comprehensive risk level of the instruction can be obtained.
[0099] in, Figure 5 is a structural diagram of a risk assessment provided according to the second embodiment of the present invention, such as Figure 5As shown, the risk indicator parameters corresponding to instruction content risk, physical and network environment risk, execution subject risk and historical data risk are respectively displayed. For example, instruction content risk may include instruction object, and execution subject risk may include parameters such as account authority.
[0100] Then, in order to improve the security response efficiency of instruction execution, the monitoring strategy can be dynamically adjusted according to the calculated comprehensive risk level of the instruction, the monitoring measures can be matched by risk level, the environmental changes can be monitored in real time, and the instruction execution process and results can be archived for evaluating instruction risks, which mainly includes defining monitoring strategies, changing risk level assessments, adjusting monitoring strategy levels, adjusting monitoring strategies, and collecting monitoring results.
[0101] Finally, the instruction life cycle can be visualized to intuitively reflect the risk points of instructions in each link, and help users quickly understand and analyze the state changes and processes of instructions in the system. At the same time, it shows the evaluation results and optimization effects of the model, which is easy to understand and monitor for decision-making reference.
[0102] From the above description, it can be found that the instruction monitoring method provided in the embodiment of the present invention can realize automatic assessment of the comprehensive risk of instructions by combining instruction content, physical and network environment, execution subject, and historical data, reduce manual participation, and reduce human operational errors, thereby improving the security and reliability of instruction execution and reducing the potential risks of instruction execution.
[0103] At the same time, it supports adaptive adjustment of instruction monitoring strategies of different granularities based on instruction risk levels, targeted monitoring of high-risk links, and reduction of physical resource occupancy under low-risk conditions. By collecting monitoring results and feeding them back to optimize the instruction risk assessment model, closed-loop mutual optimization of monitoring and evaluation is achieved.
[0104] In addition, it is also possible to convert the instruction life cycle into a visual flow chart, update the indicator risk level of the monitoring indicators in real time, intuitively reflect the risk points of the instructions in each link, and fully automate the monitoring process, greatly improving the monitoring efficiency and level.
[0105] Embodiment 3
[0106] Figure 6 1 is a schematic diagram of the structure of an instruction monitoring device provided according to Embodiment 3 of the present invention. Figure 6 As shown, the device comprises:
[0107] A risk assessment module 310, configured to perform risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, wherein the IoT management instruction is used to manage the IoT management platform;
[0108] The dynamic adjustment module 320 is used to dynamically adjust the monitoring strategy of the Internet of Things management platform according to the comprehensive evaluation result and the target device environment corresponding to the Internet of Things management instruction, and collect monitoring results.
[0109] The third embodiment of the present invention provides an instruction monitoring device, which uses a risk assessment module to perform risk assessment on IoT management instructions based on a risk assessment model to obtain a comprehensive assessment result of the IoT management instructions, and the IoT management instructions are used to manage the IoT management platform; the dynamic adjustment module dynamically adjusts the monitoring strategy of the IoT management platform according to the comprehensive assessment result and the target device environment corresponding to the IoT management instruction, and collects the monitoring results. By using this device, the IoT management instructions are risk assessed based on the risk assessment model to obtain a comprehensive assessment result, which can realize automatic evaluation of IoT management instructions, reduce manual participation, and improve the security and reliability of instruction monitoring. At the same time, the monitoring strategy of the IoT management platform is dynamically adjusted according to the comprehensive assessment result and the target device environment corresponding to the IoT management instruction, so as to realize adaptive adjustment of the monitoring strategy and effectively improve the efficiency of monitoring.
[0110] Optional risk assessment modules include:
[0111] A first risk assessment unit, configured to perform a risk assessment on the content of the IoT management instruction based on a preset vocabulary to obtain a content risk score of the IoT management instruction;
[0112] A second risk assessment unit, configured to perform a risk assessment on a target device environment corresponding to the IoT management instruction to obtain an environmental risk score for the IoT management instruction;
[0113] A third risk assessment unit, configured to perform a risk assessment on an execution subject of the IoT management instruction to obtain a risk score of the execution subject of the IoT management instruction;
[0114] A fourth risk assessment unit, configured to perform risk assessment on historical data related to the IoT management instruction to obtain a risk score for the historical data of the IoT management instruction;
[0115] A calculation unit is used to calculate a comprehensive evaluation result of the IoT management instruction based on the content risk score, the environment risk score, the subject risk score and the historical data risk score.
[0116] Optionally, the first risk assessment unit is specifically used to:
[0117] Performing semantic analysis on the IoT management instruction to obtain at least one instruction vocabulary of the IoT management instruction;
[0118] For each instruction vocabulary, determining a vocabulary weight and a vocabulary risk score of the instruction vocabulary based on a preset vocabulary table;
[0119] The content risk score of the IoT management instruction is calculated based on the vocabulary weight and vocabulary risk score of each instruction vocabulary.
[0120] Optionally, the second risk assessment unit is specifically used to:
[0121] Obtaining environmental indicators of a target device corresponding to an IoT management instruction, wherein the environmental indicators include physical environmental indicators and network environmental indicators;
[0122] The physical environment indicator and the network environment indicator are weightedly calculated to obtain an environmental risk score of the IoT management instruction.
[0123] Optionally, the dynamic adjustment module is specifically used for:
[0124] Determine an initial monitoring strategy corresponding to the comprehensive evaluation result based on a preset monitoring strategy;
[0125] Real-time perception of whether the target device environment has changed, and obtaining a perception result;
[0126] If the perception result is that the target device environment has not changed, then the initial monitoring strategy remains unchanged;
[0127] If the perception result is that the target device environment has changed, then return to the step of performing risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, obtain a re-evaluated comprehensive assessment result, and adjust the monitoring strategy of the IoT management platform according to the re-evaluated comprehensive assessment result.
[0128] Optionally, the instruction monitoring device provided in Embodiment 3 of the present invention further includes at least one of the following:
[0129] An optimization module, configured to optimize the model parameters of the risk assessment model based on the monitoring results after the monitoring results are collected;
[0130] An adjustment module, configured to adjust the monitoring indicators of a preset monitoring strategy based on the monitoring results after the monitoring results are collected;
[0131] The vocabulary updating module is used to update the preset vocabulary based on the monitoring results after the monitoring results are collected.
[0132] Optionally, the third embodiment of the present invention provides an instruction monitoring device, further comprising:
[0133] A creation module, used to create a visual flowchart of the IoT management instruction throughout its entire life cycle, wherein the visual flowchart is embedded with target monitoring indicators and risk labels corresponding to the target monitoring indicators at each life cycle stage;
[0134] The label update module is used to update the risk label of the target monitoring indicator in real time based on the execution status change of the IoT management instruction in the current life cycle stage.
[0135] The instruction monitoring device provided in the embodiment of the present invention can execute the instruction monitoring method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0136] Embodiment 4
[0137] Figure 7 is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0138] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0139] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0140] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the instruction monitoring method.
[0141] In some embodiments, the instruction monitoring method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the instruction monitoring method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the instruction monitoring method in any other appropriate manner (e.g., by means of firmware).
[0142] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0144] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0145] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0146] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0147] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0148] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0149] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A command monitoring method, characterized in that: The method comprises: Performing risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, wherein the IoT management instruction is used to manage the IoT management platform; Dynamically adjust the monitoring strategy of the IoT management platform according to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction, and collect monitoring results; The risk assessment of the IoT management instruction is performed based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, including: Performing a risk assessment on the content of the IoT management instruction based on a preset vocabulary to obtain a content risk score of the IoT management instruction; Performing a risk assessment on the target device environment corresponding to the IoT management instruction to obtain an environmental risk score for the IoT management instruction; Conducting risk assessment on the subject executing the IoT management instruction to obtain a risk score for the subject of the IoT management instruction; Performing risk assessment on historical data related to the IoT management instruction to obtain a risk score for the historical data of the IoT management instruction; A comprehensive evaluation result of the IoT management instruction is calculated based on the content risk score, the environment risk score, the subject risk score and the historical data risk score.
2. The method according to claim 1, characterized in that The performing risk assessment on the content of the IoT management instruction based on the preset vocabulary to obtain the content risk score of the IoT management instruction includes: Performing semantic analysis on the IoT management instruction to obtain at least one instruction vocabulary of the IoT management instruction; For each instruction vocabulary, determining a vocabulary weight and a vocabulary risk score of the instruction vocabulary based on a preset vocabulary table; The content risk score of the IoT management instruction is calculated based on the vocabulary weight and vocabulary risk score of each instruction vocabulary.
3. The method according to claim 1, characterized in that The risk assessment of the target device environment corresponding to the IoT management instruction to obtain the environmental risk score of the IoT management instruction includes: Obtaining environmental indicators of a target device corresponding to an IoT management instruction, wherein the environmental indicators include physical environmental indicators and network environmental indicators; The physical environment indicator and the network environment indicator are weightedly calculated to obtain an environmental risk score of the IoT management instruction.
4. The method according to claim 1, characterized in that: The dynamically adjusting the monitoring strategy of the IoT management platform according to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction includes: Determine an initial monitoring strategy corresponding to the comprehensive evaluation result based on a preset monitoring strategy; Real-time perception of whether the target device environment has changed, and obtaining a perception result; If the perception result is that the target device environment has not changed, then the initial monitoring strategy remains unchanged; If the perception result is that the target device environment has changed, then return to the step of performing risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, obtain a re-evaluated comprehensive assessment result, and adjust the monitoring strategy of the IoT management platform according to the re-evaluated comprehensive assessment result.
5. The method according to claim 1, characterized in that After collecting the monitoring results, the method further includes at least one of the following: Optimizing model parameters of the risk assessment model based on the monitoring results; Adjust the monitoring indicators of the preset monitoring strategy based on the monitoring results; The preset vocabulary is updated based on the monitoring result.
6. The method according to claim 1, characterized in that Also includes: Creating a visual flowchart of the IoT management instruction throughout its entire life cycle, wherein the visual flowchart is embedded with target monitoring indicators and risk labels corresponding to the target monitoring indicators at each life cycle stage; The risk label of the target monitoring indicator is updated in real time based on the execution status change of the IoT management instruction in the current life cycle stage.
7. An instruction monitoring device, characterized in that: The device comprises: A risk assessment module, used to perform risk assessment on the IoT management instruction based on the risk assessment model to obtain a comprehensive assessment result of the IoT management instruction, wherein the IoT management instruction is used to manage the IoT management platform; A dynamic adjustment module, used to dynamically adjust the monitoring strategy of the IoT management platform according to the comprehensive evaluation result and the target device environment corresponding to the IoT management instruction, and collect monitoring results; The risk assessment module includes: A first risk assessment unit, configured to perform a risk assessment on the content of the IoT management instruction based on a preset vocabulary to obtain a content risk score of the IoT management instruction; A second risk assessment unit, configured to perform a risk assessment on a target device environment corresponding to the IoT management instruction to obtain an environmental risk score for the IoT management instruction; A third risk assessment unit, configured to perform a risk assessment on an execution subject of the IoT management instruction to obtain a risk score of the execution subject of the IoT management instruction; A fourth risk assessment unit, configured to perform risk assessment on historical data related to the IoT management instruction to obtain a risk score for the historical data of the IoT management instruction; A calculation unit is used to calculate a comprehensive evaluation result of the IoT management instruction based on the content risk score, the environment risk score, the subject risk score and the historical data risk score.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the instruction monitoring method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the instruction monitoring method according to any one of claims 1 to 6 when executed.
