A method and device for whole-cycle asset security assurance of a nuclear power industry model

By employing a full-cycle security strategy, including security measures for data preprocessing, encrypted transmission, storage, and sharing, the diverse security threats to the nuclear power industry model are addressed, ensuring the model's security and integrity and guaranteeing the stable operation of nuclear power facilities.

CN120832775BActive Publication Date: 2026-11-27CHINA NUCLEAR POWER OPERATION TECH CORP +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511005136.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2026-11-27
Estimated Expiration
2045-07-21

AI Technical Summary

Technical Problem

The nuclear power industry faces diverse safety threats, including safety issues in data interaction, algorithm computation, and model simulation, which affect the stable operation and overall safety of the nuclear power industry control system.

Method used

This paper provides a method for ensuring the security of assets throughout the entire lifecycle of a nuclear power industry model, including security strategies for data preprocessing, encrypted transmission, storage, operation and sharing. It employs virtual private networks, encryption algorithms, access control, isolation and sandboxing technologies to ensure the security and integrity of model data.

Benefits of technology

It ensures the security of nuclear power industry models throughout their entire lifecycle, preventing data leakage, tampering, and cyberattacks, ensuring the accuracy and reliability of the models, and guaranteeing the safe operation of nuclear power facilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120832775B_ABST
    Figure CN120832775B_ABST
Patent Text Reader

Abstract

The application discloses a kind of nuclear power industry model's whole cycle asset security guarantee method and device, method includes the following steps: in model compilation, i.e. model generation stage, data set is preprocessed, model parameter is optimized, corresponding defense strategy is set for data poisoning;In model transmission stage, set up secure transmission protocol, use virtual private network, the model is encrypted transmission and upload, and key is hosted and stored, and the model data of completion transmission is verified integrity;In model storage stage, the model data stored is encrypted and access control, and data backup and recovery strategy is set for the model data stored;Access control is carried out in model running call stage, and the model is run and called using isolation and sandbox technology;Access control is carried out in model sharing stage, and corresponding application program interface is set for model sharing.The application can guarantee the asset security of nuclear power industry model in whole life cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of nuclear power industry model asset security technology, and in particular to a method and apparatus for ensuring the full life cycle asset security of a nuclear power industry model. Background Technology

[0002] With the rapid development of the nuclear power industry and the in-depth advancement of digital nuclear power construction, the demand for information and intelligent applications is growing stronger, and the security threats faced by nuclear power industry models are becoming increasingly diversified. These models involve a large amount of data interaction, algorithm calculation, and model simulation, and their security is directly related to the stable operation and overall safety of the nuclear industry control system.

[0003] While nuclear industry enterprises are increasingly strengthening their cybersecurity awareness and earnestly fulfilling their primary responsibility for cybersecurity, they should use systems thinking and digital information technology to scientifically advance model security assurance work and accelerate the construction of a model security protection system. Summary of the Invention

[0004] In view of this, it is necessary to provide a method and device for full-cycle asset security assurance in nuclear power industry models, so as to effectively solve the technical problem of inadequate security assurance in nuclear power industry models.

[0005] This invention provides a method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model, comprising the following steps: Step S1: In the model generation stage, preprocess the dataset on which the model generation depends, optimize the model parameters, and set up corresponding defense strategies against data poisoning. Step S2: In the model transmission stage, a secure transmission protocol is set up, a virtual private network is used to encrypt and transmit the model, and the key during the transmission process is managed and stored. The integrity of the transmitted model data is verified. Step S3: In the model storage stage, the stored model data is encrypted and access control is implemented. Appropriate data backup and data recovery strategies are set for the stored model data. Step S4: During the model execution and invocation phase, isolation and sandboxing technologies are used to execute the model, including access control, input data validation and filtering, security vulnerability scanning, security auditing, and log monitoring. Step S5: In the model sharing stage, access control is implemented for model sharing, corresponding application programming interfaces are set up for model sharing, and the model is encapsulated and packaged before sharing; firewalls and intrusion detection and prevention systems are deployed to defend against network threats to the model.

[0006] Preferably, in step S1, the data on which the model generation depends is preprocessed, specifically as follows: The dataset is then subjected to data cleaning, data transformation, data preprocessing, and data validation. The data cleaning includes missing value handling and outlier handling. Outlier handling includes filtering the data and identifying and extracting outliers using statistical methods. Missing value handling includes processing missing values ​​using direct deletion, interpolation calculation, and machine learning methods. The data preprocessing includes data transformation and feature engineering. Data transformation includes data standardization and feature encoding. Feature encoding is implemented using label encoding and one-hot encoding. Feature engineering includes feature construction and feature selection. Feature construction uses numerical features, text features, or interactive features. Feature selection selects key features through correlation analysis and recursive feature elimination. The data validation involves dividing the dataset into training, validation, and test sets using cross-validation, generating multiple different datasets through repeated sampling, and performing consistency checks on the datasets.

[0007] Preferably, optimizing the model parameters in step S1 specifically involves: Automatic parameter tuning technology is used to automatically explore the parameter space. The model performance evaluation index is used as the objective function. The dataset is used for model training and validation to obtain the optimal parameters and complete the optimization of the model parameters.

[0008] Preferably, in step S1, a corresponding defense strategy is set for data poisoning, specifically as follows: Differential privacy technology is used to protect the privacy of the dataset; perturbations or noise are introduced during model training to enhance the model's resistance to malicious input; an access control mechanism is set up for the dataset to restrict unauthorized users from accessing or modifying the dataset; at the same time, security audits are performed on the real-time log recording during the model generation process.

[0009] Preferably, the encrypted transmission and upload of the model in step S2 specifically includes: Different encryption methods are used for different types of models and different contents within them; The models include industrial mechanism models and industrial artificial intelligence models; The industrial mechanism model includes a basic theoretical model, a process model, and a simulation model; The encryption of the basic theoretical model specifically involves: encrypting the basic theoretical model using an encryption algorithm; encrypting key data in the basic theoretical model using AES or RSA; setting specific encryption algorithms for specific data in the basic theoretical model; using code obfuscation techniques to change the variable names, function names, and logical structure of the basic theoretical model; using model segmentation techniques to split the basic theoretical model into multiple modules; and combining these modules to complete the basic theoretical model. The specific encryption method for the process model is as follows: a symmetric encryption algorithm is selected to encrypt the process model, and an asymmetric encryption algorithm is selected to encrypt the key information of the process model; a dedicated encryption tool is used to encrypt the configuration file of the process model; for parameter models that the solver can run, an encryption step is added during the model generation or calling process to achieve encryption; for FMU models packaged according to standard specifications, an encryption mechanism is added during the packaging process, and the FMU file is encrypted based on the encryption mechanism to achieve encryption of the FMU model. The specific encryption methods for the simulation model are as follows: for simulation model files, file encryption tools are used for encryption; for model code files, the source code files are encrypted before compilation; for binary simulation model files, binary encryption is used, and the machine code of the binary files is encrypted. The industrial artificial intelligence model includes machine learning models, deep learning models, and large-scale industry models; The encryption of the machine learning model is specifically as follows: for the machine learning model file, a symmetric encryption algorithm or an asymmetric encryption algorithm is used for encryption; for the model code file, the source code is obfuscated to achieve encryption; for the binary model file of the machine learning model, a dedicated encryption tool is used for encryption; for the machine learning model carried by the container, a corresponding encrypted file system is created on the host machine, and the encrypted file system is mounted in the container as a data volume, and the files stored in the data volume are automatically encrypted. The encryption method for the deep learning model is as follows: For the deep learning model file, a symmetric encryption algorithm or an asymmetric encryption algorithm is used for overall encryption; for the model code file, source code obfuscation is used for encryption, and the source code is compiled into bytecode, the bytecode file is encrypted, and key code segments are dynamically decrypted and executed; for the deep learning model carried by a container, the entire image file is encrypted, and the access control function provided by the container platform is used to control access permissions to the model file of the deep learning model. The encryption method for the industry-wide model is as follows: the model file of the industry-wide model is converted into encrypted binary data using an encryption algorithm; the key parameters and weight data of the industry-wide model are encrypted; at the same time, access control, input verification and anomaly detection are implemented for the inference service engine, and a secure communication protocol is used to realize communication between the inference server and the client.

