Software identity authentication method and system based on embedded board card

Through the software identity authentication method of the embedded board card, the MCU is used to authenticate the CPU program, which solves the problem of the lack of PCIE bus and specific interfaces in the embedded system, realizes the security and management of the embedded system, and ensures that only authorized The software runs, reduces costs and is suitable for most embedded boards.

CN118862049AActive Publication Date: 2024-10-29CHINA SHIP DEV & DESIGN CENT
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410864240.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-30
Publication Date
2024-10-29
Estimated Expiration
2044-06-30

AI Technical Summary

Technical Problem

Existing computer security enhancement systems based on BIOS extensions cannot meet the security needs of embedded systems. Especially in the absence of PCIE bus and specific interfaces, they cannot effectively protect software identity authentication and prevent executable file tampering.

Method used

The software identity authentication method based on the embedded board is used to authenticate the program running on the CPU through the MCU. If it passes, it is allowed to run, otherwise it refuses to start. The MCU monitors the system status and reports it in real time to ensure that only authorized software can run.

Benefits of technology

Realizes software identity authentication for embedded systems, enhances security, reduces costs, is suitable for most embedded boards, does not require specific external expansion modules or programming algorithms, is scalable and manageable, and meets the security needs of data centers. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862049A_ABST
    Figure CN118862049A_ABST
Patent Text Reader

Abstract

The invention provides a software identity authentication method and system based on an embedded board card, and the method comprises the steps: waiting for a CPU boot program to send an identity authentication request after the system is started, and controlling a power supply time sequence of the board card through an MCU with a built-in authentication algorithm, so as to carry out the identity authentication of running software; after the identity authentication is passed, the program is allowed to continue to be executed; and if the authentication is not passed, the MCU reports authentication failure information through the external IIC bus and controls the power-on time sequence program to turn off the power supply, so that the CPU is prevented from continuously running, and the function of performing identity authentication on the running software is realized. After the method is applied, the cost can be greatly reduced, and the method does not need to depend on a specific external authentication module or a programming algorithm; the universality is good, in the starting process of various loading programs, MCU monitoring and corresponding identity authentication can be carried out, and it is guaranteed that all programs executed by the board card are authorized programs; the system is good in expansibility, and supports the expansion of more board cards and identity authentication algorithms, so as to meet the increasing demands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of ship system information technology, and in particular relates to a software identity authentication method and system based on an embedded board. Background Art

[0002] With the rapid development of electronic information technology, the demand for embedded board software in various application businesses is increasing, and more and more data centers are beginning to deploy complex large-scale computing systems composed of multiple embedded boards. In data centers, not only does it need to encrypt the transmitted data, but how to ensure that the running software is authorized by the management or prevent the executable file from being tampered with is also a data security issue that needs to be solved.

[0003] When the existing computer security enhancement system and method based on BIOS (Basic Input Output System) expansion performs security enhancement on the computer, it is necessary to expand the PCIE (Peripheral Component Interconnect Express, high-speed serial bus) security module, but the general embedded device does not reserve or use the PCIE bus, which makes this method unable to meet the security enhancement usage scenario of the general embedded system. Moreover, the security enhancement system only performs security enhancement on the computer BIOS, and does not meet the security enhancement of the computer operating system and computer application program. When the computer operating system or application program is not software authorized by the security center, it will also bring certain risks and security risks to the system.

[0004] The existing technical limitations are that they require the use of specific interfaces or external expansion of other security modules, and some solutions even require the use of specific software burning tools to meet security requirements. When the customized embedded board does not support the installation of external security modules due to size or funding reasons, it cannot meet the requirements for small, lightweight and low-cost software. In the data center, not only does it need to encrypt the transmitted data, but how to ensure that the running software is authorized by the management or prevent the executable file from being tampered with is also a data security issue that needs to be solved. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a software identity authentication method and system based on an embedded board, which are used for performing identity authentication on running software.

[0006] The technical solution adopted by the present invention to solve the above technical problems is: a software identity authentication method based on an embedded board, comprising the following steps:

