Safe and credible numerical control system and control method thereof

Through kernel measurement, software-based monitoring and identity authentication modules, the security risks of CNC systems in the face of industrial viruses and network attacks are solved, the system is safe and trustworthy operation is achieved, and the stability and security of the equipment are improved.

CN119004438AActive Publication Date: 2024-11-22WUHAN HUAZHONG NUMERICAL CONTROL
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411069467.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-22
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

The existing CNC system has security risks when facing industrial viruses and cyber attacks, and cannot effectively protect it, resulting in equipment shutdown or damage.

Method used

Using kernel measurement module, software-based monitoring module and CNC system identity authentication module, boot the Linux kernel through Bios to measure, judge the legitimacy of the kernel and software, and perform operation permission authentication based on authorized information to ensure that the system always occurs during startup and operation. In a safe state.

Benefits of technology

It significantly improves the security of the CNC system, prevents virus invasion and unauthorized operations, ensures that the system operates in a safe and correct environment, and avoids risks such as equipment self-destruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004438A_ABST
    Figure CN119004438A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of numerical control, and discloses a safe and credible numerical control system and a control method thereof. The system comprises a kernel measurement module used for guiding a Linux kernel based on Bios to perform Linux kernel measurement to obtain a kernel measurement result when hardware is started; when the kernel measurement result is that measurement is successful, starting an operating system; the software base monitoring module is used for operating a trusted software base and judging whether the numerical control system file is a file in a white list based on the trusted software base; if yes, starting the numerical control system; and the numerical control system identity authentication module is used for performing operation authority authentication of the numerical control system according to the authorization information in the numerical control system identity authentication file. According to the method, layer-by-layer authentication is started from starting, including Linux kernel measurement, software-based monitoring and numerical control system identity authentication during numerical control software operation, it is guaranteed that the numerical control system is operated in a safe environment and in a correct operator, the structure is simple, and the safety of the numerical control system is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of numerical control technology, and in particular to a safe and reliable numerical control system and a control method thereof. Background Art

[0002] In recent years, my country's manufacturing industry has developed rapidly, and CNC machine tools, as key equipment for production and processing enterprises, are facing various risks of industrial viruses and cyber attacks. Once improperly protected and attacked by external forces, the CNC machine tools or even the entire production line will be in danger of shutdown. For example, the centrifuge control system has a backdoor that leads to virus invasion, and nearly a thousand centrifuges exploded due to the excessive motor load caused by the virus.

[0003] Security is one of the most important features of CNC systems, and this is also reflected in current CNC systems. For example, different permissions are assigned to CNC systems in terms of function usage and information viewing. Different permissions can use different functions and view different information. However, this type of security control can only ensure the safety of use at the user level, and CNC systems still have security risks. Summary of the invention

[0004] The main purpose of the present invention is to provide a safe and reliable numerical control system and a control method thereof, aiming to solve at least one of the above problems.

[0005] To achieve the above object, the present invention provides a safe and reliable numerical control system, comprising:

[0006] The kernel measurement module is used to perform Linux kernel measurement based on Bios booting Linux kernel when the hardware is started, and obtain the kernel measurement result;

[0007] When the kernel measurement result is a measurement success, starting the operating system;

[0008] A software base monitoring module, used for running a trusted software base, and judging whether a numerical control system file is a file in a whitelist based on the trusted software base;

[0009] If yes, start the CNC system;

[0010] The numerical control system identity authentication module is used to authenticate the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file.

[0011] In some embodiments, the kernel measurement module is specifically used to measure whether the current hash value of the current Linux kernel is consistent with the set Linux kernel initial hash value based on Bios when the hardware is started;

[0012] If the current hash value is consistent with the Linux kernel initial hash value, the kernel measurement result is a successful measurement;

[0013] If the current hash value is inconsistent with the Linux kernel initial hash value, the kernel measurement result is a measurement failure.

[0014] In some embodiments, the trusted software base is a continuously executed software base program that runs before the numerical control system software runs, and the trusted software base runs and uses files in the white list of the trusted software base.

