Embedded device trusted startup control method, system and equipment and storage medium

The MD5 algorithm is used to verify the characteristic values ​​of the embedded device startup program to ensure its integrity, solve the problem of insufficient security during the startup process of the substation device, and achieve safe and stable operation and abnormal monitoring of the embedded device.

CN118567263APending Publication Date: 2024-08-30NR ELECTRIC CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310187630.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Embedded devices in substations lack integrity verification during the startup process and are vulnerable to malicious program attacks. They are unable to monitor and control the startup process, resulting in an unsafe system operating environment.

Method used

The MD5 algorithm is used to calculate the characteristic value of the startup program and compared with the expected characteristic value. If it is inconsistent, the startup is terminated or continued, and the safe startup of the embedded device is ensured through the trusted startup control method and system.

Benefits of technology

It realizes the verification and control of the startup process of embedded devices, prevents malicious tampering, ensures the security and program integrity of the device, and provides audit means to monitor abnormal changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567263A
    Figure CN118567263A
Patent Text Reader

Abstract

The invention discloses a trusted startup control method, system and equipment for an embedded device and a storage medium, and the method comprises the steps: 1, reading a startup program when the embedded device is powered on and starts to start, and calculating a feature value of startup program data to obtain a calculated feature value; 2, comparing the calculated characteristic value with an expected characteristic value, and if the calculated characteristic value is consistent with the expected characteristic value, controlling the embedded device to start normally; if not, turning to step 3; and step 3, controlling the embedded device to normally start or stop starting according to a preset configuration strategy. According to the technical scheme, the existing verification-free, monitoring-free and control-free starting process of the embedded protection and telecontrol device can be improved into the active defense capability of automatic verification, monitoring and controllable safe starting, and safe and stable operation of the embedded device is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a safe startup management technology for embedded devices in transformer substations, in particular to a trusted startup control method, system, equipment and storage medium for embedded devices. Background Art

[0002] At present, the protection devices and automation devices of the substation protection and monitoring system are basically developed and implemented using embedded devices as the hardware platform. The startup process of the substation protection and monitoring device has the following deficiencies:

[0003] 1) The device does not check the integrity of the startup program when it is started, so there is a possibility that the startup program has been tampered with;

[0004] 2) When the device is powered on, it is vulnerable to attacks by pre-implanted malicious programs, resulting in an unsafe system operating environment;

[0005] 3) The startup process of the device cannot be monitored and controlled. If the startup program has been illegally modified or attacked, the startup process cannot be blocked and controlled.

[0006] Based on this, there is an urgent need for a technology that can monitor the startup process of the device, which leads to this case. Summary of the invention

[0007] The purpose of the present invention is to provide a trusted startup control method, system, equipment and storage medium for embedded devices, which can upgrade the existing unverified, unmonitored and uncontrolled startup process of embedded protection and remote control devices to an active defense capability of automatically verified, monitored and controllable safe startup, and support the safe and stable operation of embedded devices.

[0008] In order to achieve the above object, the solution of the present invention is:

[0009] A trusted startup control method for an embedded device comprises the following steps:

[0010] Step 1, when the embedded device is powered on and starts to start, read the startup program and calculate the characteristic value of the startup program data to obtain the calculated characteristic value;

[0011] Step 2, comparing the calculated eigenvalue with the expected eigenvalue, if the two are consistent, controlling the embedded device to start normally; if the two are inconsistent, go to step 3;

[0012] Step 3: According to the configuration strategy set in advance, control the embedded device to start normally or terminate the startup.

[0013] In the above step 1, when reading the startup program, the embedded device is controlled to suspend startup until step 2 or step 3 controls the embedded device to start normally or terminates startup.

[0014] In the above step 1, the characteristic value of the startup program data is calculated, including using the MD5 algorithm to perform a digest calculation on the startup program data to obtain the calculated characteristic value.

[0015] In the above step 2, when the calculated characteristic value is inconsistent with the expected characteristic value, the user is prompted that the verification failed; in the step 3, according to the pre-set configuration strategy, when the embedded device continues to start, the user is prompted that the verification failed but the execution continues.

[0016] A trusted startup control system for an embedded device, comprising:

[0017] A reading unit, used for reading a startup program when the embedded device is powered on and started;

[0018] The characteristic value calculation unit is used to calculate the characteristic value of the startup program data according to the startup program read by the reading unit, and send the calculated characteristic value to the verification unit;