[0010] Preferably, a secure transmission protocol is set up, a virtual private network is used, and the key during transmission is managed and stored. The integrity of the transmitted data is verified, specifically as follows: All data transmitted between the client and the target server is encrypted using the HTTPS Hypertext Transfer Protocol; the encrypted model data is encrypted and transmitted using the SFTP Secure File Transfer Protocol, and authentication is performed accordingly. A VRN (Virtual Private Network) is used to create an encrypted channel on a public network to ensure the security of data when remote users access resources within the platform. The VRN uses encryption technology to encrypt transmitted data, converting it into an unreadable form, which the recipient can then decrypt and read using a decryption key. The key is stored and managed using a hardware security module or a third-party server; The integrity of the transmitted data is verified by using hash value comparison, digital signature, or checksum; the specific integrity verification method is selected according to the model type, application scenario, and data characteristics.

[0011] Preferably, step S3 specifically includes: Sensitive data, including model parameters and weights, is protected using encryption algorithms. An access control mechanism is established to manage access to model data, restricting direct access to sensitive data, recording user access behavior, and auditing it. A backup strategy is set based on the data's importance, update frequency, and storage space. A data recovery mechanism is established to restore model operation when data problems occur, based on backup data and the data recovery mechanism. The integrity and availability of the backup data are periodically verified.

[0012] Preferably, step S4 specifically includes: Role-based access control is adopted, establishing role sets for various permissions and assigning roles in these sets to different users to control access permissions to specific resources in the system. Virtual machines or virtual machine technology are used to isolate the model's runtime environment from other systems to ensure model security. The model is run and debugged in a sandbox environment, restricting its runtime permissions. Input data during the debugging process is validated and filtered. The model is regularly scanned for security vulnerabilities. The model's runtime logs and call records are monitored in real time, and regular security audits are performed on these logs and records.

[0013] Preferably, step S5 specifically includes: Implement access control for model sharing; set up an API interface for model sharing; encapsulate and package the model before sharing it, defining the model's input and output interfaces during the encapsulation process; perform testing and verification after model encapsulation; deploy the encapsulated model to the target environment and distribute it to users.

[0014] The present invention also provides a full-cycle asset security assurance device for a nuclear power industry model, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the full-cycle asset security assurance method for the nuclear power industry model.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention sets different security protection strategies in the generation, transmission, storage, operation and calling, sharing and network threat stages of the nuclear power industry model, so as to ensure asset security throughout the entire life cycle. Attached Figure Description

[0016] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 is a flowchart of an embodiment of a full-cycle asset security assurance method for a nuclear power industry model provided by the present invention; Figure 2 yes Figure 1 The diagram shows a framework of an embodiment of the full-cycle asset security assurance method for the nuclear power industry model. Detailed Implementation

[0017] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.

[0018] Example 1 Please see Figure 1 This embodiment presents a method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model, comprising the following steps: Step S1: In the model generation stage, preprocess the dataset on which the model generation depends, optimize the model parameters, and set up corresponding defense strategies against data poisoning. Step S2: In the model transmission stage, a secure transmission protocol is set up, a virtual private network is used to encrypt and transmit the model, and the key during the transmission process is managed and stored. The integrity of the transmitted model data is verified. Step S3: In the model storage stage, the stored model data is encrypted and access control is implemented. Appropriate data backup and data recovery strategies are set for the stored model data. Step S4: During the model execution and invocation phase, isolation and sandboxing technologies are used to execute and invoke the model, and access permissions are controlled for the execution and invocation of the model. Step S5: In the model sharing stage, access control is implemented for model sharing, corresponding application programming interfaces are set up for model sharing, and the model is encapsulated and packaged before sharing; firewalls and intrusion detection and prevention systems are deployed to defend against network threats to the model.

[0019] This embodiment sets different security protection strategies for the generation, transmission, storage, operation and invocation, and sharing stages of the nuclear power industry model, as well as for network threats, to ensure asset security throughout the entire life cycle.

[0020] During the model generation phase, data quality and accuracy issues, improper parameter tuning, and security vulnerabilities and cyberattacks can all threaten model security. In the nuclear power industry, the data upon which model generation relies may come from multiple different sources, such as sensors, monitoring equipment, and operational records. Due to equipment failures, data transmission errors, or human error, this data may contain noise, outliers, or missing values. These issues directly affect the model's training performance, causing the model to fail to accurately reflect the real state of the nuclear power system. If data is tampered with or falsified, it may also lead to misleading model results, threatening the safe operation of the nuclear power system.

[0021] During model generation, parameter adjustments have a significant impact on model performance. Inappropriate parameter settings, such as an excessively high learning rate or an excessively low regularization parameter, can lead to model instability during training, resulting in overfitting or underfitting. This not only affects the model's prediction accuracy but may also increase the uncertainty of the model in practical applications.

[0022] During model generation, if the software or hardware used contains security vulnerabilities, attackers may exploit these vulnerabilities to obtain sensitive data, tamper with the model structure, or inject malicious code. This could not only lead to model generation failure but also potentially leak critical information about the nuclear power system, threatening the safe operation of nuclear power facilities. For example, attackers might use methods such as data poisoning and malware injection to attack the model. In data poisoning attacks, attackers might tamper with the nuclear power plant's operational data, causing the model to learn incorrect behavioral patterns or associations, leading to incorrect decisions in practical applications. Simultaneously, attackers may also introduce malware, such as viruses, Trojans, or ransomware, during model training to disrupt the training process or steal sensitive data. This malware is hidden in training data, model code, or dependent libraries, making it difficult to detect and remove.

[0023] When transmitting model data from the local machine to the platform, encrypted transmission ensures the security, integrity, and confidentiality of the data. This embodiment safeguards the platform's model transmission security from four aspects: encrypted transmission process, encryption technology, security protocol, and key storage and management.

[0024] The model storage security method primarily addresses how to ensure the security of model data during storage and prevent data leakage or tampering. This embodiment mainly protects model storage security from three aspects: data encryption, access control, and data backup and recovery.

[0025] Ensuring the privacy and security of model content is crucial during platform model sharing. There are scenarios where users may not want to see the model's core information after sharing. We safeguard platform model sharing security through three aspects: setting access control permissions, API interface design, and model encapsulation and packaging.

[0026] Specifically, in step S1, the data on which the model generation depends is preprocessed, specifically as follows: The dataset is subjected to data cleaning, data preprocessing, and data validation. The data cleaning includes filtering the data, identifying and extracting outliers using statistical methods, and processing missing values ​​using interpolation methods and machine learning techniques; the data preprocessing includes data standardization, feature selection, and encoding; the data validation involves dividing the dataset into training, validation, and test sets using cross-validation, generating multiple different datasets through random sampling using repeated sampling, and performing consistency checks on the datasets.

[0027] Data from various sources, such as sensors, monitoring equipment, and operational records, requires data cleaning to remove noise, outliers, and missing values. Simultaneously, data validation techniques, such as cross-validation and resampling, are employed to ensure the accuracy and reliability of the data used for model learning.

[0028] In the generation of nuclear power industry models, data cleaning is the primary step to ensure data quality. By employing filtering techniques, such as moving average filtering and Kalman filtering, noise from sensor errors and environmental disturbances can be effectively removed, thus smoothing the data. Simultaneously, using statistical methods to identify and remove outliers can prevent equipment malfunctions or human error from interfering with model training. For handling missing values, interpolation methods and machine learning techniques are used to ensure data integrity and accuracy.

