Program situation awareness system, program version control method and program operation control method

By adopting a program situational awareness system in the substation, using the situational awareness device and the acquisition agent module for program version control and operation monitoring, the problem of insufficient safety prevention and control capabilities caused by the single program management technology of the substation is solved, and the safety of the power system is improved. stability.

CN119045871APending Publication Date: 2024-11-29GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411277369.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The program management and control technology of the substation is relatively single, resulting in poor safety prevention and control capabilities, and it is easy to introduce malicious codes or misconfigurations, affecting the safe operation of the power system.

Method used

The program situational awareness system is adopted, including the situational awareness device and the acquisition agent module. The situational awareness device stores the program information of each power equipment in the substation. The collection agent module is installed on the power equipment, and the version control and operation monitoring are carried out through encrypted connections to ensure the program's Run safely.

Benefits of technology

Through centralized version control and encrypted communication, avoid program version chaos, improve the network security level and security prevention and control capabilities of the substation, prevent malicious code and misconfiguration, and enhance the stability and security of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045871A_ABST
    Figure CN119045871A_ABST
Patent Text Reader

Abstract

The invention provides a program situation awareness system, a program version control method and a program operation control method. The program situation awareness system is composed of a situation awareness device and a plurality of collection agent modules. Wherein the situation awareness device is arranged in a transformer substation and stores program information in each piece of power equipment in the transformer substation; the acquisition agent module is installed in each power device of the transformer substation and is in encryption connection with the situation awareness device so as to ensure the communication security in the transformer substation. Therefore, the situation awareness device performs program version installation through the acquisition agent module in each power device, so that in-station program version chaos caused by automatic program upgrading of the power devices and influence on safe operation of a transformer substation are avoided through a centralized management and control mode. In addition, the situation awareness device can start and intercept programs which do not meet requirements through acquisition agent modules in the power devices, the management and control capability of the programs in the substation is further enhanced, and the safety prevention and control capability of the substation is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a program situation awareness system, a program version control and a program operation control method. Background Art

[0002] In the wave of intelligent transformation of the power industry, substations are key hubs of the power grid, and the management and release technology of programs in their internal power devices is particularly critical. With the rapid development of information technology, the device programs running in the power equipment in substations are becoming increasingly complex, involving multiple functional modules and communication protocols, which puts higher requirements on the management, release and security control of device programs.

[0003] However, the traditional substation program installation and upgrade mode is mostly carried out directly on the power equipment. This method is not only cumbersome to operate, but also very easy to introduce malicious code or misconfiguration during the operation, affecting the safe operation of the substation; for the effectively installed device program, it can be run at will, thereby increasing the vulnerability of the power system. In short, the current substation device program control technology is relatively simple, resulting in poor security prevention and control capabilities of the substation. Summary of the invention