[0015] In some embodiments, the numerical control system identity authentication module is specifically used to query the authorization information corresponding to the numerical control system after the numerical control system is started; wherein the authorization information includes a unique identification code, a numerical control system type, and an authority password;

[0016] Based on the external management center, the authorization information is written into the numerical control system identity authentication file and the numerical control system identity authentication file is downloaded;

[0017] Before operating the numerical control system, the information in the identity authentication of the numerical control system is parsed to obtain authorization information;

[0018] It is determined whether the current information of the numerical control system is consistent with the authorization information obtained by parsing, so as to perform operation authority authentication of the numerical control system.

[0019] In addition, to achieve the above object, the present invention also proposes a safe and reliable control method for a numerical control system, comprising:

[0020] When the hardware is started, the Linux kernel is booted based on Bios to perform Linux kernel measurement and obtain kernel measurement results;

[0021] When the kernel measurement result is a measurement success, starting the operating system;

[0022] Running a trusted software base, and judging whether a numerical control system file is a file in a whitelist based on the trusted software base;

[0023] If yes, start the CNC system;

[0024] The operation authority of the numerical control system is authenticated according to the authorization information in the numerical control system identity authentication file.

[0025] In some embodiments, when the hardware is started, booting the Linux kernel based on Bios to perform Linux kernel measurement to obtain the kernel measurement result includes:

[0026] When the hardware starts, the current hash value of the current Linux kernel is measured based on Bios to see if it is consistent with the set initial hash value of the Linux kernel;

[0027] If the current hash value is consistent with the Linux kernel initial hash value, the kernel measurement result is a successful measurement;

[0028] If the current hash value is inconsistent with the Linux kernel initial hash value, the kernel measurement result is a measurement failure.

[0029] In some embodiments, the method further comprises:

[0030] A trusted software base is deployed before the installation of the numerical control system, and a whitelist of the trusted software base is added when the numerical control system is installed; wherein the trusted software base is a continuously executed software base program that runs before the numerical control system software runs, and the trusted software base runs and uses files in the whitelist of the trusted software base.

[0031] In some embodiments, the step of authenticating the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file includes:

[0032] After the numerical control system is started, query the authorization information corresponding to the numerical control system; wherein the authorization information includes a unique identification code, a numerical control system type, and an authority password;

[0033] Based on the external management center, the authorization information is written into the numerical control system identity authentication file and the numerical control system identity authentication file is downloaded;

[0034] Before operating the numerical control system, parsing the numerical control system identity authentication file to obtain authorization information;

[0035] It is determined whether the current information of the numerical control system is consistent with the authorization information obtained by parsing, so as to perform operation authority authentication of the numerical control system.

[0036] In some embodiments, the step of writing the authorization information into a numerical control system identity authentication file based on an external management center and downloading the numerical control system identity authentication file includes:

[0037] Log in to the identity authentication server based on the external management center;

[0038] Writing the authorization information into the identity authentication server to generate an identity authentication file for the numerical control system;

[0039] The numerical control system identity authentication file is downloaded from the identity authentication server.

[0040] In some embodiments, before operating the numerical control system, parsing the numerical control system identity authentication file to obtain authorization information includes:

[0041] Before operating the numerical control system, switch to the authority management interface;

[0042] Import the CNC system identity authentication file to perform authority authentication;

[0043] Switching the operator authority to the authentication authority and displaying it on the authority management interface;

[0044] When the authentication operation instruction is received, the numerical control system identity authentication file is parsed to obtain authorization information, so as to perform operation authority authentication of the numerical control system according to the authorization information.

[0045] The present invention provides a safe and reliable numerical control system, including: a kernel measurement module, which is used to perform Linux kernel measurement based on Bios to guide the Linux kernel when the hardware is started, and obtain the kernel measurement result; when the kernel measurement result is a successful measurement, start the operating system; a software base monitoring module, which is used to run a trusted software base, and judge whether the numerical control system file is a file in the white list based on the trusted software base; if so, start the numerical control system; a numerical control system identity authentication module, which is used to authenticate the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file. In the present invention, layer-by-layer authentication is performed from the start, including Linux kernel measurement, software base monitoring, and numerical control system identity authentication during numerical control software operation, to ensure that the operation of the numerical control system is performed in a safe environment and by a correct operator. The present invention has a simple structure and greatly improves the security of the numerical control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a structural block diagram of an embodiment of a safe and reliable numerical control system of the present invention;