[0029] Data preprocessing involves data standardization, feature selection, and encoding. Standardization enables data from different sources to be compared on the same scale, improving the stability of model training. Feature selection removes redundant and irrelevant feature information, further enhancing model performance. Methods such as one-hot encoding allow classification features to be adapted to the specific requirements of numerical computation.

[0030] To ensure data quality and model performance reliability, various data validation techniques can be employed. Cross-validation divides the dataset into training, validation, and test sets to comprehensively evaluate the model's generalization ability. Repeat sampling generates multiple distinct datasets through random sampling, providing rich data samples for model training and reducing bias caused by specific dataset partitioning. Furthermore, consistency checks ensure logical consistency between data from different sources or time periods, enhancing the model's reliability and stability. These measures collectively constitute a crucial aspect of data quality management, providing a solid data foundation for nuclear power industry model generation.

[0031] Specifically, optimizing the model parameters in step S1 involves: Automatic parameter tuning technology is used to automatically explore the parameter space. The model performance evaluation index is used as the objective function. The dataset is used for model training and validation to obtain the optimal parameters and complete the optimization of the model parameters.

[0032] In the generation of nuclear power industry models, parameter tuning is a crucial step, directly affecting the model's stability and prediction accuracy. To optimize model parameters, automatic parameter tuning technology is employed, combined with expert experience, to achieve more accurate and efficient parameter adjustments.

[0033] Automatic parameter tuning is a method that uses algorithms to automatically explore the parameter space and find the optimal parameter combination. In this embodiment, grid search finds the parameter values ​​that optimize model performance by traversing every possible combination in the parameter space. Although grid search is computationally intensive, it can comprehensively explore the parameter space, ensuring that no possible excellent parameter combinations are overlooked. Another automatic parameter tuning technique used in this embodiment is random search, which searches for optimal parameters by randomly sampling in the parameter space, achieving relatively good results within a limited time. In addition, Bayesian optimization is also an efficient automatic parameter tuning technique. It uses Bayes' theorem to guide the search process, gradually approaching the optimal parameter combination by iteratively updating the parameter distribution.

[0034] During parameter tuning, it's also necessary to combine model performance evaluation metrics for specific optimization. Metrics such as accuracy and recall can intuitively reflect the model's ability to identify positive and negative examples. By continuously adjusting parameters and observing changes in these metrics, the optimal parameter combination for model performance can be gradually found. Simultaneously, to more comprehensively evaluate model performance, techniques such as cross-validation discussed in the previous section are used to divide the dataset into multiple subsets for separate training and validation, effectively avoiding overfitting and guiding parameter tuning with more reliable performance evaluation results.

[0035] Specifically, in step S1, a corresponding defense strategy is set for data poisoning, which includes: Differential privacy technology is used to protect the privacy of the dataset; perturbations or noise are introduced during model training to enhance the model's resistance to malicious input; an access control mechanism is set up for the dataset to restrict unauthorized users from accessing or modifying the dataset; at the same time, security audits are performed on the real-time log recording during the model generation process.

[0036] Data poisoning attacks pose a significant security challenge during the model generation phase in the nuclear power industry. Because the nuclear power industry demands extremely high accuracy and reliability from its models, even minor data disturbances can have a substantial impact on model performance, thereby posing a serious threat to the safe operation of nuclear power facilities.

[0037] The essence of a data poisoning attack lies in the attacker's disruption of the model's training process by tampering with or injecting malicious data. In the nuclear power industry, this data may involve critical information such as the nuclear power plant's operating parameters, sensor readings, and equipment status. Attackers may cause the model to learn incorrect behavioral patterns or associations by adding falsified data to the training set, modifying real data, or deleting important data. Once the model is affected by a poisoning attack, it may make incorrect decisions in practical applications, such as misjudging equipment status or incorrectly adjusting operating parameters, potentially leading to serious safety incidents.

[0038] To prevent data poisoning attacks, the nuclear power industry needs to implement a series of security measures. First, it must strengthen data cleaning and preprocessing to ensure the authenticity and integrity of training data, using data verification techniques to detect outliers and noise, and eliminating potential data contamination through data filtering and standardization. Second, it must establish a strict data access control mechanism, restricting access to and modification of training data to only authorized users or systems. Simultaneously, it must implement security audits and logging to enable tracing and identification of the source in the event of a security incident.

[0039] Furthermore, this embodiment uses differential privacy technology to protect the privacy of training data and prevent sensitive information from being leaked to attackers. Additionally, adversarial training techniques are introduced, which enhance the model's resistance to malicious input by introducing perturbations or noise during training, thereby improving the model's defense against poisoning attacks to some extent.

[0040] Step S2 is as follows: Select an encryption algorithm and generate a corresponding key, then encrypt the model data based on the encryption algorithm and the generated key; After encryption is complete, the encrypted model data is transmitted to the target server using a secure communication protocol; After receiving the encrypted model data, the target server decrypts the encrypted model data using the corresponding key; Calculate the checksum of the decrypted model data, and verify the integrity of the model data by comparing the checksums; or calculate the hash value of the decrypted model data, and verify the integrity of the model data by comparing the hash values. The decrypted and verified model data is stored in the local file system.

[0041] Specifically, in step S2, the model is encrypted during transmission and upload, which includes: Different encryption methods are used for different types of models and different contents within them; The models include industrial mechanism models and industrial artificial intelligence models; The industrial mechanism model includes a basic theoretical model, a process model, and a simulation model; The encryption of the basic theoretical model specifically involves: encrypting the basic theoretical model using an encryption algorithm; encrypting key data in the basic theoretical model using AES or RSA; setting specific encryption algorithms for specific data in the basic theoretical model; using code obfuscation techniques to change the variable names, function names, and logical structure of the basic theoretical model; using model segmentation techniques to split the basic theoretical model into multiple modules; and combining these modules to complete the basic theoretical model. The encryption of the process model specifically involves: encrypting the process model using a symmetric encryption algorithm, and encrypting the key information of the process model using an asymmetric encryption algorithm; encrypting the configuration file of the process model using a dedicated encryption tool; adding encryption steps during the model generation or calling process for parameter models that the solver can run; and adding an encryption mechanism during the encapsulation process for FMU models packaged according to standard specifications, thereby encrypting the FMU file based on the encryption mechanism to achieve encryption of the FMU model. The encryption of the simulation model is specifically as follows: for the simulation model file, a file encryption tool is used for encryption; for the model code file, the source code file is encrypted before compilation; for the binary simulation model file, binary encryption is used, and the machine code of the binary file is encrypted. The industrial artificial intelligence model includes machine learning models, deep learning models, and large-scale industry models; The encryption of the machine learning model is specifically as follows: for the machine learning model file, a symmetric encryption algorithm or an asymmetric encryption algorithm is used for encryption; for the model code file, the source code is obfuscated to achieve encryption; for the binary model file of the machine learning model, a dedicated encryption tool is used for encryption; for the machine learning model carried by the container, a corresponding encrypted file system is created on the host machine, and the encrypted file system is mounted in the container as a data volume, and the files stored in the data volume are automatically encrypted. The encryption of the deep learning model is specifically as follows: for the deep learning model file, a symmetric encryption algorithm or an asymmetric encryption algorithm is used to encrypt the entire file; for the model code file, source code obfuscation is used to encrypt the file, and the source code is compiled into bytecode, which is then encrypted; for critical code segments, dynamic decryption and execution are employed; for the deep learning model carried by a container, the entire image file is encrypted, and the access control function provided by the container platform is used to control access permissions to the model file of the deep learning model. The encryption of the industry-wide model specifically involves: using an encryption algorithm to convert the model file of the industry-wide model into encrypted binary data; encrypting the key parameters and weight data of the industry-wide model; and simultaneously implementing access control, input verification, and anomaly detection for the inference service engine, and using a secure communication protocol to achieve communication between the inference server and the client.

[0042] Ensuring data security and confidentiality is crucial during the encrypted transmission of models. The specific encrypted transmission process is detailed below.