[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defect that the device program control technology of the substation in the prior art is relatively simple, resulting in poor safety control capabilities of the substation.

[0005] The present application provides a program situation awareness system, the system comprising a situation awareness device and a collection agent module;

[0006] The situation awareness device is arranged in the substation, and pre-stores program information of device programs in various power equipment in the substation, and is used to perform version control on the device programs in the substation;

[0007] The acquisition agent module is installed on the power equipment in the substation and is used to control the safe operation of the device program in the power equipment;

[0008] Wherein, the situation awareness device is encryptedly connected to the collection agent module of each power equipment in the substation.

[0009] The present application also provides a program version control method, which is applied to the situation awareness device of the program situation awareness system in the above embodiment, and the method includes:

[0010] When receiving a program publishing task issued by a user, determining a target version and a target device to be installed according to the program publishing task, and obtaining a program installation package of the target version;

[0011] Sending the program installation package to a collection agent module corresponding to the target device, so that the collection agent module installs the version of the device program in the target device based on the program installation package;

[0012] When receiving the program startup data of the device program sent by the acquisition agent module, performing version detection on the program startup data to obtain a detection result;

[0013] The detection result is returned to the acquisition agent module, so that the acquisition agent module intercepts or releases the program running of the device program according to the detection result.

[0014] Optionally, performing version detection on the program startup data to obtain a detection result includes:

[0015] Parsing the program startup data to obtain a program version and a program hash value;

[0016] Obtaining a preset hash value corresponding to the program version, and determining whether the program hash value is consistent with the preset hash value;

[0017] If yes, confirm that the test result is passed;

[0018] If not, the test result is confirmed as failed.

[0019] The present application also provides a program operation control method, which is applied to the collection agent module of the program situation awareness system in the above embodiment, and the method includes:

[0020] When receiving the program installation package sent by the situation awareness device, installing the program installation package into the corresponding power equipment to obtain the device program, and adding the device program into the monitoring directory;

[0021] Performing operation monitoring on each device program in the monitoring directory, when any device program is detected to be started, marking the started device program as a target program, and determining a program hash value and a program version of the target program;

[0022] Generate program startup data according to the program hash value and the program version, encrypt the program startup data and send it to the situation awareness device, and after receiving the detection result returned by the situation awareness device, intercept or release the program running of the target program according to the detection result.

[0023] Optionally, installing the program installation package into a corresponding electric power device to obtain a device program includes:

[0024] Determine the installation configuration of the program installation package, the installation configuration including the installation path and installation directory;

[0025] The program installation package is stored in the installation directory based on the installation path, and the program installation package is installed in the installation directory to obtain a device program.

[0026] Optionally, the monitoring the operation of each device program in the monitoring directory includes:

[0027] Obtaining the program running function of each device program in the monitoring directory, and adding a hook function before the program running function;

[0028] When the target program is started by triggering the program running function, the running information of the triggered device program is intercepted by using the hook function.

[0029] Optionally, determining the program hash value of the target program includes:

[0030] The running information of the target program is obtained, and a hash calculation is performed on the running information to obtain a program hash value of the target program.

[0031] Optionally, intercepting or releasing the target program from running according to the detection result includes:

[0032] When the detection result is passed, the target program is released for program operation;

[0033] When the detection result is failure, the target program is intercepted from running.

[0034] The present application also provides a storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the program version control method described in any one of the above embodiments, as well as the steps of any one of the program operation control methods described in the above embodiments.

[0035] The present application also provides a computer device, comprising: one or more processors, and a memory;

[0036] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the program version control method described in any one of the above embodiments and the steps of any one of the program execution control methods are performed.

[0037] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0038] The program situation awareness system, program version control and program operation control method provided by the present application are composed of a situation awareness device and multiple acquisition agent modules. Among them, the situation awareness device is directly set in the substation, which stores the program information in each power equipment in the substation, and is mainly responsible for centralized program version release control of the substation to improve the network security level in the substation; and the acquisition agent module is installed in each power equipment in the substation, which is mainly responsible for the safe operation of the program in the corresponding power equipment. It is also encrypted with the situation awareness device to ensure the communication security in the substation. In detail, the situation awareness device can install or upgrade the program through the acquisition agent module in each power equipment, so as to avoid the power equipment self-upgrading the program to cause confusion in the program version in the station, and affect the safe operation of the substation through centralized control. In addition, the situation awareness device can also intercept the startup of programs that do not meet the requirements through the acquisition agent module in each power equipment, further strengthen the control ability of the program in the station, and thus improve the safety prevention and control ability of the substation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0040] Figure 1 A schematic diagram of the structure of a program situation awareness system provided in an embodiment of the present application;

[0041] Figure 2 A scenario application diagram of a program situation awareness system provided in an embodiment of the present application;

[0042] Figure 3 A flowchart of a program version control method provided in an embodiment of the present application;

[0043] Figure 4 A flowchart of a program operation control method provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] The traditional substation program installation and upgrade mode is mostly carried out directly on the power equipment. This method is not only cumbersome to operate, but also very easy to introduce malicious code or misconfiguration during the operation, affecting the safe operation of the substation; for the effectively installed programs, they can be run at will, thereby increasing the vulnerability of the power system. In short, the current substation program control technology is relatively simple, resulting in poor security prevention and control capabilities of the substation.

[0047] Based on this, this application proposes the following solution, see below for details:

[0048] In one embodiment, Figure 1 As shown, Figure 1 A schematic diagram of the structure of a program situation awareness system provided in an embodiment of the present application; the present application provides a program situation awareness system, including a situation awareness device and a collection agent module; specifically including the following:

[0049] The situation awareness device is arranged in a substation, and pre-stores program information of device programs in various power equipment in the substation, and is used to perform version control on the device programs in the substation.

[0050] The acquisition agent module is installed on the power equipment in the substation and is used to manage and control the safe operation of the device program in the power equipment.

[0051] Wherein, the situation awareness device is encryptedly connected to the collection agent module of each power equipment in the substation.

[0052] In this embodiment, Figure 2 As shown, Figure 2 A scenario application diagram of a program situation awareness system provided in an embodiment of the present application; Figure 2 In the present invention, the program situation awareness system can be directly applied to the substation. Specifically, the program situation awareness system is composed of a situation awareness device and multiple acquisition agent modules. Among them, the situation awareness device can be directly set in the substation, and the acquisition agent module can be installed in the power equipment in the substation. In addition, the power equipment is also installed with multiple device programs for realizing the functions of the equipment. In this way, the situation awareness device can uniformly control the device programs on each power equipment through the acquisition agent module on the power equipment, thereby improving the safety prevention and control capabilities of the substation.

[0053] It can be understood that the power equipment in which the acquisition agent module can be installed in this application can be an automation device in a substation. The automation device here refers to a device that can realize the automation, monitoring, control and communication functions of the substation operation, which can include a telecontrol device, a measurement and control device, etc. The device program refers to the software installed on the hardware equipment such as the telecontrol device and the measurement and control device, such as the device operation program, the dynamic library, etc., which is used to realize the various functions of the power equipment, which can be data collection, data processing, communication protocol conversion, control logic implementation, etc. Therefore, through the collaborative cooperation of the power equipment and its device program, this application can realize the comprehensive monitoring, control and optimization of the substation operation.

[0054] It should be noted that the situational awareness device stores the program information of the device programs on each power device, including program installation packages, program versions, program hash values, etc. The program installation package here refers to all the files required for the installation of the device program; the program version refers to the different iterative versions formed after the device program has been modified and improved at different stages during the development process. Each version represents the state of the software at a certain moment, including new functions, fixed vulnerabilities, improved performance, etc. Therefore, the situational awareness device can perform version control on each device program in the substation based on the program version to avoid the confusion of the device program versions in each power device, resulting in poor security prevention and control capabilities of the substation; the program hash value refers to a fixed-length string obtained by encrypting the program file of the device program through a hash algorithm. Since the hash algorithm is unidirectional and unique, that is, different inputs are almost impossible to get the same output, and the input cannot be deduced from the output. Therefore, this application can improve the unified control capabilities of the situational awareness device for the device program by associating the program files of different versions of the device program with their hash values.

[0055] Specifically, the user can pre-store the program information of the device program that needs to be installed in the power equipment in the substation in the situation awareness device, so that the situation awareness device can, based on the stored program information, perform centralized version control on the device program of each power equipment in the substation through the collection agent program, thereby improving the safety prevention and control capabilities of the substation; in addition, the collection agent program can also intercept the relevant operation data of the device program when it starts running in the power system and send it to the situation awareness device, so as to achieve the control of the safe operation of the device program with the assistance of the situation awareness device, thereby further improving the safety prevention and control capabilities of the substation.

[0056] Furthermore, in the program situation awareness system, the situation awareness device can use an encrypted communication protocol for data transmission. The present application can use the transport layer security protocol here, which is a protocol based on asymmetric encryption, which can effectively prevent data from being stolen or tampered with during transmission; in this encrypted communication mechanism, a set of private keys can be pre-built into the situation awareness device, and the acquisition agent program stores the corresponding public key. This public key is public and can be used to encrypt data and verify the authenticity of the signature data sent from the situation awareness device, so that the communication between the acquisition agent program and the situation awareness device can enter the encryption mode, providing protection for the safety control of the substation.