[0047] Figure 2 A flow chart of an embodiment of a control method for a safe and reliable numerical control system of the present invention;

[0048] Figure 3 This is a schematic diagram of the kernel measurement process when Bios is started according to an embodiment of the present invention;

[0049] Figure 4 It is a schematic diagram of the software base monitoring process when the numerical control software involved in the embodiment of the present invention is running;

[0050] Figure 5 It is a schematic diagram of the numerical control system identity authentication and authority switching process when the numerical control system is operated according to the embodiment of the present invention;

[0051] Figure 6 A schematic diagram of the process of applying for and importing an identity authentication file into a numerical control system according to an embodiment of the present invention;

[0052] Figure 7 This is a schematic diagram of an example flow chart of a control method for a safe and reliable numerical control system involved in an embodiment of the present invention;

[0053] Figure 8 The present invention is a schematic diagram of the structure of an electronic device in a hardware operating environment according to an embodiment of the present invention.

[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

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

[0056] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0057] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0058] The present invention provides a safe and reliable numerical control system and a control method thereof.

[0059] Reference Figure 1 , Figure 1 The figure is a structural block diagram of an embodiment of a safe and reliable numerical control system of the present invention.

[0060] like Figure 1As shown in the figure, the safe and reliable CNC system includes:

[0061] The kernel measurement module 10 is used to perform Linux kernel measurement based on Bios when the hardware is started, and obtain the kernel measurement result;

[0062] When the kernel measurement result is a measurement success, starting the operating system;

[0063] A software base monitoring module 20 is used to run a trusted software base and determine whether a numerical control system file is a file in a whitelist based on the trusted software base;

[0064] If yes, start the CNC system;

[0065] The numerical control system identity authentication module 30 is used to authenticate the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file.

[0066] It should be noted that, in this embodiment, Figure 1 The module shown is used as an example to illustrate the architecture of a secure and reliable numerical control system. The secure and reliable numerical control system architecture includes Linux kernel measurement (kernel measurement module 10) when the Bios boots the Linux kernel when the hardware is started, software base monitoring (software base monitoring module 20) when the numerical control software is running, and numerical control system identity authentication (numerical control system identity authentication module 30) when the numerical control software is operated.

[0067] In one embodiment, the kernel measurement module 10 is specifically used to measure whether the current hash value of the current Linux kernel is consistent with the set Linux kernel initial hash value based on Bios when the hardware is started; if the current hash value is consistent with the Linux kernel initial hash value, the kernel measurement result is a measurement success; if the current hash value is inconsistent with the Linux kernel initial hash value, the kernel measurement result is a measurement failure.

[0068] Exemplarily, the Linux kernel measurement when the Bios boots the Linux kernel when the hardware is started can determine whether the kernel is tampered with by determining the hash value (Hash value) of the Linux kernel when the Bios is started.

[0069] Specifically, the Linux kernel measurement when the Bios boots the Linux kernel during hardware startup: After the Bios boot is completed, the Bios will boot the Linux kernel. Before booting the Linux kernel, it is necessary to wait for the Linux kernel measurement to be completed. If it is detected that the hash value of the current Linux kernel (current hash value) is inconsistent with the initially set kernel hash value (Linux kernel initial hash value), the measurement fails, and the Bios cannot boot the Linux kernel, thereby avoiding abnormal and risky kernel boots and always ensuring kernel security.

[0070] It is understandable that in order to implement the hash value comparison of the Linux kernel measurement when the Bios boots the Linux kernel to start, it is necessary to install all kernels before installing the numerical control system to generate a complete hash value. Specifically, before installing the numerical control system, prepare the Linux kernel module, and use the trusted module to generate a unique hash value corresponding to the Linux kernel module.

[0071] In one embodiment, the trusted software base is a continuously executed software base program that runs before the numerical control system software runs, and the trusted software base runs and uses files in the white list of the trusted software base.