[0043] First, a suitable encryption algorithm needs to be selected based on business needs and security requirements. The choice of encryption algorithm directly affects the security level and transmission efficiency of the data. This embodiment uses encryption algorithms including AES (Advanced Encryption Standard) and RSA. AES is a symmetric encryption algorithm that uses the same key for both encryption and decryption, suitable for encrypting large amounts of data. RSA, on the other hand, is an asymmetric encryption algorithm that uses a pair of keys for encryption and decryption, where the public key is used to encrypt the data and the private key is used to decrypt it.

[0044] After selecting an encryption algorithm, a corresponding key needs to be generated. For symmetric encryption algorithms, a unique key needs to be generated, ensuring that both the client and server can securely obtain this key. This key must be kept safe and not disclosed to unauthorized personnel. For asymmetric encryption algorithms, a public and private key pair needs to be generated. The public key can be publicly distributed, while the private key must be strictly kept secret; only the entity possessing the private key can decrypt the encrypted data.

[0045] Next, the model data needs to be encrypted using the selected encryption algorithm and key. The encryption process transforms the original data into unreadable ciphertext, ensuring that even if the data is intercepted during transmission, the original content of the model cannot be directly obtained. The encrypted data will have a high degree of confidentiality; only entities possessing the corresponding key can decrypt and access it.

[0046] Once encryption is complete, the model data is transmitted to the target server over the network. During transmission, we use secure communication protocols, such as HTTPS, to protect data security. HTTPS uses SSL / TLS encryption technology at the transport layer to encrypt and verify communication data, ensuring its confidentiality and integrity. This way, even if data is intercepted during transmission, attackers cannot decrypt and read its contents.

[0047] When encrypted data arrives at the server, the server decrypts it using the corresponding key. For symmetric encryption algorithms, the server uses the same key as the client. For asymmetric encryption algorithms, the server uses its own private key. The decryption process restores the ciphertext to the original model data, allowing the server to correctly store and use the model.

[0048] After decryption, verification is still required to ensure data integrity. This can be achieved by calculating a checksum or using a hash function. A checksum is a method that calculates the value of a data block using a specific algorithm and transmits it along with the original data block. The receiver calculates the checksum of the received data block using the same algorithm and compares it with the checksum provided by the sender to verify data integrity. A hash function, on the other hand, maps data of arbitrary length to a fixed-length hash value, exhibiting one-way transmission and collision resistance. By calculating the hash value of the original data and comparing it with the hash value of the received data, it is possible to verify whether the data has been tampered with.

[0049] Finally, once the model data is successfully decrypted and passes integrity verification, the server can store it in the local file system or load the model directly into memory for use. When storing model data, the server needs to implement appropriate security measures, such as access control, backup, and recovery, to ensure the security and availability of the model data.

[0050] The above encrypted transmission process ensures the security and confidentiality of model data during upload. Choosing a suitable encryption algorithm, generating and properly storing keys, using secure communication protocols, and verifying data integrity are all crucial steps in ensuring model data security. Furthermore, it is necessary to regularly update keys, monitor for any unusual activity, and implement other security measures to address evolving security threats.

[0051] In encrypted transmission of models, various encryption algorithms are typically used. These algorithms protect data confidentiality by encrypting the original plaintext data into unreadable ciphertext. Encryption technologies can be divided into two types: symmetric encryption and asymmetric encryption.

[0052] The most significant characteristic of symmetric encryption is that the same key is used for both encryption and decryption. If one key is used to encrypt data, the same key is also required to decrypt the data. Because there is only one key, key distribution and management become a challenge for symmetric encryption.

[0053] This embodiment selects AES as one of the encryption algorithms, which supports multiple key lengths and has an efficient algorithm design. At the same time, it strengthens key management to ensure data security.

[0054] The asymmetric encryption algorithms used in this embodiment are: Rivest–Shamir–Adleman, abbreviated as RSA, and Elliptic Curve Cryptography, abbreviated as ECC.

[0055] Symmetric encryption is generally faster than asymmetric encryption, but asymmetric encryption is more secure in terms of key management because the public key can be made public while the private key is kept secret. Symmetric encryption, on the other hand, requires both parties to share the same key, which can be a challenge in distributed systems.

[0056] Different encryption methods are used for different types of models and different contents within them.

[0057] Encryption of fundamental theoretical models is a crucial step in ensuring the security of industrial mechanism models. Since these models are primarily based on fundamental theories of fluid mechanics, thermodynamics, and aerodynamics, and are expressed in the form of expressions, functions, calculation formulas, and theoretical rules, the encryption process must balance data security with model usability.

[0058] First, the model is encrypted using encryption algorithms. Strong encryption algorithms, such as AES or RSA, are employed to encrypt critical data in the fundamental theoretical model, ensuring that even if the model file is illegally accessed, sensitive information cannot be easily deciphered. Simultaneously, specific encryption algorithms are designed for particular data within the model to further enhance security.

[0059] Secondly, code obfuscation techniques increase the difficulty for unauthorized access users to read the code. By changing variable names, function names, and logical structures, the expressions, functions, and calculation formulas in the model become difficult to understand and reverse engineer. This not only improves the model's security but also reduces the risk of unauthorized copying or distribution.

[0060] Finally, the fundamental theoretical model is encrypted using model segmentation technology. The model is broken down into multiple modules or components, each containing only a portion of the data and logic. By combining these modules to run the complete model, the risk of leakage from individual modules is reduced, while simultaneously improving the model's flexibility and maintainability.

[0061] Encrypting the process model is crucial because it contains vital information about the production process, such as processes, formulas, and parameters. Leaking this information could cause significant losses, so it is essential to encrypt the process model to ensure its security.

[0062] Based on the importance and sensitivity of the process model, the choice between symmetric and asymmetric encryption algorithms can be made first. Symmetric encryption algorithms, such as AES, are efficient and simple, suitable for encrypting large amounts of data; asymmetric encryption algorithms, such as RSA, although computationally expensive, offer higher security and are suitable for encrypting critical information.

[0063] For process model configuration files stored in formats such as XML and TXT, specialized XML encryption libraries or file encryption tools are used for encryption. Simultaneously, XML encryption standards are used to encrypt the XML files, ensuring that the content is not stolen or tampered with during transmission. These tools and encryption standards provide robust encryption algorithms and flexible encryption options to ensure the security of the file content.

[0064] For parametric models that the solver can run, an encryption step is added during model generation or invocation. For example, the model parameters are encrypted using an encryption algorithm during model export and decrypted during model import. This ensures the security of the parametric model during transmission and use.

[0065] For FMU models packaged according to standards such as FMI and OSLC, an encryption mechanism is added during the packaging process, using a specific encryption method. Encryption of the FMU file prevents unauthorized access and modification. Simultaneously, decryption is required during model invocation to ensure correct model operation.

[0066] Encrypting simulation models is a crucial step in ensuring the security of simulation modeling data for physical and chemical changes in industrial scenarios.

[0067] For simulation model files with extensions such as ".m", ".mdl", and ".sxl", use file encryption tools or algorithms to encrypt these files. Ensure that only users with the correct key can decrypt and access the file content.

[0068] For model code files with the ".c" suffix, the source code files need to be encrypted before compilation and decrypted and executed at runtime to prevent unauthorized access and modification.

[0069] For simulation model files in the form of ".so" or ".dll" (i.e., dynamic link libraries or shared objects), binary encryption is performed. The machine code of the binary file is encrypted to ensure that decryption is required during loading and execution. This is done using specialized encryption tools or libraries. During model loading, decryption is performed first, followed by normal linking and execution.

[0070] For machine learning model encryption, the aforementioned symmetric and asymmetric encryption algorithms are selected for encryption of machine learning model files with suffixes such as ".pkl" and ".pmml".

[0071] For model code files with the ".py" extension, the code is obfuscated to make it difficult to understand and reverse engineer. This is achieved by changing variable names, function names, and comments, increasing the difficulty for attackers to analyze the code. Simultaneously, source code protection and encryption tools are used to encrypt the source code files, embedding the encrypted code into the program. During program execution, a decryption algorithm is used to restore and execute the source code. This prevents direct access to and viewing of the source code.