[0057] In the above embodiment, the program situation awareness system is composed of a situation awareness device and a plurality of acquisition agent modules. Among them, the situation awareness device is directly set in the substation, which stores the program information in each power equipment in the substation, and is mainly responsible for the centralized program version release control of the substation to improve the network security level in the substation; and the acquisition agent module is installed in each power equipment in the substation, which is mainly responsible for the safe operation of the program in the corresponding power equipment. It is also encrypted with the situation awareness device to ensure the communication security in the substation. In detail, the situation awareness device can install or upgrade the program through the acquisition agent module in each power equipment, so as to avoid the power equipment self-upgrading the program to cause the confusion of the program version in the station through centralized control, which affects the safe operation of the substation. In addition, the situation awareness device can also intercept the startup of the program that does not meet the requirements through the acquisition agent module in each power equipment, further strengthen the control ability of the program in the station, and thus improve the safety prevention and control ability of the substation.

[0058] In one embodiment, Figure 3 As shown, Figure 3 A flowchart of a program version control method provided in an embodiment of the present application; the present application also provides a program version control method, which is applied to a situation awareness device of a program situation awareness system in the above embodiment, and the method specifically includes the following:

[0059] S110: When a program publishing task issued by a user is received, a target version and a target device to be installed are determined according to the program publishing task, and a program installation package of the target version is obtained.

[0060] S120: Send the program installation package to the acquisition agent module corresponding to the target device, so that the acquisition agent module installs the version of the device program in the target device based on the program installation package.

[0061] S130: When receiving the program startup data of the device program sent by the acquisition agent module, perform version detection on the program startup data to obtain a detection result.

[0062] S140: Return the detection result to the acquisition agent module, so that the acquisition agent module intercepts or releases the program running of the device program according to the detection result.

[0063] In this embodiment, after the situation awareness device receives the program release task issued by the user, it can determine the target version and target device to be installed according to the program release task, and obtain the program installation package of the target version, and then the situation awareness device can send the program installation package to the acquisition agent module corresponding to the target device, so that the acquisition agent module can install the version of the device program in the target device based on the program installation package. In addition, after the situation awareness device receives the program startup data of the device program sent by the acquisition agent module, it can also perform version detection on the program startup data, obtain the detection result, and return the detection result to the acquisition agent module, so that the acquisition agent module can intercept or release the program operation of the device program according to the detection result.

[0064] Among them, the program release task refers to the specific instructions issued when the user needs to deploy or update the device program in the substation. Through this program release task, the situation awareness device can uniformly deploy or upgrade the device program in the substation according to user needs, thereby improving the safety prevention and control capabilities of the substation.

[0065] Specifically, when the situation awareness device receives a program release task issued by a user, it can first parse the task to determine the target version to be installed and the corresponding target device specified in the program release task, and then obtain the program installation package of the target version from the repository or other specified location, and verify the integrity and validity of the installation package to prevent any potential installation errors or system vulnerabilities. After confirming that the program installation package is correct, the situation awareness device can send the program installation package to the acquisition agent module corresponding to the target device through the intra-station network, so that the acquisition agent module is responsible for receiving the installation package and performing specific version installation operations in the target device.

[0066] Furthermore, when the situational awareness device receives the program startup data of the device program sent by the acquisition agent module, it can first perform detailed analysis and processing on these data to extract key information from the program startup data, and compare and verify these key information with the expected target version, and then generate detection results, so that the acquisition agent module can intercept or release the program running of the device program according to the detection results.

[0067] To elaborate, if the test results show that the program version meets the requirements and the startup status is normal, the acquisition agent module will release the operation of the device program and allow the program to continue to run normally, thereby ensuring that the power equipment can work as expected and will not affect the normal operation of the substation due to unnecessary obstructions; if the test results show that the program version does not match or the startup status is abnormal, the acquisition agent module can immediately take interception measures to prevent the further operation of the device program. Through such an interception mechanism, potential security risks can be effectively prevented, such as the program version is too old, the version is tampered with, or the program is started in an unexpected environment, thereby ensuring the safety and stability of the substation.

[0068] In one embodiment, performing version detection on the program startup data in step S130 to obtain the detection result may include:

[0069] S131: Parse the program startup data to obtain the program version and program hash value.

[0070] S132: Obtain a preset hash value corresponding to the program version, and determine whether the program hash value is consistent with the preset hash value.

[0071] S133: When the program hash value is consistent with the preset hash value, confirm that the detection result is passed.

[0072] S134: When the program hash value is inconsistent with the preset hash value, confirm that the detection result is failed.

