A cloud-edge collaborative security reasoning system under an industrial AI operating system

By setting up a trusted execution space in the cloud-edge collaborative secure inference system, generating and verifying trusted proof information, the security risks of industrial AI models during cloud-edge transmission and operation are resolved. This achieves the binding of model decryption permissions with the trusted operating environment, thereby improving security.

CN122969898BActive Publication Date: 2026-11-24LUCULENT SMART TECHNOLOGIES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611406762.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-24
Estimated Expiration
2046-09-11

AI Technical Summary

Technical Problem

In existing technologies, industrial AI models are at risk of being intercepted, copied, tampered with, or reverse-analyzed during transmission, storage, and operation between the cloud and the edge. This is especially true in untrusted operating environments of edge devices and end-side devices, where it is difficult to ensure the security of the models.

Method used

A cloud-edge collaborative secure inference system is adopted. By setting up a first trusted execution space and a second trusted execution space in the first computing node and the second computing node, trusted proof information is generated and verified. Only when the verification is successful is the encrypted model and the corresponding decryption information provided to the second trusted execution space, and the inference is decrypted and executed within it.

Benefits of technology

Binding model decryption permissions to a trusted operating environment prevents encrypted models and decryption information from being provided to operating environments that have not passed trusted verification, thereby improving the security of industrial AI models during distribution and operation across different computing nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122969898B_ABST
    Figure CN122969898B_ABST
Patent Text Reader

Abstract

This invention relates to the field of industrial artificial intelligence and trusted computing security technology, specifically a cloud-edge collaborative secure inference system under an industrial AI operating system. The system includes a first computing node with a first trusted execution space and a second computing node with a second trusted execution space. The second trusted execution space is used to generate first trusted proof information characterizing its operating environment. This invention establishes a first trusted execution space and a second trusted execution space in the first and second computing nodes respectively. The second trusted execution space generates the first trusted proof information characterizing its operating environment, and the first trusted execution space verifies the first trusted proof information. The first trusted execution space provides the encryption model and corresponding decryption information to the second trusted execution space only when the verification is successful.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial artificial intelligence and trusted computing security technology, and in particular to a cloud-edge collaborative secure inference system under an industrial AI operating system. Background Technology

[0002] As artificial intelligence (AI) technology is increasingly applied in industrial production processes, industrial AI models typically need to be trained in the cloud and then deployed to edge devices or end-devices for real-time inference. These models contain parameters trained from industrial production data, process parameters, and equipment operating data. During transmission, storage, and operation between the cloud and edge devices, they are susceptible to interception, copying, tampering, or reverse engineering. This is especially true since edge devices and end-devices are usually deployed in industrial settings, where their operating environments are relatively dispersed and their physical exposure is high. Encrypting communication links alone is insufficient to continuously protect the decrypted model's operation.

[0003] In existing technologies, a trusted execution environment (TEX) can be set up within a computing device, allowing the model to run in a protected area isolated from the ordinary operating system. However, existing TEXs typically focus on data isolation within a single computing node. Before a cloud node distributes a model to an edge or end-device node, it is difficult to verify whether the TEX of the receiving model is in the expected code state and runtime configuration. Even if the receiving end's runtime environment is replaced, tampered with, or in an untrusted state, it is still possible to obtain the encrypted model and corresponding decryption information, allowing the model to be decrypted and run in an untrusted environment. Summary of the Invention

[0004] In this section, as well as in the abstract and title of this application, some simplifications or omissions may be made to avoid obscuring the purpose of this section, the abstract, and the title of this application, and such simplifications or omissions shall not be used to limit the scope of the invention.

[0005] To address the shortcomings of existing technologies, one objective of this invention is to provide a cloud-edge collaborative secure inference system under an industrial AI operating system.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: a cloud-edge collaborative secure inference system under an industrial AI operating system, comprising a first computing node having a first trusted execution space; a second computing node having a second trusted execution space; wherein, the second trusted execution space is used to generate first trusted proof information characterizing its operating environment; the first trusted execution space is used to verify the first trusted proof information, and upon successful verification, provides an encryption model and corresponding decryption information to the second trusted execution space; the second trusted execution space is used to decrypt the encryption model internally based on the decryption information, and perform inference using the decrypted model.

[0007] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the system comprises: a first computing node being a cloud node, and a second computing node being an edge node; it also includes an end-side node, which has a third trusted execution space; the edge node is equipped with an edge proof agent, which is communicatively connected to the second trusted execution space and is used to acquire and send the first trusted proof information; the end-side node is equipped with an end-side proof agent, which is communicatively connected to the third trusted execution space and is used to acquire and send the second trusted proof information generated by the third trusted execution space; the second trusted execution space is also used to verify the second trusted proof information after the first trusted proof information it generates has been verified by the first trusted execution space.

[0008] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the cloud node, the edge node, and the end-side node are each provided with a kernel-level trusted computing base; each kernel-level trusted computing base is set in the kernel layer of the industrial AI operating system and is connected to the trusted execution space of the computing node through a kernel-level management interface, for managing the operation of the corresponding trusted execution space; the kernel-level trusted computing base of the edge node is connected to the edge proof proxy, and the kernel-level trusted computing base of the end-side node is connected to the end-side proof proxy.

[0009] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the cloud node further includes a remote proof service, which is communicatively connected to the kernel-level trusted computing base, the edge proof agent, and the end-side proof agent of the cloud node; the first trusted proof information and the second trusted proof information respectively include trusted measurement values ​​generated based on the running code and running configuration of the corresponding trusted execution space; the remote proof service is used to compare the trusted measurement value sent by the edge proof agent with the corresponding preset trusted measurement whitelist, and provide the obtained verification result to the first trusted execution space; the remote proof service is also used to compare the trusted measurement value sent by the end-side proof agent with the corresponding preset trusted measurement whitelist, and provide the obtained verification result to the second trusted execution space.

[0010] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the cloud node is further provided with a key management service, which is communicatively connected to the kernel-level trusted computing base and the first trusted execution space of the cloud node, respectively, and is used to manage the model encryption key, communication session key and proof key; the first trusted execution space is also used to negotiate a session key with the second trusted execution space when the trust metric value of the second trusted execution space is consistent with the corresponding preset trust metric whitelist, and to establish an encrypted channel based on the negotiated session key; the first trusted execution space is also used to obtain the decryption information corresponding to the encryption model from the key management service, and transmit the encryption model and its corresponding decryption information to the second trusted execution space through the encryption channel.

[0011] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, it further includes a sensor that is communicatively connected to the edge node; the encryption channel includes: a first encryption channel established between the first trusted execution space and the second trusted execution space; a second encryption channel established between the second trusted execution space and the third trusted execution space; and a third encryption channel established between the third trusted execution space and the sensor.

[0012] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the system comprises: a model training engine and a cloud inference engine within the first trusted execution space; the model training engine is used to train a model to be deployed, and the model to be deployed is encrypted to form the encrypted model; a feature extraction engine and a real-time inference engine within the second trusted execution space; and a sensor preprocessing engine within the third trusted execution space; the sensor is used to send sensor data to the third trusted execution space through the third encrypted channel; the sensor preprocessing engine is used to preprocess the sensor data and transmit the preprocessed sensor data to the second trusted execution space through the second encrypted channel; the feature extraction engine and the real-time inference engine are used to perform feature extraction and real-time inference on the preprocessed sensor data, generate intermediate inference results, encrypt the intermediate inference results within the second trusted execution space, and transmit them to the first trusted execution space through the first encrypted channel; and the cloud inference engine is used to perform cloud inference based on the intermediate inference results, generate a final inference result, encrypt the final inference result within the first trusted execution space, and transmit it to the second trusted execution space through the first encrypted channel.

[0013] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, wherein: the first trusted execution space, the second trusted execution space and the third trusted execution space each have a protected memory; the model weights used in each trusted execution space and the intermediate data generated during the corresponding inference process are all stored in the corresponding protected memory; the programs located outside the corresponding trusted execution space in each computing node are isolated from the protected memory.