[0072] For machine learning model files with extensions like ".jar", use specialized encryption tools or libraries, such as xjar, to encrypt the entire JAR package. These tools typically offer encryption options, allowing you to set encryption passwords and other relevant parameters. The encrypted JAR package becomes a binary file that cannot be directly executed. Before execution, you need to configure a suitable decryption environment or Java agent to decrypt and execute the code within at runtime. Encrypting the entire JAR package, by setting encryption passwords and parameters, ensures the security of the entire package and prevents unauthorized access and modification.

[0073] For containerized machine learning models, a corresponding encrypted file system is created on the host machine and mounted into the container as a data volume. All files stored in the data volume are automatically encrypted. This embodiment includes encrypted file systems such as eCryptfs and LUKS. Encryption tools, such as GPG and OpenSSL, are run within the container to encrypt and decrypt files stored in the data volume. This method requires developers to integrate encryption logic into their applications and ensure that encryption and decryption operations are handled correctly.

[0074] For deep learning model encryption, files with extensions such as ".onnx", ".tflite", and ".pth" are encrypted using a holistic encryption method, employing either symmetric or asymmetric encryption algorithms. This encryption transforms the model file into unreadable binary data, which can only be decrypted and loaded with the correct key. Furthermore, to enhance security, model parameters are encrypted separately, ensuring that even if the model file is illegally accessed, attackers cannot directly obtain the model's critical parameters.

[0075] For model code files with the .py extension, source code obfuscation methods are used, including changing variable names, function names, and removing comments, to make the code logic difficult to understand. Furthermore, the Python source code is compiled into bytecode, and these bytecode files are encrypted. Even if an attacker obtains a .pyc file, they must decrypt it to restore it to executable code. For critical code segments such as model loading and parameter initialization, dynamic decryption and execution are employed to further protect the core logic of the model.

[0076] For containerized deep learning models, the entire image file is encrypted to ensure that even if the image file is stolen, attackers cannot directly run the container. Furthermore, leveraging the access control features provided by the container platform, we restrict access to model files, ensuring that only authenticated and authorized users can access and run the models within the container.

[0077] Encrypting large-scale industry models is a crucial task aimed at ensuring the security and integrity of model data. The encryption process requires comprehensive consideration of multiple aspects to build a complete security system.

[0078] First, encrypting the large model files themselves is a crucial step. By using encryption algorithms such as AES or RSA, the model files can be converted into encrypted binary data, ensuring the security of the model during storage and transmission. This way, even if the model files are illegally obtained, they cannot be decrypted and used without the correct key.

[0079] Meanwhile, encrypting key parameters and weights in the model also helps ensure model security. These parameters and weights are core components of the model and have a significant impact on its performance and functionality. Encrypting this sensitive data prevents unauthorized access and malicious modification, ensuring the integrity and accuracy of the model.

[0080] Furthermore, the inference service engine needs to be hardened for security. As the representation of the industry's large model, the security of the inference service engine is equally important. By implementing security measures such as access control, input validation, and anomaly detection, malicious attacks and unauthorized access can be prevented. At the same time, using secure communication protocols such as HTTPS protects the communication between the inference service engine and the client, ensuring the confidentiality and integrity of data during transmission.

[0081] Specifically, a secure transmission protocol is set up, a virtual private network is used, and the keys used during transmission are managed and stored. Integrity verification is performed on the transmitted data. Specifically: All data transmitted between the client and the target server is encrypted using the HTTPS Hypertext Transfer Protocol; the encrypted model data is encrypted and transmitted using the SFTP Secure File Transfer Protocol, and authentication is performed accordingly. A VRN (Virtual Private Network) is used to create an encrypted channel on a public network to ensure the security of data when remote users access resources within the platform. The VRN uses encryption technology to encrypt transmitted data, converting it into an unreadable form, which the recipient can then decrypt and read using a decryption key. The key is stored and managed using a hardware security module or a third-party server; The integrity of the transmitted data is verified by using hash value comparison, digital signature, or checksum; the specific integrity verification method is selected according to the model type, application scenario, and data characteristics.

[0082] This embodiment uses a combination of HTTP and SFTP to encrypt transmitted data.

[0083] HTTPS encrypts all data transmitted between the client and server using the SSL / TLS protocol, preventing attackers from decrypting and reading the content even if data is intercepted during transmission. HTTPS also verifies data integrity, ensuring data is not tampered with or corrupted during transmission. If data is modified, the recipient detects and rejects the altered data. Finally, HTTPS authenticates the server and client. The server proves its identity by providing an SSL / TLS certificate, and the client, such as a web browser, verifies the validity of these certificates to ensure communication with the correct server and prevent man-in-the-middle attacks, data theft, or tampering.

[0084] In this embodiment, the SFTP secure file transfer protocol is used to ensure that the transmitted file content and authentication information, such as usernames and passwords, are encrypted during transmission, preventing unauthorized personnel from reading or eavesdropping and ensuring data confidentiality. Users need to provide a username and password for authentication. Alternatively, authentication can be performed using SSH key pairs based on a secure matching of public and private keys.

[0085] This embodiment uses a VPN (Virtual Private Network) to create an encrypted channel on a public network, ensuring the security of data accessed by remote users when accessing platform resources. Specifically, various encryption technologies are used to encrypt transmitted data, converting it into an unreadable form that can only be decrypted and read by the recipient possessing the decryption key. The encrypted channel ensures that data is always transmitted through an encrypted VPN connection from one location to another. By using a VPN, remote users can securely access platform resources on a public network, ensuring that data is not intercepted or tampered with during transmission, protecting data confidentiality and integrity. The VPN not only encrypts communication data between the user and the server but also encrypts connection data between the user and the VPN server; even if data is intercepted during transmission, attackers cannot decrypt and read its content.

[0086] Key management and storage are crucial for ensuring the security of encrypted transmission. This embodiment employs key escrow, storing keys in a trusted third-party service. This third-party service generates, stores, and manages the keys, thus ensuring their security. Since the sender and receiver do not need to directly handle the keys, the risk of key leakage is significantly reduced, the key management process is simplified, and the operational complexity for both parties is lowered. Because users do not need to directly handle the keys, security risks due to human error are reduced. However, key escrow also has a clear drawback: the reliability of the third-party service becomes critical. If the third-party service has security vulnerabilities or is attacked, it could lead to the leakage of a large number of keys, posing a serious security risk.

[0087] Therefore, this embodiment also employs another method: using a Hardware Security Module (HSM). The HSM utilizes multiple security measures, such as encrypted storage, access control, and physical security, to prevent unauthorized access or tampering of the keys, providing a high level of physical security. Furthermore, this embodiment periodically reviews the key management strategy to ensure key security, selecting and adjusting the key management and storage strategies according to specific security requirements and scenarios.

[0088] Integrity verification methods primarily involve confirming that data has not been tampered with or corrupted during transmission or storage. The integrity verification methods used in this embodiment mainly include hash value comparison, digital signatures, and checksums. These methods can be applied to various types of data and models. However, different model types and application scenarios may require different integrity verification strategies. Therefore, this embodiment will select different integrity verification strategies for different model types and application scenarios. For example, machine learning models require a higher level of security, so methods such as digital signatures may be needed to ensure data integrity and origin. For some simple statistical models, basic integrity verification using methods such as checksums may suffice. Therefore, when selecting an integrity verification method, the most suitable method should be chosen by comprehensively considering the specific model type, application scenario, and data characteristics.

[0089] Specifically, step S3 includes: Sensitive data, including model parameters and weights, is protected using encryption algorithms. An access control mechanism is established to manage access to model data, restricting direct access to sensitive data, recording user access behavior, and auditing it. A backup strategy is set based on the data's importance, update frequency, and storage space. A data recovery mechanism is established to restore model operation when data problems occur, based on backup data and the data recovery mechanism. The integrity and availability of the backup data are periodically verified.