[0073] In this embodiment, after receiving the program startup data, the situation awareness device can first parse the program startup data to obtain the program version and program hash value of the device program, and then obtain the preset hash value corresponding to the program version, and determine whether the program hash value is consistent with the preset hash value; if they are consistent, the situation awareness device can confirm that the detection result is passed; if they are inconsistent, the situation awareness device can confirm that the detection result is failed.

[0074] It can be understood that the program hash value is the result of a digest algorithm that verifies the uniqueness of the device program. It can ensure the integrity and non-tamperability of the program. Therefore, the program hash value obtained by parsing is an important basis for detecting whether the device program has been modified or damaged. After parsing the startup data and obtaining the program version number and program hash value, the situational awareness device can retrieve the preset hash value corresponding to the program version from the pre-configured repository or other specified location; the preset hash value here is generated and stored based on the original content of the device program when deploying or publishing a specified version of the device program. This hash value can be regarded as the identity of the device program under the program version; therefore, this application can ensure the security and reliability of the device program at startup through the hash verification mechanism, thereby improving the safety prevention and control capabilities of the substation.

[0075] In one embodiment, Figure 4 As shown, Figure 4 A flowchart of a program operation control method provided in an embodiment of the present application; the present application also provides a program operation control method, which is applied to the collection agent module of the program situation awareness system in the above embodiment, and the method specifically includes the following:

[0076] S150: When receiving the program installation package sent by the situation awareness device, the program installation package is installed in the corresponding power equipment to obtain the device program, and the device program is added to the monitoring directory.

[0077] S160: Monitor the operation of each device program in the monitoring directory. When it is detected that any device program is started, mark the started device program as a target program, and determine the program hash value and program version of the target program.

[0078] S170: Generate program startup data according to the program hash value and program version, encrypt the program startup data and send it to the situation awareness device, and after receiving the detection result returned by the situation awareness device, intercept or release the program running of the target program according to the detection result.

[0079] In this embodiment, when the acquisition agent module receives the program installation package sent by the situation awareness device, it can install the program installation package into the corresponding power equipment to obtain the device program, and then add the device program to the monitoring directory, and monitor the operation of each device program in the monitoring directory in real time. When it is detected that any device program is started, the acquisition agent module can mark the started device program as a target program, and determine the program hash value and program version of the target program. Then, the program startup data can be generated according to the program hash value and program version, so as to encrypt the program startup data and send it to the situation awareness device, and after receiving the detection result returned by the situation awareness device, the target program is intercepted or released according to the detection result, so as to achieve the control of the safe operation of the device program.

[0080] The monitoring directory refers to the designated file directory used by the acquisition agent module to monitor the operation of installed device programs. Through this monitoring directory, the acquisition agent module uniformly monitors each device program in the monitoring directory and can capture the program's operating status in real time. When any device program is started in the monitoring directory, the acquisition agent module can immediately detect the change and quickly take subsequent actions to improve the reliability and safety of the substation.

[0081] Specifically, the acquisition agent module installs the program installation package into the corresponding power equipment. After obtaining the device program, the installation result can also be verified to ensure that the device program is installed normally and can run normally. Once the device program is successfully installed, the acquisition agent module can add it to a special monitoring directory to uniformly manage and monitor all device programs installed in the power equipment in real time. Then, the acquisition agent module can continuously monitor the operation of each device program in the monitoring directory. The monitoring process is real-time and aims to capture the startup activities of any device program. When a device program is detected to be started, the acquisition agent module will extract the key information of the target program, including its program hash value and program version, and then generate the program startup data of the corresponding device program, and send the program startup data to the situational awareness device for security verification, so that the startup of device programs that do not meet the requirements can be intercepted, thereby improving the security prevention and control capabilities of the substation.

[0082] It should be noted that the trust source of the acquisition agent module is the situation awareness device, that is, its data source is completely dependent on the situation awareness device. Whether it is the installation of the device program or the startup verification of the device program, the acquisition agent module relies on the authoritative data provided by the situation awareness device to make decisions, thereby ensuring the centralization and unification of the device program management in the substation. As the only trust source point of the acquisition agent module, the situation awareness device ensures the consistency and security of the program information of the entire substation, so that all device program management operations can be traced back to the same authoritative source, thereby reducing security risks and ensuring the stability and reliability of the substation.