[0072] Specifically, software base monitoring during software operation: use a whitelist to isolate dangerous files and operate on files in the whitelist. Before the CNC system software runs, a continuously executed software base program (trusted software base) is run. The software base program (trusted software base) can only run and use files in the software base whitelist.

[0073] Exemplarily, software base monitoring during software runtime: add a whitelist to the software base (trusted software base) used by the CNC system, and add all the files required by the CNC system to the whitelist. The software base (trusted software base) needs to be deployed before installing the CNC system, and the whitelist of the software base needs to be added when installing the CNC system, wherein the software base (trusted software base) and the CNC system are located in the same environment.

[0074] It can be understood that, through the above-mentioned kernel measurement module 10 and software base monitoring module 20, both the hardware environment and the software environment are guaranteed to be a safe and trusted environment.

[0075] In one embodiment, the CNC system identity authentication module 30 is specifically used to query the authorization information corresponding to the CNC system after the CNC system is started; wherein the authorization information includes a unique identification code, a CNC system type, and an authority password; based on an external management center, the authorization information is written into a CNC system identity authentication file and the CNC system identity authentication file is downloaded; before operating the CNC system, the information in the CNC system identity authentication is parsed to obtain the authorization information; and it is determined whether the current information of the CNC system is consistent with the parsed authorization information, so as to perform operation authority authentication of the CNC system.

[0076] Specifically, the CNC system identity authentication during CNC software operation: use the authorization information in the CNC system identity authentication file to judge the current operator and operating environment to ensure that the operation is performed in a safe environment and by the correct operator.

[0077] For example, the CNC system identity authentication during CNC software operation: before the operation is performed, the information in the CNC system identity authentication is parsed, and the parsed information includes the CNC system unique identification code, CNC system type, and operation permissions. Only when the parsed information is the same as the information stored in the CNC system itself can the relevant operation be performed.

[0078] It should be noted that the CNC system identity authentication document needs to be applied for after filling in relevant information at the relevant authorization center (such as an external management center).

[0079] In this embodiment, starting from power on, when the hardware starts, the Linux kernel measurement when Bios boots the Linux kernel to ensure that the hardware environment is safe and reliable, and when the operating system of the numerical control system starts, the software base (trusted software base) is used to monitor to ensure the safety and reliability of the software operating environment, and finally the numerical control system identity authentication file is used to ensure the safety and reliability of the numerical control system operation through the unique information in the numerical control system identity authentication file. The architecture of the safe and reliable numerical control system in this embodiment is simple, which greatly improves the safety of the numerical control system.

[0080] This embodiment provides a safe and reliable numerical control system, including: a kernel measurement module 10, which is used to perform Linux kernel measurement based on Bios to boot the Linux kernel when the hardware is started, and obtain the kernel measurement result; when the kernel measurement result is a successful measurement, start the operating system; a software base monitoring module 20, which is used to run a trusted software base, and determine whether the numerical control system file is a file in the white list based on the trusted software base; if so, start the numerical control system; a numerical control system identity authentication module 30, which is used to authenticate the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file. In this embodiment, layer-by-layer authentication is performed from the start, including Linux kernel measurement, software base monitoring, and numerical control system identity authentication during numerical control software operation, to ensure that the operation of the numerical control system is performed in a safe environment and by the correct operator. The numerical control system architecture of this embodiment is simple and greatly improves the security of the numerical control system.

[0081] The embodiment of the present invention provides a safe and reliable control method for a numerical control system. Figure 2 , Figure 2 The figure is a flow chart of an embodiment of a control method for a safe and reliable numerical control system of the present invention.

[0082] like Figure 2 As shown, the control method of the safe and reliable numerical control system includes:

[0083] Step S100: When the hardware is started, the Linux kernel is guided based on the Bios to perform Linux kernel measurement and obtain kernel measurement results;

[0084] Step S200: when the kernel measurement result is a measurement success, starting the operating system;

[0085] Step S300: running a trusted software base, and determining whether a numerical control system file is a file in a whitelist based on the trusted software base;

[0086] Step S400: If yes, start the numerical control system;