[0014] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the edge node is further provided with a data flow monitoring component, which is connected to the kernel-level trusted computing base of the edge node; the data flow monitoring component is used to configure a security level label for inference data transmitted through the first encrypted channel or the second encrypted channel, and compare the security level represented by the security level label with the security level of the trusted execution space receiving the inference data; when the security level of the inference data is not higher than the security level of the trusted execution space receiving the inference data, the inference data is allowed to be transmitted to the trusted execution space receiving the inference data.

[0015] As a preferred embodiment of the cloud-edge collaborative secure inference system under the industrial AI operating system of the present invention, the edge node is further configured to generate an audit record corresponding to this collaborative inference based on the real-time inference process executed in the second trusted execution space and the cloud-based inference process executed in the first trusted execution space, and send the audit record to the cloud node through the first encrypted channel; the kernel-level trusted computing base of the cloud node is configured to append the received audit record to the chained audit log in the order of its generation.

[0016] The beneficial effects of the cloud-edge collaborative secure inference system under an industrial AI operating system of the present invention are as follows: The present invention sets up a first trusted execution space and a second trusted execution space in a first computing node and a second computing node, respectively. The second trusted execution space generates first trusted proof information representing its operating environment, and the first trusted execution space verifies the first trusted proof information. The first trusted execution space provides the encrypted model and corresponding decryption information to the second trusted execution space only when the verification is successful. The second trusted execution space decrypts the encrypted model and performs inference within itself according to the decryption information, thereby binding the model decryption permission to the trusted operating environment of the model receiving end. This avoids the encrypted model and decryption information being provided to an operating environment that has not passed trusted verification, and reduces the risk of the decrypted model being exposed outside the trusted execution space, thereby improving the security of the industrial AI model during distribution and operation between different computing nodes. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the structure for trusted verification and secure model distribution between the first and second computing nodes of the present invention.

[0019] Figure 2 This is a schematic diagram illustrating the chain-like trusted proof relationship between cloud nodes, edge nodes, and end-side nodes in this invention.

[0020] Figure 3 This is a schematic diagram of the trusted management architecture of cloud nodes, edge nodes, and end-side nodes of the present invention.

[0021] Figure 4 This is a schematic diagram illustrating the chain-like remote proof process of cloud nodes to edge nodes and edge nodes to end-side nodes in this invention.

[0022] Figure 5 This is a schematic diagram showing the connection relationship between the first encryption channel, the second encryption channel, and the third encryption channel of the present invention.

[0023] Figure 6 This is a schematic diagram of the system architecture of each inference engine and data flow monitoring component in the cloud node, edge node and end-side node of the present invention.

[0024] Figure 7 This is a schematic diagram showing the connection relationship between each trusted execution space and the corresponding protected memory in this invention.

[0025] Figure 8 This is a schematic diagram illustrating the collaborative reasoning process of cloud nodes, edge nodes, and end-side nodes in this invention.

[0026] Figure 9 This is a schematic diagram illustrating the process of generating, transmitting, and appending collaborative reasoning audit records to the chained audit log of the present invention.

[0027] In the diagram: 100, First computing node; 100a, Cloud node; 101, First trusted execution space; 101a, Encryption model; 101b, Decryption information; 102, Remote proof service; 103, Key management service; 200, Second computing node; 200a, Edge node; 201, Second trusted execution space; 201a, First trusted proof information; 201b, Feature extraction engine; 201c, Real-time inference engine; 202, Edge proof proxy; 203, Data flow monitoring component; 300a, End-side node; 301, Third trusted execution space; 301a, Second trusted proof information; 301b, Sensor preprocessing engine; 302, End-side proof proxy; 303, Sensor; 400, Protected memory; A, First encryption channel; B, Second encryption channel; C, Third encryption channel. Detailed Implementation

[0028] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to specific embodiments and accompanying drawings.

[0029] The terminology used in this invention is that which is currently widely used in the art in consideration of the function of the invention; however, these terms may vary according to the intent of those skilled in the art, precedent, or new technology in the art. Furthermore, specific terms may be chosen by the applicant, and in such cases, their detailed meanings will be described in the detailed description of the invention. Therefore, the terms used in this specification should not be construed as simple names, but rather based on their meanings and the overall description of the invention.

[0030] Example 1

[0031] Reference Figure 1 This embodiment provides a cloud-edge collaborative secure inference system under an industrial AI operating system, including a first computing node 100 and a second computing node 200.

[0032] The first computing node 100 has a first trusted execution space 101, and the second computing node 200 has a second trusted execution space 201. The second trusted execution space 201 is used to generate first trusted proof information 201a that represents its operating environment. The first trusted execution space 101 is used to verify the first trusted proof information 201a and, upon successful verification, provides the second trusted execution space 201 with an encrypted model 101a and corresponding decryption information 101b. The second trusted execution space 201 is used to decrypt the encrypted model 101a within itself based on the decryption information 101b and to perform inference using the decrypted model.

[0033] In this embodiment, the first computing node 100 and the second computing node 200 are relative node names determined according to the model delivery direction. The first computing node 100 is located upstream in the model delivery direction and is used to store, manage, or provide industrial AI models to be deployed; the second computing node 200 is located downstream in the model delivery direction and is used to receive models and execute corresponding industrial AI inference tasks. The first computing node 100 and the second computing node 200 can be respectively composed of servers, edge computing devices, industrial computers, embedded control devices, or other computing devices with model inference capabilities. In one specific deployment method, the first computing node 100 is a cloud server, and the second computing node 200 is an edge computing device deployed in an industrial site; in another specific deployment method, the first computing node 100 is an edge computing device, and the second computing node 200 is an edge control device. Thus, the first computing node 100 and the second computing node 200 are not limited by a specific physical layer. The same edge computing device can act as the second computing node 200 when receiving models from the upper-level node, and as the first computing node 100 when providing models to the lower-level node.

[0034] The first trusted execution space 101 and the second trusted execution space 201 are isolated execution regions established within their respective computing nodes. The trusted execution space not only represents the process space or file storage area in a typical operating system, but also a protected execution domain with independent access boundaries. It can be established by at least one of processor security extensions, memory access control, memory encryption, and trusted boot mechanisms. The first trusted execution space 101 and the second trusted execution space 201 can be specifically implemented as an Enclave, a TrustZone secure world, a confidential virtual machine, a trusted container, or an isolated execution instance formed by other hardware security mechanisms within a trusted execution environment.

[0035] For example, the first trusted execution space 101 can be a virtual machine-level trusted execution space built on Intel TDX or AMD SEV-SNP, preventing the ordinary host operating system and hypervisor of the first compute node 100 from directly accessing the plaintext model or key stored therein; the second trusted execution space 201 can be an application-level or virtual machine-level trusted execution space built on Intel SGX, ARM TrustZone, or Hygon CSV, preventing ordinary applications, operating system services, and unauthorized debugging programs in the second compute node 200 from directly accessing the model weights and inference data therein. Alternatively, an independent trusted execution space can be created for each model to be executed, isolating the code, model parameters, and intermediate inference data of different models from each other.

[0036] After the second trusted execution space 201 is established and the inference program is loaded, a trust measurement is performed on its current runtime environment. The trust measurement can cover the inference program code, model loader, basic runtime library, runtime configuration, and security version. Specifically, it can be achieved by hashing the runtime code and runtime configuration to generate corresponding measurement results, and then writing the runtime mode, security version number, model identifier, or security policy version into the first trusted proof information 201a. Upon receiving the first trusted proof information 201a, the first trusted execution space 101 verifies its authenticity and completeness, and compares the trust measurement results with a pre-saved trusted runtime benchmark. If the verification passes, the first trusted execution space 101 provides the second trusted execution space 201 with the encrypted model 101a and the corresponding decryption information 101b. If the verification fails, the decryption information 101b is not provided, and the current model delivery process is terminated, thus determining the model decryption permission based on the current trusted state of the second trusted execution space 201.