[0083] In one embodiment, the step S150 of installing the program installation package into the corresponding power device to obtain the device program may include:

[0084] S151: Determine the installation configuration of the program installation package, where the installation configuration includes an installation path and an installation directory.

[0085] S152: storing the program installation package in the installation directory based on the installation path, and installing the program installation package in the installation directory to obtain the device program.

[0086] In this embodiment, when installing the device program, the acquisition agent module can first determine the installation configuration of the program installation package, which includes an installation path and an installation directory. Then, based on the installation path, the program installation package can be stored in the installation directory, and the program installation package can be installed in the installation directory to obtain the device program.

[0087] Among them, the installation path refers to the complete file path of the program installation package in the power equipment, which indicates a clear installation location for the program installation package; and the installation directory refers to a specific folder or directory in the installation path, which can be regarded as a subset or end point of the program installation path. It is a location in the installation path specifically used to store and decompress the program installation package.

[0088] Specifically, after the installation path and installation directory are clarified, the acquisition agent module can store the program installation package in the predetermined installation directory based on these installation configurations; then, the acquisition agent module can perform installation operations in the installation directory based on the program installation package. The operation process may include decompressing the program package, configuring the program running environment, checking dependencies, and performing various necessary system settings, which will not be described in detail here. After the installation is completed, a complete and executable device program will be generated in the installation directory, which can be started and run directly in the power equipment.

[0089] In one embodiment, the operation monitoring of each device program in the monitoring directory in step S160 may include:

[0090] S161: Obtain the program running function of each device program in the monitoring directory, and add a hook function before the program running function.

[0091] S162: When the device program is started by triggering the program running function, the running information of the triggered device program is intercepted by using the hook function.

[0092] In this embodiment, before monitoring the operation of each device program in the monitoring directory, the acquisition agent module can obtain the program running function of each device program in the monitoring directory and add a hook function before the program running function. In this way, when the power equipment triggers the start of the device program through the program running function, the acquisition agent module can use the hook function to intercept the running information of the triggered device program to realize real-time monitoring of the startup and operation of each device program in the monitoring directory.

[0093] Among them, the program running function refers to the core function responsible for starting or executing a specific task in the power equipment. It is the entry point for the device program execution and is responsible for switching the device program from a static state to a running state. When a device program in the power equipment is triggered, the program running function will be called to start the operation of the device program. The hook function can be inserted into the program's running process before or after a specific event or function is executed, and is mainly used to intercept, modify or extend specific events or messages in the program.

[0094] Therefore, after the present application inserts a hook function before the program running function in the power equipment, the hook function can directly intercept the startup information of the device program when the program running function is called without changing the original function of the program running function, so as to capture the running status, parameters, environment and other running data of the device program, thereby realizing real-time monitoring of each device program and enhancing the security and controllability of the device program.

[0095] In one embodiment, determining the program hash value of the target program in step S160 may include:

[0096] S163: Obtain the running information of the target program, and perform hash calculation on the running information to obtain a program hash value of the target program.

[0097] In this embodiment, when determining the program hash value of the target program, the acquisition agent module may first obtain the running information of the target program, and then perform hash calculation on the running information, thereby obtaining the program hash value of the target program.

[0098] It is understood that hash calculation refers to a process of converting input operation information into a hash value of fixed length using a hash algorithm, such as SHA-256. Ultimately, the result of the hash calculation is the program hash value of the target program, which is the unique identifier of the current state of the target program. It can be used to verify the integrity and consistency of the device program and ensure that the device program has not been tampered with or interfered with by external factors during operation.

[0099] In one embodiment, in step S170, intercepting or releasing the target program according to the detection result may include:

[0100] S171: When the detection result is passed, the target program is released for program execution.

[0101] S172: When the detection result is failure, the target program is intercepted from running.

[0102] In this embodiment, the acquisition agent module can also intercept or release the target program according to the detection result. The detection result can be divided into pass and fail; when the detection result is pass, the acquisition agent module can release the target program; when the detection result is fail, the acquisition agent module can intercept the target program.