[0019] A verification unit, used for comparing the calculated characteristic value with the expected characteristic value, and sending the comparison result to the control unit;

[0020] The control unit is used to perform different actions according to the comparison result of the verification unit; when the comparison result received by the control unit from the verification unit is that the calculated characteristic value is consistent with the expected characteristic value, the control unit will control the embedded device to start normally; when the comparison result received by the control unit from the verification unit is that the calculated characteristic value is inconsistent with the expected characteristic value, the control unit controls the embedded device to terminate the startup or start normally according to the pre-configured strategy.

[0021] When the embedded device is powered on and started, the control unit controls the reading unit to read the startup program and simultaneously controls the embedded device to pause starting.

[0022] The above-mentioned characteristic value calculation unit is used to calculate the characteristic value of the startup program data according to the startup program read by the reading unit, including that the characteristic value calculation unit uses the MD5 algorithm to perform a digest calculation on the startup program data to obtain the calculated characteristic value.

[0023] Also includes a prompt unit;

[0024] When the control unit receives the comparison result transmitted by the verification unit that the calculated characteristic value is inconsistent with the expected characteristic value, the control unit sends a first instruction to the prompt unit; when the control unit controls the embedded device to start normally according to the pre-configured strategy, the control unit sends a second instruction to the prompt unit;

[0025] The prompt unit is used to prompt that the verification fails when receiving the first instruction from the control unit; the prompt unit is also used to prompt that the verification fails but continues to be executed when receiving the second instruction from the control unit.

[0026] A trusted startup control device for an embedded device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the computer program, the steps of the trusted startup control method for an embedded device as described above are implemented.

[0027] A computer-readable storage medium stores a computer program; when the computer program is executed by a processor, the steps of the above-mentioned embedded device trusted startup control method are implemented.

[0028] After adopting the above scheme, through the application of this method, the startup process of embedded devices (such as remote control devices, protection devices, and measurement and control devices) can be verified and controlled to prevent the startup program from being maliciously tampered with, effectively ensure the security of the startup process of the embedded device and the integrity of the program, and monitor and discover abnormal changes in the startup program.

[0029] The present invention has the following beneficial effects:

[0030] 1. The method of the present invention can realize the startup process of the embedded protection device, the telecontrol device, and the measurement and control device to read and verify the startup program before loading and running, including the integrity of the startup program.

[0031] 2. The method of the present invention can monitor the startup process of the embedded device, record and store the startup program verification results, and provide an audit method for later use.

[0032] 3. The method of the present invention can detect whether the startup program has been illegally tampered with, avoid attacks by malicious programs, and ensure the security of the device startup process. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is the overall idea diagram of the present invention;

[0034] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0036] The present invention provides a trusted startup control method and control system for an embedded device, Figure 1 , the idea is:

[0037] S101, setting a trusted verification module, verifying the startup program when the embedded device is started, and entering process S102 or S103 according to the verification result;

[0038] S102, when the verification result of the trustworthy verification module is consistent with the expectation, the trustworthy verification module control device starts normally;

[0039] S103, when the verification result of the trustworthy verification module is inconsistent with the expectation, the trustworthy verification module gives a prompt;

[0040] Furthermore, the trusted verification module also selects, based on the pre-configuration:

[0041] S104, the trusted verification module terminates the startup process of the embedded device according to the pre-configuration; or,

[0042] S105, the trust verification module continues to start after being prompted according to the pre-configuration.

[0043] The embodiment of the present invention provides a trusted startup control method for an embedded device, Figure 2 , including the following steps:

[0044] Step S201, integrating a trusted verification module in an embedded device;

[0045] Step S202, the embedded device is powered on and starts to start;

[0046] Step S203, the trust verification module reads the startup program data through the integrated circuit of the embedded device;

[0047] Step S204, the trusted verification module verifies the read startup program and calculates the characteristic value of the startup program data;

[0048] Step S205, the trusted verification module compares the characteristic value of the startup program data calculated in step S204 with the expected characteristic value configured or collected in advance, and determines whether the verification result (calculated characteristic value) and the expected result (expected characteristic value) are consistent. If they are consistent, the process goes to step S206, and if they are inconsistent, the process goes to step S207; the collected expected characteristic value refers to the characteristic value calculated by the trusted verification module;