[0090] Data encryption is a crucial part of ensuring the security of model storage. It involves encrypting model data to prevent it from being illegally accessed and misused during storage and transmission.

[0091] In model storage security, data encryption primarily focuses on protecting sensitive data, such as model parameters and weights. This sensitive data is a core component of the model; leakage or tampering can lead to decreased model performance and even threaten the security of the entire system.

[0092] To achieve encrypted protection of these sensitive data, encryption algorithms, such as symmetric or asymmetric encryption algorithms, can be used. The storage model can be secured by referring to the corresponding model type.

[0093] Access control manages access permissions to model data, preventing unauthorized access and data leakage. In model storage security, the primary goal of access control is to ensure that only authorized personnel can access and modify model data. To achieve this, a strict access control mechanism is established to authenticate users and verify their permissions. Furthermore, access control enhances security through other measures, such as restricting direct access to sensitive data and logging and auditing user access behavior. These measures help to promptly detect and address unauthorized access, ensuring the security of model data. Data backup and recovery, an indispensable part of the model storage security system, focuses on regularly performing comprehensive backups of model data and being able to quickly and accurately restore it when needed, thereby avoiding model service interruptions due to data loss or corruption. The implementation of this step is crucial for ensuring the continuous availability of model data and business continuity.

[0094] In ensuring model storage security, the primary goal of data backup and recovery is to ensure the rapid restoration of the model's normal operation in the event of data loss, corruption, or tampering. To achieve this, a clear data backup and recovery strategy needs to be established, and backup operations need to be performed regularly.

[0095] Backup strategies should consider factors such as data importance, update frequency, and storage space. For critical model data, regular backups should be implemented to ensure timeliness and integrity. Simultaneously, backup data should be stored in secure and reliable locations, such as dedicated backup servers or cloud storage services, to prevent data loss or tampering.

[0096] Regarding data recovery, this embodiment establishes a rapid recovery mechanism to quickly restore the model's normal operation in the event of data problems. This includes regularly verifying the integrity and availability of backup data to ensure successful data recovery when needed. Furthermore, contingency plans have been developed to enable rapid response and handling in emergency situations.

[0097] Specifically, step S4 is as follows: Role-based access control is adopted, establishing role sets for various permissions and assigning roles in these sets to different users to control access permissions to specific resources in the system. Virtual machines or virtual machine technology are used to isolate the model's runtime environment from other systems to ensure model security. The model is run and debugged in a sandbox environment, restricting its runtime permissions. Input data during the debugging process is validated and filtered. The model is regularly scanned for security vulnerabilities. The model's runtime logs and call records are monitored in real time, and regular security audits are performed on these logs and records.

[0098] The security measures for platform model execution involve multiple aspects, including access control, security auditing, isolation technologies, input validation, vulnerability scanning, and monitoring and alerting. By comprehensively utilizing these methods, the security of the model during execution and invocation can be greatly improved, protecting the system from potential attacks and threats.

[0099] Access control and permission management are core components of ensuring the security of platform model execution calls. Strict access control and authentication measures can restrict access permissions to model execution calls, allowing only authorized users or systems to perform related operations.

[0100] Role-based access control (RBAC) controls who has access to specific resources in a system by creating sets of roles for various permissions and then assigning these roles to different users. RBAC is a security policy built on the concept of "roles," which are collections of permissions. Once a user is assigned an appropriate role, they have all the operational permissions associated with that role. The advantage of this approach is that permission management becomes simpler and more centralized because permissions are granted to roles, not directly to users. Thus, when a user's role changes, only their role assignment needs to be adjusted, without modifying the permission settings for multiple users. Furthermore, RBAC supports hierarchical relationships between roles; for example, a higher-level role can inherit permissions from a lower-level role, enabling finer-grained permission control. This mechanism is particularly useful in large organizations or systems because it provides an effective, flexible, and easy-to-manage access control solution.

[0101] Attribute-based access control (ABAC) differs from role-based access control (RBAC). ABAC does not directly assign permissions to roles or users; instead, it determines access permissions based on the attributes of entities such as users, resources, and environments. In ABAC, permissions are not predefined but dynamically calculated based on actual needs. Therefore, it offers greater flexibility and adaptability, capable of handling complex access control requirements. For example, in an enterprise network, access to specific resources can be restricted based on attributes such as employee department, position, and working hours.

[0102] Furthermore, ABAC supports the existence of multiple attribute authorities, which are responsible for defining and managing entity attributes. When access control decisions are required, the policy decision point retrieves relevant attributes from multiple attribute authorities and evaluates whether to grant access permissions based on predefined policies. Attribute-based access control is a powerful and flexible access control method that dynamically calculates access permissions based on entity attributes and context, thereby meeting complex security requirements.

[0103] Isolation and sandboxing techniques are important means to improve the security of platform model runtime calls. These techniques ensure that the model does not introduce potential security risks when interacting with other systems by creating an independent and restricted runtime environment.

[0104] Isolation technologies such as containerization or virtual machines can isolate the model's runtime environment from other systems. Containerization encapsulates the model and its dependencies in lightweight containers, ensuring that the model runs independently within the container without affecting the security of the host machine or other containers. Virtual machines further enhance security by simulating an entire operating system to isolate the model's runtime environment. Sandboxing is a security mechanism used to restrict the model's runtime permissions. In a sandbox environment, the model is restricted to running within specific resources and usage permissions, preventing access to or modification of critical system resources, thereby reducing the risk of malicious exploitation. Sandboxing can control the model's runtime permissions by restricting its input and output, monitoring its behavior, and restricting its network access. Thus, even if potential security vulnerabilities exist in the model, it is difficult for attackers to exploit these vulnerabilities to damage the entire system.

[0105] Input validation and filtering are crucial for ensuring the security of platform model operation and invocation. By rigorously validating and filtering input data, malicious input that could lead to model attacks can be prevented, thus ensuring the system's security and stability.

[0106] First, input validation refers to checking input data to ensure it conforms to the expected format, type, and range. This can be achieved through a series of validation rules, such as checking whether the input data conforms to a specific data format, like a date or email address, or whether it is within the allowed range. If the input data does not conform to the validation rules, the system rejects it and returns an error message.

[0107] Secondly, input filtering refers to cleaning and processing input data to eliminate potential security risks. This can include removing or escaping special characters, deleting unnecessary whitespace characters, and limiting the length of input data. By filtering input data, malicious users can be prevented from interfering with the normal operation of the model by injecting malicious code or special characters.

[0108] Security vulnerability scanning and remediation is an ongoing process to ensure the security of platform model operation. By performing these tasks regularly, organizations can promptly identify and address potential security risks, thereby protecting the integrity of their data and systems.

[0109] First, conducting regular security vulnerability scans is crucial. This involves using specialized vulnerability scanning tools to examine the platform model for potential weaknesses. These tools can automatically detect known vulnerabilities in the model's code, configuration, and dependencies, and generate reports for the security team to review. By reviewing these reports, organizations can understand the potential risks to their model and take appropriate steps to mitigate them.

[0110] Security vulnerability scanning tools are software tools used to automatically detect security vulnerabilities in computer systems, networks, or applications. These tools scan and test target systems by simulating attacker behavior to discover potential security weaknesses.

[0111] Once a security vulnerability is discovered, timely remediation becomes crucial. Remediation may involve code changes, configuration adjustments, or patch application. In some cases, remediation requires intervention from the model's developers or maintenance team. Therefore, maintaining close communication with these teams is key to ensuring timely remediation. Furthermore, keeping the software and systems that call the model up-to-date is equally important. Software and system updates typically include security patches to fix known security vulnerabilities.

[0112] Security auditing and log monitoring are crucial for ensuring the security of platform model operations. These two methods allow for the timely detection and response to potential security threats and abnormal behaviors.