[0037] In this embodiment, the encrypted model 101a is formed by encrypting the model to be delivered. The model to be delivered may include the model network structure, model weights, bias parameters, operator configuration, input / output configuration, and preprocessing and postprocessing parameters required for model operation. The decryption information 101b may be the model decryption key, the model decryption key encapsulated by the public key or session key of the second trusted execution space 201, or the key material, key identifier, and derived parameters used to derive the model decryption key. The first trusted execution space 101 may send the encrypted model 101a and the decryption information 101b separately, or it may combine the two with the model identifier, model version, and integrity authentication information to form a model delivery data packet. Regardless of the data form used, its output is controlled by the verification result of the first trusted proof information 201a, making trusted verification a prerequisite for the release of the model and its decryption information.

[0038] After receiving the encrypted model 101a and decryption information 101b, the second trusted execution space 201 first recovers or derives the model decryption key within its trusted boundary, and then uses the model decryption key to decrypt the encrypted model 101a. The decryption operation can be performed by the model loader or trusted runtime in the second trusted execution space 201. For the encrypted model 101a generated using the authenticated encryption method, the model loader also verifies the integrity authentication information of the model ciphertext; when the integrity verification fails, the model loading is stopped, and the temporary key and temporary data generated in this decryption process are cleared to prevent the tampered model from entering the inference process.

[0039] The second trusted execution space 201 uses the decrypted model to perform inference on equipment status data, process parameters, image data or other industrial field data, and generates corresponding inference results within its trusted boundaries.

[0040] This embodiment binds the trusted proof result of the second trusted execution space 201 with the conditions for providing the encryption model 101a and decryption information 101b, and forms a continuous security control in the order of "first proof, then provision of model and decryption information, and then decryption reasoning within the trusted boundary". Compared with the TLS or HTTPS method that only protects the network transmission process and the traditional TEE method that only protects the internal storage space of a single node, even if the ordinary operating system or ordinary application of the second computing node 200 is attacked, as long as the tampered running environment cannot generate the verified first trusted proof information 201a, it cannot obtain the decryption information 101b and recover the model plaintext, thereby limiting the exposure scope of the model plaintext to the verified second trusted execution space 201.

[0041] Example 2

[0042] Reference Figures 2 to 4 This embodiment provides a cloud-edge collaborative secure inference system under an industrial AI operating system, comprising a cloud node 100a, an edge node 200a, and an end-side node 300a. The cloud node 100a constitutes a first computing node 100 and has a first trusted execution space 101; the edge node 200a constitutes a second computing node 200 and has a second trusted execution space 201; the end-side node 300a has a third trusted execution space 301. The edge node 200a is equipped with an edge proof proxy 202, and the end-side node 300a is equipped with an end-side proof proxy 302.

[0043] In this embodiment, the cloud node 100a, edge node 200a, and terminal node 300a are arranged sequentially according to the processing hierarchy of industrial AI models, inference data, and inference results in the industrial network. The cloud node 100a can be a server cluster deployed in a group data center or industrial cloud platform, primarily possessing substantial computing and storage resources for centralized management of industrial AI models. The edge node 200a can be an edge server, industrial computer, or edge all-in-one machine deployed in a regional company, factory, or industrial site. Its communication distance with the terminal node 300a is short, enabling low-latency processing of field data. The terminal node 300a can be an industrial controller, smart gateway, visual inspection terminal, robot control terminal, equipment status monitoring terminal, or other industrial field devices with local computing capabilities.

[0044] The configuration of cloud node 100a, edge node 200a, and end-side node 300a does not merely represent a data forwarding relationship between three ordinary computing devices, but rather establishes independent trusted execution spaces within each of the three nodes. The first trusted execution space 101 forms the cloud trusted boundary, the second trusted execution space 201 forms the edge trusted boundary, and the third trusted execution space 301 forms the end-side trusted boundary. Each trusted execution space can protect its internally running program code, model parameters, and processed data, and one trusted execution space cannot directly read plaintext data from another trusted execution space.

[0045] Edge proof agent 202 communicates with the second trusted execution space 201 via a controlled call interface and has a network communication interface facing the cloud node 100a. After receiving a proof request from the cloud node 100a, edge proof agent 202 transmits the challenge information to the second trusted execution space 201. The second trusted execution space 201 measures the currently running code and configuration, and generates first trusted proof information 201a using the proof key associated with the hardware root of trust. Edge proof agent 202 then sends the first trusted proof information 201a to the first trusted execution space 101. Edge proof agent 202 only handles the transfer of proof requests and proof information; it does not directly generate the first trusted proof information 201a, thus separating network communication functionality from trusted measurement functionality and reducing the risk of ordinary operating systems forging trusted proof information.

[0046] After the first trusted execution space 101 verifies the first trusted proof information 201a, it provides the verification result to the second trusted execution space 201, enabling the second trusted execution space 201 to obtain the right to perform trusted verification on the third trusted execution space 301; if the verification fails, the second trusted execution space 201 stops initiating subsequent trusted verification to the end node 300a.

[0047] The edge-side proof agent 302 communicates with the third trusted execution space 301 through a controlled call interface and has a communication interface facing the edge node 200a. After the second trusted execution space 201 obtains trusted verification permission, it sends a proof request to the edge-side proof agent 302 through the edge proof agent 202. The third trusted execution space 301 generates second trusted proof information 301a based on the challenge information and the current operating environment, and transmits it to the second trusted execution space 201 through the edge-side proof agent 302 and the edge proof agent 202. The second trusted execution space 201 verifies the second trusted proof information 301a. If the verification is successful, the third trusted execution space 301 is allowed to participate in subsequent collaborative reasoning; if the verification fails, its participation is denied. This forms a chain-like trusted relationship in which the first trusted execution space 101 verifies the second trusted execution space 201, and the second trusted execution space 201 verifies the third trusted execution space 301 after passing its own verification.

[0048] For example, in a power generation group's equipment failure prediction scenario, cloud node 100a is deployed in the group's data center, edge node 200a is deployed in regional power plants, and terminal node 300a is deployed near turbines, generators, or auxiliary equipment. The group's cloud first performs trusted verification on the power plant edge node 200a. Only after the power plant edge node 200a passes verification is it allowed to perform trusted verification on the equipment terminal node 300a. After the equipment terminal node 300a passes verification, the edge node 200a receives the vibration, temperature, and pressure data it collects, or provides it with corresponding inference models and control strategies. This prevents replaced or debugged terminal equipment from continuously injecting falsified industrial data into the edge node 200a.

[0049] Therefore, this embodiment, through the hierarchical arrangement of cloud node 100a, edge node 200a, and end-side node 300a, and the cooperation of edge proof agent 202, end-side proof agent 302, and their corresponding trusted execution spaces, cascades the trusted verification units between two adjacent trusted execution spaces in Embodiment 1 along the industrial organization hierarchy, forming a chain-like trusted execution architecture that can extend from the group cloud to the field terminal. This architecture ensures that each level node is only qualified to verify the next level node after its own trusted state has been confirmed by the previous level node, thereby limiting the scope of trust transmission at each level, reducing the risk of a compromised intermediate node falsifying a trusted state downstream, and providing a trusted node foundation for subsequent hierarchical model distribution, cross-node secure inference, and trusted transmission of industrial data.

[0050] Example 3

[0051] Reference Figure 3This embodiment provides a cloud-edge collaborative secure inference system under an industrial AI operating system with a kernel-level trusted computing base. Cloud node 100a, edge node 200a, and terminal node 300a are each equipped with a kernel-level trusted computing base. Each kernel-level trusted computing base is located in the kernel layer of the corresponding node's industrial AI operating system and is connected to the trusted execution space of the node through a kernel-level management interface. The kernel-level trusted computing base of edge node 200a is also connected to edge proof agent 202, and the kernel-level trusted computing base of terminal node 300a is also connected to terminal proof agent 302.