[0087] Step S500: authenticating the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file.

[0088] It should be noted that the execution subject in this embodiment may be an electronic device, which may be a computer device with data processing functions, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, a computer device is used as an example for explanation.

[0089] In one embodiment, when the hardware is started, the Linux kernel is guided based on Bios to perform Linux kernel measurement to obtain a kernel measurement result, including: when the hardware is started, based on Bios, measuring whether the current hash value of the current Linux kernel is consistent with the set Linux kernel initial hash value; if the current hash value is consistent with the Linux kernel initial hash value, the kernel measurement result is a measurement success; if the current hash value is inconsistent with the Linux kernel initial hash value, the kernel measurement result is a measurement failure.

[0090] Exemplarily, the Linux kernel measurement when the Bios boots the Linux kernel when the hardware is started can determine whether the kernel is tampered with by determining the hash value (Hash value) of the Linux kernel when the Bios is started.

[0091] Specifically, Figure 3 As shown in the figure, the Linux kernel measurement when the Bios boots the Linux kernel during hardware startup: After the Bios startup is completed, the Bios will boot the Linux kernel. Before booting the Linux kernel, it is necessary to wait for the Linux kernel measurement to be completed. If it is detected that the hash value of the current Linux kernel (current hash value) is inconsistent with the kernel hash value (Linux kernel initial hash value) initially set, the measurement fails, and the Bios cannot boot the Linux kernel (the startup process is terminated), thereby avoiding abnormal and risky kernel startups and always ensuring kernel security. If it is detected that the hash value of the current Linux kernel (current hash value) is consistent with the kernel hash value (Linux kernel initial hash value) initially set, the measurement is successful and the operating system is started.

[0092] It is understandable that in order to implement the hash value comparison of the Linux kernel measurement when the Bios boots the Linux kernel to start, it is necessary to install all kernels before installing the numerical control system to generate a complete hash value. Specifically, before installing the numerical control system, prepare the Linux kernel module, and use the trusted module to generate a unique hash value corresponding to the Linux kernel module.

[0093] In one embodiment, the method further includes: deploying a trusted software base before installing the numerical control system, and adding a whitelist of the trusted software base when installing the numerical control system; wherein the trusted software base is a continuously executed software base program that runs before the numerical control system software runs, and the trusted software base runs and uses files in the whitelist of the trusted software base.

[0094] Specifically, software base monitoring during software operation: use a whitelist to isolate dangerous files and operate on files in the whitelist. Before the CNC system software runs, a continuously executed software base program (trusted software base) is run. The software base program (trusted software base) can only run and use files in the software base whitelist.

[0095] Exemplarily, software base monitoring during software runtime: add a whitelist to the software base (trusted software base) used by the CNC system, and add all the files required by the CNC system to the whitelist. The software base (trusted software base) needs to be deployed before installing the CNC system, and the whitelist of the software base needs to be added when installing the CNC system, wherein the software base (trusted software base) and the CNC system are located in the same environment.

[0096] like Figure 4 As shown, after the Linux kernel is measured successfully, the operating system is started, the software base (trusted software base) is started, and it is determined whether the CNC system related files are in the white list of the trusted software base. If so, the CNC system is started, and if not, the operating system is restarted to continue the determination.

[0097] It is understandable that when the power is turned on, the hardware starts, and the Linux kernel measurement when the Bios boots the Linux kernel will be compared with the generated hash value, and the operating system will be successfully started. When the operating system starts, the software base will be started, and the software base will continue to monitor and only allow programs in the whitelist to run. Through the above kernel measurement operations and software base monitoring operations, both the hardware environment and the software environment are guaranteed to be a safe and trusted environment.

[0098] In one embodiment, the operation authority of the CNC system is authenticated according to the authorization information in the CNC system identity authentication file, including: after the CNC system is started, querying the authorization information corresponding to the CNC system; wherein the authorization information includes a unique identification code, a CNC system type, and an authority password; based on an external management center, writing the authorization information into the CNC system identity authentication file and downloading the CNC system identity authentication file; before operating the CNC system, parsing the CNC system identity authentication file to obtain the authorization information; judging whether the current information of the CNC system is consistent with the parsed authorization information, so as to authenticate the operation authority of the CNC system.

