Industrial internet data protection method and system
Through the transformation testing algorithm, the detection of smart contract vulnerabilities, digital signatures and access control policies is solved, and the problem of security threats in industrial Internet data is achieved, and the effective protection and transmission security of data are achieved.
Patent Information
- Application Number
- CN202410942943.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Data in the industrial Internet is easily listened, intercepted, and tampered during transmission and storage, and storing sensitive information in plain text will cause security threats and affect industrial production and enterprise operations.
The transformation testing algorithm is used to detect security vulnerabilities in smart contracts, sign industrial data through digital signature algorithms, and restrict visitors through access control policies to ensure the security of the data during transmission.
通过检测并修复智能合约的安全漏洞,使用数字签名和访问控制策略,有效防止数据被攻击者拦截或篡改,提升区块链的安全性能,确保工业数据的保护。
Smart Images

Figure CN118916888A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an industrial Internet data protection method and system, and in particular, to the technical field of industrial Internet. Background Art
[0002] The Industrial Internet is a new type of infrastructure, application model and industrial ecology that deeply integrates the new generation of information and communication technology with modern industrial economic production. It is also an important carrier for the networking, digitalization and intelligentization of the manufacturing industry. In recent years, with the implementation of the innovative development strategy of the Industrial Internet, the Industrial Internet has entered a period of rapid growth, and the security of the Industrial Internet has become a focus of attention for governments and enterprises.
[0003] The essence and core of the Industrial Internet is to closely connect and integrate equipment, production lines, employees, factories, warehouses, suppliers, products and customers through a communication network platform, share various elements and resources of the entire industrial production process, help the manufacturing industry to extend the industrial chain, and form cross-equipment, cross-system, cross-factory and cross-regional interconnection. Since industrial data is an extremely important production factor of the Industrial Internet, data security has also become an increasingly important part of the security of the Industrial Internet, affecting the development of the security situation of the industrial system. Data security includes the security of industrial data in the transmission, storage, access, migration and other links. Industrial data is very easy to be intercepted, intercepted, tampered and blocked during transmission, or stolen during storage. At the same time, the storage of sensitive information in plain text will also threaten the security of industrial data and cause great losses to industrial production and enterprise operations. Therefore, it is necessary to provide an Industrial Internet data protection method and system to ensure the data security of the Industrial Internet. Summary of the invention
[0004] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and provide an industrial Internet data protection method and system, which performs a metamorphosis test on smart contracts through a metamorphosis test algorithm to detect security vulnerabilities in smart contracts, uses a digital signature algorithm to provide protection for the transmission of industrial data, and then limits visitor access through an access control strategy to solve at least one of the technical problems raised in the above-mentioned background technology.
[0005] The technical solution adopted by the present invention to solve the technical problem is: to provide an industrial Internet data protection method, including:
[0006] S1: Perform a metamorphosis test on the smart contract through the metamorphosis test algorithm at every interval t, analyze and process the smart contract to obtain the input domain, randomly generate original test cases according to the input domain, and then obtain subsequent test cases through the original test cases. Verify the smart contract through the original test cases and subsequent test cases. If the verification result conforms to the designed metamorphosis relationship, proceed to step S2; otherwise, find the security vulnerability and repair it according to the part that does not conform to the metamorphosis relationship of the verification result, and proceed to step S2;
[0007] S2: through end device E n Collecting industrial data n , industrial data D n According to the industrial intranet I Or industrial extranet N E The categories are classified into intranet industrial data D In and external network industrial data D En , and the intranet industrial data D In Classify and record it as intranet industrial data D In_m , where n = 1, 2, 3...n...N, n represents the type of terminal equipment, m = 1, 2, 3...m...M, m represents the intranet industrial data D In level;
[0008] S3: External network industrial data D En Transmitted to the industrial external network through wireless communication network E Storage; for intranet industrial data D In_m Perform encoding and packaging processing in sequence, and verify the intranet industrial data before and after packaging processing D In_m The consistency and correctness of the verified intranet industrial data D In_m Transmitted to the industrial intranet via wireless communication network I ;
[0009] S4: Industrial Intranet I For the received intranet industrial data D In_m Unpack the data and use the digital signature algorithm to authenticate the intranet industrial data D In_m Digitally sign and add a timestamp, which will carry the digital signature C n Intranet industrial data D In_m Transmit to all server nodes S according to category j Block B corresponding to the blockchain jn_m , where j = 1, 2, 3…j…J, j represents the number of server nodes;
[0010] S5: Block B jn_m Intranet industrial data D In_m Carrying digital signature C mPerform verification. If verification is successful, receive the intranet industrial data D In_m And store it, and use smart contracts to manage the intranet industrial data D that meet the contract conditions In_m Automatic execution and decision-making; otherwise, refuse to accept intranet industrial data D In_m and marked as an attack;
[0011] S6: The visitor sends the digital certificate C to the access control policy n_m Perform identity authentication. If the visitor passes the identity authentication, the access control policy will open the corresponding level of access rights to the visitor. m , visitors to block B at level m and below jn_m If the access is made, the process returns to step S1; otherwise, the access of the visitor is marked as an attack, and the process returns to step S1.
[0012] Furthermore, in step S2, the intranet industrial data D In_m Encoding is to convert the intranet industrial data D In_m The data in the package is converted into coded symbols. The packaging process is to convert the intranet industrial data D In_m Compression is performed to reduce the D of the intranet industrial data through encoding and packaging. In_m of occupied space.
[0013] Furthermore, in step S4, the intranet industrial data D is digitally signed by a digital signature algorithm. In_m The specific steps for digital signature are as follows: Obtain the intranet industrial data D from the digital certificate authentication center CA through PKD technology In_m The public key K n_1 and private key K n_2 , for intranet industrial data D In_m Perform hash operation to obtain hash value H n_1 , and then use the private key K n_2 For the hash value H n_1 Encrypt and generate digital signature C n , the public key K n_1 Sent to the corresponding block B of the blockchain jn_m .
[0014] Furthermore, in step S5, block B jn_m Intranet industrial data D In_m Carrying digital signature C n The verification steps are as follows: Block B jn_m Use the public key K n_1 Intranet industrial data D In_m Carrying digital signature C n Decrypt and get the hash value H n_1 , and then send the public key K to the receiving intranetn_1 Send to the corresponding block B In_m Industrial Data In_m Perform hash operation to obtain hash value H n_2 , if the hash value H n_1 With hash value H n_2 If they are equal, the verification passes; otherwise, the verification fails;
[0015] Furthermore, the access control strategy in step S6 is as follows: m-level access rights are divided into In_m The m levels correspond to each other, and set the visitor list N L , visitor list N L All visitors in the m , requiring the holder of a digital certificate C m Visitors have block B at level m and below jn_m Access rights for users without digital certificate C m of visitors are blocked and marked as attacks.
[0016] Furthermore, in step S6, the visitor accesses block B jn_m The options are as follows: If the visitor needs to use the intranet industrial data D In_m Make decisions and transfer the intranet industrial data to In_m Convert it into visual data that is easy for visitors to understand In_m , visitors can visualize the data V In_m Make a decision; if the visitor needs to modify the visual data V In_m , controls all server nodes S j Block B of the blockchain jn_m Visualizing Data In_m Modify synchronously; if the visitor needs to export the intranet industrial data D In_m , for intranet industrial data D In_m Perform data desensitization and then send the desensitized data to the intranet industrial data D In_m Export.
[0017] An industrial Internet data protection system, the system being applied to any one of the above industrial Internet data protection methods, comprising:
[0018] Smart contract analysis and processing module, used to analyze and process smart contracts to obtain input domains;
[0019] A test case generation module, used to generate original test cases and subsequent test cases based on the input domain;
[0020] Data acquisition module, used to collect industrial data from various devices;
[0021] A data classification module is used to classify the collected industrial data into intranet industrial data and extranet industrial data;
[0022] Data classification module, used to classify the industrial data on the intranet;
[0023] Data encoding module, used to encode and process the intranet industrial data;
[0024] Data packaging module, used to package and process the intranet industrial data;
[0025] Data unpacking module, used to unpack the intranet industrial data;
[0026] Digital signature algorithm module, used to digitally sign the intranet industrial data and send the public key to the block of the corresponding blockchain module;
[0027] Blockchain module, used to store industrial data on the intranet;
[0028] The access control policy module is used to allow visitors holding digital certificates to access the blockchain and intercept visitors without digital certificates.
[0029] Furthermore, it also includes:
[0030] Hash operation module, used to perform hash operation on intranet industrial data to obtain hash value;
[0031] Data visualization module, used to convert intranet industrial data into visual data;
[0032] The data desensitization module is used to desensitize the intranet industrial data.
[0033] The present invention has the following advantages:
[0034] The present invention detects security vulnerabilities in smart contracts through a metamorphosis test algorithm and repairs them in a timely manner, classifies the collected industrial data into intranet industrial data that is only accessible to internal personnel and external industrial data that is publicly accessible, signs the intranet industrial data using a digital signature algorithm, and stores it in the blockchain after verification, thereby ensuring the security of the intranet industrial data during transmission and preventing it from being intercepted, tampered with or replaced by attackers. Access is restricted by access control policies, thereby improving the security performance of the blockchain and protecting the intranet industrial data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0036] Figure 1 This is a flow chart of an industrial Internet data protection method of the present invention.
[0037] Figure 2 This is a schematic diagram of the structure of an industrial Internet data protection system of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present application clearer, some embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. However, it will be appreciated by those skilled in the art that in the various embodiments of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented.
[0039] See also Figure 1 As shown, an industrial Internet data protection method includes:
[0040] S1: Perform a metamorphosis test on the smart contract through the metamorphosis test algorithm at every interval t, analyze and process the smart contract to obtain the input domain, randomly generate original test cases according to the input domain, and then obtain subsequent test cases through the original test cases. Verify the smart contract through the original test cases and subsequent test cases. If the verification result conforms to the designed metamorphosis relationship, it means that there is no security vulnerability in the smart contract, and enter step S2; otherwise, find the security vulnerability and repair it according to the part that does not conform to the metamorphosis relationship of the verification result, and enter step S2;
[0041] It is worth mentioning that the transformation relationship is designed based on the integer overflow vulnerability and the smart contract total flushing vulnerability. The smart contract is analyzed and processed, and the function and target variable that will trigger the vulnerability are extracted to obtain the input domain.
[0042] S2: through end device E n Collecting industrial data n , industrial data D n According to the industrial intranet I Or industrial extranet N EThe categories are classified into intranet industrial data D In and external network industrial data D En , and the intranet industrial data D In Classify and record it as intranet industrial data D In_m , where n = 1, 2, 3...n...N, n represents the type of terminal equipment, m = 1, 2, 3...m...M, m represents the intranet industrial data D In level;
[0043] It is worth noting that for intranet industrial data D In_m Encoding is to convert the intranet industrial data D In_m The data in the network is converted into a smaller and easier-to-transmit coded symbol. Packaging is the process of converting the intranet industrial data D In_m Compression is performed to reduce the D of the intranet industrial data through encoding and packaging. In_m space occupied, improve the intranet industrial data D In_m The transmission speed;
[0044] S3: External network industrial data D En Transmitted to the industrial external network through wireless communication network E Storage; for intranet industrial data D In_m Perform encoding and packaging processing in sequence, and verify the intranet industrial data before and after packaging processing D In_m consistency and correctness, avoiding the loss of intranet industrial data In_m If there is any loss during the packaging process, timely feedback will be given and the verified intranet industrial data D In_m After being encrypted by the encryption algorithm, it is transmitted to the industrial intranet through the wireless communication network I ;
[0045] S4: Industrial Intranet I For the received intranet industrial data D In_m Decryption and unpacking are performed in sequence, and the intranet industrial data D is signed by the digital signature algorithm. In_m Digitally sign and add a timestamp. n During the transmission process, there is still a possibility that the signature data may be intercepted and tampered with or replaced by an attacker, but the timestamp has the characteristic that it cannot be correctly imitated by an attacker. Adding a timestamp can prevent the attacker from tampering with or replacing the signature data, and the digital signature C n Intranet industrial data D In_m Transmit to all server nodes S according to category j Block B corresponding to the blockchain jn_m , where j = 1, 2, 3…j…J, j represents the number of server nodes;
[0046] It is worth noting that the digital signature algorithm is used to authenticate the intranet industrial data D In_m The specific steps for digital signature are as follows: Obtain the intranet industrial data D from the digital certificate authentication center CA through PKD technology In_m The public key K used for signing n_1 and the private key K used for verification n_2 , private key K n_2 It is the core of digital signature and requires the use of secure hardware storage or multiple signature technologies to store the private key K n_2 Protect and regularly audit the private key K n_2 Access to the intranet industrial data D In_m Perform hash operation to obtain hash value H n_1 , and then use the private key K n_2 For the hash value H n_1 Encrypt and generate digital signature C n , the public key K n_1 Sent to the corresponding block B of the blockchain jn_m ;
[0047] S5: Block B jn_m Intranet industrial data D In_m Carrying digital signature C n Perform verification. If verification is successful, receive the intranet industrial data D In_m And store it, and use smart contracts to manage the intranet industrial data D that meet the contract conditions In_m Automatic execution and decision-making; otherwise, it indicates that the intranet industrial data D In_m The intranet industrial data is rejected because it has been tampered with or the sender's identity is questionable. In_m and marked as an attack;
[0048] It is worth noting that block B jn_m Intranet industrial data D In_m Carrying digital signature C n The verification steps are as follows: Block B jn_m Use the public key K n_1 Intranet industrial data D In_m Carrying digital signature C n Decrypt and get the hash value H n_1 , and then receive the intranet industrial data D In_m Perform hash operation to obtain hash value H n_2 , if the hash value H n_1 With hash value H n_2 Equal, indicating that the received intranet industrial data D In_m If it is correct, the verification passes; otherwise, the verification fails;
[0049] S6: The visitor sends the digital certificate C to the access control policy m Perform identity authentication. If the visitor passes the identity authentication, the access control policy will open the corresponding level of access rights to the visitor. m , visitors to block B at level m and below jn_m Make the visit; otherwise, mark the visitor's visit as an attack;
[0050] It is worth noting that the access control strategy is as follows: m-level access rights are divided into In_m The m levels correspond to each other, and set the visitor list N L , visitor list N L All visitors in the m , requiring the holder of a digital certificate C m Visitors have block B at level m and below jn_m Access rights for users without digital certificate C m of visitors are blocked and marked as attacks.
[0051] It is worth noting that the visitor visits block B jn_m The options are as follows: If the visitor needs to use the intranet industrial data D In_m Make decisions and use the intranet industrial data In_m Perform data cleaning and clear the intranet industrial data D In_m missing values, abnormal values, and duplicate values in the intranet industrial data D In_m Perform data analysis and processing to understand the intranet industrial data In_m Distribution and comparison of different intranet industrial data D In_m According to the differences and trends between the two, select appropriate visualization tools and techniques based on the results of data analysis and processing, design intuitive visualization graphics, and obtain visualization data V In_m , visitors can visualize the data V In_m Make a decision; if the visitor needs to modify the visual data V In_m , more than half of the server nodes S need to be consulted through the consensus mechanism j Agree to control all server nodes S j Block B of the blockchain jn_m Visualizing Data In_m Modify synchronously; if the visitor needs to export the intranet industrial data D In_m , for intranet industrial data D In_m Perform data desensitization and convert the intranet industrial data D In_m The sensitive data in the network is transformed according to the desensitization rules to protect the sensitive data, and then the desensitized data is transformed into the intranet industrial data D In_m Export.
[0052] See also Figure 2 As shown, an industrial Internet data protection system, the system is applied to an industrial Internet data protection method as described in any one of the above items, including:
[0053] Smart contract analysis and processing module, used to analyze and process smart contracts to obtain input domains;
[0054] A test case generation module, used to generate original test cases and subsequent test cases based on the input domain;
[0055] Data acquisition module, used to collect industrial data from various devices;
[0056] A data classification module is used to classify the collected industrial data into intranet industrial data and extranet industrial data;
[0057] Data classification module, used to classify the industrial data on the intranet;
[0058] Data encoding module, used to encode and process the intranet industrial data;
[0059] Data packaging module, used to package and process the intranet industrial data;
[0060] Data unpacking module, used to unpack the intranet industrial data;
[0061] Digital signature algorithm module, used to digitally sign the intranet industrial data and send the public key to the block of the corresponding blockchain module;
[0062] Blockchain module, used to store industrial data on the intranet;
[0063] The access control policy module is used to allow visitors with digital certificates to access the blockchain and block visitors without digital certificates;
[0064] Hash operation module, used to perform hash operation on intranet industrial data to obtain hash value;
[0065] Data visualization module, used to convert intranet industrial data into visual data;
[0066] The data desensitization module is used to desensitize the intranet industrial data.
[0067] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all such improvements and changes should fall within the scope of protection of the appended claims of the present invention. Parts not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims
1. An industrial Internet data protection method, characterized in that: include: S1: Perform a metamorphic test on the smart contract using a metamorphic test algorithm at every interval t. The smart contract is analyzed and processed to obtain an input domain. An original test case is randomly generated based on the input domain. Subsequent test cases are then generated based on the original test case. The smart contract is verified using the original test case and the subsequent test case. If the verification result conforms to the designed metamorphic relationship, the process proceeds to step S2. Otherwise, security vulnerabilities are identified and repaired based on the parts of the verification result that do not conform to the metamorphic relationship, and the process proceeds to step S2. S2: through end device E n Collect industrial data n , industrial data D n According to the industrial intranet N I Or industrial extranet N E The category is classified into intranet industrial data D In and external network industrial data D En , and the intranet industrial data D In Classify and record it as intranet industrial data D In_m , where n = 1, 2, 3…n…N, n represents the type of the terminal device, m = 1, 2, 3…m…M, m represents the intranet industrial data D In level; S3: External industrial data D En Transmitted to the industrial external network via wireless communication network N E Storage; Intranet industrial data D In_m Perform encoding and packaging processing in sequence, and verify the intranet industrial data before and after packaging processing D In_m The consistency and correctness of the verified intranet industrial data D In_m Transmitted to the industrial intranet via wireless communication network I ; S4: Industrial Intranet I For the received intranet industrial data D In_m Unpack the data and use the digital signature algorithm to In_m Digitally sign and add timestamp, which will carry digital signature C n Intranet industrial data D In_m Transmit to all server nodes S according to category j Block B corresponding to the blockchain jn_m , where j = 1, 2, 3…j…J, j represents the number of server nodes; S5: Block B jn_m Intranet industrial data D In_m Carried digital signature C n Perform verification. If the verification is successful, receive the intranet industrial data D In_m And store it, and use smart contracts to manage the intranet industrial data D that meet the contract conditions. In_m Automatic execution and decision-making; otherwise, reject the intranet industrial data D In_m and marked as an attack; S6: The visitor sends the digital certificate C to the access control policy m Perform identity authentication. If the visitor passes the identity authentication, the access control policy will open the corresponding level of access rights to the visitor. m , visitors to block B at level m and below jn_m If the access is made, the process returns to step S1; otherwise, the access by the visitor is marked as an attack, and the process returns to step S1.
2. The industrial Internet data protection method according to claim 1, characterized in that: In step S2, the intranet industrial data D In_m Encoding is to convert the intranet industrial data D In_m The data in the package is converted into coded symbols. The packaging process is to convert the intranet industrial data D In_m Compression is performed to reduce the D of intranet industrial data through encoding and packaging. In_m occupied space.
3. The industrial Internet data protection method according to claim 1, characterized in that: In step S4, the intranet industrial data D is digitally signed by the digital signature algorithm. In_m The steps for digital signature are as follows: Obtain the intranet industrial data D from the digital certificate authentication center CA through PKD technology In_m The public key K n_1 and private key K n_2 , for intranet industrial data D In_m Perform hash operation to obtain hash value H n_1 , and then use the private key K n_2 For hash value H n_1 Encrypt and generate digital signature C n , the public key K n_1 Sent to the corresponding block B of the blockchain jn_m .
4. The industrial Internet data protection method according to claim 1, characterized in that: Block B in step S5 jn_m Intranet industrial data D In_m Carried digital signature C n The verification steps are as follows: Block B jn_m Use the public key K n_1 Intranet industrial data D In_m Carried digital signature C n Decrypt and get the hash value H n_1 , and then receive the intranet industrial data D In_m Perform hash operation to obtain hash value H n_2 , if the hash value H n_1 With hash value H n_2 If they are equal, verification passes; otherwise, verification fails.
5. The industrial Internet data protection method according to claim 1, characterized in that: The access control strategy in step S6 is as follows: divide the access rights into m levels, and block B In_m The m levels correspond to each other, and set the visitor list N L , visitor list N L Visitors in the website all carry digital certificates C m , it is required to hold a digital certificate C m Visitors have block B at level m and below jn_m Access rights for users without digital certificate C m of visitors are blocked and marked as attacks.
6. The industrial Internet data protection method according to claim 1, characterized in that: In step S6, the visitor accesses block B jn_m The selection is as follows: If the visitor needs to use the intranet industrial data D In_m Make decisions and transfer the intranet industrial data to In_m Convert it into visual data that is easy for visitors to understand In_m , visitors can visualize data V In_m Make decisions; If the visitor needs to modify the visual data V In_m , controls all server nodes S j Block B of the blockchain jn_m Visualizing Data In_m Modify synchronously; if the visitor needs to export the intranet industrial data D In_m , for intranet industrial data D In_m Perform data desensitization and then send the desensitized intranet industrial data to In_m Export.
7. An industrial Internet data protection system, characterized in that: The system is applied to an industrial Internet data protection method according to any one of claims 1 to 6, including: Smart contract analysis and processing module, used to analyze and process smart contracts to obtain input domains; Test case generation module, used to generate original test cases and subsequent test cases based on input domain; Data acquisition module, used to collect industrial data from various devices; A data classification module is used to classify the collected industrial data into intranet industrial data and extranet industrial data; Data classification module, used to classify intranet industrial data; Data encoding module, used to encode and process intranet industrial data; Data packaging module, used to package and process intranet industrial data; Data unpacking module, used to unpack the intranet industrial data; Digital signature algorithm module, used to digitally sign the intranet industrial data and send the public key to the block of the corresponding blockchain module; Blockchain module, used to store intranet industrial data; The access control policy module is used to allow visitors holding digital certificates to access the blockchain and intercept visitors without digital certificates.
8. An industrial Internet data protection system according to claim 7, characterized in that: Also includes: Hash operation module, used to perform hash operation on intranet industrial data to obtain hash value; Data visualization, used to convert intranet industrial data into visual data; The data desensitization module is used to desensitize the intranet industrial data.
Citation Information
Patent Citations
Industrial data detection block chain network architecture based on edge computing and detection method
CN109302405A
Blockchain-based industrial Internet architecture, and operation method thereof
CN109302491A
Industrial data asset management method, system and equipment
CN113779607A
Intelligent contract digital asset defect detection method and device based on metamorphic relation
CN117493163A
Method for realizing enterprise digital asset protection through cross-intranet communication and block chain
CN117997616A