[0007] S1: System power-on, CPU and MCU initialization;

[0008] S2: CPU loads the program and sends an authentication request to the MCU;

[0009] S3: After receiving the authentication request, the MCU uses the authentication algorithm to authenticate the program running on the CPU; if the program passes the authentication, it continues to run; if the program fails the authentication, it refuses to run;

[0010] S4: The MCU monitors the running status of the system and reports the authentication results and program running status to the host computer in real time.

[0011] According to the above scheme, in step S1, initialization includes initializing various buses and control modules on the board to prepare for subsequent sending and receiving of information.

[0012] According to the above scheme, in step S2, the specific steps are:

[0013] S21: MCU waits for CPU to load boot program; if MCU does not receive the identity authentication request from CPU within the preset time, it waits for the request to time out, turns off the power and stops loading; if the authentication request is received normally, it executes the next step;

[0014] S22: The CPU reads and executes the boot program from the FLASH chip, and periodically sends an identity authentication request to the MCU until the MCU responds;

[0015] S23: After the MCU responds, the CPU sends the program's identity authentication information to the MCU.

[0016] According to the above scheme, in step S3, the specific steps are:

[0017] MCU loads the authentication program and compares the authentication information sent by the CPU with the pre-stored authentication data;

[0018] If the program passes the identity authentication, the CPU starts and runs the program normally;

[0019] If the program fails to pass the identity authentication, the module power is turned off, the power supply to the CPU is stopped, and the CPU is prevented from starting or running the program.

[0020] Furthermore, in step S3, the situation where the program fails to pass the identity authentication includes when the MCU detects that the running program is unauthorized, does not receive the CPU's identity authentication request within a specified time, or determines that the CPU's identity authentication information is incorrect.

[0021] According to the above scheme, the following steps are also included:

[0022] S0: Use the MCU download tool to burn the pre-written authentication program into the MCU in advance.

[0023] According to the above scheme, the step S3 also includes the following steps:

[0024] After the bootloader identity authentication is completed, the MCU continues to authenticate the image program and other executable applications. The authentication process is consistent with the bootloader authentication process.

[0025] According to the above scheme, the step S4 also includes the following steps:

[0026] The MCU communicates with the host computer and receives control instructions from the host computer to skip the identity authentication step.

[0027] A software identity authentication system based on an embedded board comprises a processor and a controller; the processor is used to run a program; the controller is used to authenticate the program run by the processor; the processor and the controller communicate via an internal bus; and the controller communicates with a host computer via an external bus.

[0028] Furthermore, it also includes a memory for storing a boot program and other programs to be run by the processor; the controller includes an internal memory for storing an identity authentication program and a power control program.

[0029] The beneficial effects of the present invention are:

[0030] 1. A software identity authentication method and system based on an embedded board of the present invention, after the system is started, waits for the CPU (Central Processing Unit) boot program to send an identity authentication request, and controls the power timing of the board of the card through the MCU (Micro Controller Unit) with a built-in authentication algorithm to authenticate the running software; when the identity authentication passes, the program is allowed to continue to execute; if the authentication fails, the MCU reports the authentication failure information through the external IIC (Inter-Integrated Ciruit) bus and controls the power-on timing program to turn off the power supply, preventing the CPU from continuing to run, thereby realizing the function of authenticating the running software, strengthening the security of the system, and ensuring that only authorized software programs can run on the target board of the card.

[0031] 2. The present invention does not need to rely on a specific external authentication module or programming algorithm. The MCU that controls the power-on logic is responsible for interacting with the program whose identity is verified, loading authorized programs, and rejecting unauthorized programs. At the same time, the method is also extensible, and image programs, applications, etc. are loaded after the boot program is loaded. The startup process of these programs can be monitored by the MCU and the corresponding identity authentication is performed to ensure that the programs executed by the board are all authorized programs. When an unauthorized program is monitored to be running, an illegal state is reported. If it is required for debugging or there are special needs, the administrator can control the MCU to skip the identity authentication step.