[0103] Specifically, when the test result is passed, it indicates that the target program's running information is consistent with the expected state, that is, the program has not been tampered with, has not been maliciously attacked, and meets the security standards. At this time, the acquisition agent module can release the target program to run, allowing the target program to continue to perform its tasks without taking other intervention measures. When the test result is failed, it indicates that there is an abnormality in the target program's running information, such as the program has been tampered with or there are other security risks. At this time, the acquisition agent module can intercept the target program's program running, prevent the target program from continuing to run, and prevent security threats to the overall operation of the power equipment.

[0104] In one embodiment, the present application also provides a storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the program version control method and the program operation control method as described in any of the above embodiments.

[0105] In one embodiment, the present application also provides a computer device, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the program version control method and the program operation control method as described in any of the above embodiments.

[0106] Indicatively, Figure 5 As shown, Figure 5 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 5 , the computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301, for storing instructions that can be executed by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to execute the program version control method and the program operation control method of any of the above embodiments.

[0107] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.

[0108] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0109] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0110] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0111] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A program situation awareness system, characterized in that: The system includes a situation awareness device and a collection agent module; The situation awareness device is arranged in the substation, and pre-stores program information of device programs in various power equipment in the substation, and is used to perform version control on the device programs in the substation; The acquisition agent module is installed on the power equipment in the substation and is used to control the safe operation of the device program in the power equipment; Wherein, the situation awareness device is encryptedly connected to the collection agent module of each power equipment in the substation.

2. A program version control method, applied to the situation awareness device of the program situation awareness system described in claim 1, characterized in that: The method comprises: When receiving a program publishing task issued by a user, determining a target version and a target device to be installed according to the program publishing task, and obtaining a program installation package of the target version; Sending the program installation package to a collection agent module corresponding to the target device, so that the collection agent module installs the version of the device program in the target device based on the program installation package; When receiving the program startup data of the device program sent by the acquisition agent module, performing version detection on the program startup data to obtain a detection result; The detection result is returned to the acquisition agent module, so that the acquisition agent module intercepts or releases the program running of the device program according to the detection result.

3. The program version control method according to claim 2, characterized in that: The performing version detection on the program startup data to obtain the detection result includes: Parsing the program startup data to obtain a program version and a program hash value; Obtaining a preset hash value corresponding to the program version, and determining whether the program hash value is consistent with the preset hash value; If yes, confirm that the test result is passed; If not, the test result is confirmed as failed.

4. A program operation control method, applied to the acquisition agent module of the program situation awareness system described in claim 1, characterized in that: The method comprises: When receiving the program installation package sent by the situation awareness device, installing the program installation package into the corresponding power equipment to obtain the device program, and adding the device program into the monitoring directory; Performing operation monitoring on each device program in the monitoring directory, when any device program is detected to be started, marking the started device program as a target program, and determining a program hash value and a program version of the target program; Generate program startup data according to the program hash value and the program version, encrypt the program startup data and send it to the situation awareness device, and after receiving the detection result returned by the situation awareness device, intercept or release the program running of the target program according to the detection result.

5. The program operation control method according to claim 4, characterized in that: The step of installing the program installation package into the corresponding electric power equipment to obtain the device program includes: Determine the installation configuration of the program installation package, the installation configuration including the installation path and installation directory; The program installation package is stored in the installation directory based on the installation path, and the program installation package is installed in the installation directory to obtain a device program.

6. The program operation control method according to claim 4, characterized in that: The operation monitoring of each device program in the monitoring directory includes: Obtaining the program running function of each device program in the monitoring directory, and adding a hook function before the program running function; When the device program is started by triggering the program running function, the running information of the triggered device program is intercepted by using the hook function.

7. The program operation control method according to claim 4, characterized in that: Determining the program hash value of the target program includes: The running information of the target program is obtained, and a hash calculation is performed on the running information to obtain a program hash value of the target program.

8. The program operation control method according to claim 4, characterized in that: The intercepting or releasing the target program according to the detection result includes: When the detection result is passed, the target program is released for program operation; When the detection result is failure, the target program is intercepted from running.

9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to execute the program version control method as described in any one of claims 2 to 3, and the steps of the program operation control method as described in any one of claims 4 to 8.

10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the program version control method as described in any one of claims 2 to 3 and the steps of the program operation control method as described in any one of claims 4 to 8 are performed.