[0049] Step S206, when the verification result is consistent with the expected result, the trusted verification module controls the embedded device to start normally and continue to load the subsequent program to run; the program ends;

[0050] Step S207, when the verification result is inconsistent with the expected result, the trusted verification module prompts, through the LED light or the serial terminal human-machine interface printout, etc., indicating that the verification failed;

[0051] Step S208, the trust verification module obtains a pre-set configuration policy; the configuration policy includes parameters such as "whether to continue execution after verification failure" and "whether to perform audit records after verification failure";

[0052] Step S209, the trust verification module determines whether to terminate the operation or continue the operation according to the obtained configuration policy, and if it is terminated, the process goes to step S210, and if it is continued, the process goes to step S211;

[0053] Step S210, if the configuration policy is to terminate the operation when the verification fails, the trust verification module controls the termination of the operation and the program ends;

[0054] Step S211, if the configuration policy is to continue to run when the verification fails, the trusted verification module prompts "verification failed but still continue to execute", thereby informing the user that there is a certain risk, and then controls to continue loading and running subsequent programs.

[0055] As a preferred embodiment of the present invention, in step S203, the trusted verification module can control the operation of the CPU module by cutting off the power supply or resetting the CPU. The CPU module is allowed to start normally only after the trusted verification module verifies the startup program.

[0056] As a preferred embodiment of the present invention, in step S204, when verifying the read startup program, an algorithm such as MD5 can be used to perform a digest calculation on the startup program data to obtain a characteristic value of the startup program data.

[0057] As a preferred embodiment of the present invention, in step S207, when the verification result is inconsistent with the expected result, the prompt of the trusted verification module may be adopted but not limited to: 1) LED light prompt, such as green light indicates consistent results and red light indicates inconsistent results; 2) buzzer prompt, such as a prompt sound when the results are inconsistent; 3) serial terminal console output information for prompt.

[0058] As a preferred embodiment of the present invention, in step S207, when the verification result is inconsistent with the expected result, the trusted verification module will also generate an audit log to record the verification result of the startup process, including the startup time, verification result, expected result, and the control result of "termination" or "continue startup", etc., to provide an audit means for afterwards.

[0059] Based on the above overall idea, an embodiment of the present invention further provides an embedded device trusted startup control system, which can monitor the startup process of the embedded device by setting a trusted verification module; the trusted verification module includes:

[0060] A reading unit, used for reading startup program data when the embedded device is powered on and started;

[0061] The characteristic value calculation unit is used to calculate the characteristic value of the startup program data according to the startup program data read by the reading unit, and send the calculated characteristic value to the verification unit;

[0062] A verification unit, used to compare the calculated characteristic value calculated and transmitted by the characteristic value calculation unit with the expected characteristic value, and send the comparison result to the control unit; wherein the expected characteristic value refers to the characteristic value configured or collected in advance;

[0063] A control unit, for performing different actions according to the comparison result of the verification unit; when the control unit receives the comparison result transmitted by the verification unit that the calculated characteristic value is consistent with the expected characteristic value, the control unit will control the embedded device to start normally and continue to load the subsequent program to run; when the control unit receives the comparison result transmitted by the verification unit that the calculated characteristic value is inconsistent with the expected characteristic value, the control unit will send a first instruction to the prompt unit, and at the same time, the control unit will control the embedded device to terminate the operation or continue to load the subsequent program to run according to the pre-configured strategy, and send a second instruction to the prompt unit when controlling the embedded device to continue to load the subsequent program to run; and,

[0064] The prompt unit is used to, when receiving the first instruction from the control unit, use an LED light or a serial terminal human-machine interface printout to give a prompt, indicating that the verification has failed; the prompt unit is also used to, when receiving the second instruction from the control unit, use an LED light or a serial terminal human-machine interface printout to give a prompt, indicating that the verification has failed but continues to be executed, so as to inform the user that there is a certain risk.

[0065] As a preferred embodiment of the present invention, the trusted verification module is integrated into an embedded device, wherein the program reading function of the trusted verification module reads the startup program of the embedded device through the embedded device management mainboard, and the startup control function of the trusted verification module controls the startup process of the embedded device through the startup circuit of the embedded device.

[0066] An embodiment of the present invention further provides another trusted startup control device for an embedded device, comprising a processor and a memory, wherein the memory is configured to store a computer program that can be run on the processor.