[0113] First, security auditing is the process of assessing and checking system security. In scenarios involving model execution and invocation, security auditing should focus on the model's runtime logs and invocation records. These logs record information such as when the model was invoked, who the caller was, the parameters used, and the results. Regularly reviewing these logs can uncover any abnormal behavior or potential security threats. For example, if a user is found to be frequently invoking a model, or if the parameters used in the invocation are inconsistent with normal operations, these could be signs of security problems. Security auditing can also include reviewing the model itself to ensure that its design and implementation comply with security standards and that no malicious code or vulnerabilities have been implanted.

[0114] Secondly, log monitoring and alarm handling are key means of detecting and responding to security incidents in real time. A log monitoring system can monitor the model's operation and call logs in real time, identifying any unauthorized or abnormal operations through preset rules and algorithms. Once abnormal behavior is detected, the system immediately triggers an alarm, notifying relevant personnel to respond and handle the situation. The alarm handling mechanism includes rapid response steps and processes, such as notifying the security team to investigate, blocking unauthorized access, and rolling back tampered data.

[0115] Specifically, step S5 is as follows: Implement access control for model sharing; set up an API interface for model sharing; encapsulate and package the model before sharing it, defining the model's input and output interfaces during the encapsulation process; perform testing and verification after model encapsulation; deploy the encapsulated model to the target environment and distribute it to users.

[0116] Access control is a fundamental and crucial method for ensuring security during model sharing on the platform. It involves restricting and controlling user access to model resources, ensuring that only authorized users or organizations can access and use the models. The platform requires users to register and log in before using its model sharing function. By verifying user identity, it ensures that only legitimate users can access the models. For access to advanced or sensitive models, multi-factor authentication, such as mobile verification codes and fingerprint recognition, is employed to enhance the security of the login process.

[0117] Simultaneously, different roles are defined in the system, such as ordinary users, model administrators, and model owners, each with different access permissions. Appropriate model access permissions are assigned to users based on their roles and responsibilities. For example, model owners have full control, while ordinary users only have viewing and usage permissions. The system should record model access logs for all users, including access time, accessed models, and operation types. Regular auditing of access logs can detect and identify any abnormal access behavior, allowing for timely implementation of appropriate security measures. Furthermore, clear access control policies are established, such as IP whitelists and time limits, to ensure that only users meeting specific conditions can access models. User access permissions are dynamically adjusted based on the sensitivity of the model and user behavior, such as limiting access frequency or temporarily locking accounts.

[0118] Using APIs (Application Programming Interfaces) to share platform models is an effective way to ensure the security of model content while allowing users to programmatically access the model's predictive capabilities. APIs allow users to send input data and receive predictions without exposing the model's internal structure and source code.

[0119] First, the model needs to be deployed as a service that can receive input and return output. The model is then integrated into a backend service that can handle requests from an API. This service can be deployed on a platform server, cloud server, or containerized environment.

[0120] When designing an API, ensure the interface is simple, easy to use, and conforms to RESTful design principles. The API should provide clear endpoints for receiving input data and returning prediction results. Also, consider the data format and any necessary parameters, such as model version and input data format.

[0121] APIs should use authentication mechanisms, such as API keys, to verify the identity of requesters. Authorization mechanisms ensure that only authorized users or applications can call the API. To prevent malicious input or attacks, API input should be rigorously validated and filtered, including checking data type, size limits, and format. Furthermore, HTTPS should be used to encrypt API requests and responses to prevent data theft or tampering during transmission.

[0122] Regarding API usage, provide detailed API documentation explaining how to use the API, the meaning of parameters, return value formats, etc., to help users understand and correctly use the API and reduce the risk of misuse or abuse. Implement API monitoring and logging to track API usage, performance, and any abnormal behavior, promptly identifying and addressing potential security issues. To prevent API abuse, rate limiting and quota policies can be implemented. For example, limiting the request frequency of each user or application and setting daily request quotas. Regularly update model versions, including fixing known security vulnerabilities and updating authentication mechanisms, to maintain the stability and security of the API interface.

[0123] Model encapsulation and packaging is an effective method to protect model content from unauthorized users. By encapsulating the model in a "black box," user access to the model's internal structure and implementation is restricted, allowing interaction only through predefined input and output interfaces.

[0124] First, a suitable model packaging tool or platform needs to be selected. These tools or platforms typically provide the ability to convert models into executable files or containerized applications. Some popular choices include TensorFlow Serving, ONNX Runtime, and PyInstaller. Before packaging, the model needs to undergo some transformations and optimizations, including converting the model from training frameworks such as TensorFlow and PyTorch to a common model format such as ONNX, and performing optimizations such as pruning and quantization to improve inference performance. Using the chosen tool or platform, the transformed model is packaged into an executable file or containerized application, combining the model files, dependency libraries, and other necessary resources to ensure that the model can run in an environment without the original source code.

[0125] During the encapsulation process, define the model's input and output interfaces. These interfaces should be clear and concise, allowing users to send input data to the model using standard data formats such as CSV, JSON, and image files, and to receive the model's output results. To further enhance model security, additional measures can be taken. For example, encrypting the model file ensures that even if someone obtains the model file, they cannot directly view its contents. Furthermore, access permissions can be restricted, allowing only authorized users or applications to access the model.

[0126] After completing the model packaging, thorough testing and verification are crucial. It's essential to ensure the model runs correctly in the new packaging environment and to check the functionality and performance of the input / output interfaces. Finally, the packaged model is deployed to the target environment and distributed to users. The model can be deployed to platform servers, cloud platforms, or containerized environments so that users can access it over the network.

[0127] By encapsulating and packaging models, the security and privacy of model content can be effectively protected, while allowing users to interact with the model through simple input / output interfaces. This is highly effective for sharing models without exposing their internal structure or implementation details.

[0128] Network threat protection methods for models primarily involve ensuring the security of models in the network environment and preventing network attacks and malicious intrusions. Building firewalls and intrusion detection systems, and developing common network attack defense strategies are crucial for protecting models from network risks and threats.

[0129] Firewalls and intrusion detection systems (IDS / IPS) are key tools for mitigating network risks and threats and protecting model security. By deploying firewalls and intrusion detection systems, a multi-layered security protection system can be built to effectively monitor network traffic and prevent malicious access and attacks.

[0130] A firewall is the first line of defense for protecting a model's security. It deploys the model in an isolated network environment, restricting access to the model to authorized users only. A firewall inspects all traffic entering and leaving the network and filters it according to preset security rules, ensuring that only packets conforming to the rules can pass through. This effectively blocks unauthorized access and known malicious traffic, providing basic protection for the model.

[0131] However, firewalls alone are insufficient to address all threats. For more comprehensive protection, the assistance of Intrusion Detection Systems (IDS) and Intrusion Prevention Systems (IPS) is also required. IDS can monitor network traffic in real time, using methods such as pattern matching and statistical analysis to detect abnormal behavior and potential malicious activities, identify known attack patterns, malware, vulnerability exploits, and other threats, and issue timely alerts, enabling administrators to respond quickly.

[0132] Compared to IDS, IPS not only has the ability to detect threats, but also proactively takes measures to prevent or mitigate attacks. When malicious traffic is detected, it can drop malicious packets, reset connections, block attacker IPs, etc., thus providing more proactive protection for the model's security. Many IPS devices also integrate firewall functionality, capable of performing traffic filtering and network isolation, providing more comprehensive security protection.

[0133] When deploying these systems, it's crucial to select suitable hardware and software that can adapt to the model's network architecture and traffic requirements. Maintaining the updates and upgrades of firewalls and IDS / IPS is also essential to address new threats and vulnerabilities. Furthermore, it's necessary to ensure these systems integrate seamlessly and work collaboratively with existing network management systems to achieve unified security management.

[0134] By deploying firewalls and intrusion detection and prevention systems (IDS / IPS), the security of the model can be greatly improved, network traffic can be monitored in real time, abnormal behavior can be identified, and timely measures can be taken to prevent potential threats.