[0099] Specifically, the CNC system identity authentication during CNC software operation: use the authorization information in the CNC system identity authentication file to judge the current operator and operating environment, and ensure that the operation is performed in a safe environment and by the correct operator. For example, the CNC system identity authentication during CNC software operation: before the operation, the information in the CNC system identity authentication is parsed. The parsed information includes the unique identification code of the CNC system, the type of CNC system, and the operation authority. Only when the parsed information is the same as the information of the CNC system itself can the relevant operation be performed. The unique information in the CNC system identity authentication file ensures the safety and reliability of the CNC system operation.

[0100] For example, after the CNC system is started, the unique identification code, CNC system type, and related permission passwords of the CNC system are queried, and the information is filled into the CNC system authentication file using the external management center and downloaded. When the CNC system is operated, the information in the CNC system authentication file imported by the operator will be extracted first, including but not limited to the unique identification code, CNC system type, and related permission passwords, and the above information will be compared with the current information of the CNC system. A successful comparison indicates that the CNC system authentication file has authorized the operator and the operation can be used.

[0101] Specifically, Figure 5 The left side shows the CNC system authentication process when the CNC system is operated. The operator can issue a request to operate the CNC system, and the CNC system performs identity authentication (for example, authentication of permissions, unique identifiers, and machine tool types); if the authentication fails, an authentication failure result is returned, and the operator cannot operate the CNC system; if the authentication passes, the CNC system executes the operation and returns the operation result to the operator.

[0102] In one embodiment, the authorization information is written into a numerical control system identity authentication file and the numerical control system identity authentication file is downloaded based on an external management center, including: logging into an identity authentication server based on an external management center; writing the authorization information into the identity authentication server to generate a numerical control system identity authentication file; and downloading the numerical control system identity authentication file from the identity authentication server.

[0103] For example, the CNC system identity authentication during CNC software operation: Before the CNC system operates, it parses the information in the CNC system identity authentication, including the CNC system unique identification code, CNC system type, and operation authority. Only when the parsed information is the same as the information stored in the CNC system itself can the relevant operation be performed. It should be noted that the CNC system identity authentication file needs to be applied for after filling in relevant information at the relevant authorization center (such as an external management center).

[0104] Specifically, Figure 6As shown, the administrator logs in to the identity authentication server, sets the authority passwords at all levels, the unique identification code of the machine tool and the machine tool type, and these authorization information (authority passwords at all levels, the unique identification code of the machine tool and the machine tool type) are stored in the identity authentication server. When the operator needs to operate the numerical control system, the operator can request the identity authentication server to generate an identity authentication file, download the generated identity authentication file, and import the identity authentication file into the numerical control system for identity validity verification.

[0105] In one embodiment, before operating the CNC system, the CNC system identity authentication file is parsed to obtain authorization information, including: before operating the CNC system, switching to the authority management interface; importing the CNC system identity authentication file to perform authority authentication; switching the operator authority to authentication authority and displaying it in the authority management interface; upon receiving an authentication operation instruction, parsing the CNC system identity authentication file to obtain authorization information, so as to perform operation authority authentication of the CNC system according to the authorization information.

[0106] For example, Figure 5 The right side shows the permission switching process when the CNC system is operated. The operator can switch the permission management interface, enter the permission management interface, select permissions (for example, select all permissions), and import the identity authentication file through the USB flash drive. The CNC system parses the identity authentication file for permission authentication, switches the operator's permission to the authentication permission and returns the authenticated permission, and displays the authenticated permission in the permission management interface (the displayed authenticated permission may not be all permissions, only some permissions of the operator are displayed).

[0107] It should be noted that Figure 7 The control method of a safe and reliable CNC system is specifically explained by taking the process shown as an example.

[0108] like Figure 7 As shown, power on; hardware startup, Bios boots the Linux kernel. The Linux kernel measurement when the Linux kernel starts will be compared with the generated Hash value to successfully start the operating system; run the trusted software base, the software base will continue to monitor and only allow programs in the whitelist to run; run the CNC system.