[0067] Wherein, when the processor is configured to run a computer program, the method steps in the aforementioned embodiment are executed.

[0068] Of course, in actual application, the various components in the startup control device are coupled together through a bus system. It can be understood that the bus system is used to realize the connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.

[0069] In practical applications, the processor includes a field programmable gate array (FPGA), and the processor may be a central processing unit (CPU) or a digital signal processor (DSP). It is understandable that for different devices, the electronic device used to implement the function of the processor may be other, and the embodiment of the present invention does not specifically limit it.

[0070] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0071] In an exemplary embodiment, an embodiment of the present invention further provides a computer-readable storage medium for storing a computer program.

[0072] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present invention, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present invention. For the sake of brevity, they are not described here.

[0073] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0074] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention. The device type is not limited to protection devices, telecontrol devices, and measurement and control devices, and is also applicable to other embedded devices, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A trusted startup control method for an embedded device, characterized in that The steps include: Step 1, when the embedded device is powered on and starts to start, read the startup program and calculate the characteristic value of the startup program data to obtain the calculated characteristic value; Step 2, comparing the calculated eigenvalue with the expected eigenvalue, if the two are consistent, controlling the embedded device to start normally; if the two are inconsistent, go to step 3; Step 3: According to the configuration strategy set in advance, control the embedded device to start normally or terminate the startup.

2. The method for controlling the trusted startup of an embedded device as claimed in claim 1, wherein: In step 1, when reading the startup program, the embedded device is controlled to suspend startup until step 2 or step 3 controls the embedded device to start normally or terminates startup.

3. The method for controlling the trusted startup of an embedded device as claimed in claim 1, wherein: In the step 1, the characteristic value of the startup program data is calculated, including using the MD5 algorithm to perform a digest calculation on the startup program data to obtain the calculated characteristic value.

4. The method for controlling the trusted startup of an embedded device as claimed in claim 1, wherein: In step 2, when the calculated characteristic value is inconsistent with the expected characteristic value, the user is prompted that the verification has failed; in step 3, according to the pre-set configuration policy, when the embedded device is controlled to continue to start, the user is prompted that the verification has failed but the execution continues.

5. A trusted startup control system for an embedded device, characterized in that: include, A reading unit, used for reading a startup program when the embedded device is powered on and started; The characteristic value calculation unit is used to calculate the characteristic value of the startup program data according to the startup program read by the reading unit, and send the calculated characteristic value to the verification unit; A verification unit, used for comparing the calculated characteristic value with the expected characteristic value, and sending the comparison result to the control unit; The control unit is used to perform different actions according to the comparison result of the verification unit; when the comparison result received by the control unit from the verification unit is that the calculated characteristic value is consistent with the expected characteristic value, the control unit will control the embedded device to start normally; when the comparison result received by the control unit from the verification unit is that the calculated characteristic value is inconsistent with the expected characteristic value, the control unit controls the embedded device to terminate the startup or start normally according to the pre-configured strategy.

6. The embedded device trusted startup control system as claimed in claim 5, characterized in that: When the embedded device is powered on and started, the control unit controls the reading unit to read the startup program and simultaneously controls the embedded device to pause starting.

7. The embedded device trusted startup control system as claimed in claim 5, characterized in that: The characteristic value calculation unit is used to calculate the characteristic value of the startup program data according to the startup program read by the reading unit, including that the characteristic value calculation unit uses the MD5 algorithm to perform a digest calculation on the startup program data to obtain the calculated characteristic value.

8. The embedded device trusted startup control system as claimed in claim 5, characterized in that: Also includes a prompt unit; When the control unit receives the comparison result transmitted by the verification unit that the calculated characteristic value is inconsistent with the expected characteristic value, the control unit sends a first instruction to the prompt unit; when the control unit controls the embedded device to start normally according to the pre-configured strategy, the control unit sends a second instruction to the prompt unit; The prompt unit is used to prompt that the verification fails when receiving the first instruction from the control unit; the prompt unit is also used to prompt that the verification fails but continues to be executed when receiving the second instruction from the control unit.

9. A trusted startup control device for an embedded device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; characterized in that: When the processor executes the computer program, the steps of the embedded device trusted startup control method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium storing a computer program; characterized in that: When the computer program is executed by a processor, the steps of the embedded device trusted startup control method according to any one of claims 1 to 4 are implemented.