[0032] 3. After application, the present invention can greatly reduce costs, has good versatility and scalability, and can design the system to support the expansion of more boards and identity authentication algorithms, thereby facilitating better management and expansion of boards with different functions, improving the security, reliability and manageability of the system, and meeting the growing security needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a principle block diagram of an embodiment of the present invention.

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

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0036] Example 1

[0037] See also Figure 1 , this embodiment includes a CPU chip responsible for executing software programs and an MCU for completing identity authentication; the CPU and MCU communicate through an internal bus including a UART.

[0038] The FLASH chip on the embedded board stores program files related to the board; the MCU is used to control the power timing and has a built-in authentication algorithm for authenticating the program running on the CPU. Programs that do not comply with the authentication are deemed unauthorized and are not allowed to be executed.

[0039] The MCU is interconnected with external management devices through the I2C interface.

[0040] This embedded software authentication system can be applied to most embedded boards without special restrictions. By adding a software authentication program to the MCU responsible for power management, an ordinary embedded board can be upgraded to a system with software authentication function.

[0041] Example 2

[0042] Figure 2The flowchart of the software execution process of the MCU internal software of the software identity authentication system is as follows: The CPU boot program and the MCU identity authentication program of this embodiment include the following steps:

[0043] The pre-written identity authentication software (software algorithm specified by the user authorization center) is burned into the MCU in advance through the MCU software download tool.

[0044] Step 1: The system is powered on, and the MCU completes the initialization of the internal system, such as initialization of various buses, initialization of control modules, etc., to prepare for subsequent sending and receiving of information.

[0045] Step 2: MCU waits for CPU to load boot program from FLASH. If MCU does not receive CPU's authentication request within a certain period of time, it will turn off the power and stop CPU program loading when the authentication request times out. If the authentication request is received normally, it will perform authentication data exchange.

[0046] After the CPU is powered on, it reads and executes the program to be executed from the FLASH chip, usually starting from the boot program; the boot program periodically sends identity authentication request information to the MCU within a specified time until the MCU responds.

[0047] After the MCU responds, the CPU boot program sends an identity authentication request and the software's identity information. This identity information is the identity information that the MCU needs to verify and match according to the algorithm.

[0048] Step 3: If the MCU receives an authentication request from the CPU, it uses an internal authentication algorithm to authenticate the running program of the CPU; if the MCU confirms that the identity of the program is legitimate, it allows the program to continue executing; if the authentication fails, the MCU controls the power module to stop the power supply to the CPU and refuses to execute the program.

[0049] After the boot program is loaded, the CPU interacts with the MCU on the board that controls the power timing through the UART interface for authentication, and the MCU verifies the legitimacy of the program. The interaction process includes authentication request, authentication information transmission, and authentication result determination.

[0050] The MCU loads the authentication software program and compares the authentication data. If the program authentication information fails, the CPU module power is turned off to prevent the program from executing. If the program authentication information passes, the program is executed. The results of the authentication request are periodically reported to the administrator, specifically:

[0051] When the MCU recognizes that the corresponding program is a program authorized by the administrator and confirms the identity of the CPU boot program, it allows the system to start and work normally; after the CPU waits for the MCU to complete the identity information authentication, if the program passes the MCU identity authentication, it executes the program that meets the central authentication.

[0052] If the MCU determines that the program is unauthorized and has not passed the identity authentication, the MCU controls the GPIO pin to turn off the power module of the board to disconnect the power supply of the CPU, stop the CPU from running, and prevent unauthorized programs from starting or continuing to run, thereby realizing the function of authenticating the software identity. Failure to pass the verification includes when the MCU detects that the running program is unauthorized, fails to receive the CPU's identity authentication request information within the specified time, or determines that the CPU's identity information authentication is wrong.

[0053] Step 4: After the boot program authentication is completed, the MCU continues to authenticate the identity of the operating image program and the executable application. The authentication method is the same as the boot program authentication method.

[0054] After applying this identity authentication system and method, the boot program of each board CPU in the data center needs to be authenticated by the authentication system before it can be further run. If the boot program authentication fails, the authentication system turns off the power of the board and prevents the device from continuing to work.