[0109] The administrator logs in to the identity authentication server, sets the authority passwords at various levels, the unique identification code of the machine tool and the machine tool type. These authorization information (authorization passwords at various levels, the unique identification code of the machine tool and the machine tool type) are stored in the identity authentication server; when the operator needs to operate the CNC system, the operator can request the identity authentication server to generate an identity authentication file and download the generated identity authentication file.

[0110] The operator switches the permission management interface, enters the permission management interface, selects permissions, and imports the identity authentication file through the USB flash drive; the CNC system parses the identity authentication file for permission authentication, switches the operator's permissions to authentication permissions and returns to the authenticated permissions, and displays the authenticated permissions in the permission management interface.

[0111] The operator can issue a request to operate the CNC system, and the CNC system performs identity authentication (for example, authentication of permissions, unique identifiers, and machine tool types); if the authentication is successful, the CNC system executes the operation and returns the operation result to the operator.

[0112] In this embodiment, starting from the power-on, when the hardware is started, the Linux kernel measurement when the Bios boots the Linux kernel to start ensures that the hardware environment is safe and reliable. When the operating system of the numerical control system is started, the software base (trusted software base) is used to monitor to ensure the safety and reliability of the software operating environment. Finally, the numerical control system identity authentication file is used to ensure the safety and reliability of the numerical control system operation through the unique information in the numerical control system identity authentication file. Whether it is the hardware environment, software environment or software operation, relevant security and reliability tests are carried out, providing a safe and reliable environment for the numerical control system from beginning to end. The control method of this embodiment greatly improves the safety of the numerical control system.

[0113] In this embodiment, when the hardware is started, the Linux kernel is guided based on Bios to perform Linux kernel measurement to obtain the kernel measurement result; when the kernel measurement result is a successful measurement, the operating system is started; the trusted software base is run, and based on the trusted software base, whether the CNC system file is a file in the white list is determined; if so, the CNC system is started; and the operation authority of the CNC system is authenticated according to the authorization information in the CNC system identity authentication file. In this embodiment, layer-by-layer authentication is performed from the start, including Linux kernel measurement, software base monitoring, and CNC system identity authentication during CNC software operation, to ensure that the operation of the CNC system is performed in a safe environment and by the correct operator. This method in this embodiment is simple to implement and greatly improves the security of the CNC system.

[0114] In addition, an embodiment of the present invention further proposes a storage medium on which a control program of a safe and reliable numerical control system is stored. When the control program of the safe and reliable numerical control system is executed by a processor, the steps of the control method of the safe and reliable numerical control system as described above are implemented.

[0115] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic device, which includes: a memory, a processor, and a control program of a safe and reliable CNC system stored in the memory and runnable on the processor, wherein the control program of the safe and reliable CNC system is configured to implement the control method of the safe and reliable CNC system as described above.

[0116] Reference Figure 8 , Figure 8 The figure is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present invention.

[0117] like Figure 8 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM memory) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0118] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0119] like Figure 8 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a control program of a secure and reliable numerical control system.

[0120] exist Figure 8In the electronic device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the control program of the secure and reliable numerical control system stored in the memory 1005 through the processor 1001, and executes the control method of the secure and reliable numerical control system provided by the embodiment of the present invention.

[0121] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0122] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0123] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A safe and reliable numerical control system, characterized in that: include: The kernel measurement module is used to perform Linux kernel measurement based on Bios booting Linux kernel when the hardware is started, and obtain the kernel measurement result; When the kernel measurement result is a measurement success, starting the operating system; A software base monitoring module, used for running a trusted software base, and judging whether a numerical control system file is a file in a whitelist based on the trusted software base; If yes, start the CNC system; The numerical control system identity authentication module is used to authenticate the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file.

2. The numerical control system according to claim 1, characterized in that: The kernel measurement module is specifically used to measure whether the current hash value of the current Linux kernel is consistent with the set Linux kernel initial hash value based on Bios when the hardware is started; If the current hash value is consistent with the Linux kernel initial hash value, the kernel measurement result is a successful measurement; If the current hash value is inconsistent with the Linux kernel initial hash value, the kernel measurement result is a measurement failure.