[0052] In this embodiment, the Kernel-level Trusted Computing Base (K-TCB) constitutes the local root of trust of the computing node. Unlike model management programs or ordinary security agents that run in user space, the K-TCB resides in the kernel layer of the industrial AI operating system. It manages the creation, startup, operation, suspension, and destruction of the trusted execution space in a protected state that cannot be directly modified by ordinary applications, and controls trust metrics, proof information output, and secure resource invocation.

[0053] Each node's K-TCB can be implemented using a secure microkernel, a trusted subsystem of the operating system kernel, or an independent trusted kernel service, and preferably runs in the high-privilege execution layer of the processor. For example, in ARM processors, it can be implemented using a security monitoring layer or a secure world, while in x86 processors, it can be implemented using hardware virtualization security mechanisms or other high-privilege secure execution regions. By setting the K-TCB at the kernel layer, ordinary industrial AI applications can be prevented from bypassing the trust management process to create unmeasured inference environments or directly call model keys.

[0054] The kernel-level management interface is the protected call path between K-TCB and the corresponding trusted execution space, and can include a trusted execution space control interface, a trusted measurement interface, a security resource interface, and an exception event interface. Specifically, the trusted execution space control interface is used to transmit creation, start, pause, and destruction commands; the trusted measurement interface is used to trigger measurements of running code and runtime configuration; the security resource interface is used to request keys, protected storage areas, or secure random numbers; and the exception event interface is used to report integrity verification failures, unauthorized access, and model loading anomalies. These interfaces can be configured separately or implemented through a unified interface with different command fields.

[0055] When an industrial AI model needs to run on a computing node, K-TCB creates a corresponding trusted execution space based on the model's execution request and loads the audited model loader, decryption program, and inference execution program. After the trusted execution space is initialized, K-TCB triggers a trust measurement and controls it to enter either a pending proof state or a trusted running state based on the measurement result. During inference, K-TCB maintains the trusted execution space identifier, running status, loaded model identifier, and access permissions. When inference ends, the model is updated, or an anomaly occurs in the trusted execution space, K-TCB controls it to stop running, reclaims protected memory and security handles, and clears the model key, model plaintext, and temporary intermediate data.

[0056] In edge node 200a, the kernel-level trusted computing base is located between the second trusted execution space 201 and the edge proof agent 202. After receiving the proof request sent by cloud node 100a, edge proof agent 202 submits the challenge value and the target trusted execution space identifier in the proof request to K-TCB. K-TCB verifies the calling permissions of edge proof agent 202 and the status of the target trusted execution space. Only after the verification is passed is the second trusted execution space 201 allowed to generate the first trusted proof information 201a. After the first trusted proof information 201a is generated, it is transmitted to edge proof agent 202 through the output path controlled by K-TCB, and then edge proof agent 202 sends it to cloud node 100a.

[0057] In edge node 300a, the kernel-level trusted computing base connects the third trusted execution space 301 and the edge-side proof agent 302 in a similar manner. After receiving a proof request from edge node 200a, the edge-side proof agent 302 uses the K-TCB of edge node 300a to call the third trusted execution space 301 to generate second trusted proof information 301a. Ordinary firmware or ordinary applications cannot bypass K-TCB to directly generate or modify the second trusted proof information 301a, thereby reducing the risk of the edge node being forged in trusted state after being subjected to firmware replacement or debugging attacks.

[0058] Preferably, each K-TCB adopts a minimal trusted computing base design, retaining only essential functions such as trusted execution space management, trusted measurement invocation, security access control, and exception handling, while model training, feature extraction, and inference operations are performed within the trusted execution space. This reduces the size of high-privileged code and the attack surface, and avoids frequent updates to the model framework or inference operators affecting the trustworthiness of the K-TCB itself.

[0059] Each K-TCB can also be loaded in conjunction with a secure boot chain, with integrity verification performed step by step from the bootstrap read-only program, bootloader, K-TCB to the industrial AI operating system kernel. If the verification of the K-TCB or its corresponding trusted program fails, the compute node enters a security fault state and shuts down the model key invocation and trusted proof output interfaces, instead of degrading the trusted inference task to a normal program and continuing to run.

[0060] Therefore, this embodiment sets up K-TCBs in cloud node 100a, edge node 200a and terminal node 300a respectively, and uses kernel-level management interface to connect trusted execution space and corresponding proof agent. This integrates the heterogeneous trusted execution environment, trusted execution space operation status and proof information output into the kernel-level control of the industrial AI operating system, avoiding ordinary applications from bypassing trusted verification to directly obtain models or security resources. This provides a stable local trusted root for subsequent remote proof, controlled key release and cross-node secure reasoning.

[0061] Example 4

[0062] Reference Figure 3 and Figure 4 In this embodiment, based on the aforementioned chain-based trusted execution architecture, a remote proof service 102 is set up on the cloud node 100a. The remote proof service 102 is communicatively connected to the kernel-level trusted computing base, edge proof agent 202, and end-side proof agent 302 of the cloud node 100a, respectively, and is used to centrally verify the trusted proof information provided by the edge node 200a and the end-side node 300a, and return the corresponding verification results to the corresponding trusted execution space.

[0063] In this embodiment, both the first trusted proof information 201a and the second trusted proof information 301a can be in the form of TEEQuote, and at least include trusted metrics generated based on the running code and running configuration of the corresponding trusted execution space. Specifically, after loading the inference program, runtime library, and security configuration, the trusted execution space performs hash calculations on the running code such as the model loader, model decryption program, and inference framework core program, as well as the running configuration such as running mode, memory permissions, interface access permissions, and security policies, to form code metrics and configuration metrics, thereby simultaneously reflecting the program content and its actual running conditions.

[0064] The preset trusted metrics whitelist is stored in the protected storage area of ​​cloud node 100a and access is controlled by the kernel-level trusted computing base of cloud node 100a. The preset trusted metrics whitelist can be pre-generated after trusted programs and their runtime configurations have been audited. Each whitelist record can include node type, trusted execution space type, code metric benchmark, configuration metric benchmark, and allowed security version range. For scenarios using different trusted execution environments—cloud, edge, and client—corresponding whitelist records can be set separately.

[0065] During edge node verification, the edge proof agent 202 calls the second trusted execution space 201 to generate first trusted proof information 201a and sends it to the remote proof service 102. The remote proof service 102 first verifies the signature or proof chain of the first trusted proof information 201a, and then selects the corresponding preset trusted metric whitelist based on the node identifier of the edge node 200a and the trusted execution space type, comparing the code metric value, configuration metric value, running mode, and security version. If the comparison meets the verification policy, the remote proof service 102 provides the verification pass result to the first trusted execution space 101, enabling the second trusted execution space 201 to participate in model distribution and collaborative inference; if the comparison does not meet the verification policy, a verification rejection result is provided, and the first trusted execution space 101 does not provide the second trusted execution space 201 with model decryption permission.

[0066] During edge node verification, the edge-side proof agent 302 calls the third trusted execution space 301 to generate second trusted proof information 301a and sends it to the remote proof service 102. The remote proof service 102 selects a preset trusted metric whitelist that matches the edge node 300a and the third trusted execution space 301, compares the code metric value and configuration metric value in the second trusted proof information 301a, and provides the verification result to the second trusted execution space 201. The second trusted execution space 201 decides whether to allow the third trusted execution space 301 to participate in subsequent sensor data processing and edge collaborative inference based on the verification result.

[0067] Preferably, each proof request may also include a random challenge value or proof session identifier. The edge proof agent 202 or the end-side proof agent 302 passes this value to the corresponding trusted execution space, where the trusted execution space writes this information into the trusted proof information. The remote proof service 102 verifies the random challenge value or session identifier while verifying the metric to prevent the reuse of historical trusted proof information. The proof result may also have a validity period. When the trusted execution space restarts, the code or configuration changes, or the validity period expires, the trusted proof needs to be re-executed.