[0055] Step 5: The MCU communicates with the administrator, receives the administrator's command or feeds back the authentication result to the administrator, specifically:

[0056] MCU receives the administrator's control command through the I2C interface to skip the authentication step;

[0057] The MCU monitors the running status of the board and reports information such as identity authentication results and program running status to the external management device in real time, so as to timely discover risky software and notify the administrator to handle it; through identity authentication and information feedback reporting, network security is strengthened to protect the programs of the embedded software system and the data generated.

[0058] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0059] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.

Claims

1. A software identity authentication method based on an embedded board, characterized in that: The following steps are involved: S1: System power-on, CPU and MCU initialization; S2: CPU loads the program and sends an authentication request to the MCU; S3: After receiving the authentication request, the MCU uses the authentication algorithm to authenticate the program running on the CPU; if the program passes the authentication, it continues to run; if the program fails the authentication, it refuses to run; S4: The MCU monitors the running status of the system and reports the authentication results and program running status to the host computer in real time.

2. The software identity authentication method based on an embedded board according to claim 1, characterized in that: In the step S1, initialization includes initializing various buses and control modules on the board to prepare for subsequent sending and receiving of information.

3. The software identity authentication method based on an embedded board according to claim 1, characterized in that: In the step S2, the specific steps are: S21: MCU waits for CPU to load the boot program; If the MCU does not receive the identity authentication request from the CPU within the preset time, it will wait for the request to time out, turn off the power supply, and stop loading; if the authentication request is received normally, it will execute the next step; S22: The CPU reads and executes the boot program from the FLASH chip, and periodically sends an identity authentication request to the MCU until the MCU responds; S23: After the MCU responds, the CPU sends the program's identity authentication information to the MCU.

4. The software identity authentication method based on an embedded board according to claim 1, characterized in that: In the step S3, the specific steps are: The MCU loads the authentication program and compares the authentication information sent by the CPU with the pre-stored authentication data; if the program passes the authentication, the CPU starts and runs the program normally; If the program fails to pass the identity authentication, the module power is turned off, the power supply to the CPU is stopped, and the CPU is prevented from starting or running the program.

5. The software identity authentication method based on an embedded board according to claim 4, characterized in that: In step S3, the situation where the program fails to pass the identity authentication includes when the MCU detects that the running program is unauthorized, does not receive the CPU's identity authentication request within a specified time, or determines that the CPU's identity authentication information is wrong.

6. The software identity authentication method based on an embedded board according to claim 1, characterized in that: The following steps are also included: S0: Use the MCU download tool to burn the pre-written authentication program into the MCU in advance.

7. The software identity authentication method based on an embedded board according to claim 1, characterized in that: The step S3 also includes the following steps: After the bootloader identity authentication is completed, the MCU continues to authenticate the image program and other executable applications. The authentication process is consistent with the bootloader authentication process.

8. The software identity authentication method based on an embedded board according to claim 1, characterized in that: The step S4 also includes the following steps: The MCU communicates with the host computer and receives control instructions from the host computer to skip the identity authentication step.

9. An authentication system for the software identity authentication method based on an embedded board as claimed in any one of claims 1 to 8, characterized in that: It includes a processor and a controller; the processor is used to run the program; the controller is used to authenticate the program run by the processor; the processor and the controller communicate through an internal bus; the controller communicates with the host computer through an external bus.

10. The authentication system according to claim 9, characterized in that: Also includes a memory for storing a boot program and other programs to be run by the processor; The controller includes an internal memory for storing an identity authentication program and a power control program.

Citation Information

Patent Citations

  • Memory device

    CN112395654A

  • Multifunctional wearable authentication equipment

    CN209151180U

  • ELECTRONIC DEVICE AND METHOD FOR CONTROLLING THE FUNCTIONS OF AN ELECTRONIC DEVICE

    DE102019117073A1

  • Scalable edge compute in a distributed control environment

    US20190041824A1

  • System and method for authenticating before waking an information handling system

    US20210110016A1