3. The numerical control system according to claim 1, characterized in that: The trusted software base is a continuously executed software base program that runs before the numerical control system software runs. The trusted software base runs and uses files in the white list of the trusted software base.

4. The numerical control system according to claim 1, characterized in that: The numerical control system identity authentication module is specifically used to query the authorization information corresponding to the numerical control system after the numerical control system is started; wherein the authorization information includes a unique identification code, a numerical control system type, and an authority password; Based on the external management center, the authorization information is written into the numerical control system identity authentication file and the numerical control system identity authentication file is downloaded; Before operating the numerical control system, the information in the identity authentication of the numerical control system is parsed to obtain authorization information; It is determined whether the current information of the numerical control system is consistent with the authorization information obtained by parsing, so as to perform operation authority authentication of the numerical control system.

5. A safe and reliable control method for a numerical control system, characterized in that: include: When the hardware is started, the Linux kernel is booted based on Bios to perform Linux kernel measurement and obtain kernel measurement results; When the kernel measurement result is a measurement success, starting the operating system; Running a trusted software base, and judging whether a numerical control system file is a file in a whitelist based on the trusted software base; If yes, start the CNC system; The operation authority of the numerical control system is authenticated according to the authorization information in the numerical control system identity authentication file.

6. The method according to claim 5, wherein when the hardware is started, the Linux kernel is guided based on Bios to perform Linux kernel measurement to obtain the kernel measurement result, comprising: When the hardware starts, the current hash value of the current Linux kernel is measured based on Bios to see if it is consistent with the set initial hash value of the Linux kernel; If the current hash value is consistent with the Linux kernel initial hash value, the kernel measurement result is a successful measurement; If the current hash value is inconsistent with the Linux kernel initial hash value, the kernel measurement result is a measurement failure.

7. The method according to claim 5, characterized in that The method further comprises: A trusted software base is deployed before the installation of the numerical control system, and a whitelist of the trusted software base is added when the numerical control system is installed; wherein the trusted software base is a continuously executed software base program that runs before the numerical control system software runs, and the trusted software base runs and uses files in the whitelist of the trusted software base.

8. The method according to claim 5, characterized in that The step of authenticating the operation authority of the numerical control system according to the authorization information in the numerical control system identity authentication file includes: After the numerical control system is started, query the authorization information corresponding to the numerical control system; wherein the authorization information includes a unique identification code, a numerical control system type, and an authority password; Based on the external management center, the authorization information is written into the numerical control system identity authentication file and the numerical control system identity authentication file is downloaded; Before operating the numerical control system, parsing the numerical control system identity authentication file to obtain authorization information; It is determined whether the current information of the numerical control system is consistent with the authorization information obtained by parsing, so as to perform operation authority authentication of the numerical control system.

9. The method according to claim 8, characterized in that The step of writing the authorization information into a numerical control system identity authentication file based on an external management center and downloading the numerical control system identity authentication file comprises: Log in to the identity authentication server based on the external management center; Writing the authorization information into the identity authentication server to generate an identity authentication file for the numerical control system; The numerical control system identity authentication file is downloaded from the identity authentication server.

10. The method according to claim 8, characterized in that Before operating the numerical control system, parsing the numerical control system identity authentication file to obtain authorization information includes: Before operating the numerical control system, switch to the authority management interface; Import the CNC system identity authentication file to perform authority authentication; Switching the operator authority to the authentication authority and displaying it on the authority management interface; When the authentication operation instruction is received, the numerical control system identity authentication file is parsed to obtain authorization information, so as to perform operation authority authentication of the numerical control system according to the authorization information.

Citation Information

Patent Citations

  • PXE trusted starting method for pre-starting execution environment of Shenwei server

    CN110457073A

  • White list measurement method and system based on trusted computing, medium and client

    CN115828225A

  • System security starting method, electronic equipment and storage medium

    CN117272317A

  • Software function authorization method and device

    CN117807567A

  • Data Integrity and Non-Repudiation

    US20080045342A1