[0068] Therefore, this embodiment sets up an independent remote proof service 102 to uniformly convert the trusted proof information generated by the heterogeneous trusted execution space into verification results that can be used by the first trusted execution space 101 and the second trusted execution space 201. This enables the chain-like trusted relationship to be established on the measurement results of the actual operating environment, rather than just on the static device identity, providing a trusted basis for subsequent session key negotiation, encrypted channel establishment, and model decryption information release.

[0069] Example 5

[0070] Reference Figure 1 , Figure 3 and Figure 4 In this embodiment, based on the trust measurement verification completed by the remote proof service 102, a key management service 103 is further set up on the cloud node 100a. The key management service 103 is communicatively connected to the kernel-level trusted computing base and the first trusted execution space 101 of the cloud node 100a, respectively, and is used to manage the model encryption key, communication session key and proof key.

[0071] The key management service 103 can be implemented as a trusted service controlled by the kernel-level trusted computing base of the cloud node 100a, or as a key management subsystem within the kernel-level trusted computing base. The key management service 103 connects to the kernel-level trusted computing base via a protected kernel call interface to receive key generation, query, rotation, and expiration control instructions. The key management service 103 connects to the first trusted execution space 101 via a trusted key call interface, enabling the first trusted execution space 101 to invoke the corresponding key to perform model encryption, key encapsulation, or signature verification, while ordinary operating systems and applications cannot directly read the plaintext key.

[0072] In this embodiment, the model encryption key, communication session key, and proof key each perform different security functions. The model encryption key is used to encrypt and decrypt the model weights, model configuration, or complete model file of the model to be distributed; the communication session key is used to protect the data in the current communication session between the first trusted execution space 101 and the second trusted execution space 201; and the proof key is used to generate or verify trusted proof information. By managing keys for different purposes separately, it is possible to avoid using the same key to simultaneously perform model protection, communication protection, and trusted proof functions, thereby reducing the risk of one type of key being leaked and affecting other security aspects.

[0073] Model encryption keys can be generated separately according to model identifiers and model versions, ensuring that different models or different versions of the same model have independent keys. Key management service 103 can store the correspondence between model identifiers, model versions, and model encryption keys, and rotate the model encryption keys according to the model update status. The encrypted model 101a can be formed by encrypting the model to be distributed using the model encryption key. As a specific implementation, the AES-256-GCM algorithm can be used to encrypt the model weights to protect model confidentiality while verifying whether the model ciphertext has been tampered with.

[0074] The communication session key is a temporary key negotiated between the first trusted execution space 101 and the second trusted execution space 201 for this model distribution process. After the remote proof service 102 confirms that the trust metric value of the second trusted execution space 201 is consistent with the preset trust metric whitelist, the first trusted execution space 101 and the second trusted execution space 201 respectively generate temporary key materials, and derive session keys by combining random numbers, proof session identifiers, and node identifiers. These session keys are stored within their respective trusted boundaries, and an encrypted channel is established. The session key can also be bound to a trusted proof information digest or verification result identifier. When the second trusted execution space 201 restarts, its running code or configuration changes, or the proof result becomes invalid, the original session key becomes invalid accordingly, and trusted proof and key negotiation are re-executed.

[0075] Decryption information 101b is controlled information used by the second trusted execution space 201 to decrypt the encryption model 101a. Decryption information 101b can be the model decryption key itself, the model decryption key encrypted using the key encapsulation key within the second trusted execution space 201, or the key identifier, key materials, and derived parameters required to derive the model decryption key. When using an encapsulated model decryption key, decryption information 101b can only be decrypted within the second trusted execution space 201, thus preventing the model decryption key from passing through ordinary operating systems or network programs in plaintext.

[0076] After the first trusted execution space 101 confirms that the second trusted execution space 201 has passed the verification, it sends a key invocation request to the key management service 103 based on the model identifier and version of the model to be delivered. The key management service 103 verifies the invocation permissions, model identifier, and proof status, and then provides the corresponding decryption information 101b to the first trusted execution space 101, or internally encapsulates the model decryption key and returns the encapsulation result. The first trusted execution space 101 encapsulates the encrypted model 101a, decryption information 101b, model identifier, model version, and integrity verification information into model delivery data, and transmits it to the second trusted execution space 201 through an encrypted channel established based on the session key.

[0077] After receiving the model delivery data, the second trusted execution space 201 uses the session key to remove channel protection within its trusted boundary. It then recovers the model decryption key based on the decryption information 101b and decrypts and verifies the integrity of the encrypted model 101a. The decrypted model is directly loaded into the protected memory of the second trusted execution space 201 without being written to the ordinary file system of the second computing node 200. If decryption fails, model integrity verification fails, or the model version is inconsistent with the delivery information, the second trusted execution space 201 stops loading and clears the temporary key and the generated plaintext model data.

[0078] Therefore, this embodiment manages the model encryption key, communication session key, and proof key separately for different purposes through the key management service 103, and uses the trust measurement verification result of the second trusted execution space 201 as a prerequisite for session key negotiation and decryption information 101b release, forming a continuous security control relationship of "trust proof passed - establishment of encrypted channel - release of model decryption information - decryption within trusted space". This relationship can prevent the encrypted model 101a from being decrypted in an untrusted operating environment, while avoiding the exposure of the model key in ordinary operating systems and ordinary applications, realizing controlled key release and secure transmission during the process of industrial AI model being distributed from cloud node 100a to edge node 200a.

[0079] Example 6

[0080] Reference Figure 5 This embodiment provides a cloud-edge collaborative secure inference system under an industrial AI operating system, and also includes a sensor 303 that is communicatively connected to the edge node 300a.

[0081] The encrypted channels include: a first encrypted channel A, which is established between the first trusted execution space 101 and the second trusted execution space 201; a second encrypted channel B, which is established between the second trusted execution space 201 and the third trusted execution space 301; and a third encrypted channel C, which is established between the third trusted execution space 301 and the sensor 303.

[0082] In this embodiment, sensor 303 is installed in the monitored area of ​​industrial equipment, production line, or industrial site to collect sensor data related to the industrial production status. Sensor 303 can be an image sensor, temperature sensor, pressure sensor, vibration sensor, current sensor, sound sensor, or other industrial data acquisition device. End-side node 300a can be an industrial controller, intelligent acquisition terminal, equipment control terminal, or industrial gateway installed adjacent to sensor 303, enabling sensor data to enter the third trusted execution space 301 near the data source, reducing the exposure of raw industrial data in ordinary networks and operating systems.

[0083] The first encrypted channel A, the second encrypted channel B, and the third encrypted channel C are all logically secure communication paths established between their respective communication ends, and do not require separate physical lines. Each encrypted channel can reuse industrial Ethernet, wireless communication networks, fieldbuses, or internal device communication buses, but data transmitted through the corresponding encrypted channel is encrypted at the sending end and decrypted within the protected area at the receiving end, ensuring that ordinary programs located outside the trusted execution space can only access the encrypted data.

[0084] The first encrypted channel A is established between the first trusted execution space 101 and the second trusted execution space 201, connecting the trusted execution areas in the cloud node 100a and the edge node 200a. The two endpoints of the first encrypted channel A are located inside the first trusted execution space 101 and the second trusted execution space 201, respectively, rather than in the ordinary operating systems or ordinary network applications of the corresponding nodes. Therefore, although communication messages between the first computing node 100 and the second computing node 200 can be forwarded through ordinary network interfaces, model data, decryption information, and inference data are only restored to plaintext after entering the corresponding trusted execution space.

[0085] The first encrypted channel A can be established after the second trusted execution space 201 has passed trusted verification. The first trusted execution space 101 and the second trusted execution space 201 each store the negotiated session key within their respective trusted boundaries, and use this session key to encrypt and authenticate the data transmitted through the first encrypted channel A. The first encrypted channel A can adopt a bidirectional communication form, allowing the first trusted execution space 101 to transmit the encryption model 101a and decryption information 101b to the second trusted execution space 201, and also allowing the second trusted execution space 201 to return protected inference data or runtime status information to the first trusted execution space 101.

[0086] The second encrypted channel B is established between the second trusted execution space 201 and the third trusted execution space 301, connecting the trusted operating areas in the edge node 200a and the end-side node 300a. After the second trusted execution space 201 is verified by the first trusted execution space 101, it can negotiate the corresponding session key with the third trusted execution space 301 based on the trusted verification result of the third trusted execution space 301, thus forming the second encrypted channel B. In this way, the edge node 200a can only establish a protected data path with the end-side node 300a as a higher-level trusted node after its own trusted status has been confirmed by the cloud.

[0087] The third encryption channel C is established between the third trusted execution space 301 and the sensor 303 to protect the process of sensor data entering the edge trusted execution space from the data generation location.

[0088] As a specific implementation method, each encrypted channel can adopt AES-GCM, ChaCha20-Poly1305, or other authentication encryption methods with confidentiality and integrity protection capabilities. Encryption and decryption operations are preferably completed within the trusted execution space boundary or the secure communication unit of sensor 303, so that the ordinary network protocol stack of each computing node only undertakes the sending, receiving, and forwarding of encrypted messages, and cannot read the plaintext data transmitted between trusted execution spaces.

[0089] The first encrypted channel A, the second encrypted channel B, and the third encrypted channel C form a segmented yet continuously connected secure communication chain, rather than a single long connection directly established by sensor 303 extending to cloud node 100a. Sensor data first enters the third trusted execution space 301 via the third encrypted channel C, then is transmitted to the second trusted execution space 201 via the second encrypted channel B. Data requiring further uploading is transmitted to the first trusted execution space 101 via the first encrypted channel A. Each node maintains only the communication key with its neighboring nodes, and each data segment is encrypted within the trusted boundary of the sending end and decrypted or re-encrypted within the trusted boundary of the adjacent receiving end, thus forming a continuous secure transmission link from the sensor data source to the cloud trusted execution space.

[0090] Example 7

[0091] Reference Figure 6 and Figure 8 This embodiment provides a cloud-edge collaborative secure inference system under an industrial AI operating system that performs layered execution of cloud-edge-device collaborative inference. The first trusted execution space 101 contains a model training engine and a cloud inference engine, the second trusted execution space 201 contains a feature extraction engine 201b and a real-time inference engine 201c, and the third trusted execution space 301 contains a sensor preprocessing engine 301b.

[0092] The model training engine is used to train the model to be deployed based on historical sample data generated during industrial production. Historical sample data may include equipment status data, process parameters, product quality data, and corresponding status labels. The model training engine completes model parameter initialization, forward computation, error calculation, and parameter updates within the first trusted execution space 101, ensuring that the training data and model weights are protected within the first trusted execution space 101.

[0093] The model to be deployed can be a complete edge inference model or an edge sub-model deployed on edge node 200a in a cloud-edge collaborative model. For example, the front-end network used for basic feature processing and preliminary judgment can be deployed to edge node 200a, while the back-end network, which has a large computational load or needs to be executed in conjunction with global data, can be retained on cloud node 100a. After the model training is completed, the model to be deployed is encrypted in the first trusted execution space 101 to form an encrypted model 101a, and then transmitted to the second trusted execution space 201, where it is decrypted and loaded within the second trusted execution space.

[0094] Sensor 303 acquires images, temperature, pressure, vibration, current, or other industrial field data and sends them to the third trusted execution space 301 via the third encrypted channel C. After decryption and integrity verification, the third trusted execution space 301 performs preprocessing on the sensor data, including outlier removal, noise reduction, calibration, time alignment, normalization, image cropping, or data framing. The preprocessed sensor data is then encrypted within the third trusted execution space 301 and transmitted to the second trusted execution space 201 via the second encrypted channel B, thereby reducing the transmission of invalid data and the exposure of raw data in ordinary edge applications.

[0095] After receiving the preprocessed sensor data, the second trusted execution space 201 performs decryption and integrity verification within it. The feature extraction engine 201b generates feature vectors, feature maps, or time-series feature sequences through convolution operations, matrix operations, time-domain statistics, frequency-domain transformation, or feature encoding. The real-time inference engine 201c utilizes the loaded model to perform equipment anomaly identification, product defect classification, or process status judgment. For tasks requiring further processing in the cloud, the real-time inference engine 201c generates intermediate inference results such as feature vectors, anomaly probabilities, status scores, preliminary classification results, or model intermediate layer outputs, thereby reducing the cross-node transmission of original data while retaining the information needed for further inference in the cloud.

[0096] The intermediate inference results are encrypted within the second trusted execution space 201 and then transmitted to the first trusted execution space 101 via the first encrypted channel A. After decryption and integrity verification, the first trusted execution space 101 provides the intermediate inference results to the cloud inference engine. The cloud inference engine utilizes the computing resources of the cloud node 100a and combines historical production data, data from similar devices, or inference data from other edge nodes to perform complex state identification, long-term trend prediction, cross-device correlation analysis, or global process optimization.

[0097] After the cloud-based inference engine generates the final inference result, it is encrypted within the first trusted execution space 101 and returned to the second trusted execution space 201 via the first encryption channel A. The final inference result may include fault type, quality judgment result, process optimization parameters, control recommendations, or risk level. After decryption and verification, the second trusted execution space 201 will provide the allowed output control parameters or alarm information to the authorized industrial control program.

[0098] Taking the optimization of hot rolling process parameters for steel as an example, sensor 303 collects rolling temperature, rolling pressure, roll speed, and plate images. Sensor preprocessing engine 301b performs time alignment, outlier removal, and normalization on the data. Feature extraction engine 201b extracts temperature changes, pressure fluctuations, and plate surface features. Real-time inference engine 201c generates the current process state and local optimization results, and then sends the intermediate inference results to the first trusted execution space 101. The cloud inference engine combines historical rolling data to generate the final rolling parameters and returns them encrypted to the second trusted execution space 201.

[0099] Therefore, this embodiment combines the computational division between cloud, edge, and terminal with the isolation and protection of the trusted execution space through the hierarchical cooperation of the sensor preprocessing engine 301b, feature extraction engine 201b, real-time inference engine 201c, and cloud inference engine. It also ensures that the intermediate and final inference results are encrypted in the corresponding trusted execution space and then transmitted through an encrypted channel, thereby taking into account the real-time performance, global analysis capabilities, and data security of industrial inference.

[0100] Example 8

[0101] Reference Figure 7 Based on the aforementioned cloud-edge-device collaborative inference structure, this embodiment further isolates the storage of model weights and intermediate inference data in each trusted execution space. The first trusted execution space 101, the second trusted execution space 201, and the third trusted execution space 301 each have a protected memory 400, and the model weights used in each trusted execution space and the intermediate data generated during the inference process are all stored in the corresponding protected memory 400.

[0102] In this embodiment, the protected memory 400 is not limited to a separately configured physical memory chip, but can also be a protected storage area formed by processor access control, memory page isolation, and memory encryption mechanisms within physical memory. Different trusted execution environments can adopt different implementation methods. For example, the protected memory 400 in the first trusted execution space 101 can use virtual machine encrypted memory protected by TDX or SEV-SNP; the protected memory 400 in the second trusted execution space 201 can use SGX Enclave pages, TrustZone secure memory, or other edge TEE protection areas; and the protected memory 400 in the third trusted execution space 301 can use Secure World Dedicated Memory or a secure storage area inside the edge processor.

[0103] Each protected memory 400 establishes a dedicated access relationship with its respective trusted execution space. When a trusted execution space is created, the kernel-level trusted computing base of the corresponding node allocates protected memory pages for it and configures access permissions, enabling trusted programs within the corresponding trusted execution space to read and write, while the ordinary operating system, ordinary applications, unauthorized drivers, and other trusted execution spaces on the computing node cannot directly access them. Even if the protected memory 400 physically shares the same memory with ordinary programs, its logical address mapping, access permissions, and stored content remain isolated.

[0104] The protected memory 400 corresponding to the first trusted execution space 101 is used to store model weights generated during model training, plaintext parameters of the model to be distributed, and intermediate data for cloud inference. The protected memory 400 corresponding to the second trusted execution space 201 is used to store decrypted model weights, as well as feature vectors, feature maps, activation values, temporary tensors, and intermediate inference results generated by feature extraction and real-time inference. The protected memory 400 corresponding to the third trusted execution space 301 is used to store the operating parameters, preprocessing configuration, and preprocessing results of the sensor preprocessing engine 301b. All model weights and intermediate data are not written to the corresponding node's ordinary file system, shared memory, or ordinary application buffer.

[0105] The intermediate data referred to in this embodiment includes data generated between the input data and the output result of the model, but which has not yet formed the final inference result. Examples include activation values ​​of intermediate layers in a neural network, feature maps, feature vectors, attention caches, matrix operation results, temporary calculation parameters, and intermediate inference results generated at the edge. The aforementioned intermediate data may reflect the original process parameters, product characteristics, or internal processing rules of the model. Therefore, it is necessary not only to protect the model weights but also to limit the exposure of intermediate data in ordinary memory.

[0106] When intermediate data needs to be transferred from one trusted execution space to another, the sender reads the intermediate data from the corresponding protected memory 400, encrypts it within the trusted execution space, and then sends it through the corresponding encrypted channel. The receiver decrypts the data within its trusted execution space and writes the resulting data into its own protected memory 400. Different trusted execution spaces do not directly share the plaintext storage area of ​​intermediate data, thereby preventing shared memory from becoming a plaintext leakage path in cross-node collaborative inference.

[0107] When a model inference task ends, a model version is updated, or the trusted execution space exits abnormally, the corresponding kernel-level trusted computing base can control the trusted execution space to clear the model plaintext, session key, and intermediate data from the protected memory 400, and cancel the mapping relationship between the relevant memory pages and the trusted execution space. For any residual data in the cache, cache refresh or overwrite operations can also be performed to prevent other programs from reading residual data from the previous inference task after the protected storage area is reallocated.

[0108] Therefore, this embodiment ensures that model weights are decrypted and used only within the trusted execution space by establishing a dedicated access relationship between each trusted execution space and the corresponding protected memory 400. It also ensures that intermediate inference data is always within the protected storage area, reducing the possibility of ordinary operating systems, host programs, and other inference instances accessing the model plaintext and intermediate data, thereby achieving memory-level isolation protection during the operation of industrial AI models.

[0109] Example 9

[0110] Reference Figure 6 In this embodiment, based on the aforementioned cloud-edge-device collaborative inference structure, a data flow monitoring component 203 is further set up at the edge node 200a. The data flow monitoring component 203 is connected to the kernel-level trusted computing base of the edge node 200a and is used to perform security level marking and flow control on the inference data transmitted through the first encrypted channel A and the second encrypted channel B.

[0111] The data flow monitoring component 203 can be implemented as a security policy sub-component in the kernel-level trusted computing base of the edge node 200a, or as an independent monitoring component controlled by the kernel-level trusted computing base. The kernel-level trusted computing base sets data flow checkpoints at the data sending and receiving interfaces of the first encrypted channel A and the second encrypted channel B, so that before the inference data enters or leaves the second trusted execution space 201, the data flow monitoring component 203 checks the corresponding security level label and the trust level of the receiver.

[0112] Security level labels are used to characterize the sensitivity of inference data. Security levels can be categorized based on the source of industrial data, data content, involved models, and application scenarios. In one specific implementation, five levels, S0 to S4, can be set according to sensitivity from low to high, where S0 represents public data, S1 represents internal data, S2 represents sensitive data, S3 represents confidential data, and S4 represents top-secret data. For example, ordinary ambient temperature can be labeled S0, equipment identification can be labeled S1, process parameter ranges can be labeled S2, precise process parameters or production formulas can be labeled S3, and industrial AI model weights or intermediate data that can deduce core process rules can be labeled S4.

[0113] The data flow monitoring component 203 can configure security level labels for inference data based on the source, data type, involved model, and application scenario of the inference data. The third trusted execution space 301, the second trusted execution space 201, and the first trusted execution space 101 can provide the data flow monitoring component 203 with data attributes such as sensor type, acquisition area, feature type, model level, and result usage, respectively. The data flow monitoring component 203 determines the corresponding security level labels based on the above data attributes and preset security policies.

[0114] Security level labels can be encapsulated together with encrypted data, data identifiers, model identifiers, and inference task identifiers into inference data packets. Preferably, the security level label participates in integrity authentication as part of the encrypted channel authentication data, preventing ordinary network programs from modifying the label of high-level inference data to a low-level label without compromising the authentication result. The data flow monitoring component 203 can read the label and channel metadata, but does not need to read the plaintext content of the inference data.

[0115] The first trusted execution space 101, the second trusted execution space 201, and the third trusted execution space 301 are configured with corresponding security levels based on the trusted execution environment type, operating mode, security version, model access permissions, and security policies. The data flow monitoring component 203 compares the security level of the inference data with the security level of the receiver's trusted execution space. If the security level of the inference data is not higher than the receiver's security level, it is allowed to be transmitted through the corresponding encrypted channel. If the security level of the inference data is higher than the receiver's security level, transmission is blocked, and the component can temporarily store or delete the data to be sent, or report a security policy mismatch event to the kernel-level trusted computing base. Data lacking a security level label, with label verification failing, or whose receiver's security level cannot be confirmed is rejected for transmission.

[0116] The data flow monitoring component 203 can also maintain the continuity of security level labels when inference data crosses different encryption channels. For example, after the sensor data preprocessed at S2 level formed by the third trusted execution space 301 enters the second trusted execution space 201 through the second encryption channel B, when the feature extraction engine 201b generates intermediate inference results based on this data, it can inherit the original security level or improve its security level based on the information added in the intermediate inference results, but it should not reduce its security level in the absence of authorization basis. This can prevent sensitive data from losing its original security attributes after feature extraction or format conversion.

[0117] Therefore, this embodiment uses the data flow monitoring component 203 to perform security level marking, tag tracking, and level comparison on the inference data in the first encrypted channel A and the second encrypted channel B, implementing the industrial data classification strategy into the specific cross-trusted execution space transmission process. Transmission is only allowed when the security level of the inference data is not higher than the security level of the recipient's trusted execution space, thereby preventing confidential process data, model features, and intermediate inference results from flowing into the operating environment with insufficient trust level, and realizing fine-grained data flow security control in the cloud-edge-device collaborative inference process.

[0118] Example 10

[0119] Reference Figure 9 In this embodiment, based on the aforementioned cloud-edge-device collaborative reasoning, an audit record is generated for each collaborative reasoning process. Edge node 200a generates the audit record corresponding to this collaborative reasoning based on the real-time reasoning process executed by the second trusted execution space 201 and the cloud reasoning process executed by the first trusted execution space 101, and sends it to cloud node 100a through the first encrypted channel A; the kernel-level trusted computing base of cloud node 100a appends the received audit records to the chained audit log in the order of generation.

[0120] Audit logs may include task identifier, model identifier, model version, trusted execution space identifier involved in inference, inference start time and end time, intermediate inference result summary, final inference result summary, and inference execution status. For sensitive content such as model weights, precise process parameters, and intermediate inference data, audit logs may only save their summaries or identifiers, rather than the complete plaintext, to avoid the audit logs becoming an additional exposure point for sensitive data.

[0121] Edge node 200a combines real-time edge inference information and cloud inference information to form an audit log based on the same task identifier. The kernel-level trusted computing base of edge node 200a calculates the record digest and generates integrity authentication information using the audit key. The authenticated audit log is sent to cloud node 100a through the first encrypted channel A. The kernel-level trusted computing base of cloud node 100a verifies the record digest, authentication information, and task identifier. If the verification fails, it is not written to the chained audit log; if the verification succeeds, it is appended to the end of the log according to the record's generation time or record sequence number.

[0122] Each audit record in the chained audit log can include a digest value of the previous audit record. The kernel-level trusted computing base of cloud node 100a calculates the digest of the current record based on the audit content and the digest value of the previous record, thus establishing a sequential association between adjacent records. When an existing record is deleted, replaced, or its order is changed, the digest association between subsequent records will become abnormal. The chained audit log can use a centralized hash chain log or a blockchain-style data structure. It does not require a multi-node consensus mechanism; its focus is on improving the anti-tampering capability of historical records through the sequential appending and association of audit records.

[0123] Therefore, this embodiment links the edge real-time inference process with the cloud inference process to form an audit log, which is then appended to the chain audit log by the kernel-level trusted computing base of cloud node 100a in the order of generation. Without saving the complete plaintext of sensitive data, it enables the traceability and integrity verification of participating nodes, model versions, inference order and inference results, thereby improving the auditability and anti-tampering capability of the industrial AI collaborative inference process.

[0124] Finally, it should be noted that the systems described in detail above are merely embodiments of the present invention, and those skilled in the art can modify these embodiments in different ways as long as they do not depart from the scope of the present invention.

Claims

1. A cloud-edge collaborative secure inference system under an industrial AI operating system, characterized in that, include: The first computing node (100) is a cloud node (100a) and has a first trusted execution space (101). The second computing node (200) is an edge node (200a) and has a second trusted execution space (201). The end-side node (300a) has a third trusted execution space (301); The sensor (303) is communicatively connected to the end-side node (300a); The second trusted execution space (201) is used to generate first trusted proof information (201a) representing its operating environment. The first trusted execution space (101) is used to verify the first trusted proof information (201a) and, upon successful verification, provides the second trusted execution space (201) with an encryption model (101a) and corresponding decryption information (101b). The second trusted execution space (201) is used to decrypt the encryption model (101a) within itself based on the decryption information (101b). A first encryption channel (A) is provided between the first trusted execution space (101) and the second trusted execution space (201), a second encryption channel (B) is provided between the second trusted execution space (201) and the third trusted execution space (301), and a third encryption channel (C) is provided between the third trusted execution space (301) and the sensor (303). The first trusted execution space (101) is equipped with a cloud inference engine, the second trusted execution space (201) is equipped with a feature extraction engine (201b) and a real-time inference engine (201c), and the third trusted execution space (301) is equipped with a sensor preprocessing engine (301b). The sensor (303) is used to send sensor data to the third trusted execution space (301) through the third encrypted channel (C), and the sensor preprocessing engine (301b) is used to preprocess the sensor data and transmit the preprocessed sensor data to the second trusted execution space (201) through the second encrypted channel (B). The feature extraction engine (201b) and the real-time inference engine (201c) are used to perform feature extraction and real-time inference on the preprocessed sensor data using the decrypted model, generate intermediate inference results, encrypt the intermediate inference results in the second trusted execution space (201), and transmit them to the first trusted execution space (101) through the first encryption channel (A). The cloud inference engine is used to perform cloud inference based on the intermediate inference results, generate the final inference result, encrypt the final inference result in the first trusted execution space (101), and then transmit it to the second trusted execution space (201) through the first encryption channel (A).

2. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 1, characterized in that: The edge node (200a) is equipped with an edge proof agent (202), which is communicatively connected to the second trusted execution space (201) and is used to obtain and send the first trusted proof information (201a). The end-side node (300a) is provided with an end-side proof agent (302), which is communicatively connected to the third trusted execution space (301) and is used to obtain and send the second trusted proof information (301a) generated by the third trusted execution space (301). The second trusted execution space (201) is also used to verify the second trusted proof information (301a) after the first trusted proof information (201a) it generates is verified by the first trusted execution space (101).

3. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 2, characterized in that: The cloud node (100a), the edge node (200a), and the terminal node (300a) are each equipped with a kernel-level trusted computing base; Each of the kernel-level trusted computing base stations is located in the kernel layer of the industrial AI operating system and is connected to the trusted execution space of the computing node through a kernel-level management interface, for managing the operation of the corresponding trusted execution space; The kernel-level trusted computing base of the edge node (200a) is connected to the edge proof agent (202), and the kernel-level trusted computing base of the end-side node (300a) is connected to the end-side proof agent (302).

4. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 3, characterized in that: The cloud node (100a) is also provided with a remote proof service (102), which is communicatively connected to the kernel-level trusted computing base of the cloud node (100a), the edge proof agent (202) and the end-side proof agent (302); The first trusted proof information (201a) and the second trusted proof information (301a) respectively include trusted measurement values ​​generated based on the running code and running configuration of the corresponding trusted execution space; The remote proof service (102) is used to compare the trust measurement value sent by the edge proof agent (202) with the corresponding preset trust measurement whitelist, and provide the obtained verification result to the first trusted execution space (101). The remote proof service (102) is also used to compare the trust metric value sent by the end-side proof agent (302) with the corresponding preset trust metric whitelist, and provide the obtained verification result to the second trusted execution space (201).

5. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 4, characterized in that: The cloud node (100a) is also provided with a key management service (103), which is connected to the kernel-level trusted computing base and the first trusted execution space (101) of the cloud node (100a) respectively, and is used to manage the model encryption key, communication session key and proof key.

6. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 5, characterized in that: The first trusted execution space (101) is also used to negotiate a session key with the second trusted execution space (201) when the trusted measurement value of the second trusted execution space (201) is consistent with the corresponding preset trusted measurement whitelist, and to establish the first encrypted channel (A) based on the negotiated session key. The first trusted execution space (101) is also used to obtain the decryption information (101b) corresponding to the encryption model (101a) from the key management service (103), and transmit the encryption model (101a) and its corresponding decryption information (101b) to the second trusted execution space (201) through the first encryption channel (A).

7. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 1, characterized in that: The first trusted execution space (101) is also provided with a model training engine, which is used to train the model to be distributed, and the model to be distributed is encrypted to form the encrypted model (101a).

8. The cloud-edge collaborative secure inference system under the industrial AI operating system as described in claim 1, characterized in that: The first trusted execution space (101), the second trusted execution space (201) and the third trusted execution space (301) each have a protected memory (400); The model weights used in each trusted execution space and the intermediate data generated during the corresponding inference process are all stored in the corresponding protected memory (400). Programs located outside the corresponding trusted execution space in each computing node are isolated from the protected memory (400).

9. The cloud-edge collaborative secure inference system under an industrial AI operating system as described in any one of claims 3 to 6, characterized in that: The edge node (200a) is also provided with a data flow monitoring component (203), which is connected to the kernel-level trusted computing base of the edge node (200a); The data stream monitoring component (203) is used to configure a security level label for inference data transmitted via the first encrypted channel (A) or the second encrypted channel (B), and compare the security level represented by the security level label with the security level of the trusted execution space that receives the inference data. When the security level of the inference data is not higher than the security level of the trusted execution space receiving the inference data, the inference data may be transmitted to the trusted execution space receiving the inference data.

10. The cloud-edge collaborative secure inference system under an industrial AI operating system as described in any one of claims 3 to 6, characterized in that: The edge node (200a) is also used to generate an audit record corresponding to this collaborative reasoning based on the real-time reasoning process executed by the second trusted execution space (201) and the cloud reasoning process executed by the first trusted execution space (101), and send the audit record to the cloud node (100a) through the first encrypted channel (A). The kernel-level trusted computing base of the cloud node (100a) is used to append the received audit records to the chained audit log in the order of their generation.

Citation Information

Patent Citations

  • Confidential virtual machine operating system, system call proxy method, terminal and medium

    CN119806754A

  • Method and system for realizing security control and whole-course credibility based on double-circulation credibility verification

    CN120979827A

  • AI model operation protection and credible evidence storage method and system, and storage medium

    CN121567306A