[0135] Example 2 This embodiment provides a full-cycle asset security assurance device for a nuclear power industry model, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the full-cycle asset security assurance method for the nuclear power industry model described in Embodiment 1.

[0136] The nuclear power industry model full-cycle asset security protection device provided in this embodiment is used to implement the nuclear power industry model full-cycle asset security protection method. Therefore, the nuclear power industry model full-cycle asset security protection device also has the technical effects of the nuclear power industry model full-cycle asset security protection method, and will not be described again here.

[0137] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of the present invention.

Claims

1. A method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model, characterized in that, Includes the following steps: Step S1: In the model generation stage, preprocess the dataset on which the model generation depends, optimize the model parameters, and set up corresponding defense strategies against data poisoning. Step S2: In the model transmission stage, a secure transmission protocol is set up, a virtual private network is used to encrypt and transmit the model, and the key during the transmission process is managed and stored. The integrity of the transmitted model data is verified. Step S3: In the model storage stage, the stored model data is encrypted and access control is implemented. Appropriate data backup and data recovery strategies are set for the stored model data. Step S4: During the model execution and invocation phase, isolation and sandboxing technologies are used to execute and invoke the model, and access permissions are controlled for the execution and invocation of the model. Step S5: In the model sharing stage, access control is implemented for model sharing, corresponding application programming interfaces are set up for model sharing, and the model is encapsulated and packaged before sharing; firewalls and intrusion detection and prevention systems are deployed to defend against network threats to the model. In step S2, the model is encrypted during transmission and upload, specifically as follows: Different encryption methods are used for different types of models and different contents within them; The models include industrial mechanism models and industrial artificial intelligence models; The industrial mechanism model includes a basic theoretical model, a process model, and a simulation model; The encryption method for the basic theoretical model is as follows: encrypting the basic theoretical model using an encryption algorithm, setting an encryption algorithm for the data in the basic theoretical model; changing the variable names, function names, and logical structure of the basic theoretical model using code obfuscation technology; splitting the basic theoretical model into multiple modules using model segmentation technology, and running the complete basic theoretical model by combining the modules; The specific encryption method of the process model is as follows: encrypt the process model using either a symmetric encryption algorithm or an asymmetric encryption algorithm; encrypt the configuration file of the process model using a dedicated encryption tool; for parameter models that the solver can run, add an encryption step during model generation or invocation to achieve encryption; for FMU models packaged according to standard specifications, add an encryption mechanism during the packaging process, and encrypt the FMU file based on the encryption mechanism to achieve encryption of the FMU model. The specific encryption methods for the simulation model are as follows: for simulation model files, file encryption tools are used for encryption; for model code files, the source code files are encrypted before compilation; for binary simulation model files, binary encryption is used, and the machine code of the binary files is encrypted. The industrial artificial intelligence model includes machine learning models, deep learning models, and large-scale industry models; The specific encryption methods for the machine learning model are as follows: for the machine learning model file, a symmetric encryption algorithm or an asymmetric encryption algorithm is used for encryption; for the model code file, the source code is obfuscated to achieve encryption; for the binary model file of the machine learning model, a dedicated encryption tool is used for encryption; for the machine learning model carried by the container, a corresponding encrypted file system is created on the host machine, and the encrypted file system is mounted in the container as a data volume, and the files stored in the data volume are automatically encrypted. The encryption method for the deep learning model is as follows: For the deep learning model file, a symmetric encryption algorithm or an asymmetric encryption algorithm is used to encrypt the entire file; for the model code file, source code obfuscation is used for encryption, and the source code is compiled into bytecode, which is then encrypted; for critical code segments, dynamic decryption and execution are employed; for the deep learning model carried by a container, the entire image file is encrypted, and the access control function provided by the container platform is used to control access permissions to the model file of the deep learning model. The encryption method for the industry-wide model is as follows: the model file of the industry-wide model is converted into encrypted binary data using an encryption algorithm; the key parameters and weight data of the industry-wide model are encrypted; at the same time, access control, input verification and anomaly detection are implemented for the inference service engine, and a secure communication protocol is used to realize communication between the inference service engine and the client.

2. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, In step S1, the data on which the model generation depends is preprocessed, specifically as follows: The dataset is then subjected to data cleaning, data transformation, data preprocessing, and data validation. The data cleaning includes missing value handling and outlier handling. Outlier handling includes filtering the data and identifying and extracting outliers using statistical methods. Missing value handling includes processing missing values ​​using direct deletion, interpolation calculation, and machine learning methods. The data preprocessing includes data transformation and feature engineering. Data transformation includes data standardization and feature encoding. Feature encoding is implemented using label encoding and one-hot encoding. Feature engineering includes feature construction and feature selection. Feature construction uses numerical features, text features, or interactive features. Feature selection selects key features through correlation analysis and recursive feature elimination. The data validation involves dividing the dataset into training, validation, and test sets using cross-validation, generating multiple different datasets through repeated sampling, and performing consistency checks on the datasets.

3. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, The optimization of model parameters in step S1 specifically involves: Automatic parameter tuning technology is used to automatically explore the parameter space. The model performance evaluation index is used as the objective function. The dataset is used for model training and validation to obtain the optimal parameters and complete the optimization of the model parameters.

4. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, In step S1, a corresponding defense strategy is set for data poisoning, specifically as follows: Differential privacy technology is used to protect the privacy of the dataset; perturbations or noise are introduced during model training to enhance the model's resistance to malicious input; an access control mechanism is set up for the dataset to restrict unauthorized users from accessing or modifying the dataset; at the same time, security audits are performed on the real-time log recording during the model generation process.

5. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, A secure transmission protocol is set up, a virtual private network is used, and the key during transmission is managed and stored. Integrity verification is performed on the transmitted data. Specifically: All data transmitted between the client and the target server is encrypted using the HTTPS Hypertext Transfer Protocol; encrypted model data is transmitted and authenticated using the SFTP Secure File Transfer Protocol. A VRN (Virtual Private Network) is used to create an encrypted channel on a public network to ensure the security of data when remote users access resources within the platform. The VRN uses encryption technology to encrypt transmitted data, converting it into an unreadable form, which the recipient can then decrypt and read using a decryption key. The key is stored and managed using a hardware security module or a third-party server; The integrity of the transmitted data is verified by using hash value comparison, digital signature, or checksum; the specific integrity verification method is selected according to the model type, application scenario, and data characteristics.

6. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, Step S3 specifically includes: Encryption algorithms are used to protect sensitive data, including model parameters and weights; an access control mechanism is established to manage access to model data, while restricting direct access to sensitive data, recording user access behavior and auditing it; and corresponding backup strategies are set based on the importance of the data, update frequency, and storage space. Establish a data recovery mechanism. When data problems occur, the recovery model will be run based on backup data and the data recovery mechanism. The integrity and availability of the backup data will be verified periodically.

7. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, Step S4 specifically includes: Role-based access control is adopted, establishing role sets for various permissions and assigning roles in these sets to different users to control access permissions to resources set in the system; virtual machines or virtual machine technology are used to isolate the model's runtime environment from other systems to ensure model operation security; the model is run and debugged in a sandbox environment with restricted model execution permissions; input data during the running and debugging process is validated and filtered; and the model is regularly scanned for security vulnerabilities. Monitor the model's operation logs and call records in real time, and conduct security audits on the model's operation logs and call records regularly.

8. The method for ensuring the safety of assets throughout the entire lifecycle of a nuclear power industry model according to claim 1, characterized in that, Step S5 specifically includes: Implement access control for model sharing; set up an API interface for model sharing; encapsulate and package the model, defining its input and output interfaces during the encapsulation process; perform testing and verification after model encapsulation; deploy the verified model to the target environment and distribute it to users to achieve model sharing.

9. A full-lifecycle asset security device for a nuclear power industry model, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, which, when executed by the processor, implements the full-cycle asset security assurance method for the nuclear power industry model as described in any one of claims